[ath_hal] prepare for CAC quiet time.
To support DFS, the NIC needs to be very quiet during this time. No transmissions including ACKs are allowed. This is just the initial HAL glue.
This commit is contained in:
parent
c15fdc23c7
commit
2bc158cf24
@ -1428,6 +1428,21 @@ ath_hal_getcca(struct ath_hal *ah)
|
||||
return ((diag & 0x500000) == 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the current state of self-generated ACK and RTS/CTS frames.
|
||||
*
|
||||
* For correct DFS operation, the device should not even /ACK/ frames
|
||||
* that are sent to it during CAC or CSA.
|
||||
*/
|
||||
void
|
||||
ath_hal_set_dfs_cac_tx_quiet(struct ath_hal *ah, HAL_BOOL ena)
|
||||
{
|
||||
|
||||
if (ah->ah_setDfsCacTxQuiet == NULL)
|
||||
return;
|
||||
ah->ah_setDfsCacTxQuiet(ah, ena);
|
||||
}
|
||||
|
||||
/*
|
||||
* This routine is only needed when supporting EEPROM-in-RAM setups
|
||||
* (eg embedded SoCs and on-board PCI/PCIe devices.)
|
||||
|
@ -1395,6 +1395,7 @@ struct ath_hal {
|
||||
struct ath_rx_status *rxs, uint64_t fulltsf,
|
||||
const char *buf, HAL_DFS_EVENT *event);
|
||||
HAL_BOOL __ahdecl(*ah_isFastClockEnabled)(struct ath_hal *ah);
|
||||
void __ahdecl(*ah_setDfsCacTxQuiet)(struct ath_hal *, HAL_BOOL);
|
||||
|
||||
/* Spectral Scan functions */
|
||||
void __ahdecl(*ah_spectralConfigure)(struct ath_hal *ah,
|
||||
@ -1659,6 +1660,11 @@ void __ahdecl ath_hal_setcca(struct ath_hal *ah, int ena);
|
||||
*/
|
||||
int __ahdecl ath_hal_getcca(struct ath_hal *ah);
|
||||
|
||||
/*
|
||||
* Enable/disable and get self-gen frame (ACK, CTS) for CAC.
|
||||
*/
|
||||
void __ahdecl ath_hal_set_dfs_cac_tx_quiet(struct ath_hal *ah, HAL_BOOL ena);
|
||||
|
||||
/*
|
||||
* Read EEPROM data from ah_eepromdata
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user