summaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/315-power_drop_PR1695.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-02-08 05:13:00 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-02-08 05:13:00 +0000
commit173844aad7dd88902cb0245a3c135f8251f53c64 (patch)
tree28ab7b4fcf237e367c291f9af8e23233720b811e /package/madwifi/patches/315-power_drop_PR1695.patch
parentcb6a7699b800bbf69d6e8f2fe98cfdc11b9c8bed (diff)
madwifi: add ap mode specific improvements to the calibration process. reported to produce a noticeable increase in rx/tx strength
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10416 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/315-power_drop_PR1695.patch')
-rw-r--r--package/madwifi/patches/315-power_drop_PR1695.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/package/madwifi/patches/315-power_drop_PR1695.patch b/package/madwifi/patches/315-power_drop_PR1695.patch
deleted file mode 100644
index 6b512b564..000000000
--- a/package/madwifi/patches/315-power_drop_PR1695.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-The attached patch fixes the problem of very weak packets being send out
-after periodic calibration
-
-Signed-off-by: Karol Kowalik <karol.kowalik@cnri.dit.ie>
-Index: madwifi-dfs-r3252/ath/if_ath.c
-===================================================================
---- madwifi-dfs-r3252.orig/ath/if_ath.c 2008-01-26 03:56:26.461576124 +0100
-+++ madwifi-dfs-r3252/ath/if_ath.c 2008-01-26 03:58:50.628969172 +0100
-@@ -8875,6 +8875,9 @@
- struct ieee80211com *ic = &sc->sc_ic;
- /* u_int32_t nchans; */
- HAL_BOOL isIQdone = AH_FALSE;
-+ u_int8_t papd_probe_power;
-+ u_int8_t papd_probe_power_max = 63;
-+ u_int16_t crnt_power_hdBm = sc->sc_curtxpow;
-
- sc->sc_stats.ast_per_cal++;
- DPRINTF(sc, ATH_DEBUG_CALIBRATE,
-@@ -8912,6 +8915,20 @@
- sc->sc_stats.ast_per_calfail++;
- }
-
-+ /*
-+ * After calibration is done we need to update AR5K_PHY_PAPD_PROBE
-+ * register with the probe_tx_power equal to current tx_power
-+ * otherwise a power drop may be observed
-+ */
-+ crnt_power_hdBm = crnt_power_hdBm <= ic->ic_txpowlimit ? crnt_power_hdBm : ic->ic_txpowlimit;
-+ papd_probe_power = papd_probe_power_max - (ic->ic_txpowlimit - crnt_power_hdBm);
-+#define AR5K_PHY_PAPD_PROBE_TX_NEXT 0x00008000
-+#define AR5K_PHY_PAPD_PROBE 0x9930
-+ OS_REG_WRITE(ah, AR5K_PHY_PAPD_PROBE,
-+ AR5K_PHY_PAPD_PROBE_TX_NEXT | (papd_probe_power << 9));
-+#undef AR5K_PHY_PAPD_PROBE_TX_NEXT
-+#undef AR5K_PHY_PAPD_PROBE
-+
- ath_hal_process_noisefloor(ah);
- if (isIQdone == AH_TRUE) {
- /* Unless user has overridden calibration interval,