diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-03-18 00:51:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-27 20:13:00 -0400 |
commit | a2f1cbebdccc866d6c7da9eb655d35b5c60d33a0 (patch) | |
tree | 2e8384b5b223003cba3f9b45afd986835e93a8f7 /drivers/net/wireless/iwlwifi/iwl-tx.c | |
parent | 82127493a656f6293ffb1566410b5753f29991ef (diff) |
iwlwifi: report error when detect failure during stop agg queue
This fix related to bug 1921 at
http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1921
when detect error during stopping tx aggregation queue, report the error to
help identify the problem.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 9e83ee24ea8d..b13862a598ef 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -1223,8 +1223,10 @@ int iwl_tx_agg_stop(struct iwl_priv *priv , const u8 *ra, u16 tid) | |||
1223 | 1223 | ||
1224 | sta_id = iwl_find_station(priv, ra); | 1224 | sta_id = iwl_find_station(priv, ra); |
1225 | 1225 | ||
1226 | if (sta_id == IWL_INVALID_STATION) | 1226 | if (sta_id == IWL_INVALID_STATION) { |
1227 | IWL_ERR(priv, "Invalid station for AGG tid %d\n", tid); | ||
1227 | return -ENXIO; | 1228 | return -ENXIO; |
1229 | } | ||
1228 | 1230 | ||
1229 | if (priv->stations[sta_id].tid[tid].agg.state != IWL_AGG_ON) | 1231 | if (priv->stations[sta_id].tid[tid].agg.state != IWL_AGG_ON) |
1230 | IWL_WARN(priv, "Stopping AGG while state not IWL_AGG_ON\n"); | 1232 | IWL_WARN(priv, "Stopping AGG while state not IWL_AGG_ON\n"); |