Skip to content
Snippets Groups Projects
Commit c6a93676 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

ath9k: fix ad-hoc nexttbtt calculation, which broke beacon transmission in some instances

SVN-Revision: 26915
parent 7b84bc2f
No related branches found
No related tags found
No related merge requests found
--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -654,7 +654,7 @@ static void ath_beacon_config_adhoc(stru
delta = (tsf - sc->beacon.bc_tstamp);
else
delta = (tsf + 1 + (~0U - sc->beacon.bc_tstamp));
- nexttbtt = tsf + roundup(delta, intval);
+ nexttbtt = tsf + intval - (delta % intval);
}
ath_dbg(common, ATH_DBG_BEACON,
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment