aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-11-16 14:51:04 -0500
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2010-11-24 19:58:06 -0500
commit67158b67cea0c92dba1dda74cde926d149cc1a2e (patch)
tree95557c0d0ba84e703055cf25a7214d18128015b4 /drivers
parentdbbf1755b09eef8ff6dd21c8dafe1606f051ce12 (diff)
iwlagn: remove powersave warning
Through races, a packet may be enqueued for transmission to a station while that station is going to sleep, in which case the warning here triggers. Instead of warning, check the condition -- if this packet is not a PS-poll response then we still enqueue it but it will be rejected by the device since the station is marked as asleep. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-tx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
index 07bbc915529a..e8bd0b311946 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
@@ -567,8 +567,8 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
567 if (sta) 567 if (sta)
568 sta_priv = (void *)sta->drv_priv; 568 sta_priv = (void *)sta->drv_priv;
569 569
570 if (sta_priv && sta_priv->asleep) { 570 if (sta_priv && sta_priv->asleep &&
571 WARN_ON(!(info->flags & IEEE80211_TX_CTL_PSPOLL_RESPONSE)); 571 (info->flags & IEEE80211_TX_CTL_PSPOLL_RESPONSE)) {
572 /* 572 /*
573 * This sends an asynchronous command to the device, 573 * This sends an asynchronous command to the device,
574 * but we can rely on it being processed before the 574 * but we can rely on it being processed before the