ath9k: Remove a few unused flags
PATCH 1/17 ath9k: Remove a few unused flags
This patch removes unused HW capability flags and
HW operation variables, and a chainmask flag that
we don't use anywhere.
Signed-off-by Sujith <[email protected]>
--- drivers/net/wireless/ath9k/ath9k.h | 25 ++++++++--------- drivers/net/wireless/ath9k/hw.c | 21 -------------- drivers/net/wireless/ath9k/hw.h | 52 ++++++++++++----------------------- drivers/net/wireless/ath9k/main.c | 2 - drivers/net/wireless/ath9k/rc.h | 1 - 5 files changed, 30 insertions(+), 71 deletions(-)
drivers/net/wireless/ath9k/ath9k.h +12 -13
@@ -529,19 +529,18 @@ struct ath_rfkill {#define SC_OP_BEACONS BIT(1)#define SC_OP_RXAGGR BIT(2)#define SC_OP_TXAGGR BIT(3) -#define SC_OP_CHAINMASK_UPDATE BIT(4) -#define SC_OP_FULL_RESET BIT(5) -#define SC_OP_PREAMBLE_SHORT BIT(6) -#define SC_OP_PROTECT_ENABLE BIT(7) -#define SC_OP_RXFLUSH BIT(8) -#define SC_OP_LED_ASSOCIATED BIT(9) -#define SC_OP_RFKILL_REGISTERED BIT(10) -#define SC_OP_RFKILL_SW_BLOCKED BIT(11) -#define SC_OP_RFKILL_HW_BLOCKED BIT(12) -#define SC_OP_WAIT_FOR_BEACON BIT(13) -#define SC_OP_LED_ON BIT(14) -#define SC_OP_SCANNING BIT(15) -#define SC_OP_TSF_RESET BIT(16) +#define SC_OP_FULL_RESET BIT(4) +#define SC_OP_PREAMBLE_SHORT BIT(5) +#define SC_OP_PROTECT_ENABLE BIT(6) +#define SC_OP_RXFLUSH BIT(7) +#define SC_OP_LED_ASSOCIATED BIT(8) +#define SC_OP_RFKILL_REGISTERED BIT(9) +#define SC_OP_RFKILL_SW_BLOCKED BIT(10) +#define SC_OP_RFKILL_HW_BLOCKED BIT(11) +#define SC_OP_WAIT_FOR_BEACON BIT(12) +#define SC_OP_LED_ON BIT(13) +#define SC_OP_SCANNING BIT(14) +#define SC_OP_TSF_RESET BIT(15)struct ath_bus_ops {void (*read_cachesize)(struct ath_softc *sc,int *csz);
drivers/net/wireless/ath9k/hw.c +0 -21
@@ -363,10 +363,7 @@ static void ath9k_hw_set_defaults(struct ath_hw *ah) ah->config.ack_6mb =0x0 ; ah->config.cwm_ignore_extcca =0 ; ah->config.pcie_powersave_enable =0 ; - ah->config.pcie_l1skp_enable =0 ; ah->config.pcie_clock_req =0 ; - ah->config.pcie_power_reset =0x100 ; - ah->config.pcie_restore =0 ; ah->config.pcie_waen =0 ; ah->config.analog_shiftreg =1 ; ah->config.ht_enable =1 ;
@@ -375,13 +372,6 @@ static void ath9k_hw_set_defaults(struct ath_hw *ah) ah->config.cck_trig_high =200 ; ah->config.cck_trig_low =100 ; ah->config.enable_ani =1 ; - ah->config.noise_immunity_level =4 ; - ah->config.ofdm_weaksignal_det =1 ; - ah->config.cck_weaksignal_thr =0 ; - ah->config.spur_immunity_level =2 ; - ah->config.firstep_level =0 ; - ah->config.rssi_thr_high =40 ; - ah->config.rssi_thr_low =7 ; ah->config.diversity_control =0 ; ah->config.antenna_switch_swap =0 ;
@@ -3343,8 +3333,6 @@ bool ath9k_hw_fill_cap_info(struct ath_hw *ah) pCap->hw_caps |=ATH9K_HW_CAP_MIC_TKIP ; pCap->hw_caps |=ATH9K_HW_CAP_MIC_AESCCM ; - pCap->hw_caps |=ATH9K_HW_CAP_CHAN_SPREAD ; -if (ah->config.ht_enable) pCap->hw_caps |=ATH9K_HW_CAP_HT ;else
@@ -3368,7 +3356,6 @@ bool ath9k_hw_fill_cap_info(struct ath_hw *ah) pCap->keycache_size =AR_KEYTABLE_SIZE ; pCap->hw_caps |=ATH9K_HW_CAP_FASTCC ; - pCap->num_mr_retries =4 ; pCap->tx_triglevel_max =MAX_TX_FIFO_THRESHOLD ;if (AR_SREV_9285_10_OR_LATER (ah))
@@ -3378,14 +3365,6 @@ bool ath9k_hw_fill_cap_info(struct ath_hw *ah)else pCap->num_gpio_pins =AR_NUM_GPIO ; -if (AR_SREV_9280_10_OR_LATER (ah)) { - pCap->hw_caps |=ATH9K_HW_CAP_WOW ; - pCap->hw_caps |=ATH9K_HW_CAP_WOW_MATCHPATTERN_EXACT ; - }else { - pCap->hw_caps &= ~ATH9K_HW_CAP_WOW ; - pCap->hw_caps &= ~ATH9K_HW_CAP_WOW_MATCHPATTERN_EXACT ; - } -if (AR_SREV_9160_10_OR_LATER (ah) ||AR_SREV_9100 (ah)) { pCap->hw_caps |=ATH9K_HW_CAP_CST ; pCap->rts_aggr_limit =ATH_AMPDU_LIMIT_MAX ;
drivers/net/wireless/ath9k/hw.h +18 -34
78 lines not on this page · raw message
drivers/net/wireless/ath9k/main.c +0 -2
@@ -287,7 +287,6 @@ int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw, }spin_unlock_bh (&sc->sc_resetlock); - sc->sc_flags &= ~SC_OP_CHAINMASK_UPDATE ; sc->sc_flags &= ~SC_OP_FULL_RESET ;if (ath_startrecv (sc) !=0 ) {
@@ -416,7 +415,6 @@ set_timer:*/ void ath_update_chainmask (struct ath_softc *sc,int is_ht) { - sc->sc_flags |=SC_OP_CHAINMASK_UPDATE ;if (is_ht || (sc->sc_ah->caps.hw_caps &ATH9K_HW_CAP_BT_COEX )) { sc->tx_chainmask = sc->sc_ah->caps.tx_chainmask;
drivers/net/wireless/ath9k/rc.h +0 -1
@@ -24,7 +24,6 @@ struct ath_softc;#define ATH_RATE_MAX 30#define RATE_TABLE_SIZE 64#define MAX_TX_RATE_PHY 48 -#define WLAN_CTRL_FRAME_SIZE (2+2+6+4)/* VALID_ALL - valid for 20/40/Legacy, * VALID - Legacy only,
Signature · 1 line
1.6.2.1