linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC-PATCH 1/2 v2] mac80211: Update the driver with beacon info constantly
@ 2017-02-17 20:53 Doru
  0 siblings, 0 replies; only message in thread
From: Doru @ 2017-02-17 20:53 UTC (permalink / raw)
  To: linux-wireless, andra.paraschiv7, costin.raiciu, dragos.niculescu
  Cc: Doru Gucea

From: Doru Gucea <gucea.doru@gmail.com>

Once the mac80211 layer receives a beacon, it should send a notification
to the driver. This will allow finer timining control in case of drivers
that need a correct estimation for the arrival time of a beacon.

Changelog

v1:
* fixed typo

Signed-off-by: Doru Gucea <gucea.doru@gmail.com>
---
 net/mac80211/mlme.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 2398693..f5ebe27 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -3548,6 +3548,12 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
 			sdata->vif.bss_conf.sync_dtim_count = 0;
 	}
 
+	/* trigger hardware timers adjustment
+	 * this needs to be done before beacon filtering
+	 */
+	changed |= BSS_CHANGED_BEACON_INFO;
+	ieee80211_bss_info_change_notify(sdata, changed);
+
 	if (ncrc == ifmgd->beacon_crc && ifmgd->beacon_crc_valid)
 		return;
 	ifmgd->beacon_crc = ncrc;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-17 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-17 20:53 [RFC-PATCH 1/2 v2] mac80211: Update the driver with beacon info constantly Doru

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).