blob: 1bd0a91bfd879a72f25ed20b04ae41fef04d2ef9 [file] [log] [blame]
developer20d67712022-03-02 14:09:32 +08001diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
2index 27eecf3..318de3a 100644
3--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
4+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
5@@ -141,9 +141,6 @@ mac80211_hostapd_setup_base() {
6 json_get_values ht_capab_list ht_capab tx_burst
7 json_get_values channel_list channels
8
9- [ "$auto_channel" = 0 ] && [ -z "$channel_list" ] && \
10- channel_list="$channel"
11-
12 set_default noscan 0
13
14 [ "$noscan" -gt 0 ] && hostapd_noscan=1
15@@ -413,9 +410,9 @@ mac80211_hostapd_setup_base() {
16 he_spr_non_srg_obss_pd_max_offset:1 \
17 he_bss_color
18
19- he_phy_cap=$(iw phy "$phy" info | awk -F "[()]" '/HE PHY Capabilities/ { print $2 }' | head -1)
20+ he_phy_cap=$(iw phy "$phy" info | grep "HE Iftypes: AP" -A 50 | awk -F "[()]" '/HE PHY Capabilities/ { print $2 }' | head -1)
21 he_phy_cap=${he_phy_cap:2}
22- he_mac_cap=$(iw phy "$phy" info | awk -F "[()]" '/HE MAC Capabilities/ { print $2 }' | head -1)
23+ he_mac_cap=$(iw phy "$phy" info | grep "HE Iftypes: AP" -A 50 | awk -F "[()]" '/HE MAC Capabilities/ { print $2 }' | head -1)
24 he_mac_cap=${he_mac_cap:2}
25
26 append base_cfg "ieee80211ax=1" "$N"
27--
282.29.2
29