network: ignore APs that hide their SSID

https://bugzilla.gnome.org/show_bug.cgi?id=654898
This commit is contained in:
Rui Matos 2011-08-03 18:32:03 +01:00
parent 91cba1f8f4
commit 6a3130e25f

View File

@ -991,7 +991,11 @@ NMDeviceWireless.prototype = {
obj = this._networks[pos];
obj.accessPoints.push(ap);
} else {
obj = { ssid: ap.get_ssid(),
let ssid = ap.get_ssid();
if (ssid == null)
continue;
obj = { ssid: ssid,
mode: ap.mode,
security: this._getApSecurityType(ap),
connections: [ ],
@ -1190,8 +1194,13 @@ NMDeviceWireless.prototype = {
_accessPointAdded: function(device, accessPoint) {
let pos = this._findNetwork(accessPoint);
let apObj;
let ssid;
let needsupdate = false;
ssid = accessPoint.get_ssid();
if (ssid == null)
return;
if (pos != -1) {
apObj = this._networks[pos];
if (apObj.accessPoints.indexOf(accessPoint) != -1) {
@ -1203,7 +1212,7 @@ NMDeviceWireless.prototype = {
if (apObj.item)
apObj.item.updateAccessPoints(apObj.accessPoints);
} else {
apObj = { ssid: accessPoint.get_ssid(),
apObj = { ssid: ssid,
mode: accessPoint.mode,
security: this._getApSecurityType(accessPoint),
connections: [ ],