]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Register msg_ctx for hostapd/AP code
authorJouni Malinen <jouni@codeaurora.org>
Sat, 19 May 2018 14:22:48 +0000 (17:22 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 19 May 2018 14:22:48 +0000 (17:22 +0300)
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>
wpa_supplicant/mesh.c

index 19b66b4b0c46c676e47a7fd34b53635da67bf65b..8a3badac2c7143d3f3bd854c6ca6b6e9be9151c4 100644 (file)
@@ -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;