|
@@ -567,8 +567,8 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
|
|
if (sta)
|
|
if (sta)
|
|
sta_priv = (void *)sta->drv_priv;
|
|
sta_priv = (void *)sta->drv_priv;
|
|
|
|
|
|
- if (sta_priv && sta_priv->asleep) {
|
|
|
|
- WARN_ON(!(info->flags & IEEE80211_TX_CTL_PSPOLL_RESPONSE));
|
|
|
|
|
|
+ if (sta_priv && sta_priv->asleep &&
|
|
|
|
+ (info->flags & IEEE80211_TX_CTL_PSPOLL_RESPONSE)) {
|
|
/*
|
|
/*
|
|
* This sends an asynchronous command to the device,
|
|
* This sends an asynchronous command to the device,
|
|
* but we can rely on it being processed before the
|
|
* but we can rely on it being processed before the
|