Commit 969fbc0d authored by Zeeshan Ali's avatar Zeeshan Ali

wifi: Map neighborhood-level accuracy to city-level

If we don't have a 3G-modem, currently geoclue would be unable to give
you any location if you request neighborhood-level accuracy.

This patch fixes it by mapping the neighborhood-level accuracy to
city-level in WiFi source (only).
parent 282fe639
......@@ -629,6 +629,8 @@ gclue_wifi_get_singleton (GClueAccuracyLevel level)
guint i;
g_return_val_if_fail (level >= GCLUE_ACCURACY_LEVEL_CITY, NULL);
i = (level == GCLUE_ACCURACY_LEVEL_CITY)? 0 : 1;
if (wifi[i] == NULL) {
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