mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 10:02:53 +00:00
mac80211: fix typo
The detection of multi_bssid was using bad syntx, this caused the wifi MAC of some boards to change. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -533,7 +533,7 @@ mac80211_generate_mac() {
|
|||||||
local ref="$(cat /sys/class/ieee80211/${phy}/macaddress)"
|
local ref="$(cat /sys/class/ieee80211/${phy}/macaddress)"
|
||||||
local mask="$(cat /sys/class/ieee80211/${phy}/address_mask)"
|
local mask="$(cat /sys/class/ieee80211/${phy}/address_mask)"
|
||||||
|
|
||||||
[ "$mask" = "00:00:00:00:00:00" -a "$multiple_bssid" -neq 1 ] && {
|
[ "$mask" = "00:00:00:00:00:00" -a "$multiple_bssid" != 1 ] && {
|
||||||
mask="ff:ff:ff:ff:ff:ff";
|
mask="ff:ff:ff:ff:ff:ff";
|
||||||
|
|
||||||
[ "$(wc -l < /sys/class/ieee80211/${phy}/addresses)" -gt $id ] && {
|
[ "$(wc -l < /sys/class/ieee80211/${phy}/addresses)" -gt $id ] && {
|
||||||
|
|||||||
Reference in New Issue
Block a user