projects
/
linux-drm-fsl-dcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[linux-drm-fsl-dcu.git]
/
net
/
mac80211
/
iface.c
diff --git
a/net/mac80211/iface.c
b/net/mac80211/iface.c
index 3d2168c3269ef40b10fa28c50496f369f8158af4..d624ed49a7d9322e5615249ece049785e950e384 100644
(file)
--- a/
net/mac80211/iface.c
+++ b/
net/mac80211/iface.c
@@
-1476,8
+1476,8
@@
static void ieee80211_assign_perm_addr(struct ieee80211_local *local,
bool used = false;
list_for_each_entry(sdata, &local->interfaces, list) {
bool used = false;
list_for_each_entry(sdata, &local->interfaces, list) {
- if (
memcmp
(local->hw.wiphy->addresses[i].addr,
-
sdata->vif.addr, ETH_ALEN) == 0
) {
+ if (
ether_addr_equal
(local->hw.wiphy->addresses[i].addr,
+
sdata->vif.addr)
) {
used = true;
break;
}
used = true;
break;
}
@@
-1537,8
+1537,7
@@
static void ieee80211_assign_perm_addr(struct ieee80211_local *local,
val += inc;
list_for_each_entry(sdata, &local->interfaces, list) {
val += inc;
list_for_each_entry(sdata, &local->interfaces, list) {
- if (memcmp(tmp_addr, sdata->vif.addr,
- ETH_ALEN) == 0) {
+ if (ether_addr_equal(tmp_addr, sdata->vif.addr)) {
used = true;
break;
}
used = true;
break;
}