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>
Thu, 17 Jun 2021 10:40:43 +0000 (12:40 +0200)
Use the right argument to fix setting unsupported capabilities to 0

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

index c9a0fe542ac669dd78ff28330596fba890cd5503..b6e3302f8b383223c4236b40562d7109970e66a9 100644 (file)
@@ -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"