[ath_hal] [ar9300] link in the CAC enable/diable methods and expose it via the HAL.

This commit is contained in:
Adrian Chadd 2017-02-03 05:15:35 +00:00
parent 2bc158cf24
commit ea319c839b
3 changed files with 8 additions and 6 deletions

View File

@ -417,7 +417,8 @@ ar9300_attach_freebsd_ops(struct ath_hal *ah)
ah->ah_getDfsDefaultThresh = ar9300_get_default_dfs_thresh;
ah->ah_procRadarEvent = ar9300_freebsd_proc_radar_event;
ah->ah_isFastClockEnabled = ar9300_is_fast_clock_enabled;
ah->ah_get11nExtBusy = ar9300_get_11n_ext_busy;
ah->ah_get11nExtBusy = ar9300_get_11n_ext_busy;
ah->ah_setDfsCacTxQuiet = ar9300_cac_tx_quiet;
/* Spectral Scan Functions */
ah->ah_spectralConfigure = ar9300_configure_spectral_scan;

View File

@ -649,11 +649,12 @@ ar9300_set_quiet(struct ath_hal *ah, u_int32_t period, u_int32_t duration,
return status;
#undef TU_TO_USEC
}
#ifdef ATH_SUPPORT_DFS
//#ifdef ATH_SUPPORT_DFS
void
ar9300_cac_tx_quiet(struct ath_hal *ah, HAL_BOOL enable)
{
u32 reg1, reg2;
uint32_t reg1, reg2;
reg1 = OS_REG_READ(ah, AR_MAC_PCU_OFFSET(MAC_PCU_MISC_MODE));
reg2 = OS_REG_READ(ah, AR_MAC_PCU_OFFSET(MAC_PCU_QUIET_TIME_1));
@ -671,7 +672,7 @@ ar9300_cac_tx_quiet(struct ath_hal *ah, HAL_BOOL enable)
reg2 | AR_QUIET1_QUIET_ACK_CTS_ENABLE);
}
}
#endif /* ATH_SUPPORT_DFS */
//#endif /* ATH_SUPPORT_DFS */
void
ar9300_set_pcu_config(struct ath_hal *ah)

View File

@ -4263,11 +4263,11 @@ ar9300_init_user_settings(struct ath_hal *ah)
if (ahp->ah_beacon_rssi_threshold != 0) {
ar9300_set_hw_beacon_rssi_threshold(ah, ahp->ah_beacon_rssi_threshold);
}
#ifdef ATH_SUPPORT_DFS
//#ifdef ATH_SUPPORT_DFS
if (ahp->ah_cac_quiet_enabled) {
ar9300_cac_tx_quiet(ah, 1);
}
#endif /* ATH_SUPPORT_DFS */
//#endif /* ATH_SUPPORT_DFS */
}
int