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 ff63c2626057be3b80ee62351d1921b3aafd0587..5b646d9a31ba26b94309d6cc25ed4bc19526dbc6 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