TDLS: Add new CAPI to enable TDLS Channel Switch Feature 05/124205/12
authorManeesh Jain <maneesh.jain@samsung.com>
Mon, 10 Apr 2017 13:34:19 +0000 (19:04 +0530)
committertaesub kim <taesub.kim@samsung.com>
Fri, 21 Apr 2017 06:34:38 +0000 (15:34 +0900)
a./ wifi_manager_tdls_enable_channel_switching()
b./ wifi_manager_tdls_diable_channel_switching()

Change-Id: If5f435c1dcacb5ed419c1159041c015fb8b41961
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
include/wifi-manager.h

index 2379651..58c4ca0 100755 (executable)
@@ -2995,6 +2995,52 @@ int wifi_manager_tdls_set_state_changed_cb(wifi_manager_h wifi,
  */
 int wifi_manager_tdls_unset_state_changed_cb(wifi_manager_h wifi);
 
+
+/**
+ * @brief Enables a TDLS channel switching request.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/network.set
+ *
+ * @param[in] wifi            The Wi-Fi handle
+ * @param[in] peer_mac_addr   The MAC address of the connected TDLS peer
+ * @param[in] freq            The new frequency [MHz]
+ *
+ * @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_tdls_enable_channel_switching(wifi_manager_h wifi,
+               const char *peer_mac_addr, int freq);
+
+
+/**
+ * @brief Disables a TDLS channel switching request.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/network.set
+ *
+ * @param[in] wifi            The Wi-Fi handle
+ * @param[in] peer_mac_addr   The MAC address of the connected TDLS peer
+ *
+ * @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_tdls_disable_channel_switching(wifi_manager_h wifi,
+               const char *peer_mac_addr);
+
+
+
+
 /**
  * @}
  */