diff options
author | dingtianhong <dingtianhong@huawei.com> | 2013-12-26 15:41:20 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-26 22:31:35 +0400 |
commit | 35df5388ac7cd205cc642b28eb90f940c816eaf7 (patch) | |
tree | b929d38a99ee3425e78ebfc6347a46ae0fd1e5b2 /drivers/net/wireless/cw1200/txrx.c | |
parent | d22fbd70c2770b5e3ba0d7bc5b29f6ee686cdba4 (diff) | |
download | linux-35df5388ac7cd205cc642b28eb90f940c816eaf7.tar.xz |
cw1200: slight optimization of addr compare
Use possibly more efficient ether_addr_equal
instead of memcmp.
Cc: Solomon Peachy <pizza@shaftnet.org>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Weilong Chen <chenweilong@huawei.com>
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/cw1200/txrx.c')
-rw-r--r-- | drivers/net/wireless/cw1200/txrx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/cw1200/txrx.c b/drivers/net/wireless/cw1200/txrx.c index e824d4d4a18d..0bd541175ecd 100644 --- a/drivers/net/wireless/cw1200/txrx.c +++ b/drivers/net/wireless/cw1200/txrx.c @@ -1166,8 +1166,7 @@ void cw1200_rx_cb(struct cw1200_common *priv, return; } else if (ieee80211_is_beacon(frame->frame_control) && !arg->status && priv->vif && - !memcmp(ieee80211_get_SA(frame), priv->vif->bss_conf.bssid, - ETH_ALEN)) { + ether_addr_equal(ieee80211_get_SA(frame), priv->vif->bss_conf.bssid)) { const u8 *tim_ie; u8 *ies = ((struct ieee80211_mgmt *) (skb->data))->u.beacon.variable; |