Posted: Fri Jul 29, 2022 5:08 Post subject: wl0.1_hwaddr does not match 'wl -i wl0.1 bssid'
I have a 2.4GHz guest network set up on wl0.1 that stopped working about 2 days ago on one of my routers.
(see https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=332640)
However, the 5GHz guest network (as well as the regular 2.4 and 5GHz wireless networks) work fine. Also the 2.4GHz guest networks continue to work fine on my 3 other APs.
All 4 routers are Netgear r6700v3 running dd-wrt r49532
The only difference I could find is that there is an inconsistency between:
Code:
#ifconfig wl0.1
6b:ad:d4:23:27:e0
#nvram get wl0.1_hwaddr
6b:ad:d4:23:27:e0
and
Code:
#wl -i wl0.1 bssid
6b:ad:d4:23:27:e0
which of course is the bssid that is broadcast.
The MAC address is consistent for the other wireless interfaces on this router (wl0, wl1, wl1.1) as well as for all 4 interfaces on my other 3 routers.
I tried changing wl0.1_hwaddr using 'nvram set' and 'nvram commit' and I also tried manually setting the MAC address for wl0.1 using 'ip dev wl0.1 address 6b:ad:d4:23:27:f0' but neither change helped nor persisted a reboot.
Still, this mismatch seems odd and could presumably explain why my 2.4GHz network is no longer working.
It is possible to explicitly set bssid, that was made for wireless connection of the router(Station (bridge) modes)
How do I change the bssid?
And where/how is it set -- i.e. what routine sets it and what nvram variable is used to set it.
I would have thought that it was set to wl0.1_hwaddr but it seems to be set to wl0.1_hwaddr +10h
Quote:
Is it possible that you played with these modes and that that somehow got you a different bssid?
You said it stopped working, what changed?
The only thing I did was to remove the following 2 firewall settings for the guest network on br1]
@ECG, before I try factory resetting the router, I would like to see if I can fix it by manually changing the BSSID to match the value of the ifconfig MAC.
You mentioned that it is possible to change the BSSID... so how would I do that?
Also, do you understand how and where in the code the dd-wrt firmware sets the BSSID relative to the nvram value of wl0.1_hwaddr?
Posted: Tue Aug 02, 2022 1:27 Post subject: Solved but not sure why...
By assiduously comparing the nvram parameters between a working and a non-working router... and via trial-and-error, I was able to fix the problem by *unsetting* br1_hwaddr.
Even though the MAC address for br1_hwaddr did not itself conflict with the BSSID or the MAC address for wl0.1, somehow it created a problem... resulting in the BSSID for wl0.1 differing from the ifconfig (hardware?) MAC address for wl0.1 which presumably was the proximal cause for the problem.
It still would be good to understand how the BSSID is set and calculated relative to the ifconfig (hardware?) MAC address for wl0.1
And it would be helpful to know whether and how one can set the BSSID manually.