[gnome-shell] network: ignore APs that hide their SSID
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] network: ignore APs that hide their SSID
- Date: Fri, 12 Aug 2011 16:41:17 +0000 (UTC)
commit 6a3130e25fb8a9d83688f29346c187314d1c5745
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Aug 3 18:32:03 2011 +0100
network: ignore APs that hide their SSID
https://bugzilla.gnome.org/show_bug.cgi?id=654898
js/ui/status/network.js | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 4b4aaac..341f9b0 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -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: [ ],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]