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