diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-06-17 11:04:27 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-11-23 18:30:04 +0100 |
commit | cdb867b73ac66301679de62c12fd974ef5cc0f63 (patch) | |
tree | ba091eee9337deb3ba76609cd66c512c1c09685e | |
parent | 7b7b494d56fec408bc4d4b9564f0f1d3ca6b9c2a (diff) | |
download | upstream-cdb867b73ac66301679de62c12fd974ef5cc0f63.tar.gz upstream-cdb867b73ac66301679de62c12fd974ef5cc0f63.tar.bz2 upstream-cdb867b73ac66301679de62c12fd974ef5cc0f63.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>
(cherry-picked from commit 49ef4dbee519e006bb998de11e3bdf1c10c43e6a)
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 2 |
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 6fc75e9237..c4f843e5bb 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -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" |