bda88bfc42055ece0b581df8c0620236eb3bbe14
[platform/core/api/wifi.git] / src / net_wifi_ap.c
1 /*
2  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #include "net_wifi_private.h"
18
19 /* Wi-Fi AP ******************************************************************/
20 EXPORT_API int wifi_ap_create(const char* essid, wifi_ap_h* ap)
21 {
22         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_create");
23         return WIFI_ERROR_NOT_SUPPORTED;
24 }
25
26 EXPORT_API int wifi_ap_hidden_create(const char* essid, wifi_ap_h* ap)
27 {
28         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_hidden_create");
29         return WIFI_ERROR_NOT_SUPPORTED;
30 }
31
32 EXPORT_API int wifi_ap_destroy(wifi_ap_h ap)
33 {
34         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_destroy");
35         return WIFI_ERROR_NOT_SUPPORTED;
36 }
37
38 EXPORT_API int wifi_ap_clone(wifi_ap_h* cloned_ap, wifi_ap_h origin)
39 {
40         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_clone");
41         return WIFI_ERROR_NOT_SUPPORTED;
42 }
43
44 EXPORT_API int wifi_ap_refresh(wifi_ap_h ap)
45 {
46         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_refresh");
47         return WIFI_ERROR_NOT_SUPPORTED;
48 }
49
50 /* Wi-Fi network information *************************************************/
51 EXPORT_API int wifi_ap_get_essid(wifi_ap_h ap, char** essid)
52 {
53         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_essid");
54         return WIFI_ERROR_NOT_SUPPORTED;
55 }
56
57 EXPORT_API int wifi_ap_get_bssid(wifi_ap_h ap, char** bssid)
58 {
59         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_bssid");
60         return WIFI_ERROR_NOT_SUPPORTED;
61 }
62
63 EXPORT_API int wifi_ap_get_rssi(wifi_ap_h ap, int* rssi)
64 {
65         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_rssi");
66         return WIFI_ERROR_NOT_SUPPORTED;
67 }
68
69 EXPORT_API int wifi_ap_get_frequency(wifi_ap_h ap, int* frequency)
70 {
71         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_frequency");
72         return WIFI_ERROR_NOT_SUPPORTED;
73 }
74
75 EXPORT_API int wifi_ap_get_max_speed(wifi_ap_h ap, int* max_speed)
76 {
77         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_max_speed");
78         return WIFI_ERROR_NOT_SUPPORTED;
79 }
80
81 EXPORT_API int wifi_ap_is_favorite(wifi_ap_h ap, bool* favorite)
82 {
83         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_is_favorite");
84         return WIFI_ERROR_NOT_SUPPORTED;
85 }
86
87 EXPORT_API int wifi_ap_is_passpoint(wifi_ap_h ap, bool* passpoint)
88 {
89         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_is_passpoint");
90         return WIFI_ERROR_NOT_SUPPORTED;
91 }
92
93 EXPORT_API int wifi_ap_get_connection_state(wifi_ap_h ap, wifi_connection_state_e* state)
94 {
95         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_connection_state");
96         return WIFI_ERROR_NOT_SUPPORTED;
97 }
98
99 EXPORT_API int wifi_ap_get_ip_config_type(wifi_ap_h ap, wifi_address_family_e address_family, wifi_ip_config_type_e* type)
100 {
101         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_ip_config_type");
102         return WIFI_ERROR_NOT_SUPPORTED;
103 }
104
105 EXPORT_API int wifi_ap_set_ip_config_type(wifi_ap_h ap, wifi_address_family_e address_family, wifi_ip_config_type_e type)
106 {
107         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_ip_config_type");
108         return WIFI_ERROR_NOT_SUPPORTED;
109 }
110
111 EXPORT_API int wifi_ap_get_ip_address(wifi_ap_h ap, wifi_address_family_e address_family, char** ip_address)
112 {
113         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_ip_address");
114         return WIFI_ERROR_NOT_SUPPORTED;
115 }
116
117 EXPORT_API int wifi_ap_set_ip_address(wifi_ap_h ap, wifi_address_family_e address_family, const char* ip_address)
118 {
119         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_ip_address");
120         return WIFI_ERROR_NOT_SUPPORTED;
121 }
122
123 EXPORT_API int wifi_ap_get_subnet_mask(wifi_ap_h ap, wifi_address_family_e address_family, char** subnet_mask)
124 {
125         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_subnet_mask");
126         return WIFI_ERROR_NOT_SUPPORTED;
127 }
128
129 EXPORT_API int wifi_ap_set_subnet_mask(wifi_ap_h ap, wifi_address_family_e address_family, const char* subnet_mask)
130 {
131         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_subnet_mask");
132         return WIFI_ERROR_NOT_SUPPORTED;
133 }
134
135 EXPORT_API int wifi_ap_get_gateway_address(wifi_ap_h ap, wifi_address_family_e address_family, char** gateway_address)
136 {
137         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_gateway_address");
138         return WIFI_ERROR_NOT_SUPPORTED;
139 }
140
141 EXPORT_API int wifi_ap_set_gateway_address(wifi_ap_h ap, wifi_address_family_e address_family, const char* gateway_address)
142 {
143         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_gateway_address");
144         return WIFI_ERROR_NOT_SUPPORTED;
145 }
146
147 EXPORT_API int wifi_ap_get_proxy_address(wifi_ap_h ap, wifi_address_family_e address_family, char** proxy_address)
148 {
149         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_proxy_address");
150         return WIFI_ERROR_NOT_SUPPORTED;
151 }
152
153 EXPORT_API int wifi_ap_set_proxy_address(wifi_ap_h ap, wifi_address_family_e address_family, const char* proxy_address)
154 {
155         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_proxy_address");
156         return WIFI_ERROR_NOT_SUPPORTED;
157 }
158
159 EXPORT_API int wifi_ap_get_proxy_type(wifi_ap_h ap, wifi_proxy_type_e* type)
160 {
161         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_proxy_type");
162         return WIFI_ERROR_NOT_SUPPORTED;
163 }
164
165 EXPORT_API int wifi_ap_set_proxy_type(wifi_ap_h ap, wifi_proxy_type_e proxy_type)
166 {
167         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_proxy_type");
168         return WIFI_ERROR_NOT_SUPPORTED;
169 }
170
171 EXPORT_API int wifi_ap_get_dns_address(wifi_ap_h ap, int order, wifi_address_family_e address_family, char** dns_address)
172 {
173         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_dns_address");
174         return WIFI_ERROR_NOT_SUPPORTED;
175 }
176
177 EXPORT_API int wifi_ap_set_dns_address(wifi_ap_h ap, int order, wifi_address_family_e address_family, const char* dns_address)
178 {
179         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_dns_address");
180         return WIFI_ERROR_NOT_SUPPORTED;
181 }
182
183 /* Wi-Fi security information ************************************************/
184 EXPORT_API int wifi_ap_get_security_type(wifi_ap_h ap, wifi_security_type_e* type)
185 {
186         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_security_type");
187         return WIFI_ERROR_NOT_SUPPORTED;
188 }
189
190 EXPORT_API int wifi_ap_set_security_type(wifi_ap_h ap, wifi_security_type_e type)
191 {
192         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_security_type");
193         return WIFI_ERROR_NOT_SUPPORTED;
194 }
195
196 EXPORT_API int wifi_ap_get_encryption_type(wifi_ap_h ap, wifi_encryption_type_e* type)
197 {
198         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_encryption_type");
199         return WIFI_ERROR_NOT_SUPPORTED;
200 }
201
202 EXPORT_API int wifi_ap_set_encryption_type(wifi_ap_h ap, wifi_encryption_type_e type)
203 {
204         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_encryption_type");
205         return WIFI_ERROR_NOT_SUPPORTED;
206 }
207
208 EXPORT_API int wifi_ap_is_passphrase_required(wifi_ap_h ap, bool* required)
209 {
210         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_is_passphrase_required");
211         return WIFI_ERROR_NOT_SUPPORTED;
212 }
213
214 EXPORT_API int wifi_ap_set_passphrase(wifi_ap_h ap, const char* passphrase)
215 {
216         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_passphrase");
217         return WIFI_ERROR_NOT_SUPPORTED;
218 }
219
220 EXPORT_API int wifi_ap_is_wps_supported(wifi_ap_h ap, bool* supported)
221 {
222         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_is_wps_supported");
223         return WIFI_ERROR_NOT_SUPPORTED;
224 }
225
226 /* Wi-Fi EAP *****************************************************************/
227 EXPORT_API int wifi_ap_set_eap_passphrase(wifi_ap_h ap, const char* user_name, const char* password)
228 {
229         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_eap_passphrase");
230         return WIFI_ERROR_NOT_SUPPORTED;
231 }
232
233 EXPORT_API int wifi_ap_get_eap_passphrase(wifi_ap_h ap, char** user_name, bool* is_password_set)
234 {
235         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_eap_passphrase");
236         return WIFI_ERROR_NOT_SUPPORTED;
237 }
238
239 EXPORT_API int wifi_ap_get_eap_ca_cert_file(wifi_ap_h ap, char** file)
240 {
241         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_eap_ca_cert_file");
242         return WIFI_ERROR_NOT_SUPPORTED;
243 }
244
245 EXPORT_API int wifi_ap_set_eap_ca_cert_file(wifi_ap_h ap, const char* file)
246 {
247         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_eap_ca_cert_file");
248         return WIFI_ERROR_NOT_SUPPORTED;
249 }
250
251 EXPORT_API int wifi_ap_get_eap_client_cert_file(wifi_ap_h ap, char** file)
252 {
253         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_eap_client_cert_file");
254         return WIFI_ERROR_NOT_SUPPORTED;
255 }
256
257 EXPORT_API int wifi_ap_set_eap_client_cert_file(wifi_ap_h ap, const char* file)
258 {
259         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_eap_client_cert_file");
260         return WIFI_ERROR_NOT_SUPPORTED;
261 }
262
263 EXPORT_API int wifi_ap_get_eap_private_key_file(wifi_ap_h ap, char** file)
264 {
265         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_eap_private_key_file");
266         return WIFI_ERROR_NOT_SUPPORTED;
267 }
268
269 EXPORT_API int wifi_ap_set_eap_private_key_info(wifi_ap_h ap, const char* file, const char* password)
270 {
271         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_eap_private_key_info");
272         return WIFI_ERROR_NOT_SUPPORTED;
273 }
274
275 EXPORT_API int wifi_ap_get_eap_type(wifi_ap_h ap, wifi_eap_type_e* type)
276 {
277         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_eap_type");
278         return WIFI_ERROR_NOT_SUPPORTED;
279 }
280
281 EXPORT_API int wifi_ap_set_eap_type(wifi_ap_h ap, wifi_eap_type_e type)
282 {
283         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_eap_type");
284         return WIFI_ERROR_NOT_SUPPORTED;
285 }
286
287 EXPORT_API int wifi_ap_get_eap_auth_type(wifi_ap_h ap, wifi_eap_auth_type_e* type)
288 {
289         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_get_eap_auth_type");
290         return WIFI_ERROR_NOT_SUPPORTED;
291 }
292
293 EXPORT_API int wifi_ap_set_eap_auth_type(wifi_ap_h ap, wifi_eap_auth_type_e type)
294 {
295         DEPRECATED_LOG(__FUNCTION__, "wifi_manager_ap_set_eap_auth_type");
296         return WIFI_ERROR_NOT_SUPPORTED;
297 }