aboutsummaryrefslogtreecommitdiff
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorGravatar Johannes Berg <johannes.berg@intel.com> 2022-07-01 14:01:59 +0200
committerGravatar Johannes Berg <johannes.berg@intel.com> 2022-07-15 11:43:18 +0200
commit3dc05935ead81ffafa6d937552cfae1f1463b4a8 (patch)
tree7948dace4c28fd57158bd7ce22e566b50648cb18 /net/mac80211/mlme.c
parentwifi: cfg80211: add ieee80211_chanwidth_rate_flags() (diff)
downloadlinux-3dc05935ead81ffafa6d937552cfae1f1463b4a8.tar.gz
linux-3dc05935ead81ffafa6d937552cfae1f1463b4a8.tar.bz2
linux-3dc05935ead81ffafa6d937552cfae1f1463b4a8.zip
wifi: mac80211: use only channel width in ieee80211_parse_bitrates()
For MLO, we may not have a full chandef here later, so change the API to pass only the width. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index e2472c0927ac..e0b290730baf 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -819,7 +819,8 @@ static int ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata)
* in the association request (e.g. D-Link DAP 1353 in
* b-only mode)...
*/
- rates_len = ieee80211_parse_bitrates(&chanctx_conf->def, sband,
+ rates_len = ieee80211_parse_bitrates(chanctx_conf->def.width,
+ sband,
assoc_data->supp_rates,
assoc_data->supp_rates_len,
&rates);