aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>2011-07-29 08:08:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-09 15:42:38 -0400
commit0f9dc298215ed96383378eca1a6f63a1d190f44a (patch)
treef902dcd138dbff546a2b73c62facefb2867bc4fc /drivers/net/wireless/ath
parent3f4c4bdd9d4d069e3d5e6154bfdd809f7923a90b (diff)
ath9k: Remove virtual wiphy specific frame type
This patch cleanups virtual wiphy specific frametype structure Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h3
-rw-r--r--drivers/net/wireless/ath/ath9k/rc.h6
-rw-r--r--drivers/net/wireless/ath/ath9k/xmit.c6
3 files changed, 2 insertions, 13 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 930e29b9e2c..64dd4e34c86 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -217,7 +217,6 @@ struct ath_buf_state {
217 u8 bf_type; 217 u8 bf_type;
218 u8 bfs_paprd; 218 u8 bfs_paprd;
219 unsigned long bfs_paprd_timestamp; 219 unsigned long bfs_paprd_timestamp;
220 enum ath9k_internal_frame_type bfs_ftype;
221}; 220};
222 221
223struct ath_buf { 222struct ath_buf {
@@ -273,8 +272,6 @@ struct ath_node {
273struct ath_tx_control { 272struct ath_tx_control {
274 struct ath_txq *txq; 273 struct ath_txq *txq;
275 struct ath_node *an; 274 struct ath_node *an;
276 int if_id;
277 enum ath9k_internal_frame_type frame_type;
278 u8 paprd; 275 u8 paprd;
279}; 276};
280 277
diff --git a/drivers/net/wireless/ath/ath9k/rc.h b/drivers/net/wireless/ath/ath9k/rc.h
index c3d850207be..b7a4bcd3eec 100644
--- a/drivers/net/wireless/ath/ath9k/rc.h
+++ b/drivers/net/wireless/ath/ath9k/rc.h
@@ -221,12 +221,6 @@ struct ath_rate_priv {
221 struct ath_rc_stats rcstats[RATE_TABLE_SIZE]; 221 struct ath_rc_stats rcstats[RATE_TABLE_SIZE];
222}; 222};
223 223
224enum ath9k_internal_frame_type {
225 ATH9K_IFT_NOT_INTERNAL,
226 ATH9K_IFT_PAUSE,
227 ATH9K_IFT_UNPAUSE
228};
229
230#ifdef CONFIG_ATH9K_RATE_CONTROL 224#ifdef CONFIG_ATH9K_RATE_CONTROL
231int ath_rate_control_register(void); 225int ath_rate_control_register(void);
232void ath_rate_control_unregister(void); 226void ath_rate_control_unregister(void);
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index cc595712f51..e815e825e9c 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -1777,7 +1777,6 @@ static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf,
1777 INIT_LIST_HEAD(&bf_head); 1777 INIT_LIST_HEAD(&bf_head);
1778 list_add_tail(&bf->list, &bf_head); 1778 list_add_tail(&bf->list, &bf_head);
1779 1779
1780 bf->bf_state.bfs_ftype = txctl->frame_type;
1781 bf->bf_state.bfs_paprd = txctl->paprd; 1780 bf->bf_state.bfs_paprd = txctl->paprd;
1782 1781
1783 if (bf->bf_state.bfs_paprd) 1782 if (bf->bf_state.bfs_paprd)
@@ -1876,7 +1875,7 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb,
1876/*****************/ 1875/*****************/
1877 1876
1878static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb, 1877static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
1879 int tx_flags, int ftype, struct ath_txq *txq) 1878 int tx_flags, struct ath_txq *txq)
1880{ 1879{
1881 struct ieee80211_hw *hw = sc->hw; 1880 struct ieee80211_hw *hw = sc->hw;
1882 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); 1881 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
@@ -1961,8 +1960,7 @@ static void ath_tx_complete_buf(struct ath_softc *sc, struct ath_buf *bf,
1961 complete(&sc->paprd_complete); 1960 complete(&sc->paprd_complete);
1962 } else { 1961 } else {
1963 ath_debug_stat_tx(sc, bf, ts, txq); 1962 ath_debug_stat_tx(sc, bf, ts, txq);
1964 ath_tx_complete(sc, skb, tx_flags, 1963 ath_tx_complete(sc, skb, tx_flags, txq);
1965 bf->bf_state.bfs_ftype, txq);
1966 } 1964 }
1967 /* At this point, skb (bf->bf_mpdu) is consumed...make sure we don't 1965 /* At this point, skb (bf->bf_mpdu) is consumed...make sure we don't
1968 * accidentally reference it later. 1966 * accidentally reference it later.