mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
staging/wlan-ng: rearrange comments
Gathered together comments in front of multicast filtering block. Signed-off-by: Denis Pithon <denis.pithon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
02b3b53a08
commit
95c9668dda
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue