summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRany Hany2025-11-15 20:25:59 +0000
committerHauke Mehrtens2025-11-19 17:54:27 +0000
commita7790ce41099549cf6c97765561ac716d102ae5e (patch)
tree8028f27887ca86bf2b1050c06fb82a965e2e1e20
parentb947064db46f280ba4e2c937b3d79cedb22511db (diff)
downloadopenwrt-a7790ce41099549cf6c97765561ac716d102ae5e.tar.gz
wifi-scripts: bump reassociation_deadline default to 20000
Most users on forums face a broken 802.11r setup when having a very simple 802.11r config (i.e., just ieee80211r enabled). In most cases, simply bumping reassociation_deadline to 20000 fixes their problems and allows 802.11r to just work. Reassociation Deadline is already set to 20 seconds on Cisco equipment by default[1] which is why this value has been chosen. It is also mentioned on the OpenWRT Wiki as a value that should be changed in order for 802.11r to work on Apple devices. I think it would be better to change the defaults instead so users don't have to do much work for a working setup. [1]: https://www.cisco.com/c/en/us/td/docs/wireless/controller/technotes/80211r-ft/b-80211r-dg.html Fixes: https://github.com/openwrt/openwrt/issues/7907 Signed-off-by: Rany Hany <rany_hany@riseup.net> Link: https://github.com/openwrt/openwrt/pull/20799 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json2
-rw-r--r--package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh2
2 files changed, 2 insertions, 2 deletions
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 54a02e8938..73be34d0e5 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
@@ -916,7 +916,7 @@
"type": "number",
"minimum": 1000,
"maximum": 65535,
- "default": 1000
+ "default": 20000
},
"request_cui": {
"type": "alias",
diff --git a/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh b/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh
index 5ae9965632..f0df1127a8 100644
--- a/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh
+++ b/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh
@@ -920,7 +920,7 @@ hostapd_set_bss_options() {
set_default mobility_domain "$(echo "$ssid" | md5sum | head -c 4)"
set_default ft_over_ds 0
- set_default reassociation_deadline 1000
+ set_default reassociation_deadline 20000
case "$auth_type" in
psk)