Skip to content
Commit cf08e29d authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: mac80211: fix off-by-one link setting



The convention for find_first_bit() is 0-based, while ffs()
is 1-based, so this is now off-by-one. I cannot reproduce the
gcc-9 problem, but since the -1 is now removed, I'm hoping it
will still avoid the original issue.

Reported-by: default avatarAlexander Lobakin <alexandr.lobakin@intel.com>
Fixes: 1d8d4af4 ("wifi: mac80211: avoid u32_encode_bits() warning")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent e6f5dcb7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment