wifi: mac80211_hwsim: add control to skip beacons
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Jan 2024 19:00:02 +0000 (20:00 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 2 Feb 2024 13:20:42 +0000 (14:20 +0100)
commit7d366663b7d84ecdb52ba141c1cafd4f3c73e0ff
treed2bb0d63aea6cef2fc9903a8942c46cae877e060
parent084e0452a42b1d4ccde601cc1873a4ee9d8a4cbb
wifi: mac80211_hwsim: add control to skip beacons

To test certain beacon loss scenarios it can be useful to
simply not send a couple of beacons. Add a simple debugfs
file (per vif) to skip sending the beacons. They're still
fully prepared etc. so their DTIM count etc. will appear
as if they were simply corrupt over the air or otherwise
not received.

Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://msgid.link/20240129200001.a267383709e6.I36f427d17c3478a7df46e205716f5ebc9b35a918@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim.c