aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-05-19 14:22:48 (GMT)
committerJouni Malinen <j@w1.fi>2018-05-19 14:22:48 (GMT)
commitd6a65a83fb61c855e9c776e3f89278ed8b214535 (patch)
tree916e6f39ccf43b9ec7295fc77122a34127f0c7b4 /wpa_supplicant/mesh.c
parent4e47eec5a955a82f0c5783e966a9806d772f7482 (diff)
downloadhostap-d6a65a83fb61c855e9c776e3f89278ed8b214535.zip
hostap-d6a65a83fb61c855e9c776e3f89278ed8b214535.tar.gz
hostap-d6a65a83fb61c855e9c776e3f89278ed8b214535.tar.bz2
mesh: Register msg_ctx for hostapd/AP code
The use of hostapd code for a mesh interface did not register hapd->msg_ctx. This needs to be done similarly to the existing cases in wpa_supplicant AP and IBSS mode uses so that wpa_msg() calls from the hostapd/AP code get delivered properly. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant/mesh.c')
-rw-r--r--wpa_supplicant/mesh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index 19b66b4..8a3bada 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -184,6 +184,7 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s,
if (!bss)
goto out_free;
+ ifmsh->bss[0]->msg_ctx = wpa_s;
os_memcpy(bss->own_addr, wpa_s->own_addr, ETH_ALEN);
bss->driver = wpa_s->driver;
bss->drv_priv = wpa_s->drv_priv;