mac80211: fix processing HE capabilities (FS#3871)
authorFelix Fietkau <nbd@nbd.name>
Thu, 17 Jun 2021 09:04:27 +0000 (11:04 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 23 Nov 2021 17:30:04 +0000 (18:30 +0100)
Use the right argument to fix setting unsupported capabilities to 0

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 49ef4dbee519e006bb998de11e3bdf1c10c43e6a)

package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

index 6fc75e9237e6a15f732a78d4b96e788e1b81b41e..c4f843e5bba8c686c5e11a1d4a509adfc2e52333 100644 (file)
@@ -117,7 +117,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"