20 #ifndef _WIFIMGR_IARMIF_H
21 #define _WIFIMGR_IARMIF_H
32 #define MODULE_NAME "WIFI_MODULE"
33 #define SUB_MODULE_NAME "LNF"
34 #define MAX_FILE_PATH_LEN 4096
36 #define IARM_BUS_NM_SRV_MGR_NAME "NET_SRV_MGR"
38 #define BUFF_LENGTH_64 65
39 #define BUFF_LENGTH_256 257
43 #define BUFF_LENGTH_32 33
44 #define BUFF_LENGTH_4 4
45 #define SSID_SIZE BUFF_LENGTH_32
47 #define BUFF_LENGTH_24 24
48 #define PASSPHRASE_BUFF 385
49 #define MAX_SSIDLIST_BUF (48*1024)
51 #define LNF_NON_SECURE_SSID "A16746DF2466410CA2ED9FB2E32FE7D9"
52 #define LNF_SECURE_SSID "D375C1D9F8B041E2A1995B784064977B"
55 #define IARM_BUS_WIFI_MGR_API_getAvailableSSIDs "getAvailableSSIDs"
56 #define IARM_BUS_WIFI_MGR_API_getAvailableSSIDsWithName "getAvailableSSIDsWithName"
57 #define IARM_BUS_WIFI_MGR_API_getAvailableSSIDsAsync "getAvailableSSIDsAsync"
58 #define IARM_BUS_WIFI_MGR_API_getAvailableSSIDsAsyncIncr "getAvailableSSIDsAsyncIncr"
59 #define IARM_BUS_WIFI_MGR_API_stopProgressiveWifiScanning "stopProgressiveWifiScanning"
60 #define IARM_BUS_WIFI_MGR_API_getCurrentState "getCurrentState"
61 #define IARM_BUS_WIFI_MGR_API_getConnectedSSID "getConnectedSSID"
62 #define IARM_BUS_WIFI_MGR_API_cancelWPSPairing "cancelWPSPairing"
63 #define IARM_BUS_WIFI_MGR_API_getPairedSSID "getPairedSSID"
64 #define IARM_BUS_WIFI_MGR_API_setEnabled "setEnabled"
65 #define IARM_BUS_WIFI_MGR_API_connect "connect"
66 #define IARM_BUS_WIFI_MGR_API_initiateWPSPairing "initiateWPSPairing"
67 #define IARM_BUS_WIFI_MGR_API_initiateWPSPairing2 "initiateWPSPairing2"
68 #define IARM_BUS_WIFI_MGR_API_saveSSID "saveSSID"
69 #define IARM_BUS_WIFI_MGR_API_clearSSID "clearSSID"
70 #define IARM_BUS_WIFI_MGR_API_disconnectSSID "disconnectSSID"
71 #define IARM_BUS_WIFI_MGR_API_getPairedSSID "getPairedSSID"
72 #define IARM_BUS_WIFI_MGR_API_isPaired "isPaired"
73 #define IARM_BUS_WIFI_MGR_API_getLNFState "getLNFState"
74 #define IARM_BUS_WIFI_MGR_API_isStopLNFWhileDisconnected "isStopLNFWhileDisconnected"
75 #define IARM_BUS_WIFI_MGR_API_getConnectionType "getConnectionType"
76 #define IARM_BUS_WIFI_MGR_API_getSwitchToPrivateResults "getSwitchToPrivateResults"
77 #define IARM_BUS_WIFI_MGR_API_isAutoSwitchToPrivateEnabled "isAutoSwitchToPrivateEnabled"
78 #define IARM_BUS_WIFI_MGR_API_getPairedSSIDInfo "getPairedSSIDInfo"
82 #define IARM_BUS_WIFI_MGR_API_getRadioProps "getRadioProps"
83 #define IARM_BUS_WIFI_MGR_API_getRadioStatsProps "getRadioStatsProps"
84 #define IARM_BUS_WIFI_MGR_API_setRadioProps "setRadioProps"
85 #define IARM_BUS_WIFI_MGR_API_getSSIDProps "getSSIDProps"
86 #define IARM_BUS_WIFI_MGR_API_getEndPointProps "getEndPointProps"
88 #ifdef WIFI_CLIENT_ROAMING
89 #define IARM_BUS_WIFI_MGR_API_getRoamingCtrls "getRoamingCtrls"
90 #define IARM_BUS_WIFI_MGR_API_setRoamingCtrls "setRoamingCtrls"
115 typedef enum _WiFiConnectionTypeCode_t {
122 } WiFiConnectionTypeCode_t;
138 typedef enum _SsidSecurity
140 NET_WIFI_SECURITY_NONE = 0,
141 NET_WIFI_SECURITY_WEP_64,
142 NET_WIFI_SECURITY_WEP_128,
143 NET_WIFI_SECURITY_WPA_PSK_TKIP,
144 NET_WIFI_SECURITY_WPA_PSK_AES,
145 NET_WIFI_SECURITY_WPA2_PSK_TKIP,
146 NET_WIFI_SECURITY_WPA2_PSK_AES,
147 NET_WIFI_SECURITY_WPA_ENTERPRISE_TKIP,
148 NET_WIFI_SECURITY_WPA_ENTERPRISE_AES,
149 NET_WIFI_SECURITY_WPA2_ENTERPRISE_TKIP,
150 NET_WIFI_SECURITY_WPA2_ENTERPRISE_AES,
151 NET_WIFI_SECURITY_WPA_WPA2_PSK,
152 NET_WIFI_SECURITY_WPA_WPA2_ENTERPRISE,
153 NET_WIFI_SECURITY_WPA3_PSK_AES,
154 NET_WIFI_SECURITY_WPA3_SAE,
155 NET_WIFI_SECURITY_NOT_SUPPORTED = 99,
158 typedef enum _eConnectionMethodType {
160 SSID_SECLECTION_CONNECT
166 char ssid[SSID_SIZE];
167 char bssid[BSSID_BUFF];
168 SsidSecurity security;
191 char ssid[SSID_SIZE];
192 char bssid[BSSID_BUFF];
193 char security[BUFF_LENGTH_64];
194 char passphrase[PASSPHRASE_BUFF];
195 SsidSecurity security_mode;
196 char security_WEPKey[PASSPHRASE_BUFF];
197 char security_PSK[PASSPHRASE_BUFF];
198 char eapIdentity[BUFF_LENGTH_256];
199 char carootcert[MAX_FILE_PATH_LEN];
200 char clientcert[MAX_FILE_PATH_LEN];
201 char privatekey[MAX_FILE_PATH_LEN];
208 eConnMethodType conn_type;
229 SsidSecurity secMode;
234 unsigned char currTime[BUFF_LENGTH_32];
235 unsigned char lnfError;
253 char SSID[SSID_SIZE+1];
268 WiFiConnectionTypeCode_t connectionType;
269 struct getPairedSSID {
270 char ssid[SSID_SIZE];
287 struct _WIFI_STATECHANGE_DATA {
293 struct _WIFI_SSID_LIST {
294 char ssid_list[MAX_SSIDLIST_BUF];
302 IARM_BUS_WIFI_MGR_EVENT_onWIFIStateChanged = 1,
303 IARM_BUS_WIFI_MGR_EVENT_onError,
304 IARM_BUS_WIFI_MGR_EVENT_onSSIDsChanged,
305 IARM_BUS_WIFI_MGR_EVENT_onAvailableSSIDs,
306 IARM_BUS_WIFI_MGR_EVENT_onAvailableSSIDsIncr,
313 char status[BUFF_MIN];
314 char alias[BUFF_LENGTH_64];
315 char name[BUFF_LENGTH_24];
316 unsigned int lastChange;
317 char lowerLayers[BUFF_LENGTH_64];
319 unsigned int maxBitRate;
320 char supportedFrequencyBands[BUFF_LENGTH_24];
321 char operatingFrequencyBand[BUFF_LENGTH_24];
322 char supportedStandards[BUFF_LENGTH_24];
323 char operatingStandards[BUFF_LENGTH_24];
324 char possibleChannels[BUFF_LENGTH_256];
325 char channelsInUse[BUFF_LENGTH_24];
326 unsigned int channel;
327 bool autoChannelSupported;
328 bool autoChannelEnable;
329 unsigned int autoChannelRefreshPeriod;
330 char operatingChannelBandwidth[BUFF_LENGTH_24];
331 char extensionChannel[BUFF_LENGTH_24];
332 char guardInterval[BUFF_LENGTH_24];
334 char transmitPowerSupported[BUFF_LENGTH_64];
336 bool ieee80211hSupported;
337 bool ieeee80211hEnabled;
338 char regulatoryDomain[BUFF_LENGTH_4];
344 char status[BUFF_MIN];
345 char name[BUFF_LENGTH_32];
346 char bssid[BSSID_BUFF];
347 char macaddr[BUFF_MAC];
348 char ssid[SSID_SIZE];
353 unsigned long bytesSent;
354 unsigned long bytesReceived;
355 unsigned long packetsSent;
356 unsigned long packetsReceived;
357 unsigned int errorsSent;
358 unsigned int errorsReceived;
359 unsigned int discardPacketsSent;
360 unsigned int discardPacketsReceived;
361 unsigned int plcErrorCount;
362 unsigned int fcsErrorCount;
363 unsigned int invalidMACCount;
364 unsigned int packetsOtherReceived;
365 unsigned int noiseFloor;
368 typedef enum _IARM_Bus_WiFiSrvMgr_NumEntry_t {
369 IARM_BUS_WIFI_MGR_SSID_Tbl_Props = 0,
370 IARM_BUS_WIFI_MGR_SSIDEntry = 1,
371 IARM_BUS_WIFI_MGR_RadioEntry = 2,
372 } IARM_Bus_WiFiSrvMgr_NumEntry_t;
375 unsigned long lastDataDownlinkRate;
376 unsigned long lastDataUplinkRate;
378 unsigned long retransmissions;
382 char modesSupported[BUFF_LENGTH_256];
387 char status[BUFF_LENGTH_64];
388 char alias[BUFF_LENGTH_64];
389 char ProfileReference[BUFF_LENGTH_256];
390 char SSIDReference[BUFF_LENGTH_256];
391 unsigned int ProfileNumberOfEntries;
398 unsigned int radioNumberOfEntries;
403 struct _Radio_Stats_Data {
407 unsigned int ssidNumberOfEntries;
412 unsigned int endPointNumberOfEntries;
416 IARM_Bus_WiFiSrvMgr_NumEntry_t numEntry;
419 typedef enum _NetworkManager_WiFi_EventId_t {
420 IARM_BUS_NETWORK_MANAGER_EVENT_SWITCH_TO_PRIVATE = 5,
421 IARM_BUS_NETWORK_MANAGER_EVENT_STOP_LNF_WHILE_DISCONNECTED,
422 IARM_BUS_NETWORK_MANAGER_EVENT_AUTO_SWITCH_TO_PRIVATE_ENABLED,
423 IARM_BUS_NETWORK_MANAGER_EVENT_MAX,
424 } IARM_Bus_NetworkManager_WiFi_EventId_t;
429 #ifdef WIFI_CLIENT_ROAMING
430 typedef enum _WiFi_Roaming_Status_t {
431 ROAM_PARAM_SUCCESS = 0,
432 ROAM_PARAM_FAILURE = -1,
433 ROAM_PARAM_DISABLED = -2
434 } WiFi_Roaming_Status_t;
436 typedef struct _WiFi_RoamingCtrl_t {
437 WiFi_Roaming_Status_t status;
439 bool roaming80211kvrEnable;
440 bool selfSteerOverride;
441 int preassnBestThreshold;
442 int preassnBestDelta;
443 int postAssnLevelDeltaConnected;
444 int postAssnLevelDeltaDisconnected;
445 int postAssnSelfSteerThreshold;
446 int postAssnSelfSteerTimeframe;
447 int postAssnBackOffTime;
449 int postAssnAPcontrolThresholdLevel;
450 int postAssnAPcontrolTimeframe;
452 } WiFi_RoamingCtrl_t;