RDK-B
wifi_hal_generic.h
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's LICENSE file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 /**********************************************************************
21  Notes:
22 
23  What is new for 3.0.1
24 
25  1. Added cli_activeNumSpatialStreams field to wifi_associated_dev3_t structure
26  in wifi_hal_generic.h file
27  2. Added cli_CapableNumSpatialStreams field to wifi_associated_dev_t structure
28  in wifi_hal_ap.h file
29 
30 **********************************************************************/
31 
32 #ifndef __WIFI_HAL_GENERIC_H__
33 #define __WIFI_HAL_GENERIC_H__
34 
35 #include <stddef.h>
36 
37 #ifdef __cplusplus
38 extern "C"{
39 #endif
40 
41 /**
42  * @addtogroup WIFI_HAL_TYPES
43  * @{
44  */
45 #ifndef ULLONG
46 #define ULLONG unsigned long long
47 #endif
48 
49 #ifndef ULONG
50 #define ULONG unsigned long
51 #endif
52 
53 #ifndef USHORT
54 #define USHORT unsigned short
55 #endif
56 
57 #ifndef BOOL
58 #define BOOL unsigned char
59 #endif
60 
61 #ifndef CHAR
62 #define CHAR char
63 #endif
64 
65 #ifndef UCHAR
66 #define UCHAR unsigned char
67 #endif
68 
69 #ifndef INT
70 #define INT int
71 #endif
72 
73 #ifndef UINT
74 #define UINT unsigned int
75 #endif
76 
77 #ifndef TRUE
78 #define TRUE 1
79 #endif
80 
81 #ifndef FALSE
82 #define FALSE 0
83 #endif
84 
85 #ifndef ENABLE
86 #define ENABLE 1
87 #endif
88 
89 #ifndef RETURN_OK
90 #define RETURN_OK 0
91 #endif
92 
93 #ifndef RETURN_ERR
94 #define RETURN_ERR -1
95 #endif
96 
97 
98 #define WIFI_HAL_SUCCESS 0
99 #define WIFI_HAL_ERROR -1
100 #define WIFI_HAL_INTERNAL_ERROR -2
101 #define WIFI_HAL_UNSUPPORTED -3
102 #define WIFI_HAL_INVALID_ARGUMENTS -4
103 #define WIFI_HAL_INVALID_VALUE -5
104 
105 
106 #ifndef RADIO_INDEX_1
107 #define RADIO_INDEX_1 1
108 #define RADIO_INDEX_2 2
109 #define RADIO_INDEX_3 3
110 
111 #define AP_INDEX_1 1
112 #define AP_INDEX_2 2
113 #define AP_INDEX_3 3
114 #define AP_INDEX_4 4
115 #define AP_INDEX_5 5
116 #define AP_INDEX_6 6
117 #define AP_INDEX_7 7
118 #define AP_INDEX_8 8
119 #define AP_INDEX_9 9
120 #define AP_INDEX_10 10
121 #define AP_INDEX_11 11
122 #define AP_INDEX_12 12
123 #define AP_INDEX_13 13
124 #define AP_INDEX_14 14
125 #define AP_INDEX_15 15
126 #define AP_INDEX_16 16
127 #define AP_INDEX_17 17
128 #define AP_INDEX_18 18
129 #define AP_INDEX_19 19
130 #define AP_INDEX_20 20
131 #define AP_INDEX_21 21
132 #define AP_INDEX_22 22
133 #define AP_INDEX_23 23
134 #define AP_INDEX_24 24
135 #endif
136 
137 
138 #ifdef WIFI_HAL_VERSION_3
139 #define MAX_NUM_RADIOS 3
140 #else
141 #define MAX_NUM_RADIOS 2
142 #endif
143 
144 #define MAX_NUM_VAP_PER_RADIO 8
145 
146 #define MAC_STR_LEN 18
147 #ifndef ETHER_ADDR_LEN
148 #define ETHER_ADDR_LEN 6
149 #endif /* ETHER_ADDR_LEN */
150 
151 #define ACL_MACADDR_SIZE 18
152 #define ACL_MACFLT_NUM 16
153 #define MAC_LIST_SIZE ( (ACL_MACADDR_SIZE * WL_MACADDR_SIZE) + 2 )
154 #define ACL_MAC_ARRAY_MAX 512
155 #define ASSOC_MAC_ARRAY_MAX 1024
156 #define SUPPORTED_STANDARDS_RADIO2_4GHZ "b,g,n"
157 #define SUPPORTED_STANDARDS_RADIO5GHZ "a,n,ac"
158 #define RESTORE_CNFG_FILE_NAME "/data/.nvram_restore_cfg.txt"
159 #define NVRAM_LINE_MAX (1024)
160 
161 //defines for HAL version 3.0.1
162 #define WIFI_HAL_MAJOR_VERSION 3 /**< This is the major verion of this HAL. */
163 #define WIFI_HAL_MINOR_VERSION 0 /**< This is the minor verson of the HAL. */
164 #define WIFI_HAL_MAINTENANCE_VERSION 1 /**< This is the maintenance version of the HAL. */
165 #define WIFI_HAL_VERSION (WIFI_HAL_MAJOR_VERSION *1000+ WIFI_HAL_MINOR_VERSION *10+ WIFI_HAL_MAINTENANCE_VERSION)
166 
167 #define MAX_NUM_TWT_SESSION 50 /**< Maximum number of TWT sessions for an AP (TODO to be defined) */
168 #define MAX_STA_PER_SESSION 100 /**< Maximum number of stations connected to a Broadcast TWT session (TODO to be defined) */
169 #define MAX_BSR 32
170 #define MAX_RU_ALLOCATIONS 74
171 
172 //Mode 1: When a client connect or associate message is received by the AP, then the WiFi HAL lay must invoke wifi_apAssociatedDevice_callback with event_type: CONN_NEW.
173 #define CONN_NEW 1
174 //Mode 2: If the AP status for a client is connected or associated and the AP receives a client connect or associate message from this client, wifi_apAssociatedDevice_callback need to be invoked from hal layer to notify RDKB with event_type: CONN_RENEW
175 #define CONN_RENEW 2
176 //Mode 3: If the AP changes a client’s status to “disconnected” due to the AP’s client inactivity timeout (RDKB could read this timeout from wifi_getRadioClientInactivityTimout ) and then the client re-connects or associates back to same AP , then the WiFi HAL layer must invoke a wifi_apAssociatedDevice_callback with event_type: CONN_RECONN_AFTER_INACTIVITY
177 #define CONN_RECONN_AFTER_INACTIVITY 3
178 
179 #define KI1_VER_MASK 0xf8
180 
181 #define KI1_PW_KEY 0x08
182 #define KI1_INSTALL 0x40
183 #define KI1_ACK 0x80
184 
185 #define KI1_MSG1_BITS (KI1_PW_KEY | KI1_ACK)
186 #define KI1_MSG3_BITS (KI1_PW_KEY | KI1_INSTALL|KI1_ACK)
187 
188 #define KI0_MIC 0x01
189 #define KI0_SECURE 0x02
190 #define KI0_ENCR 0x10
191 
192 #define KI0_MSG3_BITS (KI0_MIC | KI0_SECURE | KI0_ENCR)
193 #define KI0_MSG4_BITS (KI0_MIC | KI0_SECURE)
194 
195 #define KEY_MSG_1_OF_4(msg) \
196  ((((msg)->key_info[1] & KI1_VER_MASK) == KI1_MSG1_BITS) && ((msg)->key_info[0] == 0))
197 
198 #define KEY_MSG_2_OF_4(msg) \
199  ((((msg)->key_info[1] & KI1_VER_MASK) == KI1_PW_KEY) && ((msg)->key_info[0] == KI0_MIC))
200 
201 #define KEY_MSG_3_OF_4(msg) \
202  ((((msg)->key_info[1] & KI1_VER_MASK) == KI1_MSG3_BITS) && ((msg)->key_info[0] == KI0_MSG3_BITS))
203 
204 #define KEY_MSG_4_OF_4(msg) \
205  ((((msg)->key_info[1] & KI1_VER_MASK) == KI1_PW_KEY) && ((msg)->key_info[0] == KI0_MSG4_BITS))
206 
207 
208 /**********************************************************************
209  STRUCTURE DEFINITIONS
210 **********************************************************************/
211 typedef unsigned char mac_address_t[6];
212 typedef char mac_addr_str_t[18];
213 
215 typedef char ssid_t[32];
217 typedef unsigned int u_int32_t;
218 
219 typedef char nas_id_t[49];
220 typedef unsigned char r0r1_key_t[16];
221 typedef char r0r1_key_str_t[33];
222 
223 typedef char wifi_interface_name_t[32];
224 typedef char wifi_vap_name_t[64];
225 
226 typedef struct {
227  bssid_t bssid;
228  ssid_t ssid;
229  int rssi;
230  unsigned short caps;
231  unsigned int beacon_int;
232  unsigned int freq;
233  unsigned char ie[256];
234  size_t ie_len;
235 }__attribute__((packed)) wifi_bss_info_t;
236 
237 typedef enum {
241 
242 typedef struct {
244  union { /* network byte ordered */
245  UINT IPv4addr; /* 32-bit IPv4 address */
246  UCHAR IPv6addr[16]; /* 128-bit IPv6 address */
247  } u;
248 }__attribute__((packed)) ip_addr_t;
249 
250 typedef enum {
253 } eWifiEnable;
254 
255 /**
256  * @brief Wifi hal version
257  */
258 typedef struct {
261 }__attribute__((packed)) wifi_hal_version_t;
262 
263 /**
264  * @brief Wifi Frequency Band Types
265  */
266 typedef enum{
274 
275 #define MAX_NUM_FREQ_BAND 4
276 
277 /**
278  * @brief Wifi Channel Bandwidth Types
279  */
280 typedef enum{
287 
288 typedef struct {
291 }__attribute__((packed)) wifi_channel_t;
292 
293 #define MAX_CHANNELS 64
294 
295 /**
296  * @brief Channel list
297  */
298 typedef struct {
299  INT num_channels; /**< The number of available channels in channels_list. */
300  INT channels_list[MAX_CHANNELS]; /**< List of channels. */
301 }__attribute__((packed)) wifi_channels_list_t;
302 
303 /**
304  * @brief Wifi 802.11 variant Types
305  */
306 typedef enum {
316 
317 #define MAXNUMBEROFTRANSMIPOWERSUPPORTED 21
318 
319 /**
320  * @brief Radio transmit power supported list
321  */
322 typedef struct {
323  UINT transmitPowerSupported[MAXNUMBEROFTRANSMIPOWERSUPPORTED]; /**< List of transmit power supported. */
324  UINT numberOfElements; /**< The number of valid elements in transmitPowerSupported. */
325 }__attribute__((packed)) wifi_radio_trasmitPowerSupported_list_t;
326 
327 /**
328  * @brief Wifi supported bitrates
329  */
330 typedef enum {
331  WIFI_BITRATE_DEFAULT = 0x0001, /* WIFI_BITRATE_DEFAULT is used in the set api to default the bitrate configuration */
345 
346 #ifdef WIFI_HAL_RSN_SELECTOR
347 #undef WIFI_HAL_RSN_SELECTOR
348 #endif
349 #define WIFI_HAL_RSN_SELECTOR(a, b, c, d) \
350  ((((unsigned int) (a)) << 24) | (((unsigned int) (b)) << 16) | (((unsigned int) (c)) << 8) | \
351  (unsigned int) (d))
352 
353 #define WIFI_HAL_RSN_CIPHER_SUITE_NONE WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 0)
354 #define WIFI_HAL_RSN_CIPHER_SUITE_TKIP WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 2)
355 #if 0
356 #define WIFI_HAL_RSN_CIPHER_SUITE_WRAP WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 3)
357 #endif
358 #define WIFI_HAL_RSN_CIPHER_SUITE_CCMP WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 4)
359 #define WIFI_HAL_RSN_CIPHER_SUITE_AES_128_CMAC WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 6)
360 #define WIFI_HAL_RSN_CIPHER_SUITE_NO_GROUP_ADDRESSED WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 7)
361 #define WIFI_HAL_RSN_CIPHER_SUITE_GCMP WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 8)
362 #define WIFI_HAL_RSN_CIPHER_SUITE_GCMP_256 WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 9)
363 #define WIFI_HAL_RSN_CIPHER_SUITE_CCMP_256 WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 10)
364 #define WIFI_HAL_RSN_CIPHER_SUITE_BIP_GMAC_128 WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 11)
365 #define WIFI_HAL_RSN_CIPHER_SUITE_BIP_GMAC_256 WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 12)
366 #define WIFI_HAL_RSN_CIPHER_SUITE_BIP_CMAC_256 WIFI_HAL_RSN_SELECTOR(0x00, 0x0f, 0xac, 13)
367 
368 #define WIFI_CIPHER_CAPA_ENC_WEP40 0x00000001
369 #define WIFI_CIPHER_CAPA_ENC_WEP104 0x00000002
370 #define WIFI_CIPHER_CAPA_ENC_TKIP 0x00000004
371 #define WIFI_CIPHER_CAPA_ENC_CCMP 0x00000008
372 #define WIFI_CIPHER_CAPA_ENC_WEP128 0x00000010
373 #define WIFI_CIPHER_CAPA_ENC_GCMP 0x00000020
374 #define WIFI_CIPHER_CAPA_ENC_GCMP_256 0x00000040
375 #define WIFI_CIPHER_CAPA_ENC_CCMP_256 0x00000080
376 #define WIFI_CIPHER_CAPA_ENC_BIP 0x00000100
377 #define WIFI_CIPHER_CAPA_ENC_BIP_GMAC_128 0x00000200
378 #define WIFI_CIPHER_CAPA_ENC_BIP_GMAC_256 0x00000400
379 #define WIFI_CIPHER_CAPA_ENC_BIP_CMAC_256 0x00000800
380 #define WIFI_CIPHER_CAPA_ENC_GTK_NOT_USED 0x00001000
381 
382 typedef enum {
383  wifi_countrycode_AC, /**< ASCENSION ISLAND */
384  wifi_countrycode_AD, /**< ANDORRA */
385  wifi_countrycode_AE, /**< UNITED ARAB EMIRATES */
386  wifi_countrycode_AF, /**< AFGHANISTAN */
387  wifi_countrycode_AG, /**< ANTIGUA AND BARBUDA */
388  wifi_countrycode_AI, /**< ANGUILLA */
389  wifi_countrycode_AL, /**< ALBANIA */
390  wifi_countrycode_AM, /**< ARMENIA */
391  wifi_countrycode_AN, /**< NETHERLANDS ANTILLES */
392  wifi_countrycode_AO, /**< ANGOLA */
393  wifi_countrycode_AQ, /**< ANTARCTICA */
394  wifi_countrycode_AR, /**< ARGENTINA */
395  wifi_countrycode_AS, /**< AMERICAN SAMOA */
396  wifi_countrycode_AT, /**< AUSTRIA */
397  wifi_countrycode_AU, /**< AUSTRALIA */
398  wifi_countrycode_AW, /**< ARUBA */
399  wifi_countrycode_AZ, /**< AZERBAIJAN */
400  wifi_countrycode_BA, /**< BOSNIA AND HERZEGOVINA */
401  wifi_countrycode_BB, /**< BARBADOS */
402  wifi_countrycode_BD, /**< BANGLADESH */
403  wifi_countrycode_BE, /**< BELGIUM */
404  wifi_countrycode_BF, /**< BURKINA FASO */
405  wifi_countrycode_BG, /**< BULGARIA */
406  wifi_countrycode_BH, /**< BAHRAIN */
407  wifi_countrycode_BI, /**< BURUNDI */
408  wifi_countrycode_BJ, /**< BENIN */
409  wifi_countrycode_BM, /**< BERMUDA */
410  wifi_countrycode_BN, /**< BRUNEI DARUSSALAM */
411  wifi_countrycode_BO, /**< BOLIVIA */
412  wifi_countrycode_BR, /**< BRAZIL */
413  wifi_countrycode_BS, /**< BAHAMAS */
414  wifi_countrycode_BT, /**< BHUTAN */
415  wifi_countrycode_BV, /**< BOUVET ISLAND */
416  wifi_countrycode_BW, /**< BOTSWANA */
417  wifi_countrycode_BY, /**< BELARUS */
418  wifi_countrycode_BZ, /**< BELIZE */
419  wifi_countrycode_CA, /**< CANADA */
420  wifi_countrycode_CC, /**< COCOS (KEELING) ISLANDS */
421  wifi_countrycode_CD, /**< CONGO, THE DEMOCRATIC REPUBLIC OF THE */
422  wifi_countrycode_CF, /**< CENTRAL AFRICAN REPUBLIC */
423  wifi_countrycode_CG, /**< CONGO */
424  wifi_countrycode_CH, /**< SWITZERLAND */
425  wifi_countrycode_CI, /**< COTE D'IVOIRE */
426  wifi_countrycode_CK, /**< COOK ISLANDS */
427  wifi_countrycode_CL, /**< CHILE */
428  wifi_countrycode_CM, /**< CAMEROON */
429  wifi_countrycode_CN, /**< CHINA */
430  wifi_countrycode_CO, /**< COLOMBIA */
431  wifi_countrycode_CP, /**< CLIPPERTON ISLAND */
432  wifi_countrycode_CR, /**< COSTA RICA */
433  wifi_countrycode_CU, /**< CUBA */
434  wifi_countrycode_CV, /**< CAPE VERDE */
435  wifi_countrycode_CY, /**< CYPRUS */
436  wifi_countrycode_CX, /**< CHRISTMAS ISLAND */
437  wifi_countrycode_CZ, /**< CZECH REPUBLIC */
438  wifi_countrycode_DE, /**< GERMANY */
439  wifi_countrycode_DJ, /**< DJIBOUTI */
440  wifi_countrycode_DK, /**< DENMARK */
441  wifi_countrycode_DM, /**< DOMINICA */
442  wifi_countrycode_DO, /**< DOMINICAN REPUBLIC */
443  wifi_countrycode_DZ, /**< ALGERIA */
444  wifi_countrycode_EC, /**< ECUADOR */
445  wifi_countrycode_EE, /**< ESTONIA */
446  wifi_countrycode_EG, /**< EGYPT */
447  wifi_countrycode_EH, /**< WESTERN SAHARA */
448  wifi_countrycode_ER, /**< ERITREA */
449  wifi_countrycode_ES, /**< SPAIN */
450  wifi_countrycode_ET, /**< ETHIOPIA */
451  wifi_countrycode_FI, /**< FINLAND */
452  wifi_countrycode_FJ, /**< FIJI */
453  wifi_countrycode_FK, /**< FALKLAND ISLANDS (MALVINAS) */
454  wifi_countrycode_FM, /**< MICRONESIA, FEDERATED STATES OF */
455  wifi_countrycode_FO, /**< FAROE ISLANDS */
456  wifi_countrycode_FR, /**< FRANCE */
457  wifi_countrycode_GA, /**< GABON */
458  wifi_countrycode_GB, /**< UNITED KINGDOM */
459  wifi_countrycode_GD, /**< GRENADA */
460  wifi_countrycode_GE, /**< GEORGIA */
461  wifi_countrycode_GF, /**< FRENCH GUIANA */
462  wifi_countrycode_GG, /**< GUERNSEY */
463  wifi_countrycode_GH, /**< GHANA */
464  wifi_countrycode_GI, /**< GIBRALTAR */
465  wifi_countrycode_GL, /**< GREENLAND */
466  wifi_countrycode_GM, /**< GAMBIA */
467  wifi_countrycode_GN, /**< GUINEA */
468  wifi_countrycode_GP, /**< GUADELOUPE */
469  wifi_countrycode_GQ, /**< EQUATORIAL GUINEA */
470  wifi_countrycode_GR, /**< GREECE */
471  wifi_countrycode_GS, /**< SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS */
472  wifi_countrycode_GT, /**< GUATEMALA */
473  wifi_countrycode_GU, /**< GUAM */
474  wifi_countrycode_GW, /**< GUINEA-BISSAU */
475  wifi_countrycode_GY, /**< GUYANA */
476  wifi_countrycode_HR, /**< CROATIA */
477  wifi_countrycode_HT, /**< HAITI */
478  wifi_countrycode_HM, /**< HEARD ISLAND AND MCDONALD ISLANDS */
479  wifi_countrycode_HN, /**< HONDURAS */
480  wifi_countrycode_HK, /**< HONG KONG */
481  wifi_countrycode_HU, /**< HUNGARY */
482  wifi_countrycode_IS, /**< ICELAND */
483  wifi_countrycode_IN, /**< INDIA */
484  wifi_countrycode_ID, /**< INDONESIA */
485  wifi_countrycode_IR, /**< IRAN, ISLAMIC REPUBLIC OF */
486  wifi_countrycode_IQ, /**< IRAQ */
487  wifi_countrycode_IE, /**< IRELAND */
488  wifi_countrycode_IL, /**< ISRAEL */
489  wifi_countrycode_IM, /**< MAN, ISLE OF */
490  wifi_countrycode_IT, /**< ITALY */
491  wifi_countrycode_IO, /**< BRITISH INDIAN OCEAN TERRITORY */
492  wifi_countrycode_JM, /**< JAMAICA */
493  wifi_countrycode_JP, /**< JAPAN */
494  wifi_countrycode_JE, /**< JERSEY */
495  wifi_countrycode_JO, /**< JORDAN */
496  wifi_countrycode_KE, /**< KENYA */
497  wifi_countrycode_KG, /**< KYRGYZSTAN */
498  wifi_countrycode_KH, /**< CAMBODIA */
499  wifi_countrycode_KI, /**< KIRIBATI */
500  wifi_countrycode_KM, /**< COMOROS */
501  wifi_countrycode_KN, /**< SAINT KITTS AND NEVIS */
502  wifi_countrycode_KP, /**< KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF */
503  wifi_countrycode_KR, /**< KOREA, REPUBLIC OF */
504  wifi_countrycode_KW, /**< KUWAIT */
505  wifi_countrycode_KY, /**< CAYMAN ISLANDS */
506  wifi_countrycode_KZ, /**< KAZAKHSTAN */
507  wifi_countrycode_LA, /**< LAO PEOPLE'S DEMOCRATIC REPUBLIC */
508  wifi_countrycode_LB, /**< LEBANON */
509  wifi_countrycode_LC, /**< SAINT LUCIA */
510  wifi_countrycode_LI, /**< LIECHTENSTEIN */
511  wifi_countrycode_LK, /**< SRI LANKA */
512  wifi_countrycode_LR, /**< LIBERIA */
513  wifi_countrycode_LS, /**< LESOTHO */
514  wifi_countrycode_LT, /**< LITHUANIA */
515  wifi_countrycode_LU, /**< LUXEMBOURG */
516  wifi_countrycode_LV, /**< LATVIA */
517  wifi_countrycode_LY, /**< LIBYAN ARAB JAMAHIRIYA */
518  wifi_countrycode_MA, /**< MOROCCO */
519  wifi_countrycode_MC, /**< MONACO */
520  wifi_countrycode_MD, /**< MOLDOVA, REPUBLIC OF */
521  wifi_countrycode_ME, /**< MONTENEGRO */
522  wifi_countrycode_MG, /**< MADAGASCAR */
523  wifi_countrycode_MH, /**< MARSHALL ISLANDS */
524  wifi_countrycode_MK, /**< MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF */
525  wifi_countrycode_ML, /**< MALI */
526  wifi_countrycode_MM, /**< MYANMAR */
527  wifi_countrycode_MN, /**< MONGOLIA */
528  wifi_countrycode_MO, /**< MACAO */
529  wifi_countrycode_MQ, /**< MARTINIQUE */
530  wifi_countrycode_MR, /**< MAURITANIA */
531  wifi_countrycode_MS, /**< MONTSERRAT */
532  wifi_countrycode_MT, /**< MALTA */
533  wifi_countrycode_MU, /**< MAURITIUS */
534  wifi_countrycode_MV, /**< MALDIVES */
535  wifi_countrycode_MW, /**< MALAWI */
536  wifi_countrycode_MX, /**< MEXICO */
537  wifi_countrycode_MY, /**< MALAYSIA */
538  wifi_countrycode_MZ, /**< MOZAMBIQUE */
539  wifi_countrycode_NA, /**< NAMIBIA */
540  wifi_countrycode_NC, /**< NEW CALEDONIA */
541  wifi_countrycode_NE, /**< NIGER */
542  wifi_countrycode_NF, /**< NORFOLK ISLAND */
543  wifi_countrycode_NG, /**< NIGERIA */
544  wifi_countrycode_NI, /**< NICARAGUA */
545  wifi_countrycode_NL, /**< NETHERLANDS */
546  wifi_countrycode_NO, /**< NORWAY */
547  wifi_countrycode_NP, /**< NEPAL */
548  wifi_countrycode_NR, /**< NAURU */
549  wifi_countrycode_NU, /**< NIUE */
550  wifi_countrycode_NZ, /**< NEW ZEALAND */
551  wifi_countrycode_MP, /**< NORTHERN MARIANA ISLANDS */
552  wifi_countrycode_OM, /**< OMAN */
553  wifi_countrycode_PA, /**< PANAMA */
554  wifi_countrycode_PE, /**< PERU */
555  wifi_countrycode_PF, /**< FRENCH POLYNESIA */
556  wifi_countrycode_PG, /**< PAPUA NEW GUINEA */
557  wifi_countrycode_PH, /**< PHILIPPINES */
558  wifi_countrycode_PK, /**< PAKISTAN */
559  wifi_countrycode_PL, /**< POLAND */
560  wifi_countrycode_PM, /**< SAINT PIERRE AND MIQUELON */
561  wifi_countrycode_PN, /**< PITCAIRN */
562  wifi_countrycode_PR, /**< PUERTO RICO */
563  wifi_countrycode_PS, /**< PALESTINIAN TERRITORY, OCCUPIED */
564  wifi_countrycode_PT, /**< PORTUGAL */
565  wifi_countrycode_PW, /**< PALAU */
566  wifi_countrycode_PY, /**< PARAGUAY */
567  wifi_countrycode_QA, /**< QATAR */
568  wifi_countrycode_RE, /**< REUNION */
569  wifi_countrycode_RO, /**< ROMANIA */
570  wifi_countrycode_RS, /**< SERBIA */
571  wifi_countrycode_RU, /**< RUSSIAN FEDERATION */
572  wifi_countrycode_RW, /**< RWANDA */
573  wifi_countrycode_SA, /**< SAUDI ARABIA */
574  wifi_countrycode_SB, /**< SOLOMON ISLANDS */
575  wifi_countrycode_SD, /**< SUDAN */
576  wifi_countrycode_SE, /**< SWEDEN */
577  wifi_countrycode_SC, /**< SEYCHELLES */
578  wifi_countrycode_SG, /**< SINGAPORE */
579  wifi_countrycode_SH, /**< SAINT HELENA */
580  wifi_countrycode_SI, /**< SLOVENIA */
581  wifi_countrycode_SJ, /**< SVALBARD AND JAN MAYEN */
582  wifi_countrycode_SK, /**< SLOVAKIA */
583  wifi_countrycode_SL, /**< SIERRA LEONE */
584  wifi_countrycode_SM, /**< SAN MARINO */
585  wifi_countrycode_SN, /**< SENEGAL */
586  wifi_countrycode_SO, /**< SOMALIA */
587  wifi_countrycode_SR, /**< SURINAME */
588  wifi_countrycode_ST, /**< SAO TOME AND PRINCIPE */
589  wifi_countrycode_SV, /**< EL SALVADOR */
590  wifi_countrycode_SY, /**< SYRIAN ARAB REPUBLIC */
591  wifi_countrycode_SZ, /**< SWAZILAND */
592  wifi_countrycode_TA, /**< TRISTAN DA CUNHA */
593  wifi_countrycode_TC, /**< TURKS AND CAICOS ISLANDS */
594  wifi_countrycode_TD, /**< CHAD */
595  wifi_countrycode_TF, /**< FRENCH SOUTHERN TERRITORIES */
596  wifi_countrycode_TG, /**< TOGO */
597  wifi_countrycode_TH, /**< THAILAND */
598  wifi_countrycode_TJ, /**< TAJIKISTAN */
599  wifi_countrycode_TK, /**< TOKELAU */
600  wifi_countrycode_TL, /**< TIMOR-LESTE (EAST TIMOR) */
601  wifi_countrycode_TM, /**< TURKMENISTAN */
602  wifi_countrycode_TN, /**< TUNISIA */
603  wifi_countrycode_TO, /**< TONGA */
604  wifi_countrycode_TR, /**< TURKEY */
605  wifi_countrycode_TT, /**< TRINIDAD AND TOBAGO */
606  wifi_countrycode_TV, /**< TUVALU */
607  wifi_countrycode_TW, /**< TAIWAN, PROVINCE OF CHINA */
608  wifi_countrycode_TZ, /**< TANZANIA, UNITED REPUBLIC OF */
609  wifi_countrycode_UA, /**< UKRAINE */
610  wifi_countrycode_UG, /**< UGANDA */
611  wifi_countrycode_UM, /**< UNITED STATES MINOR OUTLYING ISLANDS */
612  wifi_countrycode_US, /**< UNITED STATES */
613  wifi_countrycode_UY, /**< URUGUAY */
614  wifi_countrycode_UZ, /**< UZBEKISTAN */
615  wifi_countrycode_VA, /**< HOLY SEE (VATICAN CITY STATE) */
616  wifi_countrycode_VC, /**< SAINT VINCENT AND THE GRENADINES */
617  wifi_countrycode_VE, /**< VENEZUELA */
618  wifi_countrycode_VG, /**< VIRGIN ISLANDS, BRITISH */
619  wifi_countrycode_VI, /**< VIRGIN ISLANDS, U.S. */
620  wifi_countrycode_VN, /**< VIET NAM */
621  wifi_countrycode_VU, /**< VANUATU */
622  wifi_countrycode_WF, /**< WALLIS AND FUTUNA */
623  wifi_countrycode_WS, /**< SAMOA */
624  wifi_countrycode_YE, /**< YEMEN */
625  wifi_countrycode_YT, /**< MAYOTTE */
626  wifi_countrycode_YU, /**< YUGOSLAVIA */
627  wifi_countrycode_ZA, /**< SOUTH AFRICA */
628  wifi_countrycode_ZM, /**< ZAMBIA */
629  wifi_countrycode_ZW, /**< ZIMBABWE */
630  wifi_countrycode_max /**< Max number of country code */
632 
633 typedef enum {
639 
640 
641 /**
642  * @brief Wifi Radio CSI capabilities
643  */
644 typedef struct {
645  UINT maxDevices; /**< The maximun number of stations that can be configured to collect the CSI data. Return 0 if CSI is not supported. */
646  BOOL soudingFrameSupported; /**< The value is TRUE, if the radio supports to sending souding frames in the MAC layer. */
647 }__attribute__((packed)) wifi_radio_csi_capabilities_t;
648 
649 #define MAXIFACENAMESIZE 64
650 
651 /**
652  * @brief Wifi Radio Capabilities
653  */
654 typedef struct {
656  CHAR ifaceName[MAXIFACENAMESIZE]; /**< The interface name. */
657  UINT numSupportedFreqBand; /**< The Number of supported frequencies band */
658  wifi_freq_bands_t band[MAX_NUM_FREQ_BAND]; /**< The frequencies band list */
659  wifi_channels_list_t channel_list[MAX_NUM_FREQ_BAND]; /**< The list of supported channels for each frequencies band supported. */
660  wifi_channelBandwidth_t channelWidth[MAX_NUM_FREQ_BAND]; /**< The Channel Bandwidth supported (uses bitmask to return multiples Bandwidth) for each frequencies band supported.. */
661  wifi_ieee80211Variant_t mode[MAX_NUM_FREQ_BAND]; /**< The supported modes (uses bitmask to return multiples modes) for each frequencies band supported. */
662  UINT maxBitRate[MAX_NUM_FREQ_BAND]; /**< The maximum PHY bit rate supported for each frequencies band supported. */
663  UINT supportedBitRate[MAX_NUM_FREQ_BAND]; /**< The supported data transmit rates in Mbps for each frequencies band supported. It uses bitmask to return multiples bitrates and wifi_bitrate_t has the definition of valid values*/
664  wifi_radio_trasmitPowerSupported_list_t transmitPowerSupported_list[MAX_NUM_FREQ_BAND]; /**< List of transmit power supported for each frequencies band supported. */
665  BOOL autoChannelSupported; /**< The value is TRUE, if Auto Channel is supported. */
666  BOOL DCSSupported; /**< The value is TRUE, if DCS is supported. */
667  BOOL zeroDFSSupported; /**< The value is TRUE, if Zero DFS is supported. Zero DFS (also known as Background CAC) allows Wi-Fi stack to continue operation on main channel and at the same time run background CAC.*/
668  wifi_radio_csi_capabilities_t csi; /**< CSI capabilities */
669  UINT cipherSupported; /**< The list of supported cipher (uses bitmask to return multiples values). */
670  UINT numcountrySupported; /**< Number of supported countries. */
671  wifi_countrycode_type_t countrySupported[wifi_countrycode_max]; /**< The Supported country list. it should return the current country code on first entry. */
672  UINT maxNumberVAPs; /**< Max number of VAPs */
673  BOOL mcast2ucastSupported; /**< The value is TRUE, if 'multicast to unicast' conversion is supported. */
674 }__attribute__((packed)) wifi_radio_capabilities_t;
675 
676 /**
677  * @brief Wifi interface Property info
678  */
679 typedef struct {
680  unsigned int phy_index; /**< actual index of the phy device */
681  unsigned int rdk_radio_index; /**< radio index of upper layer */
684  int vlan_id;
685  unsigned int index;
686  wifi_vap_name_t vap_name;
687 }__attribute__((packed)) wifi_interface_name_idex_map_t;
688 
689 typedef struct {
690  unsigned int phy_index;
691  unsigned int radio_index;
692  char radio_name[16];
693  wifi_interface_name_t interface_name;
694 }__attribute__((packed)) radio_interface_mapping_t;
695 
696 /**
697  * @brief Wifi Plataform Property
698  */
699 typedef struct {
700  UINT numRadios; /**< Number of radios. */
701  wifi_radio_capabilities_t radiocap[MAX_NUM_RADIOS]; /**< Radio capabilities */
702  wifi_interface_name_idex_map_t interface_map[(MAX_NUM_RADIOS * MAX_NUM_VAP_PER_RADIO)];
703  radio_interface_mapping_t radio_interface_map[MAX_NUM_RADIOS];
704 }__attribute__((packed)) wifi_platform_property_t;
705 
706 /**
707  * @brief Wifi HAL Capabilities
708  */
709 typedef struct {
710  wifi_hal_version_t version; /**< The HAL version. */
711  wifi_platform_property_t wifi_prop; /**< The plataform Property that includes the number of radios and supported frequency bands. */
712  BOOL BandSteeringSupported; /**< If BandSteeringSupported is TRUE, bandsteering is support by the HAL */
713 }__attribute__((packed)) wifi_hal_capability_t;
714 
715 /**
716  * @brief Wifi TWT agreement type
717  */
718 typedef enum {
719  wifi_twt_agreement_type_individual, /**< Set an individual TWT session. */
720  wifi_twt_agreement_type_broadcast, /**< Set a Broadcast TWT session. */
722 
723 /**
724  * @brief Wifi TWT Operation
725  */
726 typedef struct {
727  BOOL implicit; /**< True if the TWT session is implicit, or false to be explicit*/
728  BOOL announced; /**< True if the TWT session is announced, or false to be unannounced */
729  BOOL trigger_enabled; /**< Enable the TWT trigger */
730  UINT flowID; /**< Agreement identifier */
732 
733 typedef struct {
734  UINT wakeTime_uSec; /**< Wake time of the TWT session in microseconds */
735  UINT wakeInterval_uSec; /**< TWT wake interval in microseconds*/
736  UINT minWakeDuration_uSec; /**< Minimum TWT wake interval in microseconds*/
737  UINT channel; /**< Channel of the TWT session*/
739 
740 typedef struct {
741  UINT wakeDuration_uSec; /**< Wake time of the TWT session in microseconds */
742  UINT wakeInterval_uSec; /**< TWT wake interval in microseconds */
744 
745 typedef struct {
746  wifi_twt_agreement_type_t agreement; /**< Agreement of the TWT session i.e. Individual or broadcast */
747  wifi_twt_operation_t operation; /**< Set the operation of the TWT session */
748  union {
749  wifi_twt_individual_params_t individual; /**< Set configuration for Individual TWT session */
750  wifi_twt_broadcast_params_t broadcast; /**< Set configuration for Broadcast TWT session */
751  } params;
752  BOOL sessionPaused; /**< TRUE if the session is in pause, but it hasn't been teardown */
754 
755 typedef struct {
756  wifi_twt_params_t twt_params; /**< configuration of a TWT session */
758 
759 typedef struct {
760  UINT numTwtSession; /**< Number of TWT session for that device */
761  wifi_twt_params_t twtParams[MAX_NUM_TWT_SESSION]; /**< List of TWT session that device has joined */
763 
764 typedef struct {
765  wifi_twt_params_t twtParameters; /**< Configuration of the TWT session */
766  INT IdTWTsession; /**< ID that identify univocally a TWT session for that AP */
767  mac_address_t macAddr[MAX_STA_PER_SESSION]; /**< List of MAC addresses connected to the TWT session*/
768  UINT numDevicesInSession; /**< Number of devices connected to the TWT session */
770 
771 typedef enum {
780 
781 /**
782  * @brief Wifi access category (AC) type
783  */
784 typedef enum {
790 
791 typedef struct {
794 } wifi_bsr_t;
795 
796 typedef struct {
800 
801 typedef enum {
807 
808 typedef enum {
812 
813 typedef struct {
815  wifi_bsr_t cli_BufferStatus[MAX_BSR];
817  wifi_ru_allocation_t cli_DownlinkRuAllocations[MAX_RU_ALLOCATIONS];
819 
820 typedef struct {
823  wifi_bsr_t cli_BufferStatus[MAX_BSR];
825  wifi_ru_allocation_t cli_UplinkRuAllocations[MAX_RU_ALLOCATIONS];
827 
828 typedef enum {
832 
833 /* connection status of STA */
834 typedef enum {
840 
841 
842 #define MAX_NR 8
843 #define MAX_NC 4
844 #define MAX_SUB_CARRIERS 256
845 #define MAX_PILOTS 26
846 
847 /* RSSI in each of received streams of the received frame */
849 /* CSI data for each subcarrier over Nc and Nr */
851 /* CSI data over 80MHz BW */
853 
856 
857 /**
858  * @brief This structure hold the information about the wifi interface.
859  */
860 typedef struct _wifi_frame_info
861 {
862  UCHAR bw_mode; /* Bit 0-3: 0:20MHz; 1:40MHz; 2:80MHz; 3:160MHz */
863  /* Bit 4: 80+80MHz */
864  /* Bit 4-7: 0:11n; 1:11ac */
865  UCHAR mcs; /* Encoded as 11ac numbering */
866  UCHAR Nr; /* Number of antennas used to receive the frame */
867  UCHAR Nc; /* Number of streams used to transmit the frame */
868  wifi_streams_rssi_t nr_rssi; /* RSSI on each of Nr */
869  USHORT valid_mask; /* Bit mask that determines which regions of CSI capture (tones) are valid. One bit represents 20MHz chunk. */
870  USHORT phy_bw; /* VAP BW at the time of capture, indicated as 20, 40, 80, 160 */
871  USHORT cap_bw; /* Frame BW at the time of capture */
872  UINT num_sc; /* Number of subcarriers in the payload so that information can be used in conjunction with the number of streams to fully decode valid regions */
873  UCHAR decimation; /* Value to indicate degree to which CSI matrix is decimated in terms of number of subcarriers present.*/
874  UINT channel; /* Primary Channel of received frame */
875  ULLONG time_stamp; /* PHY timestamp of CSI capture with at minimum millisecond */
876  /* resolution. Ideally this can be resolved to a standard epoch */
877  /* format with millisecond resolution. */
879 
880 /**
881  * @brief This structure hold the information about the wifi interface.
882  */
883 typedef struct _wifi_csi_data
884 {
885  wifi_frame_info_t frame_info; /* as defined above */
886  wifi_csi_matrix_t csi_matrix; /* The NC value representing the number of non-zero columns
887  in the H matrix is equal to the number of spatial streams in the
888  packet. The NR value representing the number of rows in the H matrix
889  is equal to the number of antennas at the receiver.
890  Irrespective of the NC and NR values, the output H matrix is always
891  of size 4x4. For example, if the frame uses 2 spatial streams
892  and the receiver has 3 antennas, NC=2, NR=3.
893  However, the H matrix will be of size 4x4 with a 3x2 sub-matrix
894  with non-zero values. Rest of the values of the matrix will be zero. */
895  wifi_evm_matrix_t evm_matrix; /* Similar scheme to the CSI matrix, Nc represents the number of non-zero columns and Nr represents the number of nonzero rows. There are 16 elements to accommodate the full number of pilots in a 160 MHz capture. Each element is an EVM value for a pilot expressed in dB. */
897 
898 /**
899  * @brief This structure hold the information about the wifi interface.
900  */
901 typedef struct _wifi_associated_dev3
902 {
903  mac_address_t cli_MACAddress; /**< The MAC address of an associated device. */
904  CHAR cli_IPAddress[64]; /**< IP of the associated device (deprecated, keep it empty) */
905  BOOL cli_AuthenticationState; /**< Whether an associated device has authenticated (true) or not (false). */
906  UINT cli_LastDataDownlinkRate; /**< The median PHY rate in Mbps of the most recent 16 unicast data frame transmissions from the access point to the associated device. */
907  UINT cli_LastDataUplinkRate; /**< The median PHY rate in Mbps of the most recent 16 unicast data frame transmissions from the associated device to the access point. */
908  INT cli_SignalStrength; /**< An indicator of radio signal strength of the uplink from the associated device to the access point, measured in dBm, as an average of the last 100 packets received from the device. */
909  UINT cli_Retransmissions; /**< The number of packets that had to be re-transmitted, from the last 100 packets sent to the associated device. Multiple re-transmissions of the same packet count as one. */
910  BOOL cli_Active; /**< boolean - Whether or not this node is currently present in the WiFi AccessPoint network. */
911 
912  CHAR cli_OperatingStandard[64]; /**< Radio standard the associated Wi-Fi client device is operating under. Enumeration of: */
913  CHAR cli_OperatingChannelBandwidth[64]; /**< The operating channel bandwidth of the associated device. The channel bandwidth (applicable to 802.11n and 802.11ac specifications only). Enumeration of: */
914  INT cli_SNR; /**< A signal-to-noise ratio (SNR) compares the level of the Wi-Fi signal to the level of background noise. Sources of noise can include microwave ovens, cordless phone, bluetooth devices, wireless video cameras, wireless game controllers, fluorescent lights and more. It is measured in decibels (dB). */
915  CHAR cli_InterferenceSources[64]; /**< Wi-Fi operates in two frequency ranges (2.4 Ghz and 5 Ghz) which may become crowded other radio products which operate in the same ranges. This parameter reports the probable interference sources that this Wi-Fi access point may be observing. The value of this parameter is a comma seperated list of the following possible sources: eg: MicrowaveOven,CordlessPhone,BluetoothDevices,FluorescentLights,ContinuousWaves,Others */
916  ULONG cli_DataFramesSentAck; /**< The DataFramesSentAck parameter indicates the total number of MSDU frames marked as duplicates and non duplicates acknowledged. The value of this counter may be reset to zero when the CPE is rebooted. Refer section A.2.3.14 of CableLabs Wi-Fi MGMT Specification. */
917  ULONG cli_DataFramesSentNoAck; /**< The DataFramesSentNoAck parameter indicates the total number of MSDU frames retransmitted out of the interface (i.e., marked as duplicate and non-duplicate) and not acknowledged, but does not exclude those defined in the DataFramesLost parameter. The value of this counter may be reset to zero when the CPE is rebooted. Refer section A.2.3.14 of CableLabs Wi-Fi MGMT Specification. */
918  ULONG cli_BytesSent; /**< The total number of bytes transmitted to the client device, including framing characters. */
919  ULONG cli_BytesReceived; /**< The total number of bytes received from the client device, including framing characters. */
920  INT cli_RSSI; /**< The Received Signal Strength Indicator, RSSI, parameter is the energy observed at the antenna receiver for transmissions from the device averaged over past 100 packets recevied from the device. */
921  INT cli_MinRSSI; /**< The Minimum Received Signal Strength Indicator, RSSI, parameter is the minimum energy observed at the antenna receiver for past transmissions (100 packets). */
922  INT cli_MaxRSSI; /**< The Maximum Received Signal Strength Indicator, RSSI, parameter is the energy observed at the antenna receiver for past transmissions (100 packets). */
923  UINT cli_Disassociations; /**< This parameter represents the total number of client disassociations. Reset the parameter evey 24hrs or reboot */
924  UINT cli_AuthenticationFailures; /**< This parameter indicates the total number of authentication failures. Reset the parameter evey 24hrs or reboot */
925 
926  ULLONG cli_Associations; /**< Stats handle used to determine reconnects; increases for every association (stat delta calcualtion) */
927 
928  ULONG cli_PacketsSent; /**< The total number of packets transmitted to the Associated Device. */
929  ULONG cli_PacketsReceived; /**< The total number of packets received from the Associated Device. */
930  ULONG cli_ErrorsSent; /**< The total number of outbound packets that could not be transmitted because of errors. These might be due to the number of retransmissions exceeding the retry limit, or from other causes. */
931  ULONG cli_RetransCount; /**< The total number of transmitted packets which were retransmissions for each client on the vAP. Two retransmissions of the same packet results in this counter incrementing by two. Three retransmissions of the same packet results in this counter incrementing by three.... */
932  ULONG cli_FailedRetransCount; /**< The number of packets that were not transmitted successfully due to the number of retransmission attempts exceeding an 802.11 retry limit. */
933  ULONG cli_RetryCount; /**< The number of packets that were successfully transmitted after one or more retransmissions */
934  ULONG cli_MultipleRetryCount; /**< The number of packets that were successfully transmitted after more than one retransmission. */
935 
936  UINT cli_MaxDownlinkRate; /**< The Max data transmit rate in Mbps for the access point to the associated device. */
937  UINT cli_MaxUplinkRate; /**< The Max data transmit rate in Mbps for the associated device to the access point. */
940  wifi_twt_dev_info_t cli_TwtParams; /**< TWT sessions that the device has joined */
941 
942  /* To facilitate retrieval of CSI data for specific associated client, an existing RDK-B Wi-Fi HAL
943  function is being extended. In current implementation wifi_getApAssociatedDeviceDiagnosticResult3
944  retrieves variety of statistics and state specific information for associated clients.
945  The wifi_associated_dev3_t data structure is filled by native WLAN drivers for each associated client
946  as and when the function is called by RDK-B application/process. A new component structure
947  wifi_csi_data_t is being defined that is part of wifi_associated_dev3_t structure and needs to be
948  allocated and filled for specific client or list of clients when
949  wifi_getApAssociatedDeviceDiagnosticResult3 API is called by RDK-B application/process. In cases when
950  application needs CSI data, the RDK-B application will call
951  INT wifi_getApAssociatedDeviceDiagnosticResult3(INT apIndex, wifi_associated_dev3_t **associated_dev_array, UINT *output_array_size) by allocating the associated_dev_array memory for output_array_size number of client
952  devices. In other words output_array_size will specify the number of client devices in the array for
953  which CSI data needs to filled by driver. The cli_MACAddress will specify the client devices in each
954  of wifi_associated_dev3_t. Wi-Fi HAL implementation in such case MUST allocate memory for cli_CSIData
955  fill in required fields. The called in such cases is reposnsible for deallocation of memory.
956  The wifi_csi_data_t is defined above */
957 
959 
960  UINT cli_activeNumSpatialStreams; /**< The number of active spatial streams in the session between AP and client at the moment of polling */
961 
963 
964 /** @} */ //END OF GROUP WIFI_HAL_TYPES
965 
966 /**
967  * @addtogroup WIFI_HAL_APIS
968  * @{
969  */
970 /**
971  * @brief Get HAL Capabilities
972  *
973  * @param[out] cap HAL Capabilities
974  *
975  * This API will return features/configuration supported by
976  * the HAL
977  *
978  * @return The status of the operation
979  * @retval WIFI_HAL_SUCCESS if successful
980  * @retval WIFI_HAL_ERROR if an generic error is detected
981  * @retval WIFI_HAL_INTERNAL_ERROR if an internal error is detected
982  * @retval WIFI_HAL_UNSUPPORTED if the API is not supported
983  * @retval WIFI_HAL_INVALID_ARGUMENTS if any of the arguments is invalid
984  * @retval WIFI_HAL_INVALID_VALUE if the value is invalid
985  *
986  * @execution Synchronous
987  * @sideeffect None
988  *
989  */
990 INT wifi_getHalCapability(wifi_hal_capability_t *cap);
991 
992 /* wifi_factoryReset() function */
993 /**
994 * @brief Clears internal variables to implement a factory reset of the Wi-Fi subsystem.
995 *
996 * A Specific implementation may dictate some functionalities since different hardware implementations
997 * may have different requirements.
998 *
999 * @param None
1000 *
1001 * @return The status of the operation.
1002 * @retval RETURN_OK if successful.
1003 * @retval RETURN_ERR if any error is detected
1004 *
1005 * @execution Synchronous
1006 * @sideeffect None
1007 *
1008 * @note This function must not suspend and must not invoke any blocking system
1009 * calls. It should probably just send a message to a driver event handler task.
1010 *
1011 */
1012 //clears internal variables to implement a factory reset of the Wi-Fi subsystem
1014 
1015 /* wifi_setLED() function */
1016 /**
1017 * @brief Set the system LED status
1018 *
1019 * @param radioIndex Index of Wi-Fi Radio channel
1020 * @param enable LED status
1021 *
1022 * @return The status of the operation.
1023 * @retval RETURN_OK if successful.
1024 * @retval RETURN_ERR if any error is detected
1025 *
1026 * @execution Synchronous.
1027 * @sideeffect None.
1028 *
1029 * @note This function must not suspend and must not invoke any blocking system
1030 * calls. It should probably just send a message to a driver event handler task.
1031 *
1032 */
1033 //Set the system LED status
1034 INT wifi_setLED(INT radioIndex, BOOL enable);
1035 
1036 /**
1037 * @brief This function call initializes all Wi-Fi radios.
1038 *
1039 * A specific implementation may dictate some functionality since different hardware implementations
1040 * may have different initilization requirements.
1041 *
1042 * @param None
1043 *
1044 * @return The status of the operation
1045 * @retval RETURN_OK if successful
1046 * @retval RETURN_ERR if any error is detected
1047 *
1048 * @execution Synchronous
1049 * @sideeffect None
1050 *
1051 * @note This function must not suspend and must not invoke any blocking system
1052 * calls. It should probably just send a message to a driver event handler task.
1053 *
1054 */
1055 // Initializes the wifi subsystem (all radios)
1056 INT wifi_init();
1057 
1058 /* wifi_reset() function */
1059 /**
1060 * @brief Resets the Wifi subsystem.
1061 * This includes reset of all Access Point variables.
1062 *
1063 * Implementation specifics may dictate what is actualy reset since different hardware
1064 * implementations may have different requirements.
1065 *
1066 * @param None
1067 *
1068 * @return The status of the operation
1069 * @retval RETURN_OK if successful
1070 * @retval RETURN_ERR if any error is detected
1071 *
1072 * @execution Synchronous
1073 * @sideeffect None
1074 *
1075 * @note This function must not suspend and must not invoke any blocking system
1076 * calls. It should probably just send a message to a driver event handler task.
1077 *
1078 */
1079 // resets the wifi subsystem, deletes all APs
1080 INT wifi_reset();
1081 
1082 /* wifi_down() function */
1083 /**
1084 * @brief Turns off transmit power for the entire Wifi subsystem, for all radios.
1085 *
1086 * Implementation specifics may dictate some functionality since
1087 * different hardware implementations may have different requirements.
1088 *
1089 * @param None
1090 *
1091 * @return The status of the operation
1092 * @retval RETURN_OK if successful
1093 * @retval RETURN_ERR if any error is detected
1094 *
1095 * @execution Synchronous
1096 * @sideeffect None
1097 *
1098 * @note This function must not suspend and must not invoke any blocking system
1099 * calls. It should probably just send a message to a driver event handler task.
1100 *
1101 */
1102 // turns off transmit power for the entire Wifi subsystem, for all radios
1103 INT wifi_down();
1104 
1105 /* wifi_createInitialConfigFiles() function */
1106 /**
1107 * @brief This function creates wifi configuration files.
1108 *
1109 * The format and content of these files are implementation dependent. This function call is
1110 * used to trigger this task if necessary. Some implementations may not need this
1111 * function. If an implementation does not need to create config files the function call can
1112 * do nothing and return RETURN_OK.
1113 *
1114 * @param None
1115 *
1116 * @return The status of the operation
1117 * @retval RETURN_OK if successful
1118 * @retval RETURN_ERR if any error is detected
1119 *
1120 * @execution Synchronous
1121 * @sideeffect None
1122 *
1123 * @note This function must not suspend and must not invoke any blocking system
1124 * calls. It should probably just send a message to a driver event handler task.
1125 *
1126 */
1128 
1129 /* wifi_createHostApdConfig() function */
1130 /**
1131 * @brief Creates configuration variables needed for WPA/WPS.
1132 *
1133 * These variables are implementation dependent and in some implementations these variables are used by hostapd when it is started.
1134 * Specific variables that are needed are dependent on the hostapd implementation.
1135 * These variables are set by WPA/WPS security functions in this wifi HAL.
1136 * If not needed for a particular implementation this function may simply return no error.
1137 *
1138 * @param[in] apIndex Access Point index
1139 * @param[in] createWpsCfg Enable/Disable WPS Configuration creation
1140 *
1141 * @return The status of the operation
1142 * @retval RETURN_OK if successful
1143 * @retval RETURN_ERR if any error is detected
1144 *
1145 * @execution Synchronous
1146 * @sideeffect None
1147 *
1148 * @note This function must not suspend and must not invoke any blocking system
1149 * calls. It should probably just send a message to a driver event handler task.
1150 *
1151 */
1152 INT wifi_createHostApdConfig(INT apIndex, BOOL createWpsCfg); // creates configuration variables needed for WPA/WPS. These variables are implementation dependent and in some implementations these variables are used by hostapd when it is started. Specific variables that are needed are dependent on the hostapd implementation. These variables are set by WPA/WPS security functions in this wifi HAL. If not needed for a particular implementation this function may simply return no error.
1153 
1154 /* wifi_startHostApd() function */
1155 /**
1156 * @brief Starts hostapd.
1157 *
1158 * Uses the variables in the hostapd config with format compatible with the specific hostapd implementation.
1159 *
1160 * @param None
1161 *
1162 * @return The status of the operation
1163 * @retval RETURN_OK if successful
1164 * @retval RETURN_ERR if any error is detected
1165 *
1166 * @execution Synchronous
1167 * @sideeffect None
1168 *
1169 * @note This function must not suspend and must not invoke any blocking system
1170 * calls. It should probably just send a message to a driver event handler task.
1171 *
1172 */
1173 INT wifi_startHostApd(); // starts hostapd, uses the variables in the hostapd config with format compatible with the specific hostapd implementation
1174 
1175 /* wifi_stopHostApd() function */
1176 /**
1177 * @brief Stops hostapd
1178 *
1179 * @param None
1180 *
1181 * @return The status of the operation
1182 * @retval RETURN_OK if successful
1183 * @retval RETURN_ERR if any error is detected
1184 *
1185 * @execution Synchronous
1186 * @sideeffect None
1187 *
1188 * @note This function must not suspend and must not invoke any blocking system
1189 * calls. It should probably just send a message to a driver event handler task.
1190 *
1191 */
1192 INT wifi_stopHostApd(); // stops hostapd
1193 
1194 /** @} */ //END OF GROUP WIFI_HAL_APIS
1195 
1196 #ifdef __cplusplus
1197 }
1198 #endif
1199 
1200 #endif
WIFI_EVENT_DFS_RADAR_DETECTED
@ WIFI_EVENT_DFS_RADAR_DETECTED
Definition: wifi_hal_generic.h:830
wifi_countrycode_LT
@ wifi_countrycode_LT
Definition: wifi_hal_generic.h:514
wifi_countrycode_LA
@ wifi_countrycode_LA
Definition: wifi_hal_generic.h:507
wifi_countrycode_MO
@ wifi_countrycode_MO
Definition: wifi_hal_generic.h:528
wifi_ieee80211Variant_t
wifi_ieee80211Variant_t
Wifi 802.11 variant Types.
Definition: wifi_hal_generic.h:306
__attribute__::BandSteeringSupported
unsigned char BandSteeringSupported
Definition: wifi_hal_generic.h:712
wifi_twt_sessions_t::numDevicesInSession
unsigned int numDevicesInSession
Definition: wifi_hal_generic.h:768
mac_addr_str_t
char mac_addr_str_t[18]
Definition: wifi_hal_generic.h:212
wifi_countrycode_BT
@ wifi_countrycode_BT
Definition: wifi_hal_generic.h:414
wifi_operating_env_non_country
@ wifi_operating_env_non_country
Definition: wifi_hal_generic.h:637
nas_id_t
char nas_id_t[49]
Definition: wifi_hal_generic.h:219
wifi_countrycode_PF
@ wifi_countrycode_PF
Definition: wifi_hal_generic.h:555
wifi_countrycode_SB
@ wifi_countrycode_SB
Definition: wifi_hal_generic.h:574
__attribute__::numRadios
unsigned int numRadios
Definition: wifi_hal_generic.h:700
wifi_createHostApdConfig
int wifi_createHostApdConfig(int apIndex, unsigned char createWpsCfg)
Creates configuration variables needed for WPA/WPS.
__attribute__::major
unsigned int major
Definition: wifi_hal_generic.h:259
wifi_countrycode_LR
@ wifi_countrycode_LR
Definition: wifi_hal_generic.h:512
wifi_countrycode_UZ
@ wifi_countrycode_UZ
Definition: wifi_hal_generic.h:614
WIFI_CHANNELBANDWIDTH_40MHZ
@ WIFI_CHANNELBANDWIDTH_40MHZ
Definition: wifi_hal_generic.h:282
wifi_countrycode_OM
@ wifi_countrycode_OM
Definition: wifi_hal_generic.h:552
__attribute__::maxDevices
unsigned int maxDevices
Definition: wifi_hal_generic.h:645
wifi_countrycode_SJ
@ wifi_countrycode_SJ
Definition: wifi_hal_generic.h:581
wifi_twt_individual_params_t::wakeTime_uSec
unsigned int wakeTime_uSec
Definition: wifi_hal_generic.h:734
wifi_countrycode_PR
@ wifi_countrycode_PR
Definition: wifi_hal_generic.h:562
wifi_countrycode_KE
@ wifi_countrycode_KE
Definition: wifi_hal_generic.h:496
wifi_countrycode_RE
@ wifi_countrycode_RE
Definition: wifi_hal_generic.h:568
wifi_countrycode_GL
@ wifi_countrycode_GL
Definition: wifi_hal_generic.h:465
_wifi_associated_dev3::cli_RSSI
int cli_RSSI
Definition: wifi_hal_generic.h:920
wifi_countrycode_SC
@ wifi_countrycode_SC
Definition: wifi_hal_generic.h:577
wifi_countrycode_ID
@ wifi_countrycode_ID
Definition: wifi_hal_generic.h:484
wifi_80211ax_params_t
Definition: wifi_hal_generic.h:755
wifi_twt_operation_t::announced
unsigned char announced
Definition: wifi_hal_generic.h:728
wifi_countrycode_IS
@ wifi_countrycode_IS
Definition: wifi_hal_generic.h:482
wifi_countrycode_SZ
@ wifi_countrycode_SZ
Definition: wifi_hal_generic.h:591
wifi_bitrate_t
wifi_bitrate_t
Wifi supported bitrates.
Definition: wifi_hal_generic.h:330
wifi_countrycode_KH
@ wifi_countrycode_KH
Definition: wifi_hal_generic.h:498
wifi_countrycode_DZ
@ wifi_countrycode_DZ
Definition: wifi_hal_generic.h:443
wifi_countrycode_LK
@ wifi_countrycode_LK
Definition: wifi_hal_generic.h:511
WIFI_BITRATE_54MBPS
@ WIFI_BITRATE_54MBPS
Definition: wifi_hal_generic.h:343
wifi_connection_status_disabled
@ wifi_connection_status_disabled
Definition: wifi_hal_generic.h:835
WIFI_UL_MU_TYPE_OFDMA
@ WIFI_UL_MU_TYPE_OFDMA
Definition: wifi_hal_generic.h:810
wifi_bsr_t
Definition: wifi_hal_generic.h:791
wifi_countrycode_BV
@ wifi_countrycode_BV
Definition: wifi_hal_generic.h:415
BOOL
#define BOOL
Definition: wifi_hal_generic.h:58
wifi_vap_name_t
char wifi_vap_name_t[64]
Definition: wifi_hal_generic.h:224
_wifi_associated_dev3::cli_MaxRSSI
int cli_MaxRSSI
Definition: wifi_hal_generic.h:922
wifi_countrycode_SH
@ wifi_countrycode_SH
Definition: wifi_hal_generic.h:579
wifi_countrycode_GH
@ wifi_countrycode_GH
Definition: wifi_hal_generic.h:463
wifi_countrycode_EG
@ wifi_countrycode_EG
Definition: wifi_hal_generic.h:446
wifi_countrycode_TJ
@ wifi_countrycode_TJ
Definition: wifi_hal_generic.h:598
WIFI_BITRATE_24MBPS
@ WIFI_BITRATE_24MBPS
Definition: wifi_hal_generic.h:340
wifi_interface_name_t
char wifi_interface_name_t[32]
Definition: wifi_hal_generic.h:223
ssid_t
char ssid_t[32]
Definition: wifi_hal_generic.h:215
WIFI_BITRATE_12MBPS
@ WIFI_BITRATE_12MBPS
Definition: wifi_hal_generic.h:338
wifi_countrycode_MU
@ wifi_countrycode_MU
Definition: wifi_hal_generic.h:533
UCHAR
#define UCHAR
Definition: wifi_hal_generic.h:66
_wifi_associated_dev3::cli_InterferenceSources
char cli_InterferenceSources[64]
Definition: wifi_hal_generic.h:915
wifi_twt_dev_info_t::numTwtSession
unsigned int numTwtSession
Definition: wifi_hal_generic.h:760
wifi_ul_mu_stats_t
Definition: wifi_hal_generic.h:820
wifi_countrycode_AR
@ wifi_countrycode_AR
Definition: wifi_hal_generic.h:394
_wifi_associated_dev3::cli_MultipleRetryCount
unsigned long cli_MultipleRetryCount
Definition: wifi_hal_generic.h:934
WIFI_HAL_DISABLE
@ WIFI_HAL_DISABLE
Definition: wifi_hal_generic.h:251
wifi_countrycode_NU
@ wifi_countrycode_NU
Definition: wifi_hal_generic.h:549
wifi_countrycode_BZ
@ wifi_countrycode_BZ
Definition: wifi_hal_generic.h:418
wifi_countrycode_YT
@ wifi_countrycode_YT
Definition: wifi_hal_generic.h:625
_wifi_frame_info
This structure hold the information about the wifi interface.
Definition: wifi_hal_generic.h:860
wifi_connection_status_ap_not_found
@ wifi_connection_status_ap_not_found
Definition: wifi_hal_generic.h:838
wifi_carrier_data_t
unsigned int wifi_carrier_data_t[8][4]
Definition: wifi_hal_generic.h:850
wifi_countrycode_TR
@ wifi_countrycode_TR
Definition: wifi_hal_generic.h:604
wifi_dl_mu_stats_t::cli_AllocatedDownlinkRuNum
unsigned char cli_AllocatedDownlinkRuNum
Definition: wifi_hal_generic.h:816
_wifi_associated_dev3::cli_Associations
unsigned long long cli_Associations
Definition: wifi_hal_generic.h:926
WIFI_80211_VARIANT_A
@ WIFI_80211_VARIANT_A
Definition: wifi_hal_generic.h:307
_wifi_associated_dev3::cli_Disassociations
unsigned int cli_Disassociations
Definition: wifi_hal_generic.h:923
wifi_countrycode_FM
@ wifi_countrycode_FM
Definition: wifi_hal_generic.h:454
WIFI_RU_TYPE_52
@ WIFI_RU_TYPE_52
Definition: wifi_hal_generic.h:773
wifi_countrycode_EH
@ wifi_countrycode_EH
Definition: wifi_hal_generic.h:447
wifi_countrycode_BH
@ wifi_countrycode_BH
Definition: wifi_hal_generic.h:406
__attribute__::freq
unsigned int freq
Definition: wifi_hal_generic.h:232
WIFI_CHANNELBANDWIDTH_80MHZ
@ WIFI_CHANNELBANDWIDTH_80MHZ
Definition: wifi_hal_generic.h:283
wifi_twt_params_t::sessionPaused
unsigned char sessionPaused
Definition: wifi_hal_generic.h:752
__attribute__::mcast2ucastSupported
unsigned char mcast2ucastSupported
Definition: wifi_hal_generic.h:673
WIFI_80211_VARIANT_N
@ WIFI_80211_VARIANT_N
Definition: wifi_hal_generic.h:310
wifi_countrycode_US
@ wifi_countrycode_US
Definition: wifi_hal_generic.h:612
wifi_countrycode_CP
@ wifi_countrycode_CP
Definition: wifi_hal_generic.h:431
wifi_countrycode_GP
@ wifi_countrycode_GP
Definition: wifi_hal_generic.h:468
wifi_countrycode_NO
@ wifi_countrycode_NO
Definition: wifi_hal_generic.h:546
_wifi_csi_data::frame_info
wifi_frame_info_t frame_info
Definition: wifi_hal_generic.h:885
WIFI_FREQUENCY_60_BAND
@ WIFI_FREQUENCY_60_BAND
Definition: wifi_hal_generic.h:272
wifi_countrycode_AE
@ wifi_countrycode_AE
Definition: wifi_hal_generic.h:385
wifi_countrycode_PE
@ wifi_countrycode_PE
Definition: wifi_hal_generic.h:554
__attribute__::ie_len
size_t ie_len
Definition: wifi_hal_generic.h:234
CHAR
#define CHAR
Definition: wifi_hal_generic.h:62
wifi_ru_allocation_t
Definition: wifi_hal_generic.h:796
wifi_countrycode_DJ
@ wifi_countrycode_DJ
Definition: wifi_hal_generic.h:439
wifi_countrycode_GF
@ wifi_countrycode_GF
Definition: wifi_hal_generic.h:461
wifi_countrycode_PT
@ wifi_countrycode_PT
Definition: wifi_hal_generic.h:564
__attribute__::numcountrySupported
unsigned int numcountrySupported
Definition: wifi_hal_generic.h:670
WIFI_CHANNELBANDWIDTH_80_80MHZ
@ WIFI_CHANNELBANDWIDTH_80_80MHZ
Definition: wifi_hal_generic.h:285
wifi_countrycode_CR
@ wifi_countrycode_CR
Definition: wifi_hal_generic.h:432
__attribute__::interface_name
wifi_interface_name_t interface_name
Definition: wifi_hal_generic.h:682
__attribute__::cipherSupported
unsigned int cipherSupported
Definition: wifi_hal_generic.h:669
MAX_BSR
#define MAX_BSR
Definition: wifi_hal_generic.h:169
wifi_countrycode_GG
@ wifi_countrycode_GG
Definition: wifi_hal_generic.h:462
wifi_countrycode_GM
@ wifi_countrycode_GM
Definition: wifi_hal_generic.h:466
wifi_countrycode_SD
@ wifi_countrycode_SD
Definition: wifi_hal_generic.h:575
wifi_countrycode_SO
@ wifi_countrycode_SO
Definition: wifi_hal_generic.h:586
wifi_countrycode_NP
@ wifi_countrycode_NP
Definition: wifi_hal_generic.h:547
_wifi_frame_info::phy_bw
unsigned short phy_bw
Definition: wifi_hal_generic.h:870
_wifi_frame_info::decimation
unsigned char decimation
Definition: wifi_hal_generic.h:873
wifi_countrycode_NZ
@ wifi_countrycode_NZ
Definition: wifi_hal_generic.h:550
wifi_countrycode_MG
@ wifi_countrycode_MG
Definition: wifi_hal_generic.h:522
wifi_countrycode_KY
@ wifi_countrycode_KY
Definition: wifi_hal_generic.h:505
MAX_NUM_RADIOS
#define MAX_NUM_RADIOS
Definition: wifi_hal_generic.h:141
wifi_countrycode_CC
@ wifi_countrycode_CC
Definition: wifi_hal_generic.h:420
wifi_countrycode_KI
@ wifi_countrycode_KI
Definition: wifi_hal_generic.h:499
_wifi_frame_info::valid_mask
unsigned short valid_mask
Definition: wifi_hal_generic.h:869
wifi_countrycode_MX
@ wifi_countrycode_MX
Definition: wifi_hal_generic.h:536
wifi_countrycode_MR
@ wifi_countrycode_MR
Definition: wifi_hal_generic.h:530
wifi_countrycode_GE
@ wifi_countrycode_GE
Definition: wifi_hal_generic.h:460
wifi_countrycode_MS
@ wifi_countrycode_MS
Definition: wifi_hal_generic.h:531
wifi_countrycode_CV
@ wifi_countrycode_CV
Definition: wifi_hal_generic.h:434
__attribute__::channel
int channel
Definition: wifi_hal_generic.h:289
WIFI_CHANNELBANDWIDTH_20MHZ
@ WIFI_CHANNELBANDWIDTH_20MHZ
Definition: wifi_hal_generic.h:281
wifi_countrycode_TG
@ wifi_countrycode_TG
Definition: wifi_hal_generic.h:596
wifi_twt_individual_params_t
Definition: wifi_hal_generic.h:733
wifi_countrycode_LV
@ wifi_countrycode_LV
Definition: wifi_hal_generic.h:516
wifi_countrycode_ZM
@ wifi_countrycode_ZM
Definition: wifi_hal_generic.h:628
wifi_countrycode_YU
@ wifi_countrycode_YU
Definition: wifi_hal_generic.h:626
__attribute__::minor
unsigned int minor
Definition: wifi_hal_generic.h:260
wifi_countrycode_SV
@ wifi_countrycode_SV
Definition: wifi_hal_generic.h:589
WIFI_DL_MU_TYPE_MIMO
@ WIFI_DL_MU_TYPE_MIMO
Definition: wifi_hal_generic.h:804
wifi_countrycode_SN
@ wifi_countrycode_SN
Definition: wifi_hal_generic.h:585
wifi_countrycode_MA
@ wifi_countrycode_MA
Definition: wifi_hal_generic.h:518
wifi_countrycode_KN
@ wifi_countrycode_KN
Definition: wifi_hal_generic.h:501
wifi_countrycode_AZ
@ wifi_countrycode_AZ
Definition: wifi_hal_generic.h:399
wifi_access_category_best_effort
@ wifi_access_category_best_effort
Definition: wifi_hal_generic.h:786
_wifi_associated_dev3::cli_IPAddress
char cli_IPAddress[64]
Definition: wifi_hal_generic.h:904
wifi_countrycode_MW
@ wifi_countrycode_MW
Definition: wifi_hal_generic.h:535
wifi_ul_mu_stats_t::cli_ChannelStateInformation
unsigned char cli_ChannelStateInformation
Definition: wifi_hal_generic.h:822
wifi_bsr_t::access_category
wifi_access_category_t access_category
Definition: wifi_hal_generic.h:792
wifi_countrycode_MT
@ wifi_countrycode_MT
Definition: wifi_hal_generic.h:532
wifi_bsr_t::queue_size
unsigned int queue_size
Definition: wifi_hal_generic.h:793
wifi_countrycode_PS
@ wifi_countrycode_PS
Definition: wifi_hal_generic.h:563
wifi_countrycode_BE
@ wifi_countrycode_BE
Definition: wifi_hal_generic.h:403
_wifi_frame_info::cap_bw
unsigned short cap_bw
Definition: wifi_hal_generic.h:871
wifi_countrycode_SY
@ wifi_countrycode_SY
Definition: wifi_hal_generic.h:590
MAX_SUB_CARRIERS
#define MAX_SUB_CARRIERS
Definition: wifi_hal_generic.h:844
wifi_getHalCapability
int wifi_getHalCapability(wifi_hal_capability_t *cap)
Get HAL Capabilities.
WIFI_80211_VARIANT_B
@ WIFI_80211_VARIANT_B
Definition: wifi_hal_generic.h:308
wifi_countrycode_AQ
@ wifi_countrycode_AQ
Definition: wifi_hal_generic.h:393
_wifi_csi_data
This structure hold the information about the wifi interface.
Definition: wifi_hal_generic.h:883
WIFI_UL_MU_TYPE_NONE
@ WIFI_UL_MU_TYPE_NONE
Definition: wifi_hal_generic.h:809
wifi_countrycode_TD
@ wifi_countrycode_TD
Definition: wifi_hal_generic.h:594
__attribute__::rdk_radio_index
unsigned int rdk_radio_index
Definition: wifi_hal_generic.h:681
wifi_countrycode_TA
@ wifi_countrycode_TA
Definition: wifi_hal_generic.h:592
wifi_countrycode_DK
@ wifi_countrycode_DK
Definition: wifi_hal_generic.h:440
WIFI_RU_TYPE_484
@ WIFI_RU_TYPE_484
Definition: wifi_hal_generic.h:776
wifi_access_category_background
@ wifi_access_category_background
Definition: wifi_hal_generic.h:785
__attribute__::zeroDFSSupported
unsigned char zeroDFSSupported
Definition: wifi_hal_generic.h:667
WIFI_FREQUENCY_5H_BAND
@ WIFI_FREQUENCY_5H_BAND
Definition: wifi_hal_generic.h:270
wifi_countrycode_CM
@ wifi_countrycode_CM
Definition: wifi_hal_generic.h:428
_wifi_associated_dev3::cli_Retransmissions
unsigned int cli_Retransmissions
Definition: wifi_hal_generic.h:909
__attribute__::caps
unsigned short caps
Definition: wifi_hal_generic.h:230
wifi_countrycode_NE
@ wifi_countrycode_NE
Definition: wifi_hal_generic.h:541
wifi_countrycode_CD
@ wifi_countrycode_CD
Definition: wifi_hal_generic.h:421
WIFI_RU_TYPE_996
@ WIFI_RU_TYPE_996
Definition: wifi_hal_generic.h:777
wifi_twt_params_t::individual
wifi_twt_individual_params_t individual
Definition: wifi_hal_generic.h:749
wifi_countrycode_LC
@ wifi_countrycode_LC
Definition: wifi_hal_generic.h:509
wifi_countrycode_ME
@ wifi_countrycode_ME
Definition: wifi_hal_generic.h:521
WIFI_BITRATE_48MBPS
@ WIFI_BITRATE_48MBPS
Definition: wifi_hal_generic.h:342
wifi_countrycode_TO
@ wifi_countrycode_TO
Definition: wifi_hal_generic.h:603
wifi_createInitialConfigFiles
int wifi_createInitialConfigFiles()
This function creates wifi configuration files.
MAXIFACENAMESIZE
#define MAXIFACENAMESIZE
Definition: wifi_hal_generic.h:649
wifi_countrycode_WF
@ wifi_countrycode_WF
Definition: wifi_hal_generic.h:622
__attribute__::IPv4addr
unsigned int IPv4addr
Definition: wifi_hal_generic.h:245
wifi_countrycode_KR
@ wifi_countrycode_KR
Definition: wifi_hal_generic.h:503
wifi_countrycode_CK
@ wifi_countrycode_CK
Definition: wifi_hal_generic.h:426
ULLONG
#define ULLONG
Definition: wifi_hal_generic.h:46
wifi_countrycode_GI
@ wifi_countrycode_GI
Definition: wifi_hal_generic.h:464
wifi_freq_bands_t
wifi_freq_bands_t
Wifi Frequency Band Types.
Definition: wifi_hal_generic.h:266
WIFI_DL_MU_TYPE_OFDMA
@ WIFI_DL_MU_TYPE_OFDMA
Definition: wifi_hal_generic.h:803
wifi_connection_status_disconnected
@ wifi_connection_status_disconnected
Definition: wifi_hal_generic.h:836
wifi_countrycode_HU
@ wifi_countrycode_HU
Definition: wifi_hal_generic.h:481
wifi_twt_agreement_type_individual
@ wifi_twt_agreement_type_individual
Definition: wifi_hal_generic.h:719
wifi_countrycode_AU
@ wifi_countrycode_AU
Definition: wifi_hal_generic.h:397
wifi_countrycode_CA
@ wifi_countrycode_CA
Definition: wifi_hal_generic.h:419
wifi_countrycode_SG
@ wifi_countrycode_SG
Definition: wifi_hal_generic.h:578
wifi_channelBandwidth_t
wifi_channelBandwidth_t
Wifi Channel Bandwidth Types.
Definition: wifi_hal_generic.h:280
wifi_countrycode_GR
@ wifi_countrycode_GR
Definition: wifi_hal_generic.h:470
_wifi_associated_dev3::cli_RetryCount
unsigned long cli_RetryCount
Definition: wifi_hal_generic.h:933
__attribute__::beacon_int
unsigned int beacon_int
Definition: wifi_hal_generic.h:231
wifi_countrycode_BM
@ wifi_countrycode_BM
Definition: wifi_hal_generic.h:409
_wifi_associated_dev3::cli_activeNumSpatialStreams
unsigned int cli_activeNumSpatialStreams
Definition: wifi_hal_generic.h:960
wifi_ru_type_t
wifi_ru_type_t
Definition: wifi_hal_generic.h:771
__attribute__::family
wifi_ip_family_t family
Definition: wifi_hal_generic.h:243
INT
#define INT
Definition: wifi_hal_generic.h:70
wifi_chan_eventType_t
wifi_chan_eventType_t
Definition: wifi_hal_generic.h:828
wifi_countrycode_CG
@ wifi_countrycode_CG
Definition: wifi_hal_generic.h:423
__attribute__::radio_index
unsigned int radio_index
Definition: wifi_hal_generic.h:691
wifi_countrycode_BA
@ wifi_countrycode_BA
Definition: wifi_hal_generic.h:400
UINT
#define UINT
Definition: wifi_hal_generic.h:74
wifi_ul_mu_type_t
wifi_ul_mu_type_t
Definition: wifi_hal_generic.h:808
_wifi_associated_dev3::cli_TwtParams
wifi_twt_dev_info_t cli_TwtParams
Definition: wifi_hal_generic.h:940
__attribute__::band
wifi_freq_bands_t band
Definition: wifi_hal_generic.h:290
wifi_countrycode_GS
@ wifi_countrycode_GS
Definition: wifi_hal_generic.h:471
_wifi_associated_dev3::cli_DataFramesSentAck
unsigned long cli_DataFramesSentAck
Definition: wifi_hal_generic.h:916
_wifi_associated_dev3::cli_MACAddress
mac_address_t cli_MACAddress
Definition: wifi_hal_generic.h:903
wifi_ru_allocation_t::subchannels
unsigned char subchannels
Definition: wifi_hal_generic.h:797
wifi_countrycode_JE
@ wifi_countrycode_JE
Definition: wifi_hal_generic.h:494
wifi_countrycode_TC
@ wifi_countrycode_TC
Definition: wifi_hal_generic.h:593
wifi_countrycode_GD
@ wifi_countrycode_GD
Definition: wifi_hal_generic.h:459
wifi_twt_params_t
Definition: wifi_hal_generic.h:745
_wifi_frame_info::time_stamp
unsigned long long time_stamp
Definition: wifi_hal_generic.h:875
wifi_operating_env_indoor
@ wifi_operating_env_indoor
Definition: wifi_hal_generic.h:635
wifi_countrycode_WS
@ wifi_countrycode_WS
Definition: wifi_hal_generic.h:623
wifi_csi_matrix_t
wifi_carrier_data_t wifi_csi_matrix_t[256]
Definition: wifi_hal_generic.h:852
_wifi_associated_dev3::cli_LastDataUplinkRate
unsigned int cli_LastDataUplinkRate
Definition: wifi_hal_generic.h:907
wifi_countrycode_AT
@ wifi_countrycode_AT
Definition: wifi_hal_generic.h:396
_wifi_associated_dev3::cli_AuthenticationFailures
unsigned int cli_AuthenticationFailures
Definition: wifi_hal_generic.h:924
_wifi_associated_dev3::cli_Active
unsigned char cli_Active
Definition: wifi_hal_generic.h:910
wifi_twt_agreement_type_t
wifi_twt_agreement_type_t
Wifi TWT agreement type.
Definition: wifi_hal_generic.h:718
wifi_countrycode_LU
@ wifi_countrycode_LU
Definition: wifi_hal_generic.h:515
wifi_countrycode_VI
@ wifi_countrycode_VI
Definition: wifi_hal_generic.h:619
wifi_countrycode_BF
@ wifi_countrycode_BF
Definition: wifi_hal_generic.h:404
wifi_countrycode_BI
@ wifi_countrycode_BI
Definition: wifi_hal_generic.h:407
MAX_NUM_VAP_PER_RADIO
#define MAX_NUM_VAP_PER_RADIO
Definition: wifi_hal_generic.h:144
wifi_countrycode_LY
@ wifi_countrycode_LY
Definition: wifi_hal_generic.h:517
wifi_twt_operation_t
Wifi TWT Operation.
Definition: wifi_hal_generic.h:726
_wifi_frame_info::mcs
unsigned char mcs
Definition: wifi_hal_generic.h:865
wifi_operating_env_outdoor
@ wifi_operating_env_outdoor
Definition: wifi_hal_generic.h:636
wifi_ip_family_ipv6
@ wifi_ip_family_ipv6
Definition: wifi_hal_generic.h:239
wifi_twt_individual_params_t::wakeInterval_uSec
unsigned int wakeInterval_uSec
Definition: wifi_hal_generic.h:735
MAX_NUM_TWT_SESSION
#define MAX_NUM_TWT_SESSION
Definition: wifi_hal_generic.h:167
wifi_countrycode_BB
@ wifi_countrycode_BB
Definition: wifi_hal_generic.h:401
__attribute__::num_channels
int num_channels
Definition: wifi_hal_generic.h:299
MAX_STA_PER_SESSION
#define MAX_STA_PER_SESSION
Definition: wifi_hal_generic.h:168
MAX_NR
#define MAX_NR
Definition: wifi_hal_generic.h:842
WIFI_80211_VARIANT_AC
@ WIFI_80211_VARIANT_AC
Definition: wifi_hal_generic.h:312
WIFI_BITRATE_DEFAULT
@ WIFI_BITRATE_DEFAULT
Definition: wifi_hal_generic.h:331
__attribute__::numSupportedFreqBand
unsigned int numSupportedFreqBand
Definition: wifi_hal_generic.h:657
wifi_twt_dev_info_t
Definition: wifi_hal_generic.h:759
wifi_connection_status_connected
@ wifi_connection_status_connected
Definition: wifi_hal_generic.h:837
wifi_countrycode_TV
@ wifi_countrycode_TV
Definition: wifi_hal_generic.h:606
wifi_countrycode_YE
@ wifi_countrycode_YE
Definition: wifi_hal_generic.h:624
wifi_countrycode_IE
@ wifi_countrycode_IE
Definition: wifi_hal_generic.h:487
wifi_countrycode_LI
@ wifi_countrycode_LI
Definition: wifi_hal_generic.h:510
wifi_countrycode_UA
@ wifi_countrycode_UA
Definition: wifi_hal_generic.h:609
_wifi_frame_info::Nc
unsigned char Nc
Definition: wifi_hal_generic.h:867
wifi_countrycode_KP
@ wifi_countrycode_KP
Definition: wifi_hal_generic.h:502
wifi_countrycode_ML
@ wifi_countrycode_ML
Definition: wifi_hal_generic.h:525
wifi_operating_env_t
wifi_operating_env_t
Definition: wifi_hal_generic.h:633
MAX_NUM_FREQ_BAND
#define MAX_NUM_FREQ_BAND
Definition: wifi_hal_generic.h:275
wifi_countrycode_KW
@ wifi_countrycode_KW
Definition: wifi_hal_generic.h:504
_wifi_associated_dev3
This structure hold the information about the wifi interface.
Definition: wifi_hal_generic.h:901
__attribute__::bridge_name
wifi_interface_name_t bridge_name
Definition: wifi_hal_generic.h:683
wifi_countrycode_TZ
@ wifi_countrycode_TZ
Definition: wifi_hal_generic.h:608
wifi_countrycode_IL
@ wifi_countrycode_IL
Definition: wifi_hal_generic.h:488
WIFI_RU_TYPE_106
@ WIFI_RU_TYPE_106
Definition: wifi_hal_generic.h:774
ULONG
#define ULONG
Definition: wifi_hal_generic.h:50
wifi_countrycode_MH
@ wifi_countrycode_MH
Definition: wifi_hal_generic.h:523
wifi_countrycode_RU
@ wifi_countrycode_RU
Definition: wifi_hal_generic.h:571
wifi_countrycode_PL
@ wifi_countrycode_PL
Definition: wifi_hal_generic.h:559
_wifi_associated_dev3::cli_MaxDownlinkRate
unsigned int cli_MaxDownlinkRate
Definition: wifi_hal_generic.h:936
WIFI_BITRATE_18MBPS
@ WIFI_BITRATE_18MBPS
Definition: wifi_hal_generic.h:339
wifi_countrycode_HM
@ wifi_countrycode_HM
Definition: wifi_hal_generic.h:478
wifi_connection_status_t
wifi_connection_status_t
Definition: wifi_hal_generic.h:834
__attribute__::wifi_prop
wifi_platform_property_t wifi_prop
Definition: wifi_hal_generic.h:711
wifi_countrycode_VE
@ wifi_countrycode_VE
Definition: wifi_hal_generic.h:617
wifi_twt_broadcast_params_t::wakeInterval_uSec
unsigned int wakeInterval_uSec
Definition: wifi_hal_generic.h:742
_wifi_frame_info::Nr
unsigned char Nr
Definition: wifi_hal_generic.h:866
wifi_countrycode_AS
@ wifi_countrycode_AS
Definition: wifi_hal_generic.h:395
wifi_countrycode_SL
@ wifi_countrycode_SL
Definition: wifi_hal_generic.h:583
wifi_radio_index_t
unsigned int wifi_radio_index_t
Definition: wifi_hal_generic.h:216
wifi_evm_matrix_t
wifi_evm_data_t wifi_evm_matrix_t[26]
Definition: wifi_hal_generic.h:855
WIFI_BITRATE_1MBPS
@ WIFI_BITRATE_1MBPS
Definition: wifi_hal_generic.h:332
_wifi_associated_dev3::cli_UplinkMuStats
wifi_dl_mu_stats_t cli_UplinkMuStats
Definition: wifi_hal_generic.h:939
wifi_countrycode_BO
@ wifi_countrycode_BO
Definition: wifi_hal_generic.h:411
wifi_countrycode_SA
@ wifi_countrycode_SA
Definition: wifi_hal_generic.h:573
wifi_countrycode_ET
@ wifi_countrycode_ET
Definition: wifi_hal_generic.h:450
ssid
@ ssid
Definition: wifi_hal_emu.h:5117
WIFI_BITRATE_6MBPS
@ WIFI_BITRATE_6MBPS
Definition: wifi_hal_generic.h:335
wifi_countrycode_CX
@ wifi_countrycode_CX
Definition: wifi_hal_generic.h:436
WIFI_80211_VARIANT_H
@ WIFI_80211_VARIANT_H
Definition: wifi_hal_generic.h:311
wifi_countrycode_CY
@ wifi_countrycode_CY
Definition: wifi_hal_generic.h:435
wifi_countrycode_PH
@ wifi_countrycode_PH
Definition: wifi_hal_generic.h:557
WIFI_FREQUENCY_6_BAND
@ WIFI_FREQUENCY_6_BAND
Definition: wifi_hal_generic.h:271
wifi_countrycode_AL
@ wifi_countrycode_AL
Definition: wifi_hal_generic.h:389
wifi_countrycode_NC
@ wifi_countrycode_NC
Definition: wifi_hal_generic.h:540
wifi_countrycode_MK
@ wifi_countrycode_MK
Definition: wifi_hal_generic.h:524
wifi_countrycode_ER
@ wifi_countrycode_ER
Definition: wifi_hal_generic.h:448
__attribute__::DCSSupported
unsigned char DCSSupported
Definition: wifi_hal_generic.h:666
wifi_countrycode_PK
@ wifi_countrycode_PK
Definition: wifi_hal_generic.h:558
_wifi_associated_dev3::cli_LastDataDownlinkRate
unsigned int cli_LastDataDownlinkRate
Definition: wifi_hal_generic.h:906
_wifi_associated_dev3::cli_RetransCount
unsigned long cli_RetransCount
Definition: wifi_hal_generic.h:931
wifi_countrycode_BD
@ wifi_countrycode_BD
Definition: wifi_hal_generic.h:402
wifi_countrycode_CL
@ wifi_countrycode_CL
Definition: wifi_hal_generic.h:427
wifi_countrycode_MD
@ wifi_countrycode_MD
Definition: wifi_hal_generic.h:520
wifi_countrycode_UG
@ wifi_countrycode_UG
Definition: wifi_hal_generic.h:610
wifi_countrycode_max
@ wifi_countrycode_max
Definition: wifi_hal_generic.h:630
WIFI_80211_VARIANT_G
@ WIFI_80211_VARIANT_G
Definition: wifi_hal_generic.h:309
wifi_countrycode_IQ
@ wifi_countrycode_IQ
Definition: wifi_hal_generic.h:486
wifi_countrycode_BW
@ wifi_countrycode_BW
Definition: wifi_hal_generic.h:416
wifi_countrycode_PN
@ wifi_countrycode_PN
Definition: wifi_hal_generic.h:561
wifi_init
int wifi_init()
This function call initializes all Wi-Fi radios.
wifi_countrycode_GU
@ wifi_countrycode_GU
Definition: wifi_hal_generic.h:473
wifi_countrycode_VA
@ wifi_countrycode_VA
Definition: wifi_hal_generic.h:615
__attribute__::numberOfElements
unsigned int numberOfElements
Definition: wifi_hal_generic.h:324
wifi_dl_mu_stats_t::cli_DownlinkMuType
wifi_dl_mu_type_t cli_DownlinkMuType
Definition: wifi_hal_generic.h:814
wifi_access_category_video
@ wifi_access_category_video
Definition: wifi_hal_generic.h:787
USHORT
#define USHORT
Definition: wifi_hal_generic.h:54
_wifi_frame_info::nr_rssi
wifi_streams_rssi_t nr_rssi
Definition: wifi_hal_generic.h:868
wifi_access_category_voice
@ wifi_access_category_voice
Definition: wifi_hal_generic.h:788
wifi_countrycode_AN
@ wifi_countrycode_AN
Definition: wifi_hal_generic.h:391
wifi_ul_mu_stats_t::cli_UpinkMuType
wifi_ul_mu_type_t cli_UpinkMuType
Definition: wifi_hal_generic.h:821
wifi_countrycode_AI
@ wifi_countrycode_AI
Definition: wifi_hal_generic.h:388
WIFI_FREQUENCY_5L_BAND
@ WIFI_FREQUENCY_5L_BAND
Definition: wifi_hal_generic.h:269
wifi_countrycode_GW
@ wifi_countrycode_GW
Definition: wifi_hal_generic.h:474
wifi_countrycode_TH
@ wifi_countrycode_TH
Definition: wifi_hal_generic.h:597
wifi_countrycode_AM
@ wifi_countrycode_AM
Definition: wifi_hal_generic.h:390
wifi_countrycode_HN
@ wifi_countrycode_HN
Definition: wifi_hal_generic.h:479
wifi_countrycode_SR
@ wifi_countrycode_SR
Definition: wifi_hal_generic.h:587
wifi_countrycode_AG
@ wifi_countrycode_AG
Definition: wifi_hal_generic.h:387
_wifi_associated_dev3::cli_SNR
int cli_SNR
Definition: wifi_hal_generic.h:914
WIFI_BITRATE_9MBPS
@ WIFI_BITRATE_9MBPS
Definition: wifi_hal_generic.h:336
__attribute__::rssi
int rssi
Definition: wifi_hal_generic.h:229
MAXNUMBEROFTRANSMIPOWERSUPPORTED
#define MAXNUMBEROFTRANSMIPOWERSUPPORTED
Definition: wifi_hal_generic.h:317
wifi_countrycode_PW
@ wifi_countrycode_PW
Definition: wifi_hal_generic.h:565
WIFI_DL_MU_TYPE_OFDMA_MIMO
@ WIFI_DL_MU_TYPE_OFDMA_MIMO
Definition: wifi_hal_generic.h:805
wifi_countrycode_SM
@ wifi_countrycode_SM
Definition: wifi_hal_generic.h:584
wifi_countrycode_UM
@ wifi_countrycode_UM
Definition: wifi_hal_generic.h:611
_wifi_associated_dev3::cli_ErrorsSent
unsigned long cli_ErrorsSent
Definition: wifi_hal_generic.h:930
wifi_frame_info_t
struct _wifi_frame_info wifi_frame_info_t
This structure hold the information about the wifi interface.
wifi_countrycode_TK
@ wifi_countrycode_TK
Definition: wifi_hal_generic.h:599
_wifi_associated_dev3::cli_FailedRetransCount
unsigned long cli_FailedRetransCount
Definition: wifi_hal_generic.h:932
WIFI_FREQUENCY_2_4_BAND
@ WIFI_FREQUENCY_2_4_BAND
Definition: wifi_hal_generic.h:267
wifi_countrycode_FJ
@ wifi_countrycode_FJ
Definition: wifi_hal_generic.h:452
wifi_twt_operation_t::implicit
unsigned char implicit
Definition: wifi_hal_generic.h:727
wifi_countrycode_TM
@ wifi_countrycode_TM
Definition: wifi_hal_generic.h:601
wifi_countrycode_CU
@ wifi_countrycode_CU
Definition: wifi_hal_generic.h:433
__attribute__::autoChannelSupported
unsigned char autoChannelSupported
Definition: wifi_hal_generic.h:665
wifi_associated_dev3_t
struct _wifi_associated_dev3 wifi_associated_dev3_t
This structure hold the information about the wifi interface.
r0r1_key_str_t
char r0r1_key_str_t[33]
Definition: wifi_hal_generic.h:221
wifi_countrycode_TW
@ wifi_countrycode_TW
Definition: wifi_hal_generic.h:607
wifi_countrycode_FR
@ wifi_countrycode_FR
Definition: wifi_hal_generic.h:456
wifi_countrycode_MM
@ wifi_countrycode_MM
Definition: wifi_hal_generic.h:526
wifi_countrycode_LS
@ wifi_countrycode_LS
Definition: wifi_hal_generic.h:513
wifi_countrycode_GT
@ wifi_countrycode_GT
Definition: wifi_hal_generic.h:472
wifi_access_category_t
wifi_access_category_t
Wifi access category (AC) type.
Definition: wifi_hal_generic.h:784
wifi_countrycode_PG
@ wifi_countrycode_PG
Definition: wifi_hal_generic.h:556
__attribute__::index
unsigned int index
Definition: wifi_hal_generic.h:655
MAX_RU_ALLOCATIONS
#define MAX_RU_ALLOCATIONS
Definition: wifi_hal_generic.h:170
wifi_countrycode_FO
@ wifi_countrycode_FO
Definition: wifi_hal_generic.h:455
wifi_countrycode_BY
@ wifi_countrycode_BY
Definition: wifi_hal_generic.h:417
wifi_streams_rssi_t
int wifi_streams_rssi_t[8]
Definition: wifi_hal_generic.h:848
wifi_countrycode_BJ
@ wifi_countrycode_BJ
Definition: wifi_hal_generic.h:408
wifi_countrycode_KZ
@ wifi_countrycode_KZ
Definition: wifi_hal_generic.h:506
wifi_twt_individual_params_t::channel
unsigned int channel
Definition: wifi_hal_generic.h:737
_wifi_associated_dev3::cli_PacketsReceived
unsigned long cli_PacketsReceived
Definition: wifi_hal_generic.h:929
WIFI_HAL_ENABLE
@ WIFI_HAL_ENABLE
Definition: wifi_hal_generic.h:252
wifi_countrycode_ST
@ wifi_countrycode_ST
Definition: wifi_hal_generic.h:588
wifi_countrycode_FI
@ wifi_countrycode_FI
Definition: wifi_hal_generic.h:451
wifi_countrycode_SK
@ wifi_countrycode_SK
Definition: wifi_hal_generic.h:582
_wifi_associated_dev3::cli_OperatingChannelBandwidth
char cli_OperatingChannelBandwidth[64]
Definition: wifi_hal_generic.h:913
_wifi_associated_dev3::cli_AuthenticationState
unsigned char cli_AuthenticationState
Definition: wifi_hal_generic.h:905
wifi_twt_params_t::operation
wifi_twt_operation_t operation
Definition: wifi_hal_generic.h:747
wifi_countrycode_KM
@ wifi_countrycode_KM
Definition: wifi_hal_generic.h:500
wifi_countrycode_JO
@ wifi_countrycode_JO
Definition: wifi_hal_generic.h:495
__attribute__::vlan_id
int vlan_id
Definition: wifi_hal_generic.h:684
wifi_operating_env_all
@ wifi_operating_env_all
Definition: wifi_hal_generic.h:634
wifi_twt_operation_t::flowID
unsigned int flowID
Definition: wifi_hal_generic.h:730
wifi_countrycode_CH
@ wifi_countrycode_CH
Definition: wifi_hal_generic.h:424
wifi_countrycode_IM
@ wifi_countrycode_IM
Definition: wifi_hal_generic.h:489
wifi_countrycode_GQ
@ wifi_countrycode_GQ
Definition: wifi_hal_generic.h:469
wifi_countrycode_DM
@ wifi_countrycode_DM
Definition: wifi_hal_generic.h:441
bssid_t
mac_address_t bssid_t
Definition: wifi_hal_generic.h:214
WIFI_80211_VARIANT_AX
@ WIFI_80211_VARIANT_AX
Definition: wifi_hal_generic.h:314
wifi_twt_broadcast_params_t::wakeDuration_uSec
unsigned int wakeDuration_uSec
Definition: wifi_hal_generic.h:741
wifi_countrycode_DO
@ wifi_countrycode_DO
Definition: wifi_hal_generic.h:442
wifi_twt_individual_params_t::minWakeDuration_uSec
unsigned int minWakeDuration_uSec
Definition: wifi_hal_generic.h:736
_wifi_associated_dev3::cli_MinRSSI
int cli_MinRSSI
Definition: wifi_hal_generic.h:921
wifi_countrycode_JM
@ wifi_countrycode_JM
Definition: wifi_hal_generic.h:492
_wifi_associated_dev3::cli_CsiData
wifi_csi_data_t * cli_CsiData
Definition: wifi_hal_generic.h:958
wifi_countrycode_MY
@ wifi_countrycode_MY
Definition: wifi_hal_generic.h:537
WIFI_CHANNELBANDWIDTH_160MHZ
@ WIFI_CHANNELBANDWIDTH_160MHZ
Definition: wifi_hal_generic.h:284
_wifi_frame_info::channel
unsigned int channel
Definition: wifi_hal_generic.h:874
WIFI_BITRATE_5_5MBPS
@ WIFI_BITRATE_5_5MBPS
Definition: wifi_hal_generic.h:334
wifi_countrycode_ZA
@ wifi_countrycode_ZA
Definition: wifi_hal_generic.h:627
wifi_countrycode_RS
@ wifi_countrycode_RS
Definition: wifi_hal_generic.h:570
wifi_factoryReset
int wifi_factoryReset()
Clears internal variables to implement a factory reset of the Wi-Fi subsystem.
_wifi_associated_dev3::cli_BytesReceived
unsigned long cli_BytesReceived
Definition: wifi_hal_generic.h:919
WIFI_BITRATE_2MBPS
@ WIFI_BITRATE_2MBPS
Definition: wifi_hal_generic.h:333
wifi_countrycode_NL
@ wifi_countrycode_NL
Definition: wifi_hal_generic.h:545
wifi_countrycode_UY
@ wifi_countrycode_UY
Definition: wifi_hal_generic.h:613
wifi_countrycode_NG
@ wifi_countrycode_NG
Definition: wifi_hal_generic.h:543
wifi_countrycode_CI
@ wifi_countrycode_CI
Definition: wifi_hal_generic.h:425
_wifi_associated_dev3::cli_DownlinkMuStats
wifi_ul_mu_stats_t cli_DownlinkMuStats
Definition: wifi_hal_generic.h:938
wifi_twt_broadcast_params_t
Definition: wifi_hal_generic.h:740
_wifi_frame_info::num_sc
unsigned int num_sc
Definition: wifi_hal_generic.h:872
wifi_dl_mu_stats_t
Definition: wifi_hal_generic.h:813
wifi_countrycode_ZW
@ wifi_countrycode_ZW
Definition: wifi_hal_generic.h:629
wifi_countrycode_VN
@ wifi_countrycode_VN
Definition: wifi_hal_generic.h:620
wifi_twt_sessions_t
Definition: wifi_hal_generic.h:764
wifi_twt_sessions_t::IdTWTsession
int IdTWTsession
Definition: wifi_hal_generic.h:766
wifi_countrycode_TF
@ wifi_countrycode_TF
Definition: wifi_hal_generic.h:595
wifi_countrycode_HK
@ wifi_countrycode_HK
Definition: wifi_hal_generic.h:480
_wifi_associated_dev3::cli_DataFramesSentNoAck
unsigned long cli_DataFramesSentNoAck
Definition: wifi_hal_generic.h:917
eWifiEnable
eWifiEnable
Definition: wifi_hal_generic.h:250
__attribute__::soudingFrameSupported
unsigned char soudingFrameSupported
Definition: wifi_hal_generic.h:646
wifi_countrycode_TN
@ wifi_countrycode_TN
Definition: wifi_hal_generic.h:602
wifi_countrycode_IR
@ wifi_countrycode_IR
Definition: wifi_hal_generic.h:485
wifi_countrycode_MC
@ wifi_countrycode_MC
Definition: wifi_hal_generic.h:519
WIFI_EVENT_CHANNELS_CHANGED
@ WIFI_EVENT_CHANNELS_CHANGED
Definition: wifi_hal_generic.h:829
r0r1_key_t
unsigned char r0r1_key_t[16]
Definition: wifi_hal_generic.h:220
wifi_dl_mu_type_t
wifi_dl_mu_type_t
Definition: wifi_hal_generic.h:801
wifi_countrycode_MV
@ wifi_countrycode_MV
Definition: wifi_hal_generic.h:534
wifi_twt_params_t::broadcast
wifi_twt_broadcast_params_t broadcast
Definition: wifi_hal_generic.h:750
__attribute__
typedef __attribute__
wifi_countrycode_KG
@ wifi_countrycode_KG
Definition: wifi_hal_generic.h:497
wifi_countrycode_HT
@ wifi_countrycode_HT
Definition: wifi_hal_generic.h:477
WIFI_BITRATE_11MBPS
@ WIFI_BITRATE_11MBPS
Definition: wifi_hal_generic.h:337
wifi_down
int wifi_down()
Turns off transmit power for the entire Wifi subsystem, for all radios.
wifi_countrycode_CO
@ wifi_countrycode_CO
Definition: wifi_hal_generic.h:430
__attribute__::version
wifi_hal_version_t version
Definition: wifi_hal_generic.h:710
wifi_countrycode_NA
@ wifi_countrycode_NA
Definition: wifi_hal_generic.h:539
wifi_ip_family_ipv4
@ wifi_ip_family_ipv4
Definition: wifi_hal_generic.h:238
WIFI_BITRATE_36MBPS
@ WIFI_BITRATE_36MBPS
Definition: wifi_hal_generic.h:341
wifi_countrycode_GA
@ wifi_countrycode_GA
Definition: wifi_hal_generic.h:457
wifi_countrycode_BR
@ wifi_countrycode_BR
Definition: wifi_hal_generic.h:412
params
Definition: wifi_hal_emu.h:5120
wifi_countrycode_NR
@ wifi_countrycode_NR
Definition: wifi_hal_generic.h:548
wifi_countrycode_MP
@ wifi_countrycode_MP
Definition: wifi_hal_generic.h:551
wifi_countrycode_QA
@ wifi_countrycode_QA
Definition: wifi_hal_generic.h:567
wifi_countrycode_AD
@ wifi_countrycode_AD
Definition: wifi_hal_generic.h:384
wifi_countrycode_JP
@ wifi_countrycode_JP
Definition: wifi_hal_generic.h:493
wifi_countrycode_HR
@ wifi_countrycode_HR
Definition: wifi_hal_generic.h:476
wifi_countrycode_AC
@ wifi_countrycode_AC
Definition: wifi_hal_generic.h:383
wifi_countrycode_NF
@ wifi_countrycode_NF
Definition: wifi_hal_generic.h:542
wifi_twt_operation_t::trigger_enabled
unsigned char trigger_enabled
Definition: wifi_hal_generic.h:729
wifi_stopHostApd
int wifi_stopHostApd()
Stops hostapd.
MAX_CHANNELS
#define MAX_CHANNELS
Definition: wifi_hal_generic.h:293
WIFI_RU_TYPE_242
@ WIFI_RU_TYPE_242
Definition: wifi_hal_generic.h:775
wifi_startHostApd
int wifi_startHostApd()
Starts hostapd.
wifi_countrycode_RW
@ wifi_countrycode_RW
Definition: wifi_hal_generic.h:572
wifi_countrycode_DE
@ wifi_countrycode_DE
Definition: wifi_hal_generic.h:438
wifi_countrycode_LB
@ wifi_countrycode_LB
Definition: wifi_hal_generic.h:508
wifi_countrycode_AO
@ wifi_countrycode_AO
Definition: wifi_hal_generic.h:392
wifi_ru_allocation_t::type
wifi_ru_type_t type
Definition: wifi_hal_generic.h:798
_wifi_csi_data::evm_matrix
wifi_evm_matrix_t evm_matrix
Definition: wifi_hal_generic.h:895
wifi_countrycode_SI
@ wifi_countrycode_SI
Definition: wifi_hal_generic.h:580
wifi_countrycode_ES
@ wifi_countrycode_ES
Definition: wifi_hal_generic.h:449
WIFI_DL_MU_TYPE_NONE
@ WIFI_DL_MU_TYPE_NONE
Definition: wifi_hal_generic.h:802
wifi_countrycode_BG
@ wifi_countrycode_BG
Definition: wifi_hal_generic.h:405
wifi_ip_family_t
wifi_ip_family_t
Definition: wifi_hal_generic.h:237
MAX_NC
#define MAX_NC
Definition: wifi_hal_generic.h:843
wifi_setLED
int wifi_setLED(int radioIndex, unsigned char enable)
Set the system LED status.
wifi_countrycode_CZ
@ wifi_countrycode_CZ
Definition: wifi_hal_generic.h:437
wifi_countrycode_type_t
wifi_countrycode_type_t
Definition: wifi_hal_generic.h:382
WIFI_80211_VARIANT_AD
@ WIFI_80211_VARIANT_AD
Definition: wifi_hal_generic.h:313
wifi_countrycode_TT
@ wifi_countrycode_TT
Definition: wifi_hal_generic.h:605
_wifi_associated_dev3::cli_BytesSent
unsigned long cli_BytesSent
Definition: wifi_hal_generic.h:918
wifi_countrycode_IN
@ wifi_countrycode_IN
Definition: wifi_hal_generic.h:483
wifi_countrycode_PY
@ wifi_countrycode_PY
Definition: wifi_hal_generic.h:566
__attribute__::maxNumberVAPs
unsigned int maxNumberVAPs
Definition: wifi_hal_generic.h:672
_wifi_associated_dev3::cli_PacketsSent
unsigned long cli_PacketsSent
Definition: wifi_hal_generic.h:928
MAX_PILOTS
#define MAX_PILOTS
Definition: wifi_hal_generic.h:845
wifi_countrycode_VC
@ wifi_countrycode_VC
Definition: wifi_hal_generic.h:616
wifi_twt_sessions_t::twtParameters
wifi_twt_params_t twtParameters
Definition: wifi_hal_generic.h:765
wifi_ul_mu_stats_t::cli_AllocatedUplinkRuNum
unsigned char cli_AllocatedUplinkRuNum
Definition: wifi_hal_generic.h:824
WIFI_FREQUENCY_5_BAND
@ WIFI_FREQUENCY_5_BAND
Definition: wifi_hal_generic.h:268
WIFI_RU_TYPE_2X996
@ WIFI_RU_TYPE_2X996
Definition: wifi_hal_generic.h:778
wifi_countrycode_BN
@ wifi_countrycode_BN
Definition: wifi_hal_generic.h:410
wifi_countrycode_GN
@ wifi_countrycode_GN
Definition: wifi_hal_generic.h:467
wifi_countrycode_NI
@ wifi_countrycode_NI
Definition: wifi_hal_generic.h:544
wifi_countrycode_MZ
@ wifi_countrycode_MZ
Definition: wifi_hal_generic.h:538
wifi_countrycode_GB
@ wifi_countrycode_GB
Definition: wifi_hal_generic.h:458
_wifi_frame_info::bw_mode
unsigned char bw_mode
Definition: wifi_hal_generic.h:862
__attribute__::csi
wifi_radio_csi_capabilities_t csi
Definition: wifi_hal_generic.h:668
wifi_countrycode_PM
@ wifi_countrycode_PM
Definition: wifi_hal_generic.h:560
wifi_countrycode_MQ
@ wifi_countrycode_MQ
Definition: wifi_hal_generic.h:529
wifi_evm_data_t
unsigned char wifi_evm_data_t[4][8]
Definition: wifi_hal_generic.h:854
__attribute__::phy_index
unsigned int phy_index
Definition: wifi_hal_generic.h:680
wifi_countrycode_VG
@ wifi_countrycode_VG
Definition: wifi_hal_generic.h:618
wifi_csi_data_t
struct _wifi_csi_data wifi_csi_data_t
This structure hold the information about the wifi interface.
_wifi_csi_data::csi_matrix
wifi_csi_matrix_t csi_matrix
Definition: wifi_hal_generic.h:886
wifi_80211ax_params_t::twt_params
wifi_twt_params_t twt_params
Definition: wifi_hal_generic.h:756
wifi_countrycode_MN
@ wifi_countrycode_MN
Definition: wifi_hal_generic.h:527
wifi_countrycode_SE
@ wifi_countrycode_SE
Definition: wifi_hal_generic.h:576
_wifi_associated_dev3::cli_MaxUplinkRate
unsigned int cli_MaxUplinkRate
Definition: wifi_hal_generic.h:937
wifi_countrycode_BS
@ wifi_countrycode_BS
Definition: wifi_hal_generic.h:413
mac_address_t
unsigned char mac_address_t[6]
Definition: wifi_hal_generic.h:211
wifi_twt_agreement_type_broadcast
@ wifi_twt_agreement_type_broadcast
Definition: wifi_hal_generic.h:720
wifi_countrycode_EC
@ wifi_countrycode_EC
Definition: wifi_hal_generic.h:444
wifi_countrycode_AF
@ wifi_countrycode_AF
Definition: wifi_hal_generic.h:386
u_int32_t
unsigned int u_int32_t
Definition: wifi_hal_generic.h:217
wifi_countrycode_CF
@ wifi_countrycode_CF
Definition: wifi_hal_generic.h:422
_wifi_associated_dev3::cli_OperatingStandard
char cli_OperatingStandard[64]
Definition: wifi_hal_generic.h:912
wifi_countrycode_TL
@ wifi_countrycode_TL
Definition: wifi_hal_generic.h:600
_wifi_associated_dev3::cli_SignalStrength
int cli_SignalStrength
Definition: wifi_hal_generic.h:908
wifi_reset
int wifi_reset()
Resets the Wifi subsystem. This includes reset of all Access Point variables.
wifi_countrycode_FK
@ wifi_countrycode_FK
Definition: wifi_hal_generic.h:453
wifi_countrycode_AW
@ wifi_countrycode_AW
Definition: wifi_hal_generic.h:398
wifi_countrycode_PA
@ wifi_countrycode_PA
Definition: wifi_hal_generic.h:553
wifi_countrycode_IT
@ wifi_countrycode_IT
Definition: wifi_hal_generic.h:490
wifi_countrycode_RO
@ wifi_countrycode_RO
Definition: wifi_hal_generic.h:569
WIFI_RU_TYPE_26
@ WIFI_RU_TYPE_26
Definition: wifi_hal_generic.h:772
wifi_countrycode_CN
@ wifi_countrycode_CN
Definition: wifi_hal_generic.h:429
wifi_twt_params_t::agreement
wifi_twt_agreement_type_t agreement
Definition: wifi_hal_generic.h:746
wifi_countrycode_VU
@ wifi_countrycode_VU
Definition: wifi_hal_generic.h:621
wifi_countrycode_IO
@ wifi_countrycode_IO
Definition: wifi_hal_generic.h:491
wifi_countrycode_GY
@ wifi_countrycode_GY
Definition: wifi_hal_generic.h:475
wifi_countrycode_EE
@ wifi_countrycode_EE
Definition: wifi_hal_generic.h:445