projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13bae4
)
nl80211: fix the setting of RSSI threshold value for mesh
author
Chun-Yeow Yeoh
<
[email protected]
>
Thu, 11 Jul 2013 10:24:03 +0000
(18:24 +0800)
committer
Johannes Berg
<
[email protected]
>
Tue, 16 Jul 2013 06:55:58 +0000
(09:55 +0300)
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 <
[email protected]
>
Signed-off-by: Johannes Berg <
[email protected]
>
net/wireless/nl80211.c
patch
|
blob
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index 9fb8820b75c56a51c62d5b6b08b2e8f7b81e6495..25d217d90807f05f6a56945cb89dcd7b3314a53d 100644
(file)
--- 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_
u
32);
+ nla_get_
s
32);
FILL_IN_MESH_PARAM_IF_SET(tb, cfg, ht_opmode, 0, 16,
mask, NL80211_MESHCONF_HT_OPMODE,
nla_get_u16);