From: Jo-Philipp Wich Date: Tue, 24 Jul 2012 11:37:38 +0000 (+0000) Subject: modules/admin-full: copy bssid when joining a network as client (#455) X-Git-Tag: 0.11.0~477 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c1c9d4400ff8b6773187dd195ed3594221ca0b2;p=oweals%2Fluci.git modules/admin-full: copy bssid when joining a network as client (#455) --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua index ff63c2626..5b646d9a3 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua @@ -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