summaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2017-03-16 02:57:17 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-03-16 10:54:41 +0100
commit335d534938d327d5ba266564b7e6beaf5d456dd2 (patch)
treeb871fcdfaa169a1334d88037b329a0a2578eaa56 /net/wireless/nl80211.c
parentmac80211: Use setup_timer instead of init_timer for mesh path (diff)
downloadlinux-335d534938d327d5ba266564b7e6beaf5d456dd2.tar.xz
linux-335d534938d327d5ba266564b7e6beaf5d456dd2.zip
nl80211: Use signed function for a signed variable
The rssi_threshold is defined as s32. Signed-off-by: Masashi Honma <masashi.honma@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-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 b15903b9c0ab..bd5959fd29c5 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -5714,7 +5714,7 @@ static int nl80211_get_mesh_config(struct sk_buff *skb,
cur_params.dot11MeshGateAnnouncementProtocol) ||
nla_put_u8(msg, NL80211_MESHCONF_FORWARDING,
cur_params.dot11MeshForwarding) ||
- nla_put_u32(msg, NL80211_MESHCONF_RSSI_THRESHOLD,
+ nla_put_s32(msg, NL80211_MESHCONF_RSSI_THRESHOLD,
cur_params.rssi_threshold) ||
nla_put_u32(msg, NL80211_MESHCONF_HT_OPMODE,
cur_params.ht_opmode) ||