diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-31 18:59:25 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-31 18:59:25 +0000 |
commit | a055367cc83f67042e9e37067f08ed0354f350e6 (patch) | |
tree | 20ffc4211770a7c8d15201b477d3c1308cce4fca /package/madwifi/patches/374-nbtt_fix.patch | |
parent | 817bbc5bbfa1904a6bab498d6711f71df6413545 (diff) | |
download | upstream-a055367cc83f67042e9e37067f08ed0354f350e6.tar.gz upstream-a055367cc83f67042e9e37067f08ed0354f350e6.tar.bz2 upstream-a055367cc83f67042e9e37067f08ed0354f350e6.zip |
madwifi: add some beacon setup/update related fixes (based on Bruno Randolf's patchset)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12049 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/374-nbtt_fix.patch')
-rw-r--r-- | package/madwifi/patches/374-nbtt_fix.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/madwifi/patches/374-nbtt_fix.patch b/package/madwifi/patches/374-nbtt_fix.patch new file mode 100644 index 0000000000..3b00f644fb --- /dev/null +++ b/package/madwifi/patches/374-nbtt_fix.patch @@ -0,0 +1,22 @@ +--- a/ath/if_ath.c ++++ b/ath/if_ath.c +@@ -5476,6 +5476,9 @@ + ath_beacon_dturbo_config(vap, intval & + ~(HAL_BEACON_RESET_TSF | HAL_BEACON_ENA)); + #endif ++ if ((nexttbtt & HAL_BEACON_PERIOD) - (ath_hal_gettsf32(ah) >> 10) ++ <= ath_hal_sw_beacon_response_time) ++ nexttbtt += intval; + sc->sc_nexttbtt = nexttbtt; + ath_hal_beaconinit(ah, nexttbtt, intval); + if (intval & HAL_BEACON_RESET_TSF) { +--- a/ath_hal/ah_os.c ++++ b/ath_hal/ah_os.c +@@ -71,6 +71,7 @@ + int ath_hal_dma_beacon_response_time = 2; /* in TUs */ + int ath_hal_sw_beacon_response_time = 10; /* in TUs */ + int ath_hal_additional_swba_backoff = 0; /* in TUs */ ++EXPORT_SYMBOL(ath_hal_sw_beacon_response_time); + + struct ath_hal * + _ath_hal_attach(u_int16_t devid, HAL_SOFTC sc, |