Skip to content
Snippets Groups Projects
Unverified Commit df07fc80 authored by David Bauer's avatar David Bauer Committed by GitHub
Browse files

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: default avatarDavid Bauer <mail@david-bauer.net>
parent ff60b422
No related branches found
No related tags found
No related merge requests found
......@@ -90,21 +90,16 @@ local function configure_owe_transition_mode(config, radio_name)
local name_client = 'client_' .. radio_name
local name_owe = 'owe_' .. radio_name
local ssid_client = uci:get('wireless', name_client, 'ssid')
local ssid_owe = uci:get('wireless', name_owe, 'ssid')
local ifname_client = uci:get('wireless', name_client, 'ifname')
local ifname_owe = uci:get('wireless', name_owe, 'ifname')
local macaddr_client = uci:get('wireless', name_client, 'macaddr')
local macaddr_owe = uci:get('wireless', name_owe, 'macaddr')
if not (ssid_client and ssid_owe and macaddr_client and macaddr_owe) then
if not (ifname_client and ifname_owe) then
return
end
uci:set('wireless', name_client, 'owe_transition_ssid', ssid_owe)
uci:set('wireless', name_client, 'owe_transition_bssid', macaddr_owe)
uci:set('wireless', name_client, 'owe_transition_ifname', ifname_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')
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment