Skip to content

Commit f34639d

Browse files
Sujithlinvjw
authored andcommitted
ath9k: Remove a few unused capability macros
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 171387e commit f34639d

2 files changed

Lines changed: 0 additions & 33 deletions

File tree

‎drivers/net/wireless/ath9k/hw.c‎

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3357,8 +3357,6 @@ bool ath9k_hw_fill_cap_info(struct ath_hw *ah)
33573357
bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type,
33583358
u32 capability, u32 *result)
33593359
{
3360-
const struct ath9k_hw_capabilities *pCap = &ah->caps;
3361-
33623360
switch (type) {
33633361
case ATH9K_CAP_CIPHER:
33643362
switch (capability) {
@@ -3384,16 +3382,10 @@ bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type,
33843382
case ATH9K_CAP_TKIP_SPLIT:
33853383
return (ah->misc_mode & AR_PCU_MIC_NEW_LOC_ENA) ?
33863384
false : true;
3387-
case ATH9K_CAP_WME_TKIPMIC:
3388-
return 0;
3389-
case ATH9K_CAP_PHYCOUNTERS:
3390-
return ah->has_hw_phycounters ? 0 : -ENXIO;
33913385
case ATH9K_CAP_DIVERSITY:
33923386
return (REG_READ(ah, AR_PHY_CCK_DETECT) &
33933387
AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV) ?
33943388
true : false;
3395-
case ATH9K_CAP_PHYDIAG:
3396-
return true;
33973389
case ATH9K_CAP_MCAST_KEYSRCH:
33983390
switch (capability) {
33993391
case 0:
@@ -3408,18 +3400,6 @@ bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type,
34083400
}
34093401
}
34103402
return false;
3411-
case ATH9K_CAP_TSF_ADJUST:
3412-
return (ah->misc_mode & AR_PCU_TX_ADD_TSF) ?
3413-
true : false;
3414-
case ATH9K_CAP_RFSILENT:
3415-
if (capability == 3)
3416-
return false;
3417-
case ATH9K_CAP_ANT_CFG_2GHZ:
3418-
*result = pCap->num_antcfg_2ghz;
3419-
return true;
3420-
case ATH9K_CAP_ANT_CFG_5GHZ:
3421-
*result = pCap->num_antcfg_5ghz;
3422-
return true;
34233403
case ATH9K_CAP_TXPOW:
34243404
switch (capability) {
34253405
case 0:
@@ -3472,12 +3452,6 @@ bool ath9k_hw_setcapability(struct ath_hw *ah, enum ath9k_capability_type type,
34723452
else
34733453
ah->sta_id1_defaults &= ~AR_STA_ID1_MCAST_KSRCH;
34743454
return true;
3475-
case ATH9K_CAP_TSF_ADJUST:
3476-
if (setting)
3477-
ah->misc_mode |= AR_PCU_TX_ADD_TSF;
3478-
else
3479-
ah->misc_mode &= ~AR_PCU_TX_ADD_TSF;
3480-
return true;
34813455
default:
34823456
return false;
34833457
}

‎drivers/net/wireless/ath9k/hw.h‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,9 @@ enum ath9k_capability_type {
153153
ATH9K_CAP_CIPHER = 0,
154154
ATH9K_CAP_TKIP_MIC,
155155
ATH9K_CAP_TKIP_SPLIT,
156-
ATH9K_CAP_PHYCOUNTERS,
157156
ATH9K_CAP_DIVERSITY,
158157
ATH9K_CAP_TXPOW,
159-
ATH9K_CAP_PHYDIAG,
160158
ATH9K_CAP_MCAST_KEYSRCH,
161-
ATH9K_CAP_TSF_ADJUST,
162-
ATH9K_CAP_WME_TKIPMIC,
163-
ATH9K_CAP_RFSILENT,
164-
ATH9K_CAP_ANT_CFG_2GHZ,
165-
ATH9K_CAP_ANT_CFG_5GHZ,
166159
ATH9K_CAP_DS
167160
};
168161

0 commit comments

Comments
 (0)