[PATCH 1/3] Request for the default gateway MAC address instead of the AP one.

Bastien Nocera hadess at hadess.net
Mon Aug 23 08:56:58 PDT 2010


On Mon, 2010-08-23 at 17:49 +0200, Javier Fernandez wrote:
> The Plazes.com GET /plazes.xml method expects the default
> gateway MAC address to find a specific location.

Care to elaborate on that? I looked it up when I made the changes to the
various backends, and I didn't find that using the gateway's MAC was the
way to do it.

> ---
>  providers/plazes/geoclue-plazes.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/providers/plazes/geoclue-plazes.c b/providers/plazes/geoclue-plazes.c
> index 1f3ecd3..70e5d1d 100644
> --- a/providers/plazes/geoclue-plazes.c
> +++ b/providers/plazes/geoclue-plazes.c
> @@ -126,7 +126,7 @@ geoclue_plazes_get_position (GcIfacePosition        *iface,
>  
>  	/* we may be trying to read /proc/net/arp right after network connection. 
>  	 * It's sometimes not up yet, try a couple of times */
> -	mac = geoclue_connectivity_get_ap_mac (plazes->conn);
> +	mac = geoclue_connectivity_get_router_mac (plazes->conn);
>  
>  	if (mac == NULL) {
>  		g_set_error (error, GEOCLUE_ERROR, 




More information about the GeoClue mailing list