summaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/376-beacon_update.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-31 18:59:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-31 18:59:25 +0000
commit709eae54e465fc9c482ccd97142a29b4c4e09686 (patch)
treeecfbfa5eddf04d331e443e334f18295053b1c8e5 /package/madwifi/patches/376-beacon_update.patch
parentd6d5c715b937690586b3618a8365a10d81c867cc (diff)
downloadmaster-31e0f0ae-709eae54e465fc9c482ccd97142a29b4c4e09686.tar.gz
master-31e0f0ae-709eae54e465fc9c482ccd97142a29b4c4e09686.tar.bz2
master-31e0f0ae-709eae54e465fc9c482ccd97142a29b4c4e09686.zip
madwifi: add some beacon setup/update related fixes (based on Bruno Randolf's patchset)
SVN-Revision: 12049
Diffstat (limited to 'package/madwifi/patches/376-beacon_update.patch')
-rw-r--r--package/madwifi/patches/376-beacon_update.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/madwifi/patches/376-beacon_update.patch b/package/madwifi/patches/376-beacon_update.patch
new file mode 100644
index 0000000000..2b4f34b582
--- /dev/null
+++ b/package/madwifi/patches/376-beacon_update.patch
@@ -0,0 +1,26 @@
+--- a/ath/if_ath.c
++++ b/ath/if_ath.c
+@@ -5495,6 +5495,8 @@
+ ath_hal_intrset(ah, sc->sc_imask);
+ ath_set_beacon_cal(sc, 0);
+ } else {
++ unsigned long flags;
++
+ ath_hal_intrset(ah, 0);
+ if (reset_tsf)
+ intval |= HAL_BEACON_RESET_TSF;
+@@ -5514,11 +5516,14 @@
+ ath_beacon_dturbo_config(vap, intval &
+ ~(HAL_BEACON_RESET_TSF | HAL_BEACON_ENA));
+ #endif
++ local_irq_save(flags);
+ 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);
++ local_irq_restore(flags);
++
+ if (intval & HAL_BEACON_RESET_TSF) {
+ sc->sc_last_tsf = 0;
+ }