aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index bad0e94e4e5d..2652e3746ef5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -1365,6 +1365,15 @@ enum {
1365 TX_ABORT_REQUIRED_MSK = 0x80000000, /* bits 31:31 */ 1365 TX_ABORT_REQUIRED_MSK = 0x80000000, /* bits 31:31 */
1366}; 1366};
1367 1367
1368static inline int iwl_is_tx_success(u32 status)
1369{
1370 status &= TX_STATUS_MSK;
1371 return (status == TX_STATUS_SUCCESS)
1372 || (status == TX_STATUS_DIRECT_DONE);
1373}
1374
1375
1376
1368/* ******************************* 1377/* *******************************
1369 * TX aggregation status 1378 * TX aggregation status
1370 ******************************* */ 1379 ******************************* */