diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-07-01 14:01:59 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-07-15 11:43:18 +0200 |
commit | 3dc05935ead81ffafa6d937552cfae1f1463b4a8 (patch) | |
tree | 7948dace4c28fd57158bd7ce22e566b50648cb18 /net/mac80211/mlme.c | |
parent | 19654a61bfd66539087119fbceed46e48f084d89 (diff) | |
download | linux-3dc05935ead81ffafa6d937552cfae1f1463b4a8.tar.bz2 |
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.c | 3 |
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); |