From 9f042ff1b8d685fe7f8002b031237f0606701b7c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 28 Jan 2015 15:30:42 -0600 Subject: [PATCH] wiphy: Ignore BSSes with no SSID --- src/wiphy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wiphy.c b/src/wiphy.c index 0143a510..f1182237 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -717,7 +717,10 @@ static void parse_bss(struct netdev *netdev, struct l_genl_attr *attr) } } - if (ssid) { + if (!ssid) { + l_warn("Received BSS but SSID IE returned NULL -- ignoring"); + goto fail; + } else { bool network_found = false; const char *id;