|
@@ -790,10 +790,12 @@ void wpas_notify_network_type_changed(struct wpa_supplicant *wpa_s,
|
|
|
ssid->disabled = 0;
|
|
|
wpas_dbus_unregister_network(wpa_s, ssid->id);
|
|
|
ssid->disabled = 2;
|
|
|
+ ssid->p2p_persistent_group = 1;
|
|
|
wpas_dbus_register_persistent_group(wpa_s, ssid);
|
|
|
} else {
|
|
|
/* Changed from persistent group to normal network profile */
|
|
|
wpas_dbus_unregister_persistent_group(wpa_s, ssid->id);
|
|
|
+ ssid->p2p_persistent_group = 0;
|
|
|
wpas_dbus_register_network(wpa_s, ssid);
|
|
|
}
|
|
|
#endif /* CONFIG_P2P */
|