File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
drivers/net/wireless/cw1200 Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 13
13
#include <linux/sched.h>
14
14
#include <linux/firmware.h>
15
15
#include <linux/module.h>
16
+ #include <linux/etherdevice.h>
16
17
17
18
#include "cw1200.h"
18
19
#include "sta.h"
@@ -555,8 +556,8 @@ u64 cw1200_prepare_multicast(struct ieee80211_hw *hw,
555
556
pr_debug ("[STA] multicast: %pM\n" , ha -> addr );
556
557
memcpy (& priv -> multicast_filter .macaddrs [count ],
557
558
ha -> addr , ETH_ALEN );
558
- if (memcmp (ha -> addr , broadcast_ipv4 , ETH_ALEN ) &&
559
- memcmp (ha -> addr , broadcast_ipv6 , ETH_ALEN ))
559
+ if (! ether_addr_equal (ha -> addr , broadcast_ipv4 ) &&
560
+ ! ether_addr_equal (ha -> addr , broadcast_ipv6 ))
560
561
priv -> has_multicast_subscription = true;
561
562
count ++ ;
562
563
}
Original file line number Diff line number Diff line change @@ -1166,8 +1166,7 @@ void cw1200_rx_cb(struct cw1200_common *priv,
1166
1166
return ;
1167
1167
} else if (ieee80211_is_beacon (frame -> frame_control ) &&
1168
1168
!arg -> status && priv -> vif &&
1169
- !memcmp (ieee80211_get_SA (frame ), priv -> vif -> bss_conf .bssid ,
1170
- ETH_ALEN )) {
1169
+ ether_addr_equal (ieee80211_get_SA (frame ), priv -> vif -> bss_conf .bssid )) {
1171
1170
const u8 * tim_ie ;
1172
1171
u8 * ies = ((struct ieee80211_mgmt * )
1173
1172
(skb -> data ))-> u .beacon .variable ;
You can’t perform that action at this time.
0 commit comments