wifi: mac80211_hwsim: Prevent tsf from setting if beacon is disabled
authorEdward Adam Davis <eadavis@qq.com>
Wed, 23 Apr 2025 14:15:53 +0000 (22:15 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Apr 2025 09:25:22 +0000 (11:25 +0200)
commitc575f5374be7a5c4be4acb9fe6be3a4669d94674
treefde69f905caa7a90546c9f76a29778acdc200134
parent9ceba431a31544f4f8feb0df58287a58644dc5f5
wifi: mac80211_hwsim: Prevent tsf from setting if beacon is disabled

Setting tsf is meaningless if beacon is disabled, so check that beacon
is enabled before setting tsf.

Reported-by: syzbot+064815c6cd721082a52a@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=064815c6cd721082a52a
Tested-by: syzbot+064815c6cd721082a52a@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Link: https://patch.msgid.link/tencent_3609AC2EFAAED68CA5A7E3C6D212D1C67806@qq.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim.c