Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158787
b: refs/heads/master
c: c4f9f16
h: refs/heads/master
i:
  158785: 0579607
  158783: 48bb42b
v: v3
  • Loading branch information
Vasanthakumar Thiagarajan authored and John W. Linville committed Jul 10, 2009
1 parent 903e99d commit ab7c14c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0d6133cba88759bc760b254c27975330fff6519
refs/heads/master: c4f9f16b309b65f9f578ec4ba78b3efa106cf65d
15 changes: 8 additions & 7 deletions trunk/drivers/net/wireless/ath/ath9k/beacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,13 +674,6 @@ 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 */

Expand Down Expand Up @@ -745,6 +738,14 @@ void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif)
iftype = sc->sc_ah->opmode;
}

/*
* 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. To be safe,
* do sanity check on beacon interval for all operating modes.
*/
if (cur_conf->beacon_interval == 0)
cur_conf->beacon_interval = 100;

switch (iftype) {
case NL80211_IFTYPE_AP:
Expand Down

0 comments on commit ab7c14c

Please sign in to comment.