aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-06-17 11:04:27 +0200
committerFelix Fietkau <nbd@nbd.name>2021-06-17 12:40:43 +0200
commit49ef4dbee519e006bb998de11e3bdf1c10c43e6a (patch)
treef787b248881ada0d10a181ee4863e32d4f6f2ff7 /package/kernel/mac80211
parenta463b96241fbc2d142982387eaed9989e201ac7a (diff)
downloadupstream-49ef4dbee519e006bb998de11e3bdf1c10c43e6a.tar.gz
upstream-49ef4dbee519e006bb998de11e3bdf1c10c43e6a.tar.bz2
upstream-49ef4dbee519e006bb998de11e3bdf1c10c43e6a.zip
mac80211: fix processing HE capabilities (FS#3871)
Use the right argument to fix setting unsupported capabilities to 0 Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r--package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index c9a0fe542a..b6e3302f8b 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -116,7 +116,7 @@ mac80211_add_he_capabilities() {
set -- $capab
[ "$(($4))" -gt 0 ] || continue
[ "$(((0x$2) & $3))" -gt 0 ] || {
- eval "$4=0"
+ eval "$1=0"
continue
}
append base_cfg "$1=1" "$N"