Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 108d1eb6 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by John W. Linville
Browse files

wil6210: use ether_addr_equal

parent b8b33a3a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
		}