Added GetBssidList dbus call for wifi-manager to get BSSID list 19/147619/1
authorAbhishek Sansanwal <abhishek.s94@samsung.com>
Tue, 5 Sep 2017 06:30:29 +0000 (12:00 +0530)
committerAbhishek Sansanwal <abhishek.s94@samsung.com>
Tue, 5 Sep 2017 06:30:29 +0000 (12:00 +0530)
Change-Id: I718519266ef973deba4b3a2947eda10d36c009cb
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
include/wifi-bssid-scan.h
interfaces/netconfig-iface-wifi.xml
resources/etc/dbus-1/system.d/net-config.conf
src/wifi-bssid-scan.c
src/wifi.c

index 9916c46..562da12 100644 (file)
@@ -32,6 +32,7 @@ void netconfig_wifi_bssid_signal_scandone(void);
 void netconfig_wifi_bssid_signal_scanaborted(void);
 
 gboolean handle_request_bssid_scan(Wifi *wifi, GDBusMethodInvocation *context);
+gboolean handle_get_bssid_list(Wifi *wifi, GDBusMethodInvocation *context);
 
 #ifdef __cplusplus
 }
index 85374c4..e99123d 100755 (executable)
@@ -6,6 +6,8 @@
                </method>
                <method name="RemoveDriver">
                </method>
+               <method name="GetBssidList">
+               </method>
                <method name="LaunchDirect">
                </method>
                <method name="LoadP2pDriver">
index 2a2651c..58c584e 100755 (executable)
@@ -44,6 +44,7 @@
                <check send_destination="net.netconfig" send_interface="net.netconfig.wifi" send_member="RequestWpsConnect" privilege="http://tizen.org/privilege/network.set" />
                <check send_destination="net.netconfig" send_interface="net.netconfig.wifi" send_member="CreateEapConfig" privilege="http://tizen.org/privilege/network.profile" />
                <check send_destination="net.netconfig" send_interface="net.netconfig.wifi" send_member="LoadDriver" privilege="http://tizen.org/privilege/network.set" />
+               <check send_destination="net.netconfig" send_interface="net.netconfig.wifi" send_member="GetBssidList" privilege="http://tizen.org/privilege/network.get" />
                <check send_destination="net.netconfig" send_interface="net.netconfig.wifi" send_member="RemoveDriver" privilege="http://tizen.org/privilege/network.set" />
                <check send_destination="net.netconfig" send_interface="net.netconfig.wifi" send_member="GetWifiState" privilege="http://tizen.org/privilege/network.get" />
                <check send_destination="net.netconfig" send_interface="net.netconfig.wifi" send_member="SetBgscan" privilege="http://tizen.org/privilege/network.set" />
index 96c6c83..05ad0c1 100644 (file)
@@ -531,3 +531,10 @@ gboolean handle_request_bssid_scan(Wifi *wifi, GDBusMethodInvocation *context)
        wifi_complete_request_bssid_scan(wifi, context);
        return TRUE;
 }
+
+gboolean handle_get_bssid_list(Wifi *wifi, GDBusMethodInvocation *context)
+{
+       _netconfig_wifi_bssid_get_bss();
+       wifi_complete_get_bssid_list(wifi, context);
+       return TRUE;
+}
index 97882e3..b91ee3b 100755 (executable)
@@ -165,6 +165,8 @@ void wifi_object_create_and_init(void)
                        G_CALLBACK(handle_request_specific_scan), NULL);
        g_signal_connect(wifi_object, "handle-request-bssid-scan",
                        G_CALLBACK(handle_request_bssid_scan), NULL);
+       g_signal_connect(wifi_object, "handle-get-bssid-list",
+                       G_CALLBACK(handle_get_bssid_list), NULL);
 
        /* WPS Connect */
        g_signal_connect(wifi_object, "handle-request-wps-connect",