xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/esa/common/wl_mib_rom.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /** @file wl_mib_rom.h
2  *
3  *  @brieThis file contains the MIB structure definitions
4  *          based on IEEE 802.11 specification.
5  *
6  * Copyright (C) 2014-2017, Marvell International Ltd.
7  *
8  * This software file (the "File") is distributed by Marvell International
9  * Ltd. under the terms of the GNU General Public License Version 2, June 1991
10  * (the "License").  You may use, redistribute and/or modify this File in
11  * accordance with the terms and conditions of the License, a copy of which
12  * is available by writing to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
14  * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
15  *
16  * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
17  * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
18  * ARE EXPRESSLY DISCLAIMED.  The License provides additional details about
19  * this warranty disclaimer.
20  */
21 
22 /******************************************************
23 Change log:
24     03/07/2014: Initial version
25 ******************************************************/
26 #if !defined(WL_MIB_ROM_H__)
27 
28 #define WL_MIB_ROM_H__
29 #include "IEEE_types.h"
30 
31 #define MIB_EDCA_MSDU_LIFETIME_DEFAULT 512
32 #define WEP_KEY_USER_INPUT              13			/** Also defined in keyApiStaTypes.h */
33 
34 /*-----------------------------------------*/
35 
36 /* PHY Supported Transmit Data Rates Table */
37 
38 /*-----------------------------------------*/
39 
40 typedef struct MIB_PhySuppDataRatesTx_s {
41 	UINT8 SuppDataRatesTxIdx;	/*1 to IEEEtypes_MAX_DATA_RATES_G */
42 	UINT8 SuppDataRatesTxVal;	/*2 to 127 */
43 } MIB_PHY_SUPP_DATA_RATES_TX;
44 
45 /*------------------------*/
46 /* WEP Default Keys Table */
47 /*------------------------*/
48 /* This struct is used in ROM and it should not be changed at all */
49 typedef struct MIB_WepDefaultKeys_s {
50 	UINT8 WepDefaultKeyIdx;	/* 1 to 4 */
51 	UINT8 WepDefaultKeyType;	/*   */
52 	UINT8 WepDefaultKeyValue[WEP_KEY_USER_INPUT];	/* 5 byte string */
53 } MIB_WEP_DEFAULT_KEYS;
54 
55 typedef struct {
56 	/* Maximum lifetime of an MSDU from when it enters the MAC, 802.11e */
57 	UINT16 MSDULifetime;	/* 0 to 500, 500 default */
58 } MIB_EDCA_CONFIG;
59 
60 #endif /* _WL_MIB_ROM_H_ */
61