@@ -1449,7 +1449,7 @@ static void __ieee80211_assign_perm_addr(struct ieee80211_local *local,
if (!used) {
memcpy(perm_addr, local->hw.wiphy->addresses[i].addr,
ETH_ALEN);
- break;
+ return;
}
}
@@ -1507,10 +1507,12 @@ static void __ieee80211_assign_perm_addr(struct ieee80211_local *local,
if (!used) {
memcpy(perm_addr, tmp_addr, ETH_ALEN);
- break;
+ return;
}
addr = (start & ~mask) | (val & mask);
} while (addr != start);
+
+ pr_debug("no free address found - using default\n");
}
static void ieee80211_assign_perm_addr(struct ieee80211_local *local,