ath9k: Remove virtual wiphy specific frame type
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Fri, 29 Jul 2011 12:08:14 +0000 (17:38 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 9 Aug 2011 19:42:38 +0000 (15:42 -0400)
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>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/rc.h
drivers/net/wireless/ath/ath9k/xmit.c

index 930e29b9e2ca435c2c59df43ae7d2a6668093af7..64dd4e34c86f9f0a24bf802452f27c890012975f 100644 (file)
@@ -217,7 +217,6 @@ struct ath_buf_state {
        u8 bf_type;
        u8 bfs_paprd;
        unsigned long bfs_paprd_timestamp;
-       enum ath9k_internal_frame_type bfs_ftype;
 };
 
 struct ath_buf {
@@ -273,8 +272,6 @@ struct ath_node {
 struct ath_tx_control {
        struct ath_txq *txq;
        struct ath_node *an;
-       int if_id;
-       enum ath9k_internal_frame_type frame_type;
        u8 paprd;
 };
 
index c3d850207bee0375c9f806cc37fea898e1985bd1..b7a4bcd3eec70f02c62f11e0a23ea7ff843813f2 100644 (file)
@@ -221,12 +221,6 @@ struct ath_rate_priv {
        struct ath_rc_stats rcstats[RATE_TABLE_SIZE];
 };
 
-enum ath9k_internal_frame_type {
-       ATH9K_IFT_NOT_INTERNAL,
-       ATH9K_IFT_PAUSE,
-       ATH9K_IFT_UNPAUSE
-};
-
 #ifdef CONFIG_ATH9K_RATE_CONTROL
 int ath_rate_control_register(void);
 void ath_rate_control_unregister(void);
index cc595712f5180479c39871bd0f18af6ff2b5be2c..e815e825e9cb8943c3e99b0c2de09720562345fa 100644 (file)
@@ -1777,7 +1777,6 @@ static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf,
                INIT_LIST_HEAD(&bf_head);
                list_add_tail(&bf->list, &bf_head);
 
-               bf->bf_state.bfs_ftype = txctl->frame_type;
                bf->bf_state.bfs_paprd = txctl->paprd;
 
                if (bf->bf_state.bfs_paprd)
@@ -1876,7 +1875,7 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb,
 /*****************/
 
 static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
-                           int tx_flags, int ftype, struct ath_txq *txq)
+                           int tx_flags, struct ath_txq *txq)
 {
        struct ieee80211_hw *hw = sc->hw;
        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,
                        complete(&sc->paprd_complete);
        } else {
                ath_debug_stat_tx(sc, bf, ts, txq);
-               ath_tx_complete(sc, skb, tx_flags,
-                               bf->bf_state.bfs_ftype, txq);
+               ath_tx_complete(sc, skb, tx_flags, txq);
        }
        /* At this point, skb (bf->bf_mpdu) is consumed...make sure we don't
         * accidentally reference it later.