diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-06-24 16:18:35 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-07-02 14:10:45 -0400 |
commit | 6555063666fea1fc81a14396aca53ab021ccb4f2 (patch) | |
tree | fdb12efd4445db8f27e90411ff182b30e33981ff /drivers/net/wireless/iwlwifi/iwl-agn.h | |
parent | 716c74b00717ad9caedb4a46059fb64a3da99808 (diff) |
iwlwifi: add support for device tx flush request
"Flush" request can come from two different sources, it can either from
mac80211, or from device when the operation is needed. Here
adding the support for device issue "flush" request.
When receive tx complete with status is TX_STATUS_FAIL_RFKILL_FLUSH,
issue REPLY_TXFIFO_FLUSH command to uCode to flush out all the tx frames
in queues.
In this condition, since mac80211 has no knowledge of "flush" operation,
driver need to stop all the tx queues and wait for the operation
completed before wake up the queues for frames transmission.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.h b/drivers/net/wireless/iwlwifi/iwl-agn.h index 0298642d1d75..5c46b2cd8e91 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn.h | |||
@@ -149,6 +149,7 @@ int iwlagn_rx_init(struct iwl_priv *priv, struct iwl_rx_queue *rxq); | |||
149 | int iwlagn_hw_nic_init(struct iwl_priv *priv); | 149 | int iwlagn_hw_nic_init(struct iwl_priv *priv); |
150 | int iwlagn_wait_tx_queue_empty(struct iwl_priv *priv); | 150 | int iwlagn_wait_tx_queue_empty(struct iwl_priv *priv); |
151 | int iwlagn_txfifo_flush(struct iwl_priv *priv, u16 flush_control); | 151 | int iwlagn_txfifo_flush(struct iwl_priv *priv, u16 flush_control); |
152 | void iwlagn_dev_txfifo_flush(struct iwl_priv *priv, u16 flush_control); | ||
152 | 153 | ||
153 | /* rx */ | 154 | /* rx */ |
154 | void iwlagn_rx_queue_restock(struct iwl_priv *priv); | 155 | void iwlagn_rx_queue_restock(struct iwl_priv *priv); |