Fix memory leaks
[platform/core/connectivity/net-config.git] / include / wifi-netlink-scan.h
index 2dc4c92..a926dd2 100755 (executable)
@@ -37,6 +37,7 @@ extern "C" {
 #define NL80211_CMD_NEW_SCAN_RESULTS           34
 #define NL80211_BSS_BSSID                      1
 #define NL80211_BSS_FREQUENCY                  2
+#define NL80211_BSS_CAPABILITY                 5
 #define NL80211_BSS_INFORMATION_ELEMENTS       6
 #define NL80211_BSS_SIGNAL_MBM                 7
 #define NL80211_BSS_MAX                                15
@@ -46,6 +47,8 @@ extern "C" {
 #define NL80211_ATTR_SCAN_SSIDS                        45
 #define NL80211_ATTR_MAX                       221
 
+#define WLAN_CAPABILITY_PRIVACY                        (1<<4)
+
 struct bss_scan_info_t {
        char bssid[NETCONFIG_BSSID_LEN+1];
        char ssid[NETCONFIG_SSID_LEN+1];
@@ -74,8 +77,9 @@ typedef struct {
        struct nl_msg *msg;
 } netconfig_nl_global;
 
-void __netconfig_notify_netlink_scan_done(void);
-int handle_netlink_scan(Wifi *wifi, GDBusMethodInvocation *context, GVariant *params);
+void __netconfig_notify_netlink_scan_done(const char *interface_name);
+int handle_netlink_scan(Wifi *wifi, GDBusMethodInvocation *context,
+               const gchar *ifname, GVariant *params);
 
 #ifdef __cplusplus
 }