Johannes Berg cf08e29db7 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: Alexander Lobakin <alexandr.lobakin@intel.com>
Fixes: 1d8d4af43474 ("wifi: mac80211: avoid u32_encode_bits() warning")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2023-02-14 20:09:30 +01:00
..
2023-01-12 17:02:20 -06:00
2023-02-10 17:51:27 -08:00
2023-01-13 20:44:20 -08:00
2023-02-10 17:51:27 -08:00
2023-02-10 17:51:27 -08:00
2023-02-10 17:51:27 -08:00
2023-02-02 20:48:23 -08:00
2023-02-10 17:51:27 -08:00
2022-08-22 14:26:30 +01:00