summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/wil6210/main.c
diff options
context:
space:
mode:
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>2014-02-27 16:20:53 +0200
committerJohn W. Linville <linville@tuxdriver.com>2014-02-28 14:33:37 -0500
commit108d1eb612d4f4094dc5dea11521f0b9b02622e4 (patch)
tree7419d5dde903daa5a9729501ef5e57fa62a6de00 /drivers/net/wireless/ath/wil6210/main.c
parentb8b33a3a67ef0b3ca57a647aa6966a2310ae60bb (diff)
wil6210: use ether_addr_equal
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/main.c')
-rw-r--r--drivers/net/wireless/ath/wil6210/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/main.c b/drivers/net/wireless/ath/wil6210/main.c
index 361c693270cc..a0ea135efd11 100644
--- a/drivers/net/wireless/ath/wil6210/main.c
+++ b/drivers/net/wireless/ath/wil6210/main.c
@@ -16,6 +16,7 @@
#include <linux/moduleparam.h>
#include <linux/if_arp.h>
+#include <linux/etherdevice.h>
#include "wil6210.h"
#include "txrx.h"
@@ -436,7 +437,7 @@ int wil_find_cid(struct wil6210_priv *wil, const u8 *mac)
for (i = 0; i < ARRAY_SIZE(wil->sta); i++) {
if ((wil->sta[i].status != wil_sta_unused) &&
- (0 == memcmp(wil->sta[i].addr, mac, ETH_ALEN))) {
+ ether_addr_equal(wil->sta[i].addr, mac)) {
rc = i;
break;
}