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>
This commit is contained in:
Felix Fietkau 2021-06-17 11:04:27 +02:00
parent a463b96241
commit 49ef4dbee5

View 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"