Commit 1d270075 authored by Wey-Yi Guy's avatar Wey-Yi Guy

iwlagn: correct naming for failure reply tx status

For failure tx status 0x90 and 0x91, give the correct name to reflect
the errors.
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
parent 0b7e5e85
...@@ -1009,11 +1009,11 @@ ssize_t iwl_reply_tx_error_read(struct file *file, ...@@ -1009,11 +1009,11 @@ ssize_t iwl_reply_tx_error_read(struct file *file,
TX_STATUS_FAIL_INSUFFICIENT_CF_POLL), TX_STATUS_FAIL_INSUFFICIENT_CF_POLL),
priv->_agn.reply_tx_stats.insuff_cf_poll); priv->_agn.reply_tx_stats.insuff_cf_poll);
pos += scnprintf(buf + pos, bufsz - pos, "%s:\t\t\t%u\n", pos += scnprintf(buf + pos, bufsz - pos, "%s:\t\t\t%u\n",
iwl_get_tx_fail_reason(TX_STATUS_FAIL_FW_DROP), iwl_get_tx_fail_reason(TX_STATUS_FAIL_PASSIVE_NO_RX),
priv->_agn.reply_tx_stats.fail_hw_drop); priv->_agn.reply_tx_stats.fail_hw_drop);
pos += scnprintf(buf + pos, bufsz - pos, "%s:\t%u\n", pos += scnprintf(buf + pos, bufsz - pos, "%s:\t\t%u\n",
iwl_get_tx_fail_reason( iwl_get_tx_fail_reason(
TX_STATUS_FAIL_STA_COLOR_MISMATCH_DROP), TX_STATUS_FAIL_NO_BEACON_ON_RADAR),
priv->_agn.reply_tx_stats.sta_color_mismatch); priv->_agn.reply_tx_stats.sta_color_mismatch);
pos += scnprintf(buf + pos, bufsz - pos, "UNKNOWN:\t\t\t%u\n", pos += scnprintf(buf + pos, bufsz - pos, "UNKNOWN:\t\t\t%u\n",
priv->_agn.reply_tx_stats.unknown); priv->_agn.reply_tx_stats.unknown);
......
...@@ -111,10 +111,10 @@ static void iwlagn_count_tx_err_status(struct iwl_priv *priv, u16 status) ...@@ -111,10 +111,10 @@ static void iwlagn_count_tx_err_status(struct iwl_priv *priv, u16 status)
case TX_STATUS_FAIL_INSUFFICIENT_CF_POLL: case TX_STATUS_FAIL_INSUFFICIENT_CF_POLL:
priv->_agn.reply_tx_stats.insuff_cf_poll++; priv->_agn.reply_tx_stats.insuff_cf_poll++;
break; break;
case TX_STATUS_FAIL_FW_DROP: case TX_STATUS_FAIL_PASSIVE_NO_RX:
priv->_agn.reply_tx_stats.fail_hw_drop++; priv->_agn.reply_tx_stats.fail_hw_drop++;
break; break;
case TX_STATUS_FAIL_STA_COLOR_MISMATCH_DROP: case TX_STATUS_FAIL_NO_BEACON_ON_RADAR:
priv->_agn.reply_tx_stats.sta_color_mismatch++; priv->_agn.reply_tx_stats.sta_color_mismatch++;
break; break;
default: default:
......
...@@ -1820,13 +1820,8 @@ enum { ...@@ -1820,13 +1820,8 @@ enum {
TX_STATUS_FAIL_TID_DISABLE = 0x8d, TX_STATUS_FAIL_TID_DISABLE = 0x8d,
TX_STATUS_FAIL_FIFO_FLUSHED = 0x8e, TX_STATUS_FAIL_FIFO_FLUSHED = 0x8e,
TX_STATUS_FAIL_INSUFFICIENT_CF_POLL = 0x8f, TX_STATUS_FAIL_INSUFFICIENT_CF_POLL = 0x8f,
/* uCode drop due to FW drop request */ TX_STATUS_FAIL_PASSIVE_NO_RX = 0x90,
TX_STATUS_FAIL_FW_DROP = 0x90, TX_STATUS_FAIL_NO_BEACON_ON_RADAR = 0x91,
/*
* uCode drop due to station color mismatch
* between tx command and station table
*/
TX_STATUS_FAIL_STA_COLOR_MISMATCH_DROP = 0x91,
}; };
#define TX_PACKET_MODE_REGULAR 0x0000 #define TX_PACKET_MODE_REGULAR 0x0000
......
...@@ -666,8 +666,8 @@ const char *iwl_get_tx_fail_reason(u32 status) ...@@ -666,8 +666,8 @@ const char *iwl_get_tx_fail_reason(u32 status)
TX_STATUS_FAIL(TID_DISABLE); TX_STATUS_FAIL(TID_DISABLE);
TX_STATUS_FAIL(FIFO_FLUSHED); TX_STATUS_FAIL(FIFO_FLUSHED);
TX_STATUS_FAIL(INSUFFICIENT_CF_POLL); TX_STATUS_FAIL(INSUFFICIENT_CF_POLL);
TX_STATUS_FAIL(FW_DROP); TX_STATUS_FAIL(PASSIVE_NO_RX);
TX_STATUS_FAIL(STA_COLOR_MISMATCH_DROP); TX_STATUS_FAIL(NO_BEACON_ON_RADAR);
} }
return "UNKNOWN"; return "UNKNOWN";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment