modules/admin-full: copy bssid when joining a network as client (#455)
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 24 Jul 2012 11:37:38 +0000 (11:37 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 24 Jul 2012 11:37:38 +0000 (11:37 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua

index ff63c26..5b646d9 100644 (file)
@@ -145,7 +145,7 @@ function newnet.parse(self, section)
                wconf.encryption = "none"
        end
 
-       if wconf.mode == "adhoc" then
+       if wconf.mode == "adhoc" or wconf.mode == "sta" then
                wconf.bssid = m.hidden.bssid
        end