mac80211: Stop TX BA session if buf_size is zero
[deliverable/linux.git] / net / mac80211 / agg-tx.c
index c8be8eff70daa5595b823c8648a1261153fe71b1..b7075f33dc06c2eb997469fdf955408d8fce709d 100644 (file)
@@ -777,18 +777,14 @@ void ieee80211_process_addba_resp(struct ieee80211_local *local,
 #ifdef CONFIG_MAC80211_HT_DEBUG
        printk(KERN_DEBUG "switched off addBA timer for tid %d\n", tid);
 #endif
-
+       /*
+        * IEEE 802.11-2007 7.3.1.14:
+        * In an ADDBA Response frame, when the Status Code field
+        * is set to 0, the Buffer Size subfield is set to a value
+        * of at least 1.
+        */
        if (le16_to_cpu(mgmt->u.action.u.addba_resp.status)
-                       == WLAN_STATUS_SUCCESS) {
-               /*
-                * IEEE 802.11-2007 7.3.1.14:
-                * In an ADDBA Response frame, when the Status Code field
-                * is set to 0, the Buffer Size subfield is set to a value
-                * of at least 1.
-                */
-               if (!buf_size)
-                       goto out;
-
+                       == WLAN_STATUS_SUCCESS && buf_size) {
                if (test_and_set_bit(HT_AGG_STATE_RESPONSE_RECEIVED,
                                     &tid_tx->state)) {
                        /* ignore duplicate response */
This page took 0.025722 seconds and 5 git commands to generate.