aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2016-08-05 08:35:30 (GMT)
committerJouni Malinen <j@w1.fi>2016-08-18 17:40:13 (GMT)
commit2bd62171737b45a094027378a6ad70f567cb68ff (patch)
tree7805ba5f273fc606cac70f38118e6393ac9ecfc3 /wpa_supplicant/mesh.c
parent4ffb3f870d912d1ac625e5ab2f61b07728ecd19d (diff)
downloadhostap-2bd62171737b45a094027378a6ad70f567cb68ff.zip
hostap-2bd62171737b45a094027378a6ad70f567cb68ff.tar.gz
hostap-2bd62171737b45a094027378a6ad70f567cb68ff.tar.bz2
mesh: Use WPA_DRIVER_MESH_CONF_FLAG_* as modification flag
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'wpa_supplicant/mesh.c')
-rw-r--r--wpa_supplicant/mesh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index e3d9d62..3deeb49 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -414,10 +414,10 @@ int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
if (wpa_s->conf->user_mpm) {
params.flags |= WPA_DRIVER_MESH_FLAG_USER_MPM;
- params.conf.flags &= ~WPA_DRIVER_MESH_CONF_FLAG_AUTO_PLINKS;
+ params.conf.auto_plinks = 0;
} else {
params.flags |= WPA_DRIVER_MESH_FLAG_DRIVER_MPM;
- params.conf.flags |= WPA_DRIVER_MESH_CONF_FLAG_AUTO_PLINKS;
+ params.conf.auto_plinks = 1;
}
params.conf.peer_link_timeout = wpa_s->conf->mesh_max_inactivity;