#20095: Wireless overview may show wrong SSID and BSSID
----------------------+----------------------------------
Reporter: gvalkov | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: luci | Version: Trunk
Resolution: | Keywords: Wireless wrong SSID
----------------------+----------------------------------
Comment (by gvalkov):
'''Fix''': Status for disabled wireless networks may display the SSID,
BSSID and Mode of an active network on the same radio.
{{{
/usr/lib/lua/luci/model/network.lua
modules/luci-base/luasrc/model/network.lua
function wifinet.active_mode(self)
- local m = _stror(self.iwinfo.mode, self.iwdata.mode) or "ap"
+ local m = _stror(self.iwdata.mode, self.iwinfo.mode) or "ap"
function wifinet.active_ssid(self)
- return _stror(self.iwinfo.ssid, self.iwdata.ssid)
+ return _stror(self.iwdata.ssid, self.iwinfo.ssid)
function wifinet.active_bssid(self)
- return _stror(self.iwinfo.bssid, self.iwdata.bssid) or
"00:00:00:00:00:00"
+ return _stror(self.iwdata.bssid, self.iwinfo.bssid) or
"00:00:00:00:00:00"
}}}
'''Note''': for some devices BSSID of disabled networks may still behave
the old way and display data from another active network on the same
radio, instead of "00:00:00:00:00:00". This may require more research as
'''self.iwdata.bssid''' always returns "00:00:00:00:00:00" even for active
networks, so '''self.iwinfo.bssid''' must be used as a backup option to
avoid them from being shown as disabled.
--
Ticket URL: <https://dev.openwrt.org/ticket/20095#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets