#ifdef CONFIG_ATH_DEBUG
static ssize_t read_file_debug(struct file *file, char __user *user_buf,
-@@ -941,6 +955,40 @@ static const struct file_operations fops
+@@ -961,6 +975,40 @@ static const struct file_operations fops
.llseek = default_llseek,
};
int ath9k_init_debug(struct ath_hw *ah)
{
struct ath_common *common = ath9k_hw_common(ah);
-@@ -1005,6 +1053,11 @@ int ath9k_init_debug(struct ath_hw *ah)
+@@ -1025,6 +1073,11 @@ int ath9k_init_debug(struct ath_hw *ah)
goto err;
sc->debug.regidx = 0;
return 0;
err:
ath9k_exit_debug(ah);
-@@ -1016,6 +1069,7 @@ void ath9k_exit_debug(struct ath_hw *ah)
+@@ -1036,6 +1089,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;
--- a/drivers/net/wireless/ath/ath9k/debug.h
+++ b/drivers/net/wireless/ath/ath9k/debug.h
-@@ -156,6 +156,14 @@ struct ath_stats {
+@@ -168,6 +168,14 @@ struct ath_stats {
struct ath9k_debug {
struct dentry *debugfs_phy;
u32 regidx;
/*
* Header for the ath9k.ko driver core *only* -- hw code nor any other driver
-@@ -566,6 +567,7 @@ struct ath_ant_comb {
+@@ -564,6 +565,7 @@ struct ath_ant_comb {
#define SC_OP_BT_PRIORITY_DETECTED BIT(12)
#define SC_OP_BT_SCAN BIT(13)
#define SC_OP_ANI_RUN BIT(14)
/* Powersave flags */
#define PS_WAIT_FOR_BEACON BIT(0)
-@@ -644,6 +646,10 @@ struct ath_softc {
+@@ -642,6 +644,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
-@@ -1058,6 +1058,9 @@ int ath9k_init_debug(struct ath_hw *ah)
+@@ -1078,6 +1078,9 @@ int ath9k_init_debug(struct ath_hw *ah)
sc, &fops_regdump))
goto err;
return 0;
err:
ath9k_exit_debug(ah);
-@@ -1069,6 +1072,7 @@ void ath9k_exit_debug(struct ath_hw *ah)
+@@ -1089,6 +1092,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
-@@ -2166,7 +2166,7 @@ void ath9k_hw_setrxfilter(struct ath_hw
+@@ -2155,7 +2155,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
-@@ -604,7 +604,7 @@ struct ath_hw_ops {
+@@ -584,7 +584,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,
-@@ -833,6 +833,8 @@ struct ath_hw {
+@@ -807,6 +807,8 @@ struct ath_hw {
* this register when in sleep states.
*/
u32 WARegVal;
}
static const
-@@ -1395,7 +1402,8 @@ static void ath_tx_status(void *priv, st
+@@ -1401,7 +1408,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
-@@ -1628,6 +1628,7 @@ int ath_rx_tasklet(struct ath_softc *sc,
+@@ -1627,6 +1627,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
-@@ -1720,12 +1721,24 @@ int ath_rx_tasklet(struct ath_softc *sc,
+@@ -1719,12 +1720,24 @@ int ath_rx_tasklet(struct ath_softc *sc,
dma_type);
skb_put(skb, rs.rs_datalen + ah->caps.rx_status_len);
bf->bf_buf_addr = dma_map_single(sc->dev, requeue_skb->data,
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
-@@ -435,6 +435,8 @@ static void ath_tx_complete_aggr(struct
+@@ -437,6 +437,8 @@ static void ath_tx_complete_aggr(struct
list_move_tail(&bf->list, &bf_head);
}
if (status == -EINPROGRESS) {
spin_unlock_bh(&txq->axq_lock);
break;
-@@ -2124,10 +2126,14 @@ static void ath_tx_processq(struct ath_s
- ath_tx_rc_status(bf, &ts, 0, txok, true);
+@@ -2112,10 +2114,14 @@ static void ath_tx_processq(struct ath_s
+ ath_tx_rc_status(bf, &ts, txok ? 0 : 1, txok, true);
}
- if (bf_isampdu(bf))
ath_wake_mac80211_queue(sc, txq);
-@@ -2199,9 +2205,11 @@ void ath_tx_edma_tasklet(struct ath_soft
+@@ -2187,9 +2193,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) {
-@@ -2253,14 +2261,18 @@ void ath_tx_edma_tasklet(struct ath_soft
- ath_tx_rc_status(bf, &txs, 0, txok, true);
+@@ -2230,14 +2238,18 @@ void ath_tx_edma_tasklet(struct ath_soft
+ ath_tx_rc_status(bf, &txs, txok ? 0 : 1, txok, true);
}
- if (bf_isampdu(bf))