Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb9daa6f authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Alistair Strachan
Browse files

UPSTREAM: nl80211: Fix enum type of variable in nl80211_put_sta_rate()



rate_flg is of type 'enum nl80211_attrs', however it is assigned with
'enum nl80211_rate_info' values. Change the type of rate_flg accordingly.

Signed-off-by: default avatarMatthias Kaehlcke <mka@chromium.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
(cherry picked from commit bbf67e450a5dc2a595e1e7a67b4869f1a7f5a338)
Bug: 78886293
Change-Id: I5423e226dc65375245f8ca6261c025d967552f17
Signed-off-by: default avatarAlistair Strachan <astrachan@google.com>
parent 720dfa9a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3601,7 +3601,7 @@ static bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info,
	struct nlattr *rate;
	u32 bitrate;
	u16 bitrate_compat;
	enum nl80211_attrs rate_flg;
	enum nl80211_rate_info rate_flg;

	rate = nla_nest_start(msg, attr);
	if (!rate)