Commit 8c43cf63 authored by Zeeshan Ali's avatar Zeeshan Ali

wifi: Ignore WiFis with '_nomap' suffix

The previous patch with the same commit shortlog only ignored newly
found APs (ones found after geoclue started) to not launch refresh so we
were still including them in our request to location service.

This patch now actually ignores such APs effectively.

https://bugs.freedesktop.org/show_bug.cgi?id=74288
parent d069d479
......@@ -383,6 +383,9 @@ gclue_wifi_create_query (GClueWebSource *source,
const char *mac;
gint8 strength_dbm;
if (should_ignore_ap (ap))
continue;
json_builder_begin_object (builder);
json_builder_set_member_name (builder, "macAddress");
mac = nm_access_point_get_bssid (ap);
......@@ -552,6 +555,9 @@ gclue_wifi_create_submit_query (GClueWebSource *source,
const char *mac;
gint8 strength_dbm;
if (should_ignore_ap (ap))
continue;
json_builder_begin_object (builder);
json_builder_set_member_name (builder, "key");
mac = nm_access_point_get_bssid (ap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment