3 @@ -389,6 +389,7 @@ static int ath_countrycode = CTRY_DEFAUL
4 static int ath_outdoor = AH_FALSE; /* enable outdoor use */
5 static int ath_xchanmode = AH_TRUE; /* enable extended channels */
6 static int ath_maxvaps = ATH_MAXVAPS_DEFAULT; /* set default maximum vaps */
7 +static int bstuck_thresh = BSTUCK_THRESH; /* Stuck beacon count required for reset */
8 static char *autocreate = NULL;
9 static char *ratectl = DEF_RATE_CTL;
10 static int rfkill = 0;
11 @@ -432,6 +433,7 @@ MODULE_PARM(rfkill, "i");
13 MODULE_PARM(tpc, "i");
15 +MODULE_PARM(bstuck_thresh, "i");
16 MODULE_PARM(autocreate, "s");
17 MODULE_PARM(ratectl, "s");
19 @@ -445,6 +447,7 @@ module_param(rfkill, int, 0600);
21 module_param(tpc, int, 0600);
23 +module_param(bstuck_thresh, int, 0600);
24 module_param(autocreate, charp, 0600);
25 module_param(ratectl, charp, 0600);
27 @@ -457,6 +460,7 @@ MODULE_PARM_DESC(rfkill, "Enable/disable
28 MODULE_PARM_DESC(tpc, "Enable/disable per-packet transmit power control (TPC) "
31 +MODULE_PARM_DESC(bstuck_thresh, "Override default stuck beacon threshold");
32 MODULE_PARM_DESC(autocreate, "Create ath device in "
33 "[sta|ap|wds|adhoc|ahdemo|monitor] mode. defaults to sta, use "
35 @@ -5072,7 +5076,7 @@ ath_beacon_send(struct ath_softc *sc, in
36 DPRINTF(sc, ATH_DEBUG_BEACON_PROC,
37 "Missed %u consecutive beacons (n_beacon=%u)\n",
38 sc->sc_bmisscount, n_beacon);
39 - if (sc->sc_bmisscount > BSTUCK_THRESH)
40 + if (sc->sc_bmisscount > bstuck_thresh)
41 ATH_SCHEDULE_TQUEUE(&sc->sc_bstucktq, needmark);
44 @@ -5230,7 +5234,7 @@ ath_bstuck_tasklet(TQUEUE_ARG data)
45 * check will be true, in which case return
46 * without resetting the driver.
48 - if (sc->sc_bmisscount <= BSTUCK_THRESH)
49 + if (sc->sc_bmisscount <= bstuck_thresh)
51 EPRINTF(sc, "Stuck beacon; resetting (beacon miss count: %u)\n",