Ping-Ke Shih e7a7ef9a07 wifi: mac80211: don't use rate mask for offchannel TX either
Like the commit ab9177d83c04 ("wifi: mac80211: don't use rate mask for
scanning"), ignore incorrect settings to avoid no supported rate warning
reported by syzbot.

The syzbot did bisect and found cause is commit 9df66d5b9f45 ("cfg80211:
fix default HE tx bitrate mask in 2G band"), which however corrects
bitmask of HE MCS and recognizes correctly settings of empty legacy rate
plus HE MCS rate instead of returning -EINVAL.

As suggestions [1], follow the change of SCAN TX to consider this case of
offchannel TX as well.

[1] https://lore.kernel.org/linux-wireless/6ab2dc9c3afe753ca6fdcdd1421e7a1f47e87b84.camel@sipsolutions.net/T/#m2ac2a6d2be06a37c9c47a3d8a44b4f647ed4f024

Reported-by: syzbot+8dd98a9e98ee28dc484a@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/linux-wireless/000000000000fdef8706191a3f7b@google.com/
Fixes: 9df66d5b9f45 ("cfg80211: fix default HE tx bitrate mask in 2G band")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240729074816.20323-1-pkshih@realtek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2024-08-27 10:13:23 +02:00
..
2024-06-05 10:18:06 +01:00
2024-05-14 20:21:04 +02:00
2024-07-19 09:51:33 -07:00
2024-07-14 07:56:32 -07:00
2024-03-05 11:21:18 -08:00
2024-07-09 11:31:32 +02:00
2024-01-02 12:41:16 +00:00
2024-06-25 11:10:18 +02:00
2022-08-09 22:14:02 -07:00
2024-02-09 10:01:09 -08:00
2024-05-08 10:35:09 +01:00
2024-03-05 19:21:17 -08:00
2023-11-02 09:31:02 +01:00
2024-05-07 01:35:55 +02:00
2021-10-15 11:33:08 +01:00
2024-02-28 11:19:41 +00:00
2023-04-22 01:39:41 +02:00
2021-10-13 09:40:46 -07:00
2022-05-11 12:43:10 +01:00
2024-07-02 18:59:33 -07:00
2024-04-25 15:24:23 -07:00
2024-04-01 10:49:28 +01:00
2023-07-14 20:39:30 -07:00
2024-04-30 18:32:38 -07:00
2024-05-30 18:29:38 -07:00
2024-05-30 18:29:38 -07:00
2023-10-04 11:49:20 -07:00
2024-06-12 06:39:04 +01:00
2024-07-08 14:07:31 -07:00
2024-05-09 20:25:55 -07:00
2023-07-28 14:07:59 -07:00
2022-12-12 15:04:39 -08:00
2024-04-07 02:42:36 -04:00
2023-09-14 16:16:36 +02:00
2023-12-14 16:38:59 +01:00