@@ -3357,8 +3357,6 @@ bool ath9k_hw_fill_cap_info(struct ath_hw *ah)
33573357bool 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 }
0 commit comments