wifi: mac80211: don't use rate mask for scanning
authorJohannes Berg <johannes.berg@intel.com>
Tue, 26 Mar 2024 21:08:54 +0000 (22:08 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 8 Apr 2024 18:11:34 +0000 (20:11 +0200)
commitab9177d83c040eba58387914077ebca56f14fae6
treec46865a2e3043d6225b4b70033420055dbaddbea
parent7c1c73bf84c50b641449f9811e2196cdc3ca4a1b
wifi: mac80211: don't use rate mask for scanning

The rate mask is intended for use during operation, and
can be set to only have masks for the currently active
band. As such, it cannot be used for scanning which can
be on other bands as well.

Simply ignore the rate masks during scanning to avoid
warnings from incorrect settings.

Reported-by: syzbot+fdc5123366fb9c3fdc6d@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=fdc5123366fb9c3fdc6d
Co-developed-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Tested-by: Dmitry Antipov <dmantipov@yandex.ru>
Link: https://msgid.link/20240326220854.9594cbb418ca.I7f86c0ba1f98cf7e27c2bacf6c2d417200ecea5c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/rate.c
net/mac80211/scan.c
net/mac80211/tx.c