gluon-client-bridge: simplify OWE-TM configuration (#2550)
OpenWrt now allows to specify the ifname of the transition interface instead of SSID and BSSID, internally automatically detecting these from interfaces on the same PHY. Thus, these cross-VAP dependant configuration can be omitted from UCI. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
parent
ff60b42203
commit
df07fc8040
@ -90,21 +90,16 @@ local function configure_owe_transition_mode(config, radio_name)
|
|||||||
local name_client = 'client_' .. radio_name
|
local name_client = 'client_' .. radio_name
|
||||||
local name_owe = 'owe_' .. radio_name
|
local name_owe = 'owe_' .. radio_name
|
||||||
|
|
||||||
local ssid_client = uci:get('wireless', name_client, 'ssid')
|
local ifname_client = uci:get('wireless', name_client, 'ifname')
|
||||||
local ssid_owe = uci:get('wireless', name_owe, 'ssid')
|
local ifname_owe = uci:get('wireless', name_owe, 'ifname')
|
||||||
|
|
||||||
local macaddr_client = uci:get('wireless', name_client, 'macaddr')
|
if not (ifname_client and ifname_owe) then
|
||||||
local macaddr_owe = uci:get('wireless', name_owe, 'macaddr')
|
|
||||||
|
|
||||||
if not (ssid_client and ssid_owe and macaddr_client and macaddr_owe) then
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
uci:set('wireless', name_client, 'owe_transition_ssid', ssid_owe)
|
uci:set('wireless', name_client, 'owe_transition_ifname', ifname_owe)
|
||||||
uci:set('wireless', name_client, 'owe_transition_bssid', macaddr_owe)
|
uci:set('wireless', name_owe, 'owe_transition_ifname', ifname_client)
|
||||||
|
|
||||||
uci:set('wireless', name_owe, 'owe_transition_ssid', ssid_client)
|
|
||||||
uci:set('wireless', name_owe, 'owe_transition_bssid', macaddr_client)
|
|
||||||
uci:set('wireless', name_owe, 'hidden', '1')
|
uci:set('wireless', name_owe, 'hidden', '1')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user