[openwrt/openwrt] mac80211: fix processing HE capabilities (FS#3871)
LEDE Commits
lede-commits at lists.infradead.org
Tue Nov 23 09:44:11 PST 2021
nbd pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/cdb867b73ac66301679de62c12fd974ef5cc0f63
commit cdb867b73ac66301679de62c12fd974ef5cc0f63
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Jun 17 11:04:27 2021 +0200
mac80211: fix processing HE capabilities (FS#3871)
Use the right argument to fix setting unsupported capabilities to 0
Signed-off-by: Felix Fietkau <nbd at nbd.name>
(cherry-picked from commit 49ef4dbee519e006bb998de11e3bdf1c10c43e6a)
---
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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"
More information about the lede-commits
mailing list