diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json b/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json index 97dea0e42d..c32a49170c 100644 --- a/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json +++ b/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json @@ -1040,6 +1040,14 @@ "description": "Local time zone as specified in 8.3 of IEEE Std 1003.1-2004", "type": "string" }, + "transition_disable": { + "description": "Transition modes the AP signals as disabled per WPA3 v3.5 ยง13. Entries 'sae', 'sae-pk', 'wpa3', 'owe' are OR'd into the bitmap; 'on' (or '1') derives it from auth_type; 'off' (or '0') suppresses the element. Unset by default.", + "type": "array", + "items": { + "type": "string", + "enum": [ "on", "off", "0", "1", "sae", "sae-pk", "wpa3", "owe" ] + } + }, "uapsd": { "type": "alias", "default": "uapsd_advertisement_enabled" diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc index 400034e4a9..b2890ff691 100644 --- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc +++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc @@ -439,6 +439,42 @@ function iface_mfp(config) { ]); } +function iface_transition_disable(config) { + if (config.wpa < 2) + return; + + let list = config.transition_disable; + if (!list || !length(list)) + return; + + for (let s in list) + if (s == 'off' || s == '0') + return; + + let bits = 0; + for (let s in list) { + if (s == 'on' || s == '1') { + bits = 0; + switch (config.auth_type) { + case 'sae': bits = 0x01; break; + case 'eap2': + case 'eap192': bits = 0x04; break; + case 'owe': if (!config.owe_transition) bits = 0x08; break; + } + break; + } + switch (s) { + case 'sae': bits |= 0x01; break; + case 'sae-pk': bits |= 0x02; break; + case 'wpa3': bits |= 0x04; break; + case 'owe': bits |= 0x08; break; + } + } + + if (bits) + append('transition_disable', sprintf('0x%02x', bits)); +} + function iface_key_caching(config) { if (config.wpa < 2) return; @@ -533,6 +569,8 @@ export function generate(interface, data, config, vlans, stas, phy_features) { iface_mfp(config); + iface_transition_disable(config); + iface_key_caching(config); iface_hs20(config);