summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeeshan Ali <zeenix@collabora.co.uk>2018-12-21 17:15:03 +0100
committerZeeshan Ali <zeenix@collabora.co.uk>2018-12-21 17:15:03 +0100
commitf871ce1d2cff33244667dd49a2d510cc66cd171e (patch)
tree0f37ab955e000cd8c1a49402cc1bef5d855694b9
parent979692897149c9542bfcfeec13b423267ab3d283 (diff)
downloadgeoclue-f871ce1d2cff33244667dd49a2d510cc66cd171e.tar.gz
wpa_supplicant: Add Scanning API
We'll need this in a following patch to start WiFi scan to be able to get the most accurate location. Related: #91
-rw-r--r--data/org.freedesktop.GeoClue2.conf.in5
-rw-r--r--src/fi.w1.wpa_supplicant1.xml6
2 files changed, 11 insertions, 0 deletions
diff --git a/data/org.freedesktop.GeoClue2.conf.in b/data/org.freedesktop.GeoClue2.conf.in
index 94dfaab..ca23bed 100644
--- a/data/org.freedesktop.GeoClue2.conf.in
+++ b/data/org.freedesktop.GeoClue2.conf.in
@@ -26,6 +26,11 @@
<allow send_destination="fi.w1.wpa_supplicant1"
send_interface="org.freedesktop.DBus.Introspectable"/>
+
+ <allow send_destination="fi.w1.wpa_supplicant1"
+ send_interface="fi.w1.wpa_supplicant1.Interface"
+ send_type="method_call"
+ send_member="Scan"/>
</policy>
<policy user="root">
diff --git a/src/fi.w1.wpa_supplicant1.xml b/src/fi.w1.wpa_supplicant1.xml
index 7bd7313..a559c89 100644
--- a/src/fi.w1.wpa_supplicant1.xml
+++ b/src/fi.w1.wpa_supplicant1.xml
@@ -16,6 +16,9 @@
</interface>
<interface name="fi.w1.wpa_supplicant1.Interface">
+<method name="Scan">
+ <arg name="args" type="a{sv}" direction="in"/>
+</method>
<signal name="BSSAdded">
<arg name="path" type="o"/>
<arg name="properties" type="a{sv}"/>
@@ -23,6 +26,9 @@
<signal name="BSSRemoved">
<arg name="path" type="o"/>
</signal>
+<signal name="ScanDone">
+<arg name="success" type="b"/>
+</signal>
<property name="State" type="s" access="read"/>
<property name="Ifname" type="s" access="read"/>
<property name="BSSs" type="ao" access="read"/>