summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f5ba186)
raw | patch | inline | side by side (parent: f5ba186)
author | Luis R. Rodriguez <lrodriguez@atheros.com> | |
Tue, 15 Jun 2010 21:21:03 +0000 (14:21 -0700) | ||
committer | Luis R. Rodriguez <lrodriguez@atheros.com> | |
Tue, 15 Jun 2010 21:21:03 +0000 (14:21 -0700) |
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
crap/0001-ath9k-Add-debugfs-interface-to-dump-registers.patch | patch | blob | history | |
crap/0002-ath9k-Add-pktlog-support.patch | patch | blob | history |
diff --git a/crap/0001-ath9k-Add-debugfs-interface-to-dump-registers.patch b/crap/0001-ath9k-Add-debugfs-interface-to-dump-registers.patch
index c4c9c5d9c4ab1f6a5c914ff82f12e29ae145bca8..d236c46f62632d62fcaf6bb39fae48ad2e7b2154 100644 (file)
.owner = THIS_MODULE
};
-@@ -957,6 +1002,11 @@ int ath9k_init_debug(struct ath_hw *ah)
+@@ -961,6 +1006,11 @@ int ath9k_init_debug(struct ath_hw *ah)
goto err;
sc->debug.regidx = 0;
return 0;
err:
ath9k_exit_debug(ah);
-@@ -968,6 +1018,7 @@ void ath9k_exit_debug(struct ath_hw *ah)
+@@ -972,6 +1022,7 @@ void ath9k_exit_debug(struct ath_hw *ah)
struct ath_common *common = ath9k_hw_common(ah);
struct ath_softc *sc = (struct ath_softc *) common->priv;
index 9c466a2a2bea0373a0851f5bcdb57a52eee51366..2649ee320c30d6dd5851c16eba4f0d2146d92dd1 100644 (file)
return 0;
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
-@@ -23,6 +23,7 @@
+@@ -24,6 +24,7 @@
#include "debug.h"
#include "common.h"
/*
* Header for the ath9k.ko driver core *only* -- hw code nor any other driver
-@@ -511,6 +512,7 @@ void ath_deinit_leds(struct ath_softc *s
+@@ -516,6 +517,7 @@ void ath_deinit_leds(struct ath_softc *s
#define SC_OP_TSF_RESET BIT(11)
#define SC_OP_BT_PRIORITY_DETECTED BIT(12)
#define SC_OP_BT_SCAN BIT(13)
/* Powersave flags */
#define PS_WAIT_FOR_BEACON BIT(0)
-@@ -586,6 +588,10 @@ struct ath_softc {
+@@ -594,6 +596,10 @@ struct ath_softc {
#ifdef CONFIG_ATH9K_DEBUGFS
struct ath9k_debug debug;
#endif
struct ath_btcoex btcoex;
--- a/drivers/net/wireless/ath/ath9k/debug.c
+++ b/drivers/net/wireless/ath/ath9k/debug.c
-@@ -1007,6 +1007,9 @@ int ath9k_init_debug(struct ath_hw *ah)
+@@ -1011,6 +1011,9 @@ int ath9k_init_debug(struct ath_hw *ah)
sc, &fops_regdump))
goto err;
return 0;
err:
ath9k_exit_debug(ah);
-@@ -1018,6 +1021,7 @@ void ath9k_exit_debug(struct ath_hw *ah)
+@@ -1022,6 +1025,7 @@ void ath9k_exit_debug(struct ath_hw *ah)
struct ath_common *common = ath9k_hw_common(ah);
struct ath_softc *sc = (struct ath_softc *) common->priv;
static inline void ath9k_hw_set11n_txdesc(struct ath_hw *ah, void *ds,
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
-@@ -2483,7 +2483,7 @@ void ath9k_hw_setrxfilter(struct ath_hw
+@@ -2396,7 +2396,7 @@ void ath9k_hw_setrxfilter(struct ath_hw
phybits |= AR_PHY_ERR_RADAR;
if (bits & ATH9K_RX_FILTER_PHYERR)
phybits |= AR_PHY_ERR_OFDM_TIMING | AR_PHY_ERR_CCK_TIMING;
REG_WRITE(ah, AR_RXCFG,
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
-@@ -611,7 +611,7 @@
+@@ -602,7 +602,7 @@ struct ath_hw_ops {
const void *ds0, dma_addr_t buf_addr,
unsigned int qcu);
int (*proc_txdesc)(struct ath_hw *ah, void *ds,
void (*set11n_txdesc)(struct ath_hw *ah, void *ds,
u32 pktLen, enum ath9k_pkt_type type,
u32 txPower, u32 keyIx,
-@@ -828,6 +828,8 @@
+@@ -819,6 +819,8 @@ struct ath_hw {
u32 paprd_gain_table_entries[PAPRD_GAIN_TABLE_ENTRIES];
u8 paprd_gain_table_index[PAPRD_GAIN_TABLE_ENTRIES];
}
static const
-@@ -1277,7 +1284,8 @@ static void ath_tx_status(void *priv, st
+@@ -1274,7 +1281,8 @@ static void ath_tx_status(void *priv, st
tx_status = 1;
ath_rc_tx_status(sc, ath_rc_priv, tx_info, final_ts_idx, tx_status,
if (conf_is_ht(&sc->hw->conf) &&
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
-@@ -1086,6 +1086,7 @@ int ath_rx_tasklet(struct ath_softc *sc,
+@@ -1080,6 +1080,7 @@ int ath_rx_tasklet(struct ath_softc *sc,
struct ieee80211_rx_status *rxs;
struct ath_hw *ah = sc->sc_ah;
struct ath_common *common = ath9k_hw_common(ah);
/*
* The hw can techncically differ from common->hw when using ath9k
* virtual wiphy so to account for that we iterate over the active
-@@ -1163,12 +1164,24 @@ int ath_rx_tasklet(struct ath_softc *sc,
+@@ -1171,12 +1172,24 @@ int ath_rx_tasklet(struct ath_softc *sc,
dma_type);
skb_put(skb, rs.rs_datalen + ah->caps.rx_status_len);
if (!txpending) {
/*
* complete the acked-ones/xretried ones; update
-@@ -2104,7 +2106,7 @@ static void ath_tx_processq(struct ath_s
+@@ -2094,7 +2096,7 @@ static void ath_tx_processq(struct ath_s
ds = lastbf->bf_desc;
memset(&ts, 0, sizeof(ts));
if (status == -EINPROGRESS) {
spin_unlock_bh(&txq->axq_lock);
break;
-@@ -2154,10 +2156,14 @@ static void ath_tx_processq(struct ath_s
+@@ -2144,10 +2146,14 @@ static void ath_tx_processq(struct ath_s
ath_tx_rc_status(bf, &ts, 0, txok, true);
}
ath_wake_mac80211_queue(sc, txq);
-@@ -2229,9 +2235,11 @@ void ath_tx_edma_tasklet(struct ath_soft
+@@ -2219,9 +2225,11 @@ void ath_tx_edma_tasklet(struct ath_soft
struct list_head bf_head;
int status;
int txok;
if (status == -EINPROGRESS)
break;
if (status == -EIO) {
-@@ -2284,14 +2292,18 @@ void ath_tx_edma_tasklet(struct ath_soft
+@@ -2274,14 +2282,18 @@ void ath_tx_edma_tasklet(struct ath_soft
ath_tx_rc_status(bf, &txs, 0, txok, true);
}