mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 05:04:09 +08:00
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>
This commit is contained in:
parent
e13bae4f80
commit
83374fe9de
@ -4770,9 +4770,9 @@ do { \
|
|||||||
FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshForwarding, 0, 1,
|
FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshForwarding, 0, 1,
|
||||||
mask, NL80211_MESHCONF_FORWARDING,
|
mask, NL80211_MESHCONF_FORWARDING,
|
||||||
nla_get_u8);
|
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,
|
mask, NL80211_MESHCONF_RSSI_THRESHOLD,
|
||||||
nla_get_u32);
|
nla_get_s32);
|
||||||
FILL_IN_MESH_PARAM_IF_SET(tb, cfg, ht_opmode, 0, 16,
|
FILL_IN_MESH_PARAM_IF_SET(tb, cfg, ht_opmode, 0, 16,
|
||||||
mask, NL80211_MESHCONF_HT_OPMODE,
|
mask, NL80211_MESHCONF_HT_OPMODE,
|
||||||
nla_get_u16);
|
nla_get_u16);
|
||||||
|
Loading…
Reference in New Issue
Block a user