]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211_hwsim: fix typo in frequency notification
authorBenjamin Berg <benjamin.berg@intel.com>
Wed, 7 Jan 2026 13:36:51 +0000 (14:36 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Jan 2026 12:33:10 +0000 (13:33 +0100)
commit333418872bfecf4843f1ded7a4151685dfcf07d5
tree0bc7c2a6b9cd0faec48144547f8ad1d8bcf3b30a
parent21cbf883d073abbfe09e3924466aa5e0449e7261
wifi: mac80211_hwsim: fix typo in frequency notification

The NAN notification is for 5745 MHz which corresponds to channel 149
and not 5475 which is not actually a valid channel. This could result in
a NULL pointer dereference in cfg80211_next_nan_dw_notif.

Fixes: a37a6f54439b ("wifi: mac80211_hwsim: Add simulation support for NAN device")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260107143652.7dab2035836f.Iacbaf7bb94ed5c14a0928a625827e4137d8bfede@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim.c