diff options
| author | Lix Zhou | 2025-02-19 05:22:12 +0000 |
|---|---|---|
| committer | John Crispin | 2025-02-19 07:07:52 +0000 |
| commit | b74318481b424cf72ef178881c567e9f049c04dc (patch) | |
| tree | 0f1ba58962362eedd8eaf15688ce8390f31bb9ae | |
| parent | c840629046348d72ff7609433e5e228abb737797 (diff) | |
| download | openwrt-b74318481b424cf72ef178881c567e9f049c04dc.tar.gz | |
wifi-scripts: failed to start hostapd if he_spr_psr_enabled is set
he_spr_psr_enabled is appended to hostapd.conf if it's enabled, but hostapd
doesn't support this config, it should be used as an internal flag to control
the he_spr_sr_control configuring.
Signed-off-by: Lix Zhou <xeontz@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18025
Signed-off-by: John Crispin <john@phrozen.org>
| -rwxr-xr-x | package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh b/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh index b4aa19bf52..61813ab81b 100755 --- a/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh +++ b/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh @@ -471,7 +471,6 @@ mac80211_hostapd_setup_base() { he_su_beamformer:${he_phy_cap:6:2}:0x80:$he_su_beamformer \ he_su_beamformee:${he_phy_cap:8:2}:0x1:$he_su_beamformee \ he_mu_beamformer:${he_phy_cap:8:2}:0x2:$he_mu_beamformer \ - he_spr_psr_enabled:${he_phy_cap:14:2}:0x1:$he_spr_psr_enabled \ he_twt_required:${he_mac_cap:0:2}:0x6:$he_twt_required if [ "$he_bss_color_enabled" -gt 0 ]; then @@ -480,6 +479,7 @@ mac80211_hostapd_setup_base() { append base_cfg "he_spr_non_srg_obss_pd_max_offset=$he_spr_non_srg_obss_pd_max_offset" "$N" he_spr_sr_control=$((he_spr_sr_control | (1 << 2))) } + [ "$he_spr_psr_enabled" -gt 0 ] && he_spr_psr_enabled=$((0x${he_phy_cap:14:2} & 0x1)) [ "$he_spr_psr_enabled" -gt 0 ] || he_spr_sr_control=$((he_spr_sr_control | (1 << 0))) append base_cfg "he_spr_sr_control=$he_spr_sr_control" "$N" else |