Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150662
b: refs/heads/master
c: 546256f
h: refs/heads/master
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Jun 3, 2009
1 parent 40cebbd commit 64850ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73ca5203366235f8a43e490767284ba8cfd8c479
refs/heads/master: 546256fbd06d70a87381020ea8553fb78c9abf43
8 changes: 8 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/beacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,14 @@ static void ath_beacon_config_adhoc(struct ath_softc *sc,

intval = conf->beacon_interval & ATH9K_BEACON_PERIOD;

/*
* It looks like mac80211 may end up using beacon interval of zero in
* some cases (at least for mesh point). Avoid getting into an
* infinite loop by using a bit safer value instead..
*/
if (intval == 0)
intval = 100;

/* Pull nexttbtt forward to reflect the current TSF */

nexttbtt = TSF_TO_TU(sc->beacon.bc_tstamp >> 32, sc->beacon.bc_tstamp);
Expand Down

0 comments on commit 64850ec

Please sign in to comment.