Set current ssid when entering AP mode

After successful starting AP mode, current_ssid field is set to
ssid used to create AP.
This commit is contained in:
Witold Sowa 2009-08-15 21:04:50 +03:00 committed by Jouni Malinen
parent d43430d43d
commit b2cc805619

View file

@ -469,6 +469,7 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
return -1;
}
wpa_s->current_ssid = ssid;
wpa_supplicant_set_state(wpa_s, WPA_COMPLETED);
return 0;