From: Jouni Malinen Date: Sat, 19 May 2018 14:22:48 +0000 (+0300) Subject: mesh: Register msg_ctx for hostapd/AP code X-Git-Tag: hostap_2_7~328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6a65a83fb61c855e9c776e3f89278ed8b214535;p=thirdparty%2Fhostap.git 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 --- 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;