aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2017-04-03 22:28:35 (GMT)
committerJouni Malinen <j@w1.fi>2017-05-08 13:23:02 (GMT)
commit31a856a127706c5047038ab0c7c5a07054432ebf (patch)
tree59a371e8c2866f675c9ec42f801c3568142311d6 /wpa_supplicant/config_file.c
parent481fecefec25cea2fdbd95de6f697290c21d47d8 (diff)
downloadhostap-31a856a127706c5047038ab0c7c5a07054432ebf.zip
hostap-31a856a127706c5047038ab0c7c5a07054432ebf.tar.gz
hostap-31a856a127706c5047038ab0c7c5a07054432ebf.tar.bz2
mesh: Make NL80211_MESHCONF_RSSI_THRESHOLD configurable
In some practical cases, it is useful to suppress joining to node in the distance. The new field mesh_rssi_threshold could be used as RSSI threshold for joining. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 3a44c8a..7069b16 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -783,6 +783,7 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
#endif /* IEEE8021X_EAPOL */
INT(mode);
INT(no_auto_peer);
+ INT_DEF(mesh_rssi_threshold, DEFAULT_MESH_RSSI_THRESHOLD);
INT(frequency);
INT(fixed_freq);
#ifdef CONFIG_ACS