RDK Documentation (Open Sourced RDK Components)
mfr_wifi_types.h
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt 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 *
22 * File : mfr_wifi_types.h
23 *
24 * Description : Types and definitions for WIFI data module
25 *
26 *
27 *********************************************************************
28 ********************************************************************/
29 
30 #ifndef __MFR_WIFI_TYPES_H__
31 #define __MFR_WIFI_TYPES_H__
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 
38 
39 #define WIFI_MAX_SSID_LEN 32 //!< Maximum SSID name
40 #define WIFI_MAX_PASSWORD_LEN 64 //!< Maximum password length
41 
42 #define WIFI_DATA_LENGTH 512
43 
44 typedef enum _WIFI_API_RESULT
45 {
46  WIFI_API_RESULT_SUCCESS = 0,
47  WIFI_API_RESULT_FAILED,
48  WIFI_API_RESULT_NULL_PARAM,
49  WIFI_API_RESULT_INVALID_PARAM,
50  WIFI_API_RESULT_NOT_INITIALIZED,
51  WIFI_ERR_OPERATION_NOT_SUPPORTED
52 
53 } WIFI_API_RESULT;
54 
55 // NOTE: this order needs to correspond to whats in DRI code.
56 typedef enum _WIFI_DATA_TYPE
57 {
58  WIFI_DATA_UNKNOWN = 0,
59  WIFI_DATA_SSID,
60  WIFI_DATA_PASSWORD
61 } WIFI_DATA_TYPE;
62 
63 typedef struct
64 {
65  char cSSID[WIFI_MAX_SSID_LEN+1];
66  char cPassword[WIFI_MAX_PASSWORD_LEN+1];
67  int iSecurityMode;
68 } WIFI_DATA;
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif //__MFR_WIFI_TYPES_H__
WIFI_DATA
Definition: mfr_wifi_types.h:63