luci-mod-network: dynamic_vlan and PPSK tweaks
I mainly noticed these two points:
- dynamic_vlan, vlan_tagged_interface, etc. get unset when using PSK/SAE without PPSK, which isn't correct as it can be used with wifi-station
- PPSK is unavailable for sae-mixed or SAE, when it actually works fine under that mode
Possibly something to do with those comprehensive .depends permissions.
Also acct_server and acct_secret gets unset by Luci when using PPSK even though it is valid.
I seem to have the same issue, also if option option dynamic_vlan '2' has been specified only with wifi-stations and wifi-vlans, any edit to wireless in luci discards my option even though it is still very valid, it is due this ppsk checkbox which seem more designed for radius only, the stanza which get removed in my configs are:
uci del wireless.default_radio0.dynamic_vlan
uci del wireless.default_radio0.vlan_naming
uci del wireless.default_radio0.vlan_tagged_interface
This happens only when I click save without any edit.
Config:
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/18000000.wifi'
option channel '12'
option band '2g'
option htmode 'HE20'
option cell_density '0'
option txpower '17'
option country 'NL'
list hostapd_options 'ssid_protection=1'
option log_level '3'
config wifi-iface 'default_radio0'
option device 'radio0'
option mode 'ap'
option ssid 'GL-MT6000-7fa'
option encryption 'psk2+aes'
option ieee80211r '1'
option ft_over_ds '0'
option ft_psk_generate_local '1'
option ieee80211w '1'
option ocv '1'
option wpa_disable_eapol_key_retries '1'
option mobility_domain 'F8DD'
option reassociation_deadline '20000'
option macaddr 'random'
option wpa_psk_file '/etc/hostapd/ppsk-vlans'
option vlan_naming '1'
option dynamic_vlan '2'
option multicast_to_unicast_all '1'
option skip_inactivity_poll '1'
option vlan_tagged_interface 'eth1'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/soc/18000000.wifi+1'
option channel '108'
option band '5g'
option htmode 'HE160'
option cell_density '0'
option country 'NL'
option txpower '17'
list hostapd_options 'ssid_protection=1'
option log_level '3'
config wifi-iface 'default_radio1'
option device 'radio1'
option mode 'ap'
option ssid 'GL-MT6000-7fa-5G'
option encryption 'psk2+aes'
option ieee80211r '1'
option mobility_domain 'F8DC'
option ft_over_ds '0'
option ft_psk_generate_local '1'
option ieee80211w '1'
option reassociation_deadline '20000'
option macaddr 'random'
option ocv '1'
option skip_inactivity_poll '1'
option wpa_disable_eapol_key_retries '1'
option wpa_psk_file '/etc/hostapd/ppsk-vlans'
option multicast_to_unicast_all '1'
option dynamic_vlan '2'
option vlan_naming '1'
option vlan_tagged_interface 'eth1'
config wifi-vlan
option iface 'default_radio0'
option vid '178'
option name 'aqnet'
option network 'aqara'
My config is a bit odd, but it is because this worked for me with roaming and a patch, even though this should be valid.