iwlwifi: mvm: fix aggregation drain flow
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / mvm / mac80211.c
index 899b56c85b5b72b97c0a86ec50dafdf7785f1c4c..a5eb8c82f16a806fea43738629e738cdeaaba0b6 100644 (file)
@@ -946,7 +946,7 @@ static void iwl_mvm_mac_sta_notify(struct ieee80211_hw *hw,
 
        switch (cmd) {
        case STA_NOTIFY_SLEEP:
-               if (atomic_read(&mvmsta->pending_frames) > 0)
+               if (atomic_read(&mvm->pending_frames[mvmsta->sta_id]) > 0)
                        ieee80211_sta_block_awake(hw, sta, true);
                /*
                 * The fw updates the STA to be asleep. Tx packets on the Tx
This page took 0.032404 seconds and 5 git commands to generate.