Fix hostapd wpa_msg() calls ctx for wpa_supplicant AP mode

Need to use wpa_s pointer, not hapd pointer, for these calls.
This commit is contained in:
Jouni Malinen 2009-09-29 21:25:14 +03:00 committed by Jouni Malinen
parent acfbf1f5d7
commit 4f760fcc7c
4 changed files with 10 additions and 5 deletions

View file

@ -462,6 +462,8 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
wpa_supplicant_ap_deinit(wpa_s);
return -1;
}
hapd_iface->bss[i]->msg_ctx = wpa_s;
}
if (hostapd_setup_interface(wpa_s->ap_iface)) {