Commit c6f9105a authored by Zeeshan Ali's avatar Zeeshan Ali

locator: Always initialize wifi source

Now that we map country-level accuracy to city-level, lets treat wifi
source like all other sources and always initialize it (see commit
c17b2674) but only start it when it's
available accuracy level changes to desired level.
parent 7f219ae0
......@@ -274,12 +274,9 @@ gclue_locator_constructed (GObject *object)
GClueCDMA *cdma = gclue_cdma_get_singleton ();
locator->priv->sources = g_list_append (locator->priv->sources, cdma);
#endif
if (locator->priv->accuracy_level >= GCLUE_ACCURACY_LEVEL_CITY) {
GClueWifi *wifi = gclue_wifi_get_singleton
(locator->priv->accuracy_level);
locator->priv->sources = g_list_append (locator->priv->sources,
wifi);
}
GClueWifi *wifi = gclue_wifi_get_singleton (locator->priv->accuracy_level);
locator->priv->sources = g_list_append (locator->priv->sources,
wifi);
#if GCLUE_USE_MODEM_GPS_SOURCE
GClueModemGPS *gps = gclue_modem_gps_get_singleton ();
locator->priv->sources = g_list_append (locator->priv->sources, gps);
......
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