]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ath9k: Remove more dead code
authorSujith <Sujith.Manoharan@atheros.com>
Tue, 26 Aug 2008 02:40:29 +0000 (08:10 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Aug 2008 20:24:09 +0000 (16:24 -0400)
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/ath9k.h
drivers/net/wireless/ath9k/beacon.c
drivers/net/wireless/ath9k/hw.h
drivers/net/wireless/ath9k/main.c

index 020b97fd208c7fcb0db5c73d01732b3b948037e1..28b8d84f49b469fb22167b5351e68cd7cbd61f9f 100644 (file)
@@ -628,11 +628,6 @@ struct ath9k_country_entry {
                                 (IEEE80211_WEP_IVLEN +         \
                                  IEEE80211_WEP_KIDLEN +        \
                                  IEEE80211_WEP_CRCLEN))
-#define IEEE80211_MAX_LEN       (2300 + FCS_LEN +              \
-                                (IEEE80211_WEP_IVLEN +         \
-                                 IEEE80211_WEP_KIDLEN +        \
-                                 IEEE80211_WEP_CRCLEN))
-
 #define MAX_RATE_POWER 63
 
 enum ath9k_power_mode {
index fdbabc18022854f519bb3ccf1fdd2f1e82fcd331..c43fd58611636f96eb07ece52a0e7794d4b0fc3d 100644 (file)
@@ -453,31 +453,6 @@ void ath_beacon_return(struct ath_softc *sc, struct ath_vap *avp)
        }
 }
 
-/*
- *  Reclaim beacon resources and return buffer to the pool.
- *
- *  This function will free any wbuf frames that are still attached to the
- *  beacon buffers in the ATH object.  Note that this does not de-allocate
- *  any wbuf objects that are in the transmit queue and have not yet returned
- *  to the ATH object.
-*/
-
-void ath_beacon_free(struct ath_softc *sc)
-{
-       struct ath_buf *bf;
-
-       list_for_each_entry(bf, &sc->sc_bbuf, list) {
-               if (bf->bf_mpdu != NULL) {
-                       struct sk_buff *skb = (struct sk_buff *) bf->bf_mpdu;
-                       pci_unmap_single(sc->pdev, bf->bf_dmacontext,
-                                        skb_end_pointer(skb) - skb->head,
-                                        PCI_DMA_TODEVICE);
-                       dev_kfree_skb_any(skb);
-                       bf->bf_mpdu = NULL;
-               }
-       }
-}
-
 /*
  * Tasklet for Sending Beacons
  *
index 5cb3912ad392c870f8f45266b402568fafe2604d..2113818ee9348dffdd4cc2334c85abac662d4683 100644 (file)
@@ -825,10 +825,6 @@ struct ath_hal_5416 {
 #define COEF_SCALE_S                24
 #define HT40_CHANNEL_CENTER_SHIFT   10
 
-#define ar5416CheckOpMode(_opmode)                                     \
-       ((_opmode == ATH9K_M_STA) || (_opmode == ATH9K_M_IBSS) ||       \
-        (_opmode == ATH9K_M_HOSTAP) || (_opmode == ATH9K_M_MONITOR))
-
 #define AR5416_EEPROM_MAGIC_OFFSET  0x0
 
 #define AR5416_EEPROM_S             2
index 996bb9c6540d6331e768da009217a903106fe0d6..dc45eef3289a010d137e82530a40598f04c9fa33 100644 (file)
@@ -1167,11 +1167,6 @@ int ath_rx_subframe(struct ath_node *an,
        return 0;
 }
 
-enum ath9k_ht_macmode ath_cwm_macmode(struct ath_softc *sc)
-{
-       return sc->sc_ht_info.tx_chan_width;
-}
-
 /********************************/
 /*      LED functions          */
 /********************************/