Skip to content

Commit

Permalink
mac80211: fix processing HE capabilities (FS#3871)
Browse files Browse the repository at this point in the history
Use the right argument to fix setting unsupported capabilities to 0

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jun 17, 2021
1 parent a463b96 commit 49ef4db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 49ef4db

Please sign in to comment.