From d6a65a83fb61c855e9c776e3f89278ed8b214535 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 19 May 2018 17:22:48 +0300 Subject: [PATCH] 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 --- wpa_supplicant/mesh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c index 19b66b4b0..8a3badac2 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;