Add API to flush BSS
[platform/core/connectivity/net-config.git] / src / wifi.c
index b91ee3b..92376b0 100755 (executable)
@@ -41,6 +41,7 @@
 #include "wifi-background-scan.h"
 #include "wifi-config.h"
 #include "wifi-tdls.h"
+#include "wifi-extension.h"
 
 #define SPRD_CP2_FIRMWARE_PATH "/usr/bin/cp2-downloader"
 static int is_wifi_firmware_downloaded = FALSE;
@@ -205,6 +206,7 @@ void wifi_object_create_and_init(void)
                        G_CALLBACK(handle_set_config_field), NULL);
        g_signal_connect(wifi_object, "handle-get-config-passphrase",
                        G_CALLBACK(handle_get_config_passphrase), NULL);
+
        /* WIFI EAP configuration */
        g_signal_connect(wifi_object, "handle-save-eap-configuration",
                        G_CALLBACK(handle_save_eap_configuration), NULL);
@@ -219,12 +221,16 @@ void wifi_object_create_and_init(void)
        g_signal_connect(wifi_object, "handle-pause-bgscan",
                        G_CALLBACK(handle_pause_bgscan), NULL);
 
-       /*Auto Scan Mode */
+       /* Auto Scan Mode */
        g_signal_connect(wifi_object, "handle-get-autoscan",
                        G_CALLBACK(handle_get_autoscan), NULL);
        g_signal_connect(wifi_object, "handle-get-autoscanmode",
                        G_CALLBACK(handle_get_autoscanmode), NULL);
 
+       /* Extension API methods */
+       g_signal_connect(wifi_object, "handle-flush-bss",
+                       G_CALLBACK(handle_flush_bss), NULL);
+
        /* Passpoint */
        g_signal_connect(wifi_object, "handle-set-passpoint",
                                G_CALLBACK(handle_set_passpoint), NULL);