Skip to content

Commit

Permalink
mac80211: do not emit VHT160 capabilities if channel width is less th…
Browse files Browse the repository at this point in the history
…an 160 MHz

Fixes compatibility issues with VHT160 capable clients

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jan 9, 2024
1 parent d864f68 commit 80e4e22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ mac80211_hostapd_setup_base() {
[ "$rx_stbc" -lt "$cap_rx_stbc" ] && cap_rx_stbc="$rx_stbc"
vht_cap="$(( ($vht_cap & ~(0x700)) | ($cap_rx_stbc << 8) ))"

[ "$vht_oper_chwidth" -lt 2 ] && {
vht160=0
short_gi_160=0
}

mac80211_add_capabilities vht_capab $vht_cap \
RXLDPC:0x10::$rxldpc \
SHORT-GI-80:0x20::$short_gi_80 \
Expand Down

0 comments on commit 80e4e22

Please sign in to comment.