Can't disable wifi agent, and accuracy check is backwards
See below. If I DISABLE the wifi source... it uses it anyway, just at a lower accuracy level? I have a local NMEA source that's just fine, but if I run the where-am-i program... it pretty much sends me alternating locations between the correct (NMEA) location and the completely wrong (wifi) location. Workaround was to set the url to nonsense, but 'enabled=false' should mean 'disabled', right?
if (gclue_config_get_enable_wifi_source (gconfig))
wifi = gclue_wifi_get_singleton (locator->priv->accuracy_level);
else
/* City-level accuracy will give us GeoIP-only source */
wifi = gclue_wifi_get_singleton (GCLUE_ACCURACY_LEVEL_CITY);
In addition, gclue-locator.c:
if (level > locator->priv->accuracy_level)
is backwards. Once I fixed the above, redshift wouldn't use the NMEA source because it was only requesting 'city' level data (4) and the NMEA provider was providing 'exact' data (8).