X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/9b149826da6dbcd2c6f140bc7674c1f046507d38..8d1ca8799daa1e18674a87a4ad92d74e33884a35:/package/madwifi/patches/374-nbtt_fix.patch diff --git a/package/madwifi/patches/374-nbtt_fix.patch b/package/madwifi/patches/374-nbtt_fix.patch new file mode 100644 index 000000000..3b00f644f --- /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,