on xenial help sign in
This proved to be more reliable on krillin
commit8e4b7f22fc9c5d582967ae5c1b65894e4b3df0e3 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateWed 21 Jan 2015, 13:01 (12 years ago) parent814466c
1 file changed+6−1
qml/Wizard/Pages/40-wifi.qml+6−1
qml/Wizard/Pages/40-wifi.qml+6−1
@@ -50,6 +50,7 @@ LocalComponents.Page {
5050
5151 property string accessPointName: getAccessPointName()
5252
53+ monitorCurrentNetworkMode: true
5354 monitorNetworkName: true
5455 monitorNetworkStatus: true
5556
@@ -58,7 +59,11 @@ LocalComponents.Page {
5859
5960 function getAccessPointName() {
6061 // 0 is the interface
61− accessPointName = networkName(NetworkInfo.WlanMode, 0);
62+ if (currentNetworkMode === NetworkInfo.WlanMode &&
63+ networkStatus(NetworkInfo.WlanMode, 0) === NetworkInfo.HomeNetwork)
64+ accessPointName = networkName(NetworkInfo.WlanMode, 0);
65+ else
66+ accessPointName = "";
6267 }
6368 }
6469