summaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
authorJoe Perches2012-05-08 20:56:53 +0200
committerDavid S. Miller2012-05-10 02:49:18 +0200
commit3bc7945e2642bcea92b0fd6a718565f45061439f (patch)
tree4437668566814f6a9f10a6ddcf22e575e208a039 /net/mac80211/rx.c
parentmac80211: Convert compare_ether_addr to ether_addr_equal (diff)
downloadkernel-qcow2-linux-3bc7945e2642bcea92b0fd6a718565f45061439f.tar.gz
kernel-qcow2-linux-3bc7945e2642bcea92b0fd6a718565f45061439f.tar.xz
kernel-qcow2-linux-3bc7945e2642bcea92b0fd6a718565f45061439f.zip
mac80211: Convert compare_ether_addr to ether_addr_equal by hand
spatch/coccinelle isn't perfect. It doesn't understand __aligned(x) and doesn't convert functions it can't parse. Convert the remaining compare_ether_addr uses. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 26bfd6fcaa48..d722c40c7eca 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -1714,8 +1714,8 @@ static bool ieee80211_frame_allowed(struct ieee80211_rx_data *rx, __le16 fc)
* of whether the frame was encrypted or not.
*/
if (ehdr->h_proto == rx->sdata->control_port_protocol &&
- (compare_ether_addr(ehdr->h_dest, rx->sdata->vif.addr) == 0 ||
- compare_ether_addr(ehdr->h_dest, pae_group_addr) == 0))
+ (ether_addr_equal(ehdr->h_dest, rx->sdata->vif.addr) ||
+ ether_addr_equal(ehdr->h_dest, pae_group_addr)))
return true;
if (ieee80211_802_1x_port_control(rx) ||