Skip to content

Commit

Permalink
nl80211: Fix enum type of variable in nl80211_put_sta_rate()
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Matthias Kaehlcke authored and Johannes Berg committed Apr 18, 2017
1 parent a4ac6f2 commit bbf67e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -4203,7 +4203,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)
Expand Down

0 comments on commit bbf67e4

Please sign in to comment.