gluon-client-bridge, gluon-mesh-batman-adv-core: make macaddr variable local in upgrade script

This commit is contained in:
Matthias Schiffer 2016-07-27 03:44:28 +02:00
parent 7565839fc4
commit 806af27083
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ local function configure_client(config, radio, index, suffix)
return
end
macaddr = util.get_wlan_mac(radio, index, 1)
local macaddr = util.get_wlan_mac(radio, index, 1)
if not macaddr then
return
end

View File

@ -33,7 +33,7 @@ local function configure_ibss(config, radio, index, suffix, disabled)
return
end
macaddr = util.get_wlan_mac(radio, index, 3)
local macaddr = util.get_wlan_mac(radio, index, 3)
if not macaddr then
return
end
@ -88,7 +88,7 @@ local function configure_mesh(config, radio, index, suffix, disabled)
return
end
macaddr = util.get_wlan_mac(radio, index, 2)
local macaddr = util.get_wlan_mac(radio, index, 2)
if not macaddr then
return
end