[PATCH 4/4] staging/wlan-ng: rearrange comments
From: Denis Pithon
Date: Fri May 16 2014 - 18:17:36 EST
Gathered together comments in front of multicast filtering block.
Signed-off-by: Denis Pithon <denis.pithon@xxxxxxxxx>
---
drivers/staging/wlan-ng/p80211netdev.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c
index 63edc83..21ca17e 100644
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@ -260,12 +260,12 @@ static int p80211_convert_to_ether(wlandevice_t *wlandev, struct sk_buff *skb)
if (p80211_rx_typedrop(wlandev, hdr->fc))
return CONV_TO_ETHER_SKIPPED;
- /* perform mcast filtering */
+ /* perform mcast filtering: allow my local address through but reject
+ * anything else that isn't multicast
+ */
if (wlandev->netdev->flags & IFF_ALLMULTI) {
- /* allow my local address through */
if (!ether_addr_equal_unaligned(wlandev->netdev->dev_addr,
hdr->a1)) {
- /* but reject anything else that isn't multicast */
if (!is_multicast_ether_addr(hdr->a1))
return CONV_TO_ETHER_SKIPPED;
}
--
1.9.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/