#include <glib-object.h>
#include "network_interface.h"
-#include "wifi_manager_extension.h"
#ifdef __cplusplus
extern "C" {
--- /dev/null
+/*
+ * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __TIZEN_WIFI_MANAGER_EXTENSION_H__
+#define __TIZEN_WIFI_MANAGER_EXTENSION_H__
+
+#include "wifi-manager.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @file wifi-manager-extension.h
+ */
+
+
+/**
+ * @brief Enumeration for the Wi-Fi autoscan mode.
+ * @since_tizen 4.0
+ */
+typedef enum {
+ /**
+ * Auto scan interval is increased exponentially like 4, 8, 16, ...128secs
+ */
+ WIFI_MANAGER_AUTOSCAN_MODE_EXPONENTIAL = 0x00,
+ /**
+ * Auto scan interval is fixed with 10secs(for mobile) / 15secs(for wearable)
+ */
+ WIFI_MANAGER_AUTOSCAN_MODE_PERIODIC
+} wifi_manager_autoscan_mode_e;
+
+/**
+* @}
+*/
+
+/**
+* @addtogroup CAPI_NETWORK_WIFI_MANAGER_MANAGEMENT_MODULE
+* @{
+*/
+
+/**
+ * @brief Enables or disables auto-scanning
+ * @details If auto-scanning is disabled, then background scan and wps scan don't work.
+ * By default, the auto-scanning is enabled automatically until disabling auto-scanning.
+ * Don't forget to enable again when you finish your works with disabled auto-scanning.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi The Wi-Fi handle
+ * @param[in] autoscan true to enable and false to disable
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_ERROR_NONE Successful
+ * @retval #WIFI_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #WIFI_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_ERROR_OPERATION_FAILED Operation failed
+ * @retval #WIFI_ERROR_PERMISSION_DENIED Permission Denied
+ * @pre This API needs wifi_initialize() before use.
+ */
+int wifi_manager_set_autoscan(wifi_manager_h wifi, bool autoscan);
+
+/**
+ * @brief Gets the autoscan state.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi The Wi-Fi handle
+ * @param[out] autoscan The autoscan state(enable or disable)
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
+ */
+int wifi_manager_get_autoscan(wifi_manager_h wifi, bool *autoscan);
+
+/**
+ * @brief Sets the mode of autoscan.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi The Wi-Fi handle
+ * @param[in] mode The auto scan mode
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_ERROR_NONE Successful
+ * @retval #WIFI_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #WIFI_ERROR_PERMISSION_DENIED Permission Denied
+ * @pre This API needs wifi_initialize() before use.
+ */
+int wifi_manager_set_autoscan_mode(wifi_manager_h wifi,
+ wifi_manager_autoscan_mode_e mode);
+
+/**
+ * @brief Gets the autoscan mode.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi The Wi-Fi handle
+ * @param[out] mode The mode of autoscan
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
+ */
+int wifi_manager_get_autoscan_mode(wifi_manager_h wifi,
+ wifi_manager_autoscan_mode_e *mode);
+
+/**
+ * @brief Flush BSS
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi The Wi-Fi handle
+ *
+ * @return 0 on success, otherwise negative error value.
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
+ */
+int wifi_manager_flush_bss(wifi_manager_h wifi);
+
+/**
+ * @brief Sets auto connection mode(enable or disable) for all Wi-Fi profile.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi The Wi-Fi handle
+ * @param[in] connect_mode The mode of auto connection
+ *
+ * @return 0 on success, otherwise negative error value.
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
+ */
+int wifi_manager_set_auto_connect(wifi_manager_h wifi, int connect_mode);
+
+/**
+ * @brief Gets auto connection mode(enable or disable) for all Wi-Fi profile.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi The Wi-Fi handle
+ * @param[out] connect_mode The mode of auto connection
+ *
+ * @return 0 on success, otherwise negative error value.
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
+ */
+int wifi_manager_get_auto_connect(wifi_manager_h wifi, int *connect_mode);
+
+/**
+ * @brief Sets enables or disables auto-connection of the AP.
+ * @details If an AP is connected, then connection information will be stored.
+ * By default, the stored AP can be connected automatically when it found, until disabling auto-connection.
+ * @since_tizen 5.0
+ *
+ * @param[in] ap The access point handle
+ * @param[in] autoconnect true when enabled and false when disabled
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied
+ * @pre This API needs wifi_manager_initialize() and wifi_manager_activate() before use.
+ */
+int wifi_manager_ap_set_auto_connect(wifi_manager_ap_h ap, bool autoconnect);
+
+/**
+ * @brief Gets enables or disables auto-connection of the AP.
+ * @details If an AP is connected, then connection information will be stored.
+ * By default, the stored AP can be connected automatically when it found, until disabling auto-connection.
+ * @since_tizen 5.0
+ *
+ * @param[in] ap The access point handle
+ * @param[out] autoconnect true when enabled and false when disabled
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied
+ * @pre This API needs wifi_manager_initialize() and wifi_manager_activate() before use.
+ */
+int wifi_manager_ap_get_auto_connect(wifi_manager_ap_h ap, bool *autoconnect);
+
+
+/**
+ * @brief Changes the IP conflict detection period in seconds.
+ * @since_tizen 5.0
+ *
+ * @param[in] wifi The Wi-Fi handle
+ * @param[in] initial_time The period time in seconds of the ARP detect ping
+ *
+ * @return @c 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
+ */
+int wifi_manager_set_ip_conflict_period(wifi_manager_h wifi, unsigned int initial_time);
+
+/**
+ * @brief Gets the IP conflict detection period in seconds.
+ * @since_tizen 5.0
+ *
+ * @param[in] wifi The Wi-Fi handle
+ * @param[out] initial_time The period time in seconds of the ARP detect ping
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
+ */
+int wifi_manager_get_ip_conflict_period(wifi_manager_h wifi, unsigned int *initial_time);
+
+/**
+ * @brief Called when the Netlink scan is finished.
+ * @since_tizen 5.0
+ * @param[in] error_code The error code
+ * @param[in] user_data The user data passed from the callback registration function
+ * @see wifi_manager_netlink_scan()
+ */
+typedef void(*wifi_manager_netlink_scan_finished_cb)(wifi_manager_error_e error_code, void *user_data);
+
+/**
+ * @brief Gets the result of the netlink scan (i.e.BSSID, ESSID, Frequency, RSSI, VSIE).
+ * @details If tethering is enabled in device then wlan interface is available but
+ * wifi module is in deactivated state and wpa-supplicant service is not active. So
+ * in this case to search available APs wifi_manager_netlink_scan() API will be used.
+ * @since_tizen 5.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/network.get
+ * @param[in] wifi The Wi-Fi handle
+ * @param[in] callback The callback to be called
+ * @param[in] user_data The user data passed to the callback function
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
+ * @post This function invokes wifi_manager_found_ap_cb().
+ * @see wifi_manager_netlink_scan()
+ */
+int wifi_manager_foreach_found_netlink_scan_ap(wifi_manager_h wifi,
+ wifi_manager_found_ap_cb callback, void *user_data);
+
+/**
+ * @brief Starts netlink scan asynchronously.
+ * @details If tethering is enabled in device then wlan interface is available but
+ * wifi module is in deactivated state and wpa-supplicant service is not active. So
+ * in this case to search available APs use wifi_manager_netlink_scan() API.
+ * @since_tizen 5.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/network.set \n
+ * %http://tizen.org/privilege/network.get
+ * @remarks This function needs both privileges.
+ * @param[in] wifi The Wi-Fi handle
+ * @param[in] callback The callback function to be called
+ * @param[in] user_data The user data passed to the callback function
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
+ * @post This function invokes wifi_manager_netlink_scan_finished_cb().
+ */
+int wifi_manager_netlink_scan(wifi_manager_h wifi,
+ wifi_manager_netlink_scan_finished_cb callback, void *user_data);
+
+/**
+* @}
+*/
+
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TIZEN_WIFI_MANAGER_EXTENSION_H__ */
#include <system_info.h>
#include "wifi-manager.h"
+#include "wifi-manager-extension.h"
#include "network_interface.h"
-#include "wifi_manager_extension.h"
#ifdef __cplusplus
extern "C" {
+++ /dev/null
-/*
- * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __TIZEN_WIFI_MANAGER_EXTENSION_H__
-#define __TIZEN_WIFI_MANAGER_EXTENSION_H__
-
-#include "wifi-manager.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @file wifi_manager_extension.h
- */
-
-
-/**
- * @brief Enumeration for the Wi-Fi autoscan mode.
- * @since_tizen 4.0
- */
-typedef enum {
- /**
- * Auto scan interval is increased exponentially like 4, 8, 16, ...128secs
- */
- WIFI_MANAGER_AUTOSCAN_MODE_EXPONENTIAL = 0x00,
- /**
- * Auto scan interval is fixed with 10secs(for mobile) / 15secs(for wearable)
- */
- WIFI_MANAGER_AUTOSCAN_MODE_PERIODIC
-} wifi_manager_autoscan_mode_e;
-
-/**
-* @}
-*/
-
-/**
-* @addtogroup CAPI_NETWORK_WIFI_MANAGER_MANAGEMENT_MODULE
-* @{
-*/
-
-/**
- * @brief Enables or disables auto-scanning
- * @details If auto-scanning is disabled, then background scan and wps scan don't work.
- * By default, the auto-scanning is enabled automatically until disabling auto-scanning.
- * Don't forget to enable again when you finish your works with disabled auto-scanning.
- * @since_tizen 4.0
- *
- * @param[in] wifi The Wi-Fi handle
- * @param[in] autoscan true to enable and false to disable
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_ERROR_NONE Successful
- * @retval #WIFI_ERROR_INVALID_OPERATION Invalid operation
- * @retval #WIFI_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_ERROR_OPERATION_FAILED Operation failed
- * @retval #WIFI_ERROR_PERMISSION_DENIED Permission Denied
- * @pre This API needs wifi_initialize() before use.
- */
-int wifi_manager_set_autoscan(wifi_manager_h wifi, bool autoscan);
-
-/**
- * @brief Gets the autoscan state.
- * @since_tizen 4.0
- *
- * @param[in] wifi The Wi-Fi handle
- * @param[out] autoscan The autoscan state(enable or disable)
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
- */
-int wifi_manager_get_autoscan(wifi_manager_h wifi, bool *autoscan);
-
-/**
- * @brief Sets the mode of autoscan.
- * @since_tizen 4.0
- *
- * @param[in] wifi The Wi-Fi handle
- * @param[in] mode The auto scan mode
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_ERROR_NONE Successful
- * @retval #WIFI_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_ERROR_INVALID_OPERATION Invalid operation
- * @retval #WIFI_ERROR_PERMISSION_DENIED Permission Denied
- * @pre This API needs wifi_initialize() before use.
- */
-int wifi_manager_set_autoscan_mode(wifi_manager_h wifi,
- wifi_manager_autoscan_mode_e mode);
-
-/**
- * @brief Gets the autoscan mode.
- * @since_tizen 4.0
- *
- * @param[in] wifi The Wi-Fi handle
- * @param[out] mode The mode of autoscan
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
- */
-int wifi_manager_get_autoscan_mode(wifi_manager_h wifi,
- wifi_manager_autoscan_mode_e *mode);
-
-/**
- * @brief Flush BSS
- * @since_tizen 4.0
- *
- * @param[in] wifi The Wi-Fi handle
- *
- * @return 0 on success, otherwise negative error value.
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
- */
-int wifi_manager_flush_bss(wifi_manager_h wifi);
-
-/**
- * @brief Sets auto connection mode(enable or disable) for all Wi-Fi profile.
- * @since_tizen 4.0
- *
- * @param[in] wifi The Wi-Fi handle
- * @param[in] connect_mode The mode of auto connection
- *
- * @return 0 on success, otherwise negative error value.
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
- */
-int wifi_manager_set_auto_connect(wifi_manager_h wifi, int connect_mode);
-
-/**
- * @brief Gets auto connection mode(enable or disable) for all Wi-Fi profile.
- * @since_tizen 4.0
- *
- * @param[in] wifi The Wi-Fi handle
- * @param[out] connect_mode The mode of auto connection
- *
- * @return 0 on success, otherwise negative error value.
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
- */
-int wifi_manager_get_auto_connect(wifi_manager_h wifi, int *connect_mode);
-
-/**
- * @brief Sets enables or disables auto-connection of the AP.
- * @details If an AP is connected, then connection information will be stored.
- * By default, the stored AP can be connected automatically when it found, until disabling auto-connection.
- * @since_tizen 5.0
- *
- * @param[in] ap The access point handle
- * @param[in] autoconnect true when enabled and false when disabled
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied
- * @pre This API needs wifi_manager_initialize() and wifi_manager_activate() before use.
- */
-int wifi_manager_ap_set_auto_connect(wifi_manager_ap_h ap, bool autoconnect);
-
-/**
- * @brief Gets enables or disables auto-connection of the AP.
- * @details If an AP is connected, then connection information will be stored.
- * By default, the stored AP can be connected automatically when it found, until disabling auto-connection.
- * @since_tizen 5.0
- *
- * @param[in] ap The access point handle
- * @param[out] autoconnect true when enabled and false when disabled
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied
- * @pre This API needs wifi_manager_initialize() and wifi_manager_activate() before use.
- */
-int wifi_manager_ap_get_auto_connect(wifi_manager_ap_h ap, bool *autoconnect);
-
-
-/**
- * @brief Changes the IP conflict detection period in seconds.
- * @since_tizen 5.0
- *
- * @param[in] wifi The Wi-Fi handle
- * @param[in] initial_time The period time in seconds of the ARP detect ping
- *
- * @return @c 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission denied
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
- */
-int wifi_manager_set_ip_conflict_period(wifi_manager_h wifi, unsigned int initial_time);
-
-/**
- * @brief Gets the IP conflict detection period in seconds.
- * @since_tizen 5.0
- *
- * @param[in] wifi The Wi-Fi handle
- * @param[out] initial_time The period time in seconds of the ARP detect ping
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
- */
-int wifi_manager_get_ip_conflict_period(wifi_manager_h wifi, unsigned int *initial_time);
-
-/**
- * @brief Called when the Netlink scan is finished.
- * @since_tizen 5.0
- * @param[in] error_code The error code
- * @param[in] user_data The user data passed from the callback registration function
- * @see wifi_manager_netlink_scan()
- */
-typedef void(*wifi_manager_netlink_scan_finished_cb)(wifi_manager_error_e error_code, void *user_data);
-
-/**
- * @brief Gets the result of the netlink scan (i.e.BSSID, ESSID, Frequency, RSSI, VSIE).
- * @details If tethering is enabled in device then wlan interface is available but
- * wifi module is in deactivated state and wpa-supplicant service is not active. So
- * in this case to search available APs wifi_manager_netlink_scan() API will be used.
- * @since_tizen 5.0
- * @privlevel public
- * @privilege %http://tizen.org/privilege/network.get
- * @param[in] wifi The Wi-Fi handle
- * @param[in] callback The callback to be called
- * @param[in] user_data The user data passed to the callback function
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
- * @post This function invokes wifi_manager_found_ap_cb().
- * @see wifi_manager_netlink_scan()
- */
-int wifi_manager_foreach_found_netlink_scan_ap(wifi_manager_h wifi,
- wifi_manager_found_ap_cb callback, void *user_data);
-
-/**
- * @brief Starts netlink scan asynchronously.
- * @details If tethering is enabled in device then wlan interface is available but
- * wifi module is in deactivated state and wpa-supplicant service is not active. So
- * in this case to search available APs use wifi_manager_netlink_scan() API.
- * @since_tizen 5.0
- * @privlevel public
- * @privilege %http://tizen.org/privilege/network.set \n
- * %http://tizen.org/privilege/network.get
- * @remarks This function needs both privileges.
- * @param[in] wifi The Wi-Fi handle
- * @param[in] callback The callback function to be called
- * @param[in] user_data The user data passed to the callback function
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION Invalid operation
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
- * @post This function invokes wifi_manager_netlink_scan_finished_cb().
- */
-int wifi_manager_netlink_scan(wifi_manager_h wifi,
- wifi_manager_netlink_scan_finished_cb callback, void *user_data);
-
-/**
-* @}
-*/
-
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __TIZEN_WIFI_MANAGER_EXTENSION_H__ */
Name: capi-network-wifi-manager
Summary: Network Wi-Fi library in TIZEN C API
-Version: 1.0.22
+Version: 1.0.23
Release: 1
Group: System/Network
License: Apache-2.0
#include "network_internal.h"
#include "wifi_internal.h"
-#include "wifi_manager_extension.h"
#define WIFI_MAC_ADDR_LENGTH 17
#define WIFI_MAC_ADDR_PATH "/sys/class/net/wlan0/address"
#include <signal.h>
#include <assert.h>
#include <wifi-manager.h>
+#include <wifi-manager-extension.h>
#include <tizen_error.h>
-#include "wifi_manager_extension.h"
#define LOG_RED "\033[0;31m"
#define LOG_GREEN "\033[0;32m"