17#ifndef __NBWIFIDCONSTANTS_H
18#define __NBWIFIDCONSTANTS_H
22#define SSID_MAX_LEN 32
23#define PASS_MAX_LEN 64
24#define SEC_HUMAN_MAX_LEN 32
25#define CIPHER_HUMAN_MAX_LEN 32
27#define LIST_TABLE_NUM (0x00)
28#define SEC_TABLE_NUM (0x01)
29#define CIPH_TABLE_NUM (0x02)
30#define BAND_TABLE_NUM (0x03)
31#define CHANNEL_TABLE_NUM (0x04)
32#define BSSTYPE_TABLE_NUM (0x05)
33#define BSSID_TABLE_NUM (0x06)
34#define SCAN_TABLE_NUM (0x07)
35#define CONNMODE_TABLE_NUM (0x08)
36#define ITU_CTRY_TABLE_NUM (0x09)
37#define DEFAULT_TABLE_TABLE_NUM (0xFF)
39#define LIST_TABLE_SIZE (10)
41#define LIST_LABEL_MASTER "Master Table"
42#define LIST_LABEL_SEC "Security"
43#define LIST_LABEL_CIPH "Cipher"
44#define LIST_LABEL_BAND "Band"
45#define LIST_LABEL_CHANNEL "Channel"
46#define LIST_LABEL_BSSTYPE "BssType"
47#define LIST_LABEL_BSSID "BSSID"
48#define LIST_LABEL_SCAN "Scan Method"
49#define LIST_LABEL_CONNMODE "Connection Mode"
50#define LIST_LABEL_ITU_CTRY "Country"
51#define LIST_LABEL_DEFAULT "Default Values"
53#define LIST_VALUE_MASTER LIST_TABLE_NUM
54#define LIST_VALUE_SEC SEC_TABLE_NUM
55#define LIST_VALUE_CIPH CIPH_TABLE_NUM
56#define LIST_VALUE_BAND BAND_TABLE_NUM
57#define LIST_VALUE_CHANNEL CHANNEL_TABLE_NUM
58#define LIST_VALUE_BSSTYPE BSSTYPE_TABLE_NUM
59#define LIST_VALUE_BSSID BSSID_TABLE_NUM
60#define LIST_VALUE_SCAN SCAN_TABLE_NUM
61#define LIST_VALUE_CONNMODE CONNMODE_TABLE_NUM
62#define LIST_VALUE_ITU_CTRY ITU_CTRY_TABLE_NUM
63#define LIST_VALUE_DEFAULT DEFAULT_TABLE_TABLE_NUM
65#define SEC_TABLE_SIZE (6)
67#define SEC_LABEL_OPEN "Open"
68#define SEC_LABEL_WEP "WEP"
69#define SEC_LABEL_WPA "WPA"
70#define SEC_LABEL_WPA2 "WPA2"
71#define SEC_LABEL_WPS "WPS"
72#define SEC_LABEL_UNKNOWN "Unknown"
79#define SEC_VALUE_OPEN (0x00)
80#define SEC_VALUE_WEP (0x01)
81#define SEC_VALUE_WPA (0x02)
82#define SEC_VALUE_WPA2 (0x03)
83#define SEC_VALUE_WPS (0x04)
84#define SEC_VALUE_ANY (0xFE)
85#define SEC_VALUE_UNKNOWN (0xFF)
88#define CIPH_TABLE_SIZE (5)
90#define CIPH_LABEL_NONE "None"
91#define CIPH_LABEL_TKIP "TKIP"
92#define CIPH_LABEL_AES "AES"
93#define CIPH_LABEL_MIXED "Mixed"
94#define CIPH_LABEL_UNKNOWN "Unknown"
101#define CIPH_VALUE_NONE (0x00)
102#define CIPH_VALUE_TKIP (0x01)
103#define CIPH_VALUE_AES (0x02)
104#define CIPH_VALUE_MIXED (0x03)
105#define CIPH_VALUE_UNKNOWN (0xFF)
113#define BAND_TABLE_SIZE (2)
115#define BAND_LABEL_5_GHZ "5 GHz"
116#define BAND_LABEL_2_4_GHZ "2.4 GHz"
118#define BAND_VALUE_5_GHZ (0x00)
119#define BAND_VALUE_2_4_GHZ (0x01)
121#define BSSTYPE_TABLE_SIZE (4)
123#define BSSTYPE_LABEL_INFR "Infrastructure"
124#define BSSTYPE_LABEL_ADHOC "AdHoc"
125#define BSSTYPE_LABEL_ANY "Any"
126#define BSSTYPE_LABEL_UNKNOWN "Unknown"
134#define BSSTYPE_VALUE_INFR (0x00)
135#define BSSTYPE_VALUE_ADHOC (0x01)
136#define BSSTYPE_VALUE_ANY (0x02)
137#define BSSTYPE_VALUE_UNKNOWN (0xFF)
140#define SCAN_TABLE_SIZE (2)
142#define SCAN_LABEL_ACTIVE "Active"
143#define SCAN_LABEL_PASSIVE "Passive"
145#define SCAN_VALUE_ACTIVE (0x00)
146#define SCAN_VALUE_PASSIVE (0x01)
148#define CONNMODE_TABLE_SIZE (2)
150#define CONNMODE_LABEL_CLIENT "Client"
151#define CONNMODE_LABEL_AP "Access Point"
153#define CONNMODE_VALUE_CLIENT (0x00)
154#define CONNMODE_VALUE_AP (0x01)
156#define DEFAULT_TABLE_TABLE_SIZE (LIST_TABLE_SIZE - 1)
158#define DEFAULT_TABLE_LABEL_SEC SEC_VALUE_WPA2
159#define DEFAULT_TABLE_LABEL_CIPH CIPH_VALUE_AES
160#define DEFAULT_TABLE_LABEL_BAND BAND_VALUE_2_4_GHZ
161#define DEFAULT_TABLE_LABEL_CHANNEL (0x06)
162#define DEFAULT_TABLE_LABEL_BSSTYPE BSSTYPE_VALUE_ANY
163#define DEFAULT_TABLE_LABEL_BSSID (0x00)
164#define DEFAULT_TABLE_LABEL_SCAN SCAN_VALUE_PASSIVE
165#define DEFAULT_TABLE_LABEL_CONNMODE CONNMODE_VALUE_CLIENT
166#define DEFAULT_TABLE_LABEL_ITU_CTRY (0x00)
168#define DEFAULT_TABLE_VALUE_SEC LIST_VALUE_SEC
169#define DEFAULT_TABLE_VALUE_CIPH LIST_VALUE_CIPH
170#define DEFAULT_TABLE_VALUE_BAND LIST_VALUE_BAND
171#define DEFAULT_TABLE_VALUE_CHANNEL LIST_VALUE_CHANNEL
172#define DEFAULT_TABLE_VALUE_BSSTYPE LIST_VALUE_BSSTYPE
173#define DEFAULT_TABLE_VALUE_BSSID LIST_VALUE_BSSID
174#define DEFAULT_TABLE_VALUE_SCAN LIST_VALUE_SCAN
175#define DEFAULT_TABLE_VALUE_CONNMODE LIST_VALUE_CONNMODE
176#define DEFAULT_TABLE_VALUE_ITU_CTRY LIST_VALUE_ITU_CTRY
183#define CONFIG_ERR_SUCCESS 0
184#define CONFIG_ERR_MSG_LENGTH -1
185#define CONFIG_ERR_SSID_LEN_SHORT -2
186#define CONFIG_ERR_SSID_LEN_LONG -3
187#define CONFIG_ERR_PASSWD_LEN_LONG -4
188#define CONFIG_ERR_INVALID_TABLE -5
189#define CONFIG_ERR_INVALID_OPTION -6
190#define CONFIG_ERR_BSSID_OVERRUN -7
191#define CONFIG_ERR_BSSID_UNDERRUN -8
192#define CONFIG_ERR_MULTI_CHANNEL -9
193#define CONFIG_ERR_CONNECTED -10
194#define CONFIG_ERR_UNKNOWN 1
202#define CONNECT_ERR_SUCCESS 0
203#define CONNECT_ERR_NOT_CONFIG -1
204#define CONNECT_ERR_INVALID_CONFIG_NUM -2
205#define CONNECT_ERR_CONNECTED -3
206#define CONNECT_ERR_SSID_NOT_FOUND -4
207#define CONNECT_ERR_BSSID_NOT_FOUND -5
208#define CONNECT_ERR_SEC_MISMATCH -6
209#define CONNECT_ERR_CIPH_MISMATCH -7
210#define CONNECT_ERR_INVALID_KEY -8
211#define CONNECT_ERR_UNKNOWN 1
219#define SCAN_ERR_SUCCESS 0
220#define SCAN_ERR_MSG_LENGTH -1
221#define SCAN_ERR_IN_PROGRESS -2
222#define SCAN_ERR_SSID_LEN_LONG -3
223#define SCAN_ERR_INVALID_TABLE -4
224#define SCAN_ERR_INVALID_OPTION -5
225#define SCAN_ERR_TOO_MANY_CHANNELS -6
226#define SCAN_ERR_UNKNOWN 1
234#define SAVE_CONF_ERR_SUCCESS 0
235#define SAVE_CONF_ERR_INVALID_CONFIG_NUM -1
236#define SAVE_CONF_ERR_NOT_CONFIGURED -2
237#define SAVE_CONF_ERR_UNKNOWN 1
240#define DRIVER_ERR_SUCCESS 0
241#define DRIVER_ERR_UNKNOWN 1
243#define GETOPT_ERR_SUCCESS 0
244#define GETOPT_ERR_INVALID_TABLE -1
245#define GETOPT_ERR_UNKNOWN 1
247#define CONN_STATE_SCAN_FOR_CONN -1
248#define CONN_STATE_NOT_CONNECTED 0
249#define CONN_STATE_CONNECTED 1
251#define MIN_FW_MAJOR_VER 0x00
252#define MIN_FW_MINOR_VER 0x00
253#define MAX_FW_MAJOR_VER 0xFF
254#define MAX_FW_MINOR_VER 0xFF
260#define NB_OUI_OCTET_0 (uint8_t)(0x00)
261#define NB_OUI_OCTET_1 (uint8_t)(0x03)
262#define NB_OUI_OCTET_2 (uint8_t)(0xf4)
273 TaskStart_Err_NoError = 0,
274 TaskStart_Err_Running = -1,
275 TaskStart_Err_NotRegistered = -2,
283 TaskKill_Err_NoError = 0,
284 TaskKill_Err_NotRunning = -1,
293 Connect_BadPass = -1,
294 Connect_NoAPFound = -2,
295 Connect_BSSID_NotFound = -3,
296 Connect_TimedOut = -4,
314 BssType_Infrastructure = 0,
317 BssType_Unknown = 255,
431#define CTRY_CODE(a, b, rev) (((uint8_t)(b)) + (((uint8_t)(a)) << 8) + (((uint8_t)(rev)) << 24) + (__COUNTER__ & 0x0))
432#elif defined NB_LITTLE_ENDIAN
433#define CTRY_CODE(a, b, rev) (((uint8_t)(a)) + (((uint8_t)(b)) << 8) + (((uint8_t)(rev)) << 24) + (__COUNTER__ & 0x0))
435#error Must define device endianess
441 _COUNTRY_BASE = __COUNTER__
446 Afghanistan = CTRY_CODE(
'A',
'F', 0),
447 Albania = CTRY_CODE(
'A',
'L', 0),
448 Algeria = CTRY_CODE(
'D',
'Z', 0),
449 American_Samoa = CTRY_CODE(
'A',
'S', 0),
450 Angola = CTRY_CODE(
'A',
'O', 0),
451 Anguilla = CTRY_CODE(
'A',
'I', 0),
452 Antigua_And_Barbuda = CTRY_CODE(
'A',
'G', 0),
453 Argentina = CTRY_CODE(
'A',
'R', 0),
454 Armenia = CTRY_CODE(
'A',
'M', 0),
455 Aruba = CTRY_CODE(
'A',
'W', 0),
456 Australia = CTRY_CODE(
'A',
'U', 0),
457 Austria = CTRY_CODE(
'A',
'T', 0),
458 Azerbaijan = CTRY_CODE(
'A',
'Z', 0),
459 Bahamas = CTRY_CODE(
'B',
'S', 0),
460 Bahrain = CTRY_CODE(
'B',
'H', 0),
461 Baker_Island = CTRY_CODE(
'0',
'B', 0),
462 Bangladesh = CTRY_CODE(
'B',
'D', 0),
463 Barbados = CTRY_CODE(
'B',
'B', 0),
464 Belarus = CTRY_CODE(
'B',
'Y', 0),
465 Belgium = CTRY_CODE(
'B',
'E', 0),
466 Belize = CTRY_CODE(
'B',
'Z', 0),
467 Benin = CTRY_CODE(
'B',
'J', 0),
468 Bermuda = CTRY_CODE(
'B',
'M', 0),
469 Bhutan = CTRY_CODE(
'B',
'T', 0),
470 Bolivia = CTRY_CODE(
'B',
'O', 0),
471 Bosnia_And_Herzegovina = CTRY_CODE(
'B',
'A', 0),
472 Botswana = CTRY_CODE(
'B',
'W', 0),
473 Brazil = CTRY_CODE(
'B',
'R', 0),
474 British_Indian_Ocean_Territory = CTRY_CODE(
'I',
'O', 0),
475 Brunei_Darussalam = CTRY_CODE(
'B',
'N', 0),
476 Bulgaria = CTRY_CODE(
'B',
'G', 0),
477 Burkina_Faso = CTRY_CODE(
'B',
'F', 0),
478 Burundi = CTRY_CODE(
'B',
'I', 0),
479 Cambodia = CTRY_CODE(
'K',
'H', 0),
480 Cameroon = CTRY_CODE(
'C',
'M', 0),
481 Canada = CTRY_CODE(
'C',
'A', 0),
482 Cape_Verde = CTRY_CODE(
'C',
'V', 0),
483 Cayman_Islands = CTRY_CODE(
'K',
'Y', 0),
484 Central_African_Republic = CTRY_CODE(
'C',
'F', 0),
485 Chad = CTRY_CODE(
'T',
'D', 0),
486 Chile = CTRY_CODE(
'C',
'L', 0),
487 China = CTRY_CODE(
'C',
'N', 0),
488 Christmas_Island = CTRY_CODE(
'C',
'X', 0),
489 Colombia = CTRY_CODE(
'C',
'O', 0),
490 Comoros = CTRY_CODE(
'K',
'M', 0),
491 Congo = CTRY_CODE(
'C',
'G', 0),
492 Congo_The_Democratic_Republic_Of_The = CTRY_CODE(
'C',
'D', 0),
493 Costa_Rica = CTRY_CODE(
'C',
'R', 0),
494 Cote_Divoire = CTRY_CODE(
'C',
'I', 0),
495 Croatia = CTRY_CODE(
'H',
'R', 0),
496 Cuba = CTRY_CODE(
'C',
'U', 0),
497 Cyprus = CTRY_CODE(
'C',
'Y', 0),
498 Czech_Republic = CTRY_CODE(
'C',
'Z', 0),
499 Denmark = CTRY_CODE(
'D',
'K', 0),
500 Djibouti = CTRY_CODE(
'D',
'J', 0),
501 Dominica = CTRY_CODE(
'D',
'M', 0),
502 Dominican_Republic = CTRY_CODE(
'D',
'O', 0),
503 Down_Under = CTRY_CODE(
'A',
'U', 0),
504 Ecuador = CTRY_CODE(
'E',
'C', 0),
505 Egypt = CTRY_CODE(
'E',
'G', 0),
506 El_Salvador = CTRY_CODE(
'S',
'V', 0),
507 Equatorial_Guinea = CTRY_CODE(
'G',
'Q', 0),
508 Eritrea = CTRY_CODE(
'E',
'R', 0),
509 Estonia = CTRY_CODE(
'E',
'E', 0),
510 Ethiopia = CTRY_CODE(
'E',
'T', 0),
511 Falkland_Islands_Malvinas = CTRY_CODE(
'F',
'K', 0),
512 Faroe_Islands = CTRY_CODE(
'F',
'O', 0),
513 Fiji = CTRY_CODE(
'F',
'J', 0),
514 Finland = CTRY_CODE(
'F',
'I', 0),
515 France = CTRY_CODE(
'F',
'R', 0),
516 French_Guina = CTRY_CODE(
'G',
'F', 0),
517 French_Polynesia = CTRY_CODE(
'P',
'F', 0),
518 French_Southern_Territories = CTRY_CODE(
'T',
'F', 0),
519 Gabon = CTRY_CODE(
'G',
'A', 0),
520 Gambia = CTRY_CODE(
'G',
'M', 0),
521 Georgia = CTRY_CODE(
'G',
'E', 0),
522 Germany = CTRY_CODE(
'D',
'E', 0),
523 Ghana = CTRY_CODE(
'G',
'H', 0),
524 Gibraltar = CTRY_CODE(
'G',
'I', 0),
525 Greece = CTRY_CODE(
'G',
'R', 0),
526 Grenada = CTRY_CODE(
'G',
'D', 0),
527 Guadeloupe = CTRY_CODE(
'G',
'P', 0),
528 Guam = CTRY_CODE(
'G',
'U', 0),
529 Guatemala = CTRY_CODE(
'G',
'T', 0),
530 Guernsey = CTRY_CODE(
'G',
'G', 0),
531 Guinea = CTRY_CODE(
'G',
'N', 0),
532 Guinea_Bissau = CTRY_CODE(
'G',
'W', 0),
533 Guyana = CTRY_CODE(
'G',
'Y', 0),
534 Haiti = CTRY_CODE(
'H',
'T', 0),
535 Holy_See_Vatican_City_State = CTRY_CODE(
'V',
'A', 0),
536 Honduras = CTRY_CODE(
'H',
'N', 0),
537 Hong_Kong = CTRY_CODE(
'H',
'K', 0),
538 Hungary = CTRY_CODE(
'H',
'U', 0),
539 Iceland = CTRY_CODE(
'I',
'S', 0),
540 India = CTRY_CODE(
'I',
'N', 0),
541 Indonesia = CTRY_CODE(
'I',
'D', 0),
542 Iran_Islamic_Republic_Of = CTRY_CODE(
'I',
'R', 0),
543 Iraq = CTRY_CODE(
'I',
'Q', 0),
544 Ireland = CTRY_CODE(
'I',
'E', 0),
545 Israel = CTRY_CODE(
'I',
'L', 0),
546 Italy = CTRY_CODE(
'I',
'T', 0),
547 Jamaica = CTRY_CODE(
'J',
'M', 0),
548 Japan = CTRY_CODE(
'J',
'P', 2),
549 Jersey = CTRY_CODE(
'J',
'E', 0),
550 Jordan = CTRY_CODE(
'J',
'O', 0),
551 Kazakhstan = CTRY_CODE(
'K',
'Z', 0),
552 Kenya = CTRY_CODE(
'K',
'E', 0),
553 Kiribati = CTRY_CODE(
'K',
'I', 0),
554 Korea_Republic_Of = CTRY_CODE(
'K',
'R', 0),
555 Kosovo = CTRY_CODE(
'0',
'A', 0),
556 Kuwait = CTRY_CODE(
'K',
'W', 0),
557 Kyrgyzstan = CTRY_CODE(
'K',
'G', 0),
558 Lao_Peoples_Democratic_Repubic = CTRY_CODE(
'L',
'A', 0),
559 Latvia = CTRY_CODE(
'L',
'V', 0),
560 Lebanon = CTRY_CODE(
'L',
'B', 0),
561 Lesotho = CTRY_CODE(
'L',
'S', 0),
562 Liberia = CTRY_CODE(
'L',
'R', 0),
563 Libyan_Arab_Jamahiriya = CTRY_CODE(
'L',
'Y', 0),
564 Liechtenstein = CTRY_CODE(
'L',
'I', 0),
565 Lithuania = CTRY_CODE(
'L',
'T', 0),
566 Luxembourg = CTRY_CODE(
'L',
'U', 0),
567 Macao = CTRY_CODE(
'M',
'O', 0),
568 Macedonia_Former_Yugoslav_Republic_Of = CTRY_CODE(
'M',
'K', 0),
569 Madagascar = CTRY_CODE(
'M',
'G', 0),
570 Malawi = CTRY_CODE(
'M',
'W', 0),
571 Malaysia = CTRY_CODE(
'M',
'Y', 0),
572 Maldives = CTRY_CODE(
'M',
'V', 0),
573 Mali = CTRY_CODE(
'M',
'L', 0),
574 Malta = CTRY_CODE(
'M',
'T', 0),
575 Man_Isle_Of = CTRY_CODE(
'I',
'M', 0),
576 Martinique = CTRY_CODE(
'M',
'Q', 0),
577 Mauritania = CTRY_CODE(
'M',
'R', 0),
578 Mauritius = CTRY_CODE(
'M',
'U', 0),
579 Mayotte = CTRY_CODE(
'Y',
'T', 0),
580 Mexico = CTRY_CODE(
'M',
'X', 0),
581 Micronesia_Federated_States_Of = CTRY_CODE(
'F',
'M', 0),
582 Moldova_Republic_Of = CTRY_CODE(
'M',
'D', 0),
583 Monaco = CTRY_CODE(
'M',
'C', 0),
584 Mongolia = CTRY_CODE(
'M',
'N', 0),
585 Montenegro = CTRY_CODE(
'M',
'E', 0),
586 Montserrat = CTRY_CODE(
'M',
'S', 0),
587 Morocco = CTRY_CODE(
'M',
'A', 0),
588 Mozambique = CTRY_CODE(
'M',
'Z', 0),
589 Myanmar = CTRY_CODE(
'M',
'M', 0),
590 Namibia = CTRY_CODE(
'N',
'A', 0),
591 Nauru = CTRY_CODE(
'N',
'R', 0),
592 Nepal = CTRY_CODE(
'N',
'P', 0),
593 Netherlands = CTRY_CODE(
'N',
'L', 0),
594 Netherlands_Antilles = CTRY_CODE(
'A',
'N', 0),
595 New_Caledonia = CTRY_CODE(
'N',
'C', 0),
596 New_Zealand = CTRY_CODE(
'N',
'Z', 0),
597 Nicaragua = CTRY_CODE(
'N',
'I', 0),
598 Niger = CTRY_CODE(
'N',
'E', 0),
599 Nigeria = CTRY_CODE(
'N',
'G', 0),
600 Norfolk_Island = CTRY_CODE(
'N',
'F', 0),
601 Northern_Mariana_Islands = CTRY_CODE(
'M',
'P', 0),
602 Norway = CTRY_CODE(
'N',
'O', 0),
603 Oman = CTRY_CODE(
'O',
'M', 0),
604 Pakistan = CTRY_CODE(
'P',
'K', 0),
605 Palau = CTRY_CODE(
'P',
'W', 0),
606 Panama = CTRY_CODE(
'P',
'A', 0),
607 Papua_New_Guinea = CTRY_CODE(
'P',
'G', 0),
608 Paraguay = CTRY_CODE(
'P',
'Y', 0),
609 Peru = CTRY_CODE(
'P',
'E', 0),
610 Philippines = CTRY_CODE(
'P',
'H', 0),
611 Poland = CTRY_CODE(
'P',
'L', 0),
612 Portugal = CTRY_CODE(
'P',
'T', 0),
613 Pueto_Rico = CTRY_CODE(
'P',
'R', 0),
614 Qatar = CTRY_CODE(
'Q',
'A', 0),
615 Reunion = CTRY_CODE(
'R',
'E', 0),
616 Romania = CTRY_CODE(
'R',
'O', 0),
617 Russian_Federation = CTRY_CODE(
'R',
'U', 0),
618 Rwanda = CTRY_CODE(
'R',
'W', 0),
619 Saint_Kitts_And_Nevis = CTRY_CODE(
'K',
'N', 0),
620 Saint_Lucia = CTRY_CODE(
'L',
'C', 0),
621 Saint_Pierre_And_Miquelon = CTRY_CODE(
'P',
'M', 0),
622 Saint_Vincent_And_The_Grenadines = CTRY_CODE(
'V',
'C', 0),
623 Samoa = CTRY_CODE(
'W',
'S', 0),
624 Sanit_Martin_Sint_Marteen = CTRY_CODE(
'M',
'F', 0),
625 Sao_Tome_And_Principe = CTRY_CODE(
'S',
'T', 0),
626 Saudi_Arabia = CTRY_CODE(
'S',
'A', 0),
627 Senegal = CTRY_CODE(
'S',
'N', 0),
628 Serbia = CTRY_CODE(
'R',
'S', 0),
629 Seychelles = CTRY_CODE(
'S',
'C', 0),
630 Sierra_Leone = CTRY_CODE(
'S',
'L', 0),
631 Singapore = CTRY_CODE(
'S',
'G', 0),
632 Slovakia = CTRY_CODE(
'S',
'K', 0),
633 Slovenia = CTRY_CODE(
'S',
'I', 0),
634 Solomon_Islands = CTRY_CODE(
'S',
'B', 0),
635 Somalia = CTRY_CODE(
'S',
'O', 0),
636 South_Africa = CTRY_CODE(
'Z',
'A', 0),
637 Spain = CTRY_CODE(
'E',
'S', 0),
638 Sri_Lanka = CTRY_CODE(
'L',
'K', 0),
639 Suriname = CTRY_CODE(
'S',
'R', 0),
640 Swaziland = CTRY_CODE(
'S',
'Z', 0),
641 Sweden = CTRY_CODE(
'S',
'E', 0),
642 Switzerland = CTRY_CODE(
'C',
'H', 0),
643 Syrian_Arab_Republic = CTRY_CODE(
'S',
'Y', 0),
644 Taiwan_Province_Of_China = CTRY_CODE(
'T',
'W', 0),
645 Tajikistan = CTRY_CODE(
'T',
'J', 0),
646 Tanzania_United_Republic_Of = CTRY_CODE(
'T',
'Z', 0),
647 Thailand = CTRY_CODE(
'T',
'H', 0),
648 Togo = CTRY_CODE(
'T',
'G', 0),
649 Tonga = CTRY_CODE(
'T',
'O', 0),
650 Trinidad_And_Tobago = CTRY_CODE(
'T',
'T', 0),
651 Tunisia = CTRY_CODE(
'T',
'N', 0),
652 Turkey = CTRY_CODE(
'T',
'R', 0),
653 Turkmenistan = CTRY_CODE(
'T',
'M', 0),
654 Turks_And_Caicos_Islands = CTRY_CODE(
'T',
'C', 0),
655 Tuvalu = CTRY_CODE(
'T',
'V', 0),
656 Uganda = CTRY_CODE(
'U',
'G', 0),
657 Ukraine = CTRY_CODE(
'U',
'A', 0),
658 United_Arab_Emirates = CTRY_CODE(
'A',
'E', 0),
659 United_Kingdom = CTRY_CODE(
'G',
'B', 0),
660 United_States = CTRY_CODE(
'U',
'S', 0),
661 United_States_Rev4 = CTRY_CODE(
'U',
'S', 4),
662 United_States_No_Dfs = CTRY_CODE(
'Q',
'2', 0),
663 United_States_Minor_Outlying_Islands = CTRY_CODE(
'U',
'M', 0),
664 Uruguay = CTRY_CODE(
'U',
'Y', 0),
665 Uzbekistan = CTRY_CODE(
'U',
'Z', 0),
666 Vanuatu = CTRY_CODE(
'V',
'U', 0),
667 Venezuela = CTRY_CODE(
'V',
'E', 0),
668 Viet_Nam = CTRY_CODE(
'V',
'N', 0),
669 Virgin_Islands_British = CTRY_CODE(
'V',
'G', 0),
670 Virgin_Islands_Us = CTRY_CODE(
'V',
'I', 0),
671 Wallis_And_Futuna = CTRY_CODE(
'W',
'F', 0),
672 West_Bank = CTRY_CODE(
'0',
'C', 0),
673 Western_Sahara = CTRY_CODE(
'E',
'H', 0),
674 World_Wide_Xx = CTRY_CODE(
'X',
'X', 0),
675 Yemen = CTRY_CODE(
'Y',
'E', 0),
676 Zambia = CTRY_CODE(
'Z',
'M', 0),
677 Zimbabwe = CTRY_CODE(
'Z',
'W', 0),
682 NUM_COUNTRIES = __COUNTER__ - _COUNTRY_BASE
ConnectErrors
Definition nbWifiConstants.h:411
@ BSSID_NotFound
BSSID Not Found.
Definition nbWifiConstants.h:418
@ Sec_NotFound
Sec Not Found.
Definition nbWifiConstants.h:419
@ Success
Success.
Definition nbWifiConstants.h:412
@ Cipher_NotFound
Cipher Not Found.
Definition nbWifiConstants.h:420
@ NotInitialized
Not Initialized.
Definition nbWifiConstants.h:413
@ Option
Option.
Definition nbWifiConstants.h:415
@ AlreadyConnected
Already Connected.
Definition nbWifiConstants.h:414
@ ConnectFailed
Connect Failed.
Definition nbWifiConstants.h:421
@ SSID_NotFound
SSID Not Found.
Definition nbWifiConstants.h:417
@ CouldNotConfig
Could Not Configure.
Definition nbWifiConstants.h:416
InitializationErrors
Definition nbWifiConstants.h:368
@ InvalidInfo
Invalid Info.
Definition nbWifiConstants.h:372
@ DevFirmVer
Device Firmware Version.
Definition nbWifiConstants.h:373
@ DevHwVer
Device Hardware Version.
Definition nbWifiConstants.h:374
@ NoDevice
No Device detected or attempting to use WiFi functions on an un-initialized device.
Definition nbWifiConstants.h:371
@ OptionTables
Option Tables.
Definition nbWifiConstants.h:375
@ AlreadyInit
Already Inittialized.
Definition nbWifiConstants.h:370
@ Success
Success.
Definition nbWifiConstants.h:369
ScanErrors
Definition nbWifiConstants.h:391
@ NotInitialized
Not Initialized.
Definition nbWifiConstants.h:393
@ Option
Option.
Definition nbWifiConstants.h:395
@ InProgress
In Progress.
Definition nbWifiConstants.h:394
@ Success
Success.
Definition nbWifiConstants.h:392
GeneralErrors
Definition nbWifiConstants.h:347
@ NoError
Successful execution.
Definition nbWifiConstants.h:348
@ Timeout
Request timed out.
Definition nbWifiConstants.h:349
@ InvalidRequest
Invalid request.
Definition nbWifiConstants.h:353
@ TooManyPendingCommands
Too many pending commands.
Definition nbWifiConstants.h:352
@ InvalidArgument
Parameter/arguement not defined or is invalid.
Definition nbWifiConstants.h:351
@ BusTimeout
Request timed out on the bus.
Definition nbWifiConstants.h:350