Browse Source

Set current ssid when entering AP mode

After successful starting AP mode, current_ssid field is set to
ssid used to create AP.
Witold Sowa 15 years ago
parent
commit
b2cc805619
1 changed files with 1 additions and 0 deletions
  1. 1 0
      wpa_supplicant/ap.c

+ 1 - 0
wpa_supplicant/ap.c

@@ -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;