xref: /wlan-driver/qcacld-3.0/components/mlme/dispatcher/inc/cfg_mlme_wps_params.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name  * above copyright notice and this permission notice appear in all
7*5113495bSYour Name  * copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name  */
18*5113495bSYour Name 
19*5113495bSYour Name /**
20*5113495bSYour Name  * DOC: This file contains centralized definitions of converged configuration.
21*5113495bSYour Name  */
22*5113495bSYour Name 
23*5113495bSYour Name #ifndef __CFG_MLME_WPS_PARAMS_H
24*5113495bSYour Name #define __CFG_MLME_WPS_PARAMS_H
25*5113495bSYour Name 
26*5113495bSYour Name #define CFG_WPS_ENABLE CFG_UINT( \
27*5113495bSYour Name 		"enable_wps", \
28*5113495bSYour Name 		0, \
29*5113495bSYour Name 		255, \
30*5113495bSYour Name 		0, \
31*5113495bSYour Name 		CFG_VALUE_OR_DEFAULT, \
32*5113495bSYour Name 		"enable wps")
33*5113495bSYour Name 
34*5113495bSYour Name #define CFG_WPS_STATE CFG_UINT( \
35*5113495bSYour Name 		"wps_state", \
36*5113495bSYour Name 		0, \
37*5113495bSYour Name 		255, \
38*5113495bSYour Name 		1, \
39*5113495bSYour Name 		CFG_VALUE_OR_DEFAULT, \
40*5113495bSYour Name 		"wps_state")
41*5113495bSYour Name 
42*5113495bSYour Name #define CFG_WPS_VERSION CFG_UINT( \
43*5113495bSYour Name 		"wps_version", \
44*5113495bSYour Name 		0, \
45*5113495bSYour Name 		255, \
46*5113495bSYour Name 		16, \
47*5113495bSYour Name 		CFG_VALUE_OR_DEFAULT, \
48*5113495bSYour Name 		"wps version")
49*5113495bSYour Name 
50*5113495bSYour Name #define CFG_WPS_CFG_METHOD CFG_UINT( \
51*5113495bSYour Name 			"wps_cfg_method", \
52*5113495bSYour Name 			0, \
53*5113495bSYour Name 			4294967295, \
54*5113495bSYour Name 			8, \
55*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
56*5113495bSYour Name 			"wps cfg method")
57*5113495bSYour Name 
58*5113495bSYour Name #define CFG_WPS_PRIMARY_DEVICE_CATEGORY CFG_UINT( \
59*5113495bSYour Name 			"wps_primary_device_category", \
60*5113495bSYour Name 			0, \
61*5113495bSYour Name 			65535, \
62*5113495bSYour Name 			1, \
63*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
64*5113495bSYour Name 			"wps primary device category")
65*5113495bSYour Name 
66*5113495bSYour Name #define CFG_WPS_PIMARY_DEVICE_OUI CFG_UINT( \
67*5113495bSYour Name 			"wps_primary_device_oui", \
68*5113495bSYour Name 			0, \
69*5113495bSYour Name 			4294967295, \
70*5113495bSYour Name 			5304836, \
71*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
72*5113495bSYour Name 			"wps primary device oui")
73*5113495bSYour Name 
74*5113495bSYour Name #define CFG_WPS_DEVICE_SUB_CATEGORY CFG_UINT( \
75*5113495bSYour Name 				"wps_device_sub_category", \
76*5113495bSYour Name 				0, \
77*5113495bSYour Name 				65535, \
78*5113495bSYour Name 				1, \
79*5113495bSYour Name 				CFG_VALUE_OR_DEFAULT, \
80*5113495bSYour Name 				"wps device sub category")
81*5113495bSYour Name 
82*5113495bSYour Name #define CFG_WPS_DEVICE_PASSWORD_ID CFG_UINT( \
83*5113495bSYour Name 				"wps_device_password_id", \
84*5113495bSYour Name 				0, \
85*5113495bSYour Name 				4294967295, \
86*5113495bSYour Name 				0, \
87*5113495bSYour Name 				CFG_VALUE_OR_DEFAULT, \
88*5113495bSYour Name 				"wps device password id")
89*5113495bSYour Name 
90*5113495bSYour Name #define WPS_UUID_DEF_STR "0xa, 0xb, 0xc, 0xd, 0xe, 0xf"
91*5113495bSYour Name #define WPS_UUID_DEF_LEN (sizeof(WPS_UUID_DEF_STR) - 1)
92*5113495bSYour Name 
93*5113495bSYour Name #define CFG_WPS_UUID CFG_STRING( \
94*5113495bSYour Name 		"wps_uuid", \
95*5113495bSYour Name 		0, \
96*5113495bSYour Name 		WPS_UUID_DEF_LEN, \
97*5113495bSYour Name 		WPS_UUID_DEF_STR, \
98*5113495bSYour Name 		"wps uuid")
99*5113495bSYour Name 
100*5113495bSYour Name #define CFG_WPS_ALL \
101*5113495bSYour Name 	CFG(CFG_WPS_ENABLE) \
102*5113495bSYour Name 	CFG(CFG_WPS_STATE) \
103*5113495bSYour Name 	CFG(CFG_WPS_VERSION) \
104*5113495bSYour Name 	CFG(CFG_WPS_CFG_METHOD) \
105*5113495bSYour Name 	CFG(CFG_WPS_PRIMARY_DEVICE_CATEGORY) \
106*5113495bSYour Name 	CFG(CFG_WPS_PIMARY_DEVICE_OUI) \
107*5113495bSYour Name 	CFG(CFG_WPS_DEVICE_SUB_CATEGORY) \
108*5113495bSYour Name 	CFG(CFG_WPS_DEVICE_PASSWORD_ID) \
109*5113495bSYour Name 	CFG(CFG_WPS_UUID)
110*5113495bSYour Name 
111*5113495bSYour Name #endif /* __CFG_MLME_WPS_PARAMS_H */
112*5113495bSYour Name 
113