diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 9e6703ff7fbb..beb8718d905e 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -385,13 +385,13 @@ static void ieee80211_handle_filtered_frame(struct ieee80211_local *local, | |||
385 | * can be unknown, for example with different interrupt status | 385 | * can be unknown, for example with different interrupt status |
386 | * bits. | 386 | * bits. |
387 | */ | 387 | */ |
388 | if (test_sta_flags(sta, WLAN_STA_PS) && | 388 | if (test_sta_flags(sta, WLAN_STA_PS_STA) && |
389 | skb_queue_len(&sta->tx_filtered) < STA_MAX_TX_BUFFER) { | 389 | skb_queue_len(&sta->tx_filtered) < STA_MAX_TX_BUFFER) { |
390 | skb_queue_tail(&sta->tx_filtered, skb); | 390 | skb_queue_tail(&sta->tx_filtered, skb); |
391 | return; | 391 | return; |
392 | } | 392 | } |
393 | 393 | ||
394 | if (!test_sta_flags(sta, WLAN_STA_PS) && | 394 | if (!test_sta_flags(sta, WLAN_STA_PS_STA) && |
395 | !(info->flags & IEEE80211_TX_INTFL_RETRIED)) { | 395 | !(info->flags & IEEE80211_TX_INTFL_RETRIED)) { |
396 | /* Software retry the packet once */ | 396 | /* Software retry the packet once */ |
397 | info->flags |= IEEE80211_TX_INTFL_RETRIED; | 397 | info->flags |= IEEE80211_TX_INTFL_RETRIED; |
@@ -406,7 +406,7 @@ static void ieee80211_handle_filtered_frame(struct ieee80211_local *local, | |||
406 | "queue_len=%d PS=%d @%lu\n", | 406 | "queue_len=%d PS=%d @%lu\n", |
407 | wiphy_name(local->hw.wiphy), | 407 | wiphy_name(local->hw.wiphy), |
408 | skb_queue_len(&sta->tx_filtered), | 408 | skb_queue_len(&sta->tx_filtered), |
409 | !!test_sta_flags(sta, WLAN_STA_PS), jiffies); | 409 | !!test_sta_flags(sta, WLAN_STA_PS_STA), jiffies); |
410 | #endif | 410 | #endif |
411 | dev_kfree_skb(skb); | 411 | dev_kfree_skb(skb); |
412 | } | 412 | } |
@@ -446,7 +446,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
446 | 446 | ||
447 | if (sta) { | 447 | if (sta) { |
448 | if (!(info->flags & IEEE80211_TX_STAT_ACK) && | 448 | if (!(info->flags & IEEE80211_TX_STAT_ACK) && |
449 | test_sta_flags(sta, WLAN_STA_PS)) { | 449 | test_sta_flags(sta, WLAN_STA_PS_STA)) { |
450 | /* | 450 | /* |
451 | * The STA is in power save mode, so assume | 451 | * The STA is in power save mode, so assume |
452 | * that this TX packet failed because of that. | 452 | * that this TX packet failed because of that. |