]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:34 +0000 (11:07 +0100)
commitbe09f7cea5fbcb1ba0dfff8aa4fedd81f4333ea4
treef9c009eddf161ebce8929b6fe7ddc68ce0a6a794
parentab62cc115fe6249aa073e7b2e1a75e86843f8056
wifi: mac80211_hwsim: Prevent tsf from setting if beacon is disabled

[ Upstream commit c575f5374be7a5c4be4acb9fe6be3a4669d94674 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mac80211_hwsim.c