All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] [PATCH] ath9k: Futher fix for mesh beaconing.
@ 2011-05-23 17:22 Fabrice Deyber
  2011-05-23 21:53 ` Felix Fietkau
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Deyber @ 2011-05-23 17:22 UTC (permalink / raw)
  To: ath9k-devel

 This fix ensure the timers to be set at beacon interval boundaries. Without this change timers can
 be set improperly resulting in absence of beacons.


Signed-off-by: Fabrice Deyber <fabricedeyber@agilemesh.com>
---
 drivers/net/wireless/ath/ath9k/beacon.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c
index d4d8cec..ffb3d81 100644
--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -669,6 +669,8 @@ static void ath_beacon_config_adhoc(struct ath_softc *sc,
 		nexttbtt = tsf + intval - (delta % intval);
 	}
 
+	nexttbtt = roundup(nexttbtt, intval);
+
 	ath_dbg(common, ATH_DBG_BEACON,
 		"IBSS nexttbtt %u intval %u (%u)\n",
 		nexttbtt, intval, conf->beacon_interval);
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-24  0:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-23 17:22 [ath9k-devel] [PATCH] ath9k: Futher fix for mesh beaconing Fabrice Deyber
2011-05-23 21:53 ` Felix Fietkau
2011-05-23 23:26   ` Fabrice Deyber
2011-05-24  0:07     ` Felix Fietkau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.