Revert "network: ignore APs that hide their SSID"
This reverts commit 6a3130e25f
.
It would hide those APs forever, even after connecting to them, which users
can do via other means. Thanks to Giovanni Campagna for pointing this.
https://bugzilla.gnome.org/show_bug.cgi?id=654898
This commit is contained in:
parent
b54e374bc5
commit
ef8772916d
@ -995,11 +995,7 @@ NMDeviceWireless.prototype = {
|
|||||||
obj = this._networks[pos];
|
obj = this._networks[pos];
|
||||||
obj.accessPoints.push(ap);
|
obj.accessPoints.push(ap);
|
||||||
} else {
|
} else {
|
||||||
let ssid = ap.get_ssid();
|
obj = { ssid: ap.get_ssid(),
|
||||||
if (ssid == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
obj = { ssid: ssid,
|
|
||||||
mode: ap.mode,
|
mode: ap.mode,
|
||||||
security: this._getApSecurityType(ap),
|
security: this._getApSecurityType(ap),
|
||||||
connections: [ ],
|
connections: [ ],
|
||||||
@ -1198,13 +1194,8 @@ NMDeviceWireless.prototype = {
|
|||||||
_accessPointAdded: function(device, accessPoint) {
|
_accessPointAdded: function(device, accessPoint) {
|
||||||
let pos = this._findNetwork(accessPoint);
|
let pos = this._findNetwork(accessPoint);
|
||||||
let apObj;
|
let apObj;
|
||||||
let ssid;
|
|
||||||
let needsupdate = false;
|
let needsupdate = false;
|
||||||
|
|
||||||
ssid = accessPoint.get_ssid();
|
|
||||||
if (ssid == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (pos != -1) {
|
if (pos != -1) {
|
||||||
apObj = this._networks[pos];
|
apObj = this._networks[pos];
|
||||||
if (apObj.accessPoints.indexOf(accessPoint) != -1) {
|
if (apObj.accessPoints.indexOf(accessPoint) != -1) {
|
||||||
@ -1216,7 +1207,7 @@ NMDeviceWireless.prototype = {
|
|||||||
if (apObj.item)
|
if (apObj.item)
|
||||||
apObj.item.updateAccessPoints(apObj.accessPoints);
|
apObj.item.updateAccessPoints(apObj.accessPoints);
|
||||||
} else {
|
} else {
|
||||||
apObj = { ssid: ssid,
|
apObj = { ssid: accessPoint.get_ssid(),
|
||||||
mode: accessPoint.mode,
|
mode: accessPoint.mode,
|
||||||
security: this._getApSecurityType(accessPoint),
|
security: this._getApSecurityType(accessPoint),
|
||||||
connections: [ ],
|
connections: [ ],
|
||||||
|
Loading…
Reference in New Issue
Block a user