wil6210: use ether_addr_equal

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Vladimir Kondratiev 2014-02-27 16:20:53 +02:00 committed by John W. Linville
parent b8b33a3a67
commit 108d1eb612
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/if_arp.h> #include <linux/if_arp.h>
#include <linux/etherdevice.h>
#include "wil6210.h" #include "wil6210.h"
#include "txrx.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++) { for (i = 0; i < ARRAY_SIZE(wil->sta); i++) {
if ((wil->sta[i].status != wil_sta_unused) && 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; rc = i;
break; break;
} }