WE310F5  39.00.000
m2mb_wlan_scan.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
21 /*-----------------------------------------------------------------------------------------------*/
22 
23 #ifndef M2MB_PROV_SCAN_H_
24 #define M2MB_PROV_SCAN_H_
25 
39 /* Global declarations ==========================================================================*/
40 
46 #define M2MB_PROV_SSID_FILTER_SIZE 32
47 
49 #define M2MB_PROV_SECURITY_NONE_STR "none"
50 
52 #define M2MB_PROV_WEP_STR "wep"
53 
55 #define M2MB_PROV_WPA_PERSONAL_STR "wpa-personal"
56 
58 #define M2MB_PROV_WPA_ENTERPRISE_STR "wpa-enterprise"
59 
61 #define M2MB_PROV_SCAN_DWELL_TIME 150
62 
64 #define M2MB_PROV_SCAN_DELAY_TIME 150
65 
66 
67 #if 0
68 /*
69  *****************************************************************************
70  * Definition of Regulatory domains
71  *****************************************************************************/
72 
73 typedef enum M2MB_PROV_REG_DOMAIN
74 {
81 #endif
82 
84 #define M2MB_PROV_REG_DOMAIN_FCC_MAX_CH 11
85 
87 #define M2MB_PROV_REG_DOMAIN_ETSI_MAX_CH 13
88 
90 #define M2MB_PROV_REG_DOMAIN_TELEC_MAX_CH 14
91 
93 #ifdef GS1500M
94 #ifdef GS1550M
95 #define M2MB_PROV_SCAN_MAX_BAND 2 /* 2.4Ghz and 5Ghz band */
96 #else
97 #define M2MB_PROV_SCAN_MAX_BAND 1 /* Only 2.4Ghz band */
98 #endif /* GS1550M */
99 #endif /* GS1500M */
100 
102 #define M2MB_PROV_REG_DOMAIN_UNKNOWN_MAX_CH 14
103 
104 #define M2MB_PROV_REG_DOMAIN_FCC_STR "fcc"
105 #define M2MB_PROV_REG_DOMAIN_ETSI_STR "etsi"
106 #define M2MB_PROV_REG_DOMAIN_ETSI_MEXS_STR "etsi_mex"
107 #define M2MB_PROV_REG_DOMAIN_TELEC_STR "telec"
108 #define M2MB_PROV_REG_DOMAIN_UNKNOWN_STR "unknown"
109 
110 #define M2MB_PROV_2_4_GHZ_BAND "2.4GHz"
111 #define M2MB_PROV_5_GHZ_BAND "5GHz"
112 
114 
115 #if 0
116 
121 typedef enum
122 {
123  M2MB_PROV_SECURITY_NONE = 1,
124  M2MB_PROV_WEP,
125  M2MB_PROV_WPA_PERSONAL,
126  M2MB_PROV_WPA_ENTERPRISE
127 } M2MB_PROV_SECURITY_TYPE_T;
128 #endif
129 
130 
135 typedef struct M2MB_PROV_SCAN_PARAM
136 {
145 
150 typedef struct M2MB_PROV_SCAN_RESULT
151 {
159 
170 VOID
171 m2mb_prov_scan_channel_fill(UINT8 *chTable,UINT8 domain,UINT8 phyMode);
172 
173 
186 m2mb_prov_scan_channels( M2MB_PROV_SCAN_PARAM_T *sParams,M2MB_PROV_SCAN_RESULT_T *pScanResult, INT32 *maxScanElements);
187 
191 /*-----------------------------------------------------------------------------------------------*/
192 
193 
194 #endif /* M2MB_PROV_SCAN_H_ */
Definition of structure controlling scan.
unsigned char UINT8
Definition: m2mb_types.h:86
UINT64 M2MB_PROV_MAC_ADDR_T
M2MB_PROV_SSID_T ssid
enum M2MB_PROV_REG_DOMAIN M2MB_PROV_REG_DOMAIN_T
Regulatory domains enumeration.
INT8 ssidFilter[M2MB_PROV_SSID_FILTER_SIZE]
struct M2MB_PROV_SCAN_RESULT M2MB_PROV_SCAN_RESULT_T
Definition of structure describing scan results.
M2MB_PROV_REG_DOMAIN
Regulatory domains enumeration.
VOID m2mb_prov_scan_channel_fill(UINT8 *chTable, UINT8 domain, UINT8 phyMode)
To fill valid channel numbers depending on current reg domain and PHY mode This function shall be cal...
M2MB_PROV_MAC_ADDR_T apMacAddr
enum M2MB_OS_RESULT M2MB_OS_RESULT_E
signed char INT8
Definition: m2mb_types.h:80
void VOID
Definition: m2mb_types.h:74
M2MB_PROV_SEC_TYPE_T securityType
struct M2MB_PROV_SCAN_PARAM M2MB_PROV_SCAN_PARAM_T
Definition of structure controlling scan.
M2MB_PROV_REG_DOMAIN_T domain
unsigned long int UINT32
Definition: m2mb_types.h:88
signed int INT32
Definition: m2mb_types.h:82
M2MB_OS_RESULT_E m2mb_prov_scan_channels(M2MB_PROV_SCAN_PARAM_T *sParams, M2MB_PROV_SCAN_RESULT_T *pScanResult, INT32 *maxScanElements)
Scan for Networks This function scans the configured channels for networks configuration parameter pr...
unsigned long long UINT64
Definition: m2mb_types.h:90
enum M2MB_PROV_SEC_TYPE M2MB_PROV_SEC_TYPE_T
Security type enumeration.
SSID structure.
Definition of structure describing scan results.
M2MB_PROV_SEC_TYPE_T securityType
#define M2MB_PROV_SSID_FILTER_SIZE