From 108d1eb612d4f4094dc5dea11521f0b9b02622e4 Mon Sep 17 00:00:00 2001 From: Vladimir Kondratiev Date: Thu, 27 Feb 2014 16:20:53 +0200 Subject: [PATCH] wil6210: use ether_addr_equal Signed-off-by: Vladimir Kondratiev Signed-off-by: John W. Linville --- drivers/net/wireless/ath/wil6210/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include +#include #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; } -- 2.39.5