diff options
author | Chun-Yeow Yeoh <yeohchunyeow@gmail.com> | 2013-07-11 18:24:03 +0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-07-16 09:55:58 +0300 |
commit | 83374fe9de455e37c2a039603d2538eb77e8ec4d (patch) | |
tree | 2663db7c63d18eafea07aebf8b21147adf98f2bd /net/wireless | |
parent | e13bae4f807401729b3f27c7e882a96b8b292809 (diff) | |
download | kernel_goldelico_gta04-83374fe9de455e37c2a039603d2538eb77e8ec4d.zip kernel_goldelico_gta04-83374fe9de455e37c2a039603d2538eb77e8ec4d.tar.gz kernel_goldelico_gta04-83374fe9de455e37c2a039603d2538eb77e8ec4d.tar.bz2 |
nl80211: fix the setting of RSSI threshold value for mesh
RSSI threshold value used for mesh peering should be in
negative value. After range checks to mesh parameters is
introduced, this is not allowed. Fix this.
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/nl80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 9fb8820..25d217d 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4770,9 +4770,9 @@ do { \ FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshForwarding, 0, 1, mask, NL80211_MESHCONF_FORWARDING, nla_get_u8); - FILL_IN_MESH_PARAM_IF_SET(tb, cfg, rssi_threshold, 1, 255, + FILL_IN_MESH_PARAM_IF_SET(tb, cfg, rssi_threshold, -255, 0, mask, NL80211_MESHCONF_RSSI_THRESHOLD, - nla_get_u32); + nla_get_s32); FILL_IN_MESH_PARAM_IF_SET(tb, cfg, ht_opmode, 0, 16, mask, NL80211_MESHCONF_HT_OPMODE, nla_get_u16); |