* [PATCH] nl80211: Fix enum type of variable in nl80211_put_sta_rate()
@ 2017-04-17 22:59 Matthias Kaehlcke
2017-04-18 9:04 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Kaehlcke @ 2017-04-17 22:59 UTC (permalink / raw)
To: Johannes Berg, David S . Miller, Simon Wunderlich
Cc: linux-wireless, netdev, linux-kernel, Grant Grundler,
Greg Hackmann, Michael Davidson, Matthias Kaehlcke
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: Matthias Kaehlcke <mka@chromium.org>
---
net/wireless/nl80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 2312dc2ffdb9..9af21a21ea6b 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -4151,7 +4151,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)
--
2.12.2.762.g0e3151a226-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nl80211: Fix enum type of variable in nl80211_put_sta_rate()
2017-04-17 22:59 [PATCH] nl80211: Fix enum type of variable in nl80211_put_sta_rate() Matthias Kaehlcke
@ 2017-04-18 9:04 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2017-04-18 9:04 UTC (permalink / raw)
To: Matthias Kaehlcke, David S . Miller, Simon Wunderlich
Cc: linux-wireless, netdev, linux-kernel, Grant Grundler,
Greg Hackmann, Michael Davidson
On Mon, 2017-04-17 at 15:59 -0700, Matthias Kaehlcke wrote:
> 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.
Applied this, and the other two patches you had (IBSS enum and array-
bounds)
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-18 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-17 22:59 [PATCH] nl80211: Fix enum type of variable in nl80211_put_sta_rate() Matthias Kaehlcke
2017-04-18 9:04 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).