Skip to content
Snippets Groups Projects
Commit 2fe497c4 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mac80211: do not emit VHT160 capabilities if channel width is less than 160 MHz


Fixes compatibility issues with VHT160 capable clients

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
(cherry picked from commit 80e4e2285fdf4a7b19c84532deafe2d1e690ed30)
parent 9cd0023e
No related branches found
No related tags found
1 merge request!433Merge OpenWrt tag 'v23.05.4' into devel
......@@ -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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment