Skip to content

Fix wifi source heading and speed

Teemu Ikonen requested to merge tpikonen/geoclue:fix-wifi-heading into master

I noticed that the speed and heading for a Wifi source were always 0.0 or undefined. The reason turned out to be that GClueWifi sets the same location twice, which makes the speed and heading computation fail.

First, fix gclue_location_set_heading_from_prev_location so that it returns an undefined heading instead of 0.0 for identical current and previous locations.

Second, remove the second, redundant call to gclue_location_source_set_location in GClueWifi. Location is already set in GClueWeb, after the MLS query.

Merge request reports