Skip to content

Commit 3334188

Browse files
benzeajmberg-intel
authored andcommitted
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: a37a6f5 ("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>
1 parent 21cbf88 commit 3334188

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/wireless/virtual/mac80211_hwsim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4040,7 +4040,7 @@ mac80211_hwsim_nan_dw_start(struct hrtimer *timer)
40404040
ieee80211_vif_to_wdev(data->nan_device_vif);
40414041

40424042
if (data->nan_curr_dw_band == NL80211_BAND_5GHZ)
4043-
ch = ieee80211_get_channel(hw->wiphy, 5475);
4043+
ch = ieee80211_get_channel(hw->wiphy, 5745);
40444044
else
40454045
ch = ieee80211_get_channel(hw->wiphy, 2437);
40464046

0 commit comments

Comments
 (0)