aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2018-02-19 07:48:43 -0500
committerJohannes Berg <johannes.berg@intel.com>2018-02-19 08:53:15 -0500
commit3b07029729e347f288c70227cfe3c66b085d6b0b (patch)
tree1744d61987792191c300f16cada222e3b86da897
parent191da271ac260700db3e5b4bb982a17ca78769d6 (diff)
mac80211: Fix sending ADDBA response for an ongoing session
In case an ADDBA request is received while there is already an ongoing BA sessions with the same parameters, i.e., update flow, an ADBBA response with decline status was sent twice. Fix it. Signed-off-by: Ilan Peer <ilan.peer@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/mac80211/agg-rx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c
index d444752dbf40..d64303390913 100644
--- a/net/mac80211/agg-rx.c
+++ b/net/mac80211/agg-rx.c
@@ -8,6 +8,7 @@
8 * Copyright 2007, Michael Wu <flamingice@sourmilk.net> 8 * Copyright 2007, Michael Wu <flamingice@sourmilk.net>
9 * Copyright 2007-2010, Intel Corporation 9 * Copyright 2007-2010, Intel Corporation
10 * Copyright(c) 2015-2017 Intel Deutschland GmbH 10 * Copyright(c) 2015-2017 Intel Deutschland GmbH
11 * Copyright (C) 2018 Intel Corporation
11 * 12 *
12 * This program is free software; you can redistribute it and/or modify 13 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2 as 14 * it under the terms of the GNU General Public License version 2 as
@@ -315,9 +316,6 @@ void ___ieee80211_start_rx_ba_session(struct sta_info *sta,
315 * driver so reject the timeout update. 316 * driver so reject the timeout update.
316 */ 317 */
317 status = WLAN_STATUS_REQUEST_DECLINED; 318 status = WLAN_STATUS_REQUEST_DECLINED;
318 ieee80211_send_addba_resp(sta->sdata, sta->sta.addr,
319 tid, dialog_token, status,
320 1, buf_size, timeout);
321 goto end; 319 goto end;
322 } 320 }
323 321