]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/mac80211/agg-rx.c
Merge branch 'for-2.6.31' of git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
[karo-tx-linux.git] / net / mac80211 / agg-rx.c
index a95affc94629254ea98a75b5c41966d059acb54d..07656d830bc4d7cec8a9152b9e28d1495dbe1809 100644 (file)
@@ -197,6 +197,14 @@ void ieee80211_process_addba_request(struct ieee80211_local *local,
 
        status = WLAN_STATUS_REQUEST_DECLINED;
 
+       if (test_sta_flags(sta, WLAN_STA_SUSPEND)) {
+#ifdef CONFIG_MAC80211_HT_DEBUG
+               printk(KERN_DEBUG "Suspend in progress. "
+                      "Denying ADDBA request\n");
+#endif
+               goto end_no_lock;
+       }
+
        /* sanity check for incoming parameters:
         * check if configuration can support the BA policy
         * and if buffer size does not exceeds max value */