In previous code, the first profile in profile list was assumed to be a
WiFiProfile when WiFi connection is done.
But now it is not ensured, therefore checking login is required.
Change-Id: I1dc89ea806dd290191cb98976ac777c0df32e48f
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
var list = await ConnectionProfileManager.GetProfileListAsync(ProfileListType.Registered);
foreach (var item in list)
{
- _connectionProfile = item;
- break;
+ if (item.Name == _wiFiNetwork.Essid)
+ {
+ _connectionProfile = item;
+ break;
+ }
}
_wiFiProfile = (WiFiProfile)_connectionProfile;
}