Commit c575f537 authored by Edward Adam Davis's avatar Edward Adam Davis Committed by Johannes Berg
Browse files

wifi: mac80211_hwsim: Prevent tsf from setting if beacon is disabled

parent 9ceba431
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1229,6 +1229,11 @@ static void mac80211_hwsim_set_tsf(struct ieee80211_hw *hw,
	/* MLD not supported here */
	u32 bcn_int = data->link_data[0].beacon_int;
	u64 delta = abs(tsf - now);
	struct ieee80211_bss_conf *conf;

	conf = link_conf_dereference_protected(vif, data->link_data[0].link_id);
	if (conf && !conf->enable_beacon)
		return;

	/* adjust after beaconing with new timestamp at old TBTT */
	if (tsf > now) {