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

Javier Fernandez jfernandez at igalia.com
Mon Aug 23 08:49:05 PDT 2010


The Plazes.com GET /plazes.xml method expects the default
gateway MAC address to find a specific location.
---
 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, 
-- 
1.6.3.3



More information about the GeoClue mailing list