/**
* @brief Gets the WPS generated PIN code.
* @since_tizen 5.0
+ * @privlevel public
+ * @privilege http://tizen.org/privilege/network.get
* @remarks You must release @a wps_pin using free().
* @param[in] wifi The Wi-Fi handle
* @param[out] wps_pin The WPS PIN
* @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_wps_generated_pin(wifi_manager_h wifi, char **wps_pin);
}
rv = _wifi_get_wps_generated_pin(wps_pin);
+ if (rv == NET_ERR_ACCESS_DENIED) {
+ WIFI_LOG(WIFI_ERROR, "Access denied"); //LCOV_EXCL_LINE
+ __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE
+ return WIFI_MANAGER_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
+ } else if (rv != NET_ERR_NONE) {
+ WIFI_LOG(WIFI_ERROR, "wps generated pin number failed[%d]", rv); //LCOV_EXCL_LINE
+ __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE
+ return WIFI_MANAGER_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
+ }
return rv;
}