diff options
author | dingtianhong <dingtianhong@huawei.com> | 2013-12-26 06:41:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-26 13:31:35 -0500 |
commit | fcad7668fbd0444bc53872bf9b2c2ba0bf604bc0 (patch) | |
tree | b8a5831a8d04f92518a65a0e559345cbdd1420df /drivers/net/wireless/mwifiex/sta_rx.c | |
parent | 36325f3a9fabe66b3c2442f63163958f992ff16e (diff) |
mwifiex: slight optimization of addr compare
Use possibly more efficient ether_addr_equal
instead of memcmp.
Cc: Bing Zhao <bzhao@marvell.com>
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/mwifiex/sta_rx.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_rx.c b/drivers/net/wireless/mwifiex/sta_rx.c index 0bb510de8071..4651d676df38 100644 --- a/drivers/net/wireless/mwifiex/sta_rx.c +++ b/drivers/net/wireless/mwifiex/sta_rx.c | |||
@@ -224,7 +224,7 @@ int mwifiex_process_sta_rx_packet(struct mwifiex_private *priv, | |||
224 | * directly to os. Don't pass thru rx reordering | 224 | * directly to os. Don't pass thru rx reordering |
225 | */ | 225 | */ |
226 | if (!IS_11N_ENABLED(priv) || | 226 | if (!IS_11N_ENABLED(priv) || |
227 | memcmp(priv->curr_addr, rx_pkt_hdr->eth803_hdr.h_dest, ETH_ALEN)) { | 227 | !ether_addr_equal_unaligned(priv->curr_addr, rx_pkt_hdr->eth803_hdr.h_dest)) { |
228 | mwifiex_process_rx_packet(priv, skb); | 228 | mwifiex_process_rx_packet(priv, skb); |
229 | return ret; | 229 | return ret; |
230 | } | 230 | } |