1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 ******************************************************************************/ 15 #ifndef _WIFI_H_ 16 #define _WIFI_H_ 17 18 /* This value is tested by WiFi 11n Test Plan 5.2.3. 19 * This test verifies the WLAN NIC can update the NAV through sending 20 * the CTS with large duration. 21 */ 22 #define WiFiNavUpperUs 30000 /* 30 ms */ 23 24 /*----------------------------------------------------------------------------- 25 Below is the definition for 802.11n 26 ------------------------------------------------------------------------------*/ 27 28 struct AC_param { 29 u8 ACI_AIFSN; 30 u8 CW; 31 __le16 TXOP_limit; 32 } __packed; 33 34 struct WMM_para_element { 35 unsigned char QoS_info; 36 unsigned char reserved; 37 struct AC_param ac_param[4]; 38 } __packed; 39 40 struct ADDBA_request { 41 u8 dialog_token; 42 __le16 BA_para_set; 43 __le16 BA_timeout_value; 44 __le16 BA_starting_seqctrl; 45 } __packed; 46 47 48 /* ===============WPS Section=============== */ 49 /* WPS attribute ID */ 50 #define WPS_ATTR_VER1 0x104A 51 #define WPS_ATTR_SIMPLE_CONF_STATE 0x1044 52 #define WPS_ATTR_RESP_TYPE 0x103B 53 #define WPS_ATTR_UUID_E 0x1047 54 #define WPS_ATTR_MANUFACTURER 0x1021 55 #define WPS_ATTR_MODEL_NAME 0x1023 56 #define WPS_ATTR_MODEL_NUMBER 0x1024 57 #define WPS_ATTR_SERIAL_NUMBER 0x1042 58 #define WPS_ATTR_PRIMARY_DEV_TYPE 0x1054 59 #define WPS_ATTR_SEC_DEV_TYPE_LIST 0x1055 60 #define WPS_ATTR_DEVICE_NAME 0x1011 61 #define WPS_ATTR_CONF_METHOD 0x1008 62 #define WPS_ATTR_RF_BANDS 0x103C 63 #define WPS_ATTR_DEVICE_PWID 0x1012 64 #define WPS_ATTR_REQUEST_TYPE 0x103A 65 #define WPS_ATTR_ASSOCIATION_STATE 0x1002 66 #define WPS_ATTR_CONFIG_ERROR 0x1009 67 #define WPS_ATTR_VENDOR_EXT 0x1049 68 #define WPS_ATTR_SELECTED_REGISTRAR 0x1041 69 70 /* WPS Configuration Method */ 71 #define WPS_CM_NONE 0x0000 72 #define WPS_CM_LABEL 0x0004 73 #define WPS_CM_DISPLYA 0x0008 74 #define WPS_CM_EXTERNAL_NFC_TOKEN 0x0010 75 #define WPS_CM_INTEGRATED_NFC_TOKEN 0x0020 76 #define WPS_CM_NFC_INTERFACE 0x0040 77 #define WPS_CM_PUSH_BUTTON 0x0080 78 #define WPS_CM_KEYPAD 0x0100 79 #define WPS_CM_SW_PUHS_BUTTON 0x0280 80 #define WPS_CM_HW_PUHS_BUTTON 0x0480 81 #define WPS_CM_SW_DISPLAY_PIN 0x2008 82 #define WPS_CM_LCD_DISPLAY_PIN 0x4008 83 84 #endif /* _WIFI_H_ */ 85