nl80211: Use signed function for a signed variable
authorMasashi Honma <masashi.honma@gmail.com>
Thu, 16 Mar 2017 01:57:17 +0000 (10:57 +0900)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 16 Mar 2017 09:54:41 +0000 (10:54 +0100)
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>
net/wireless/nl80211.c

index b15903b9c0ab1ecdbf958460d74e086ac96b2cee..bd5959fd29c530671063db64d2a23e5c44591686 100644 (file)
@@ -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) ||