2 * Copyright (c) 2017 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.
22 class Wifi:public GDbus {
27 error_e GetWifiState(char *state);
28 error_e IsIpConflictDetectEnabled(gboolean *state);
29 error_e SetBgscan(int scan_mode);
30 error_e GetAutoscan(gboolean *state);
31 error_e GetIpConflictState(int *state);
32 error_e GetIpConflictPeriod(int *period);
33 error_e GetAutoscanmode(int *autoscanmode);
34 error_e NetlinkScan(const char *ssid);
35 error_e RequestWpsConnect(const char *param);
36 error_e GetPasspoint(int *enable);
37 error_e SetPasspoint(int enable);
38 error_e GetConfigIds(void);
39 error_e SaveConfiguration(const char *config_id, const char *name,
40 const char *ssid, const char *passphrase);
41 error_e SaveEapConfiguration(const char *config_id, const char *name,
43 error_e SetIpConflictPeriod(unsigned int time);
44 error_e RemoveConfiguration(const char *config_id);
45 error_e LoadConfiguration(const char *config_id);
46 error_e LoadEapConfiguration(const char *config_id);
47 error_e SetConfigField(const char *config_id, const char *key,
49 error_e GetConfigPassphrase(const char *config_id, char *password);
50 error_e CreateEapConfig(const char *profile_name);
51 error_e DeleteEapConfig(const char *profile_name);
52 error_e IpConflictSetEnable(bool detect);
53 error_e GetSimImsi(char *imsi);
54 error_e ReqSimAuth(const unsigned char *rand_data, unsigned int length,
56 error_e ReqAkaAuth(const unsigned char *rand_data, int rand_length,
57 const unsigned char *auth_data, int auth_length, gboolean *result);
58 error_e GetSimAuth(const unsigned char *auth_data, unsigned int length);
59 error_e CheckBlackList(const char *name, const char *sec_type,
60 const char *eap, gboolean *allowed);
61 error_e TdlsDisconnect(const char *peer_mac_address, int *result);
62 error_e TdlsConnectedPeer(char *peer_mac_address);
63 error_e TdlsConnect(const char *peer_mac_address, int *result);
64 error_e TdlsDiscover(const char *peer_mac_address, int *result);
65 error_e TdlsChannelSwitch(const char *peer_mac_address, int freq, int *result);
66 error_e TdlsCancelChannelSwitch(const char *peer_mac_address, int *result);
67 error_e AddVsie(int frame_id, const char *vsie);
68 error_e GetVsie(int frame_id, char *vsie);
69 error_e RemoveVsie(int frame_id, const char *vsie);
70 error_e EncryptPassphrase(char **enc_data, const char *passphrase);
71 error_e DecryptPassphrase(const char *enc_data, char **passphrase);
72 error_e Stop(const char *device);
73 error_e Start(const char *device);
74 error_e LoadDriver(bool device_picker_test);
75 error_e RemoveDriver();
79 #endif /* __WIFI_H__ */