wil6210: use ether_addr_equal
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Thu, 27 Feb 2014 14:20:53 +0000 (16:20 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Feb 2014 19:33:37 +0000 (14:33 -0500)
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/main.c

index 361c693270cc49f0303fc91c511ea99de246cf8a..a0ea135efd11a3a138cc95ae719d902d7cc56f22 100644 (file)
@@ -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;
                }