diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 3290b1552f5a..7261ee49f282 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -636,41 +636,3 @@ void iwl_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) | |||
636 | meta->flags = 0; | 636 | meta->flags = 0; |
637 | } | 637 | } |
638 | EXPORT_SYMBOL(iwl_tx_cmd_complete); | 638 | EXPORT_SYMBOL(iwl_tx_cmd_complete); |
639 | |||
640 | #ifdef CONFIG_IWLWIFI_DEBUG | ||
641 | #define TX_STATUS_FAIL(x) case TX_STATUS_FAIL_ ## x: return #x | ||
642 | #define TX_STATUS_POSTPONE(x) case TX_STATUS_POSTPONE_ ## x: return #x | ||
643 | |||
644 | const char *iwl_get_tx_fail_reason(u32 status) | ||
645 | { | ||
646 | switch (status & TX_STATUS_MSK) { | ||
647 | case TX_STATUS_SUCCESS: | ||
648 | return "SUCCESS"; | ||
649 | TX_STATUS_POSTPONE(DELAY); | ||
650 | TX_STATUS_POSTPONE(FEW_BYTES); | ||
651 | TX_STATUS_POSTPONE(BT_PRIO); | ||
652 | TX_STATUS_POSTPONE(QUIET_PERIOD); | ||
653 | TX_STATUS_POSTPONE(CALC_TTAK); | ||
654 | TX_STATUS_FAIL(INTERNAL_CROSSED_RETRY); | ||
655 | TX_STATUS_FAIL(SHORT_LIMIT); | ||
656 | TX_STATUS_FAIL(LONG_LIMIT); | ||
657 | TX_STATUS_FAIL(FIFO_UNDERRUN); | ||
658 | TX_STATUS_FAIL(DRAIN_FLOW); | ||
659 | TX_STATUS_FAIL(RFKILL_FLUSH); | ||
660 | TX_STATUS_FAIL(LIFE_EXPIRE); | ||
661 | TX_STATUS_FAIL(DEST_PS); | ||
662 | TX_STATUS_FAIL(HOST_ABORTED); | ||
663 | TX_STATUS_FAIL(BT_RETRY); | ||
664 | TX_STATUS_FAIL(STA_INVALID); | ||
665 | TX_STATUS_FAIL(FRAG_DROPPED); | ||
666 | TX_STATUS_FAIL(TID_DISABLE); | ||
667 | TX_STATUS_FAIL(FIFO_FLUSHED); | ||
668 | TX_STATUS_FAIL(INSUFFICIENT_CF_POLL); | ||
669 | TX_STATUS_FAIL(PASSIVE_NO_RX); | ||
670 | TX_STATUS_FAIL(NO_BEACON_ON_RADAR); | ||
671 | } | ||
672 | |||
673 | return "UNKNOWN"; | ||
674 | } | ||
675 | EXPORT_SYMBOL(iwl_get_tx_fail_reason); | ||
676 | #endif /* CONFIG_IWLWIFI_DEBUG */ | ||