2 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __NET_WIFI_PRIVATE_H__
18 #define __NET_WIFI_PRIVATE_H__
25 #include <wifi-manager.h>
30 #endif /* __cplusplus */
33 #define LOG_TAG "CAPI_NETWORK_WIFI"
39 #define DEPRECATED_LOG(origin, substitution) \
41 LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed " \
42 "from next release. Use %s() instead.", origin, substitution); \
45 #define WIFI_LOG(log_level, format, args...) \
47 switch (log_level) { \
49 LOGE(format, ## args); \
52 LOGW(format, ## args); \
55 LOGI(format, ## args); \
59 #define SECURE_WIFI_LOG(log_level, format, args...) \
61 switch (log_level) { \
63 SECURE_LOGE(format, ## args); \
66 SECURE_LOGW(format, ## args); \
69 SECURE_LOGI(format, ## args); \
73 wifi_error_e convert_to_wifi_error(wifi_manager_error_e error);
74 wifi_security_type_e convert_to_wifi_security_type(wifi_manager_security_type_e type);
75 wifi_eap_type_e convert_to_wifi_eap_type(wifi_manager_eap_type_e type);
79 #endif /* __cplusplus */