summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-04-18 01:59:52 +0300
committerJohannes Berg <johannes.berg@intel.com>2017-04-18 12:03:03 +0300
commitbbf67e450a5dc2a595e1e7a67b4869f1a7f5a338 (patch)
treedd0f5e47b0c82dc211473725f2bff30ed00d2e02 /net/wireless
parenta4ac6f2e53e568a77a2eb3710efd99ca08634c0a (diff)
downloadlinux-bbf67e450a5dc2a595e1e7a67b4869f1a7f5a338.tar.xz
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: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index a047992e5df1..04c1c7896cc1 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -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)