Skip to content

Commit 511ab0c

Browse files
committed
mac80211: fix lookup when adding AddBA extension element
We should be doing the HE capabilities lookup based on the full interface type so if P2P doesn't have HE but client has it doesn't get confused. Fix that. Fixes: 2ab4587 ("mac80211: add support for the ADDBA extension element") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/iwlwifi.20211129152938.010fc1d61137.If3a468145f29d670cb00a693bed559d8290ba693@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 768c0b1 commit 511ab0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

net/mac80211/agg-rx.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Copyright 2007, Michael Wu <flamingice@sourmilk.net>
1010
* Copyright 2007-2010, Intel Corporation
1111
* Copyright(c) 2015-2017 Intel Deutschland GmbH
12-
* Copyright (C) 2018-2020 Intel Corporation
12+
* Copyright (C) 2018-2021 Intel Corporation
1313
*/
1414

1515
/**
@@ -191,7 +191,8 @@ static void ieee80211_add_addbaext(struct ieee80211_sub_if_data *sdata,
191191
sband = ieee80211_get_sband(sdata);
192192
if (!sband)
193193
return;
194-
he_cap = ieee80211_get_he_iftype_cap(sband, sdata->vif.type);
194+
he_cap = ieee80211_get_he_iftype_cap(sband,
195+
ieee80211_vif_type_p2p(&sdata->vif));
195196
if (!he_cap)
196197
return;
197198

0 commit comments

Comments
 (0)