it's not supported by hostapd, only an internal switch in wifi scripts Signed-off-by: Zax <panzi...@163.com> --- .../package/feeds/base/wifi-scripts/files/lib/netifd/wireless/mac80211.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/feeds/base/wifi-scripts/files/lib/netifd/wireless/mac80211.sh b/package/feeds/base/wifi-scripts/files/lib/netifd/wireless/mac80211.sh index 699a914e..20d2a74b 100644 --- a/package/feeds/base/wifi-scripts/files/lib/netifd/wireless/mac80211.sh +++ b/package/feeds/base/wifi-scripts/files/lib/netifd/wireless/mac80211.sh @@ -445,7 +445,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 @@ -454,6 +453,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 -- 2.34.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel