diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-17 02:30:08 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-17 02:30:08 +0000 |
commit | ba605c7bf0305cb42febac3e7d74fd7d80796a72 (patch) | |
tree | 547d05d8319b3931a4fa1e5b1a5cbd543af52361 /package/madwifi/patches-r3776/330-bstuck_thresh.patch | |
parent | c9694199b4d8289f52bf27b9d4e5e2bc78b3e72e (diff) | |
download | upstream-ba605c7bf0305cb42febac3e7d74fd7d80796a72.tar.gz upstream-ba605c7bf0305cb42febac3e7d74fd7d80796a72.tar.bz2 upstream-ba605c7bf0305cb42febac3e7d74fd7d80796a72.zip |
huge madwifi update (work in progress, disabled by default, compiles but breaks at run time)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11851 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches-r3776/330-bstuck_thresh.patch')
-rw-r--r-- | package/madwifi/patches-r3776/330-bstuck_thresh.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/package/madwifi/patches-r3776/330-bstuck_thresh.patch b/package/madwifi/patches-r3776/330-bstuck_thresh.patch new file mode 100644 index 0000000000..e2e502dfbf --- /dev/null +++ b/package/madwifi/patches-r3776/330-bstuck_thresh.patch @@ -0,0 +1,54 @@ +Index: madwifi-trunk-r3776/ath/if_ath.c +=================================================================== +--- madwifi-trunk-r3776.orig/ath/if_ath.c 2008-07-17 04:11:45.000000000 +0200 ++++ madwifi-trunk-r3776/ath/if_ath.c 2008-07-17 04:12:51.000000000 +0200 +@@ -354,6 +354,7 @@ + static int ath_outdoor = AH_FALSE; /* enable outdoor use */ + static int ath_xchanmode = AH_TRUE; /* enable extended channels */ + static int ath_maxvaps = ATH_MAXVAPS_DEFAULT; /* set default maximum vaps */ ++static int bstuck_thresh = BSTUCK_THRESH; /* Stuck beacon count required for reset */ + static char *autocreate = "sta"; + static char *ratectl = DEF_RATE_CTL; + static int rfkill = 0; +@@ -397,6 +398,7 @@ + #ifdef ATH_CAP_TPC + MODULE_PARM(hal_tpc, "i"); + #endif ++MODULE_PARM(bstuck_thresh, "i"); + MODULE_PARM(autocreate, "s"); + MODULE_PARM(ratectl, "s"); + #else +@@ -410,6 +412,7 @@ + #ifdef ATH_CAP_TPC + module_param(hal_tpc, int, 0600); + #endif ++module_param(bstuck_thresh, int, 0600); + module_param(autocreate, charp, 0600); + module_param(ratectl, charp, 0600); + #endif +@@ -422,6 +425,7 @@ + MODULE_PARM_DESC(hal_tpc, "Disables manual per-packet transmit power control and " + "lets this be managed by the HAL. Default is OFF."); + #endif ++MODULE_PARM_DESC(bstuck_thresh, "Override default stuck beacon threshold"); + MODULE_PARM_DESC(autocreate, "Create ath device in " + "[sta|ap|wds|adhoc|ahdemo|monitor] mode. defaults to sta, use " + "'none' to disable"); +@@ -5238,7 +5242,7 @@ + DPRINTF(sc, ATH_DEBUG_BEACON_PROC, + "Missed %u consecutive beacons (n_beacon=%u)\n", + sc->sc_bmisscount, n_beacon); +- if (sc->sc_bmisscount > BSTUCK_THRESH) ++ if (sc->sc_bmisscount > bstuck_thresh) + ATH_SCHEDULE_TQUEUE(&sc->sc_bstucktq, needmark); + return; + } +@@ -5409,7 +5413,7 @@ + * check will be true, in which case return + * without resetting the driver. + */ +- if (sc->sc_bmisscount <= BSTUCK_THRESH) ++ if (sc->sc_bmisscount <= bstuck_thresh) + return; + EPRINTF(sc, "Stuck beacon; resetting (beacon miss count: %u)\n", + sc->sc_bmisscount); |