aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ieee80211.h30
1 files changed, 28 insertions, 2 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 163c840437d6..d62edc7df3ae 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -707,6 +707,10 @@ struct ieee80211_mgmt {
707 u8 action; 707 u8 action;
708 u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN]; 708 u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN];
709 } __attribute__ ((packed)) sa_query; 709 } __attribute__ ((packed)) sa_query;
710 struct {
711 u8 action;
712 u8 smps_control;
713 } __attribute__ ((packed)) ht_smps;
710 } u; 714 } u;
711 } __attribute__ ((packed)) action; 715 } __attribute__ ((packed)) action;
712 } u; 716 } u;
@@ -771,7 +775,10 @@ struct ieee80211_bar {
771/** 775/**
772 * struct ieee80211_mcs_info - MCS information 776 * struct ieee80211_mcs_info - MCS information
773 * @rx_mask: RX mask 777 * @rx_mask: RX mask
774 * @rx_highest: highest supported RX rate 778 * @rx_highest: highest supported RX rate. If set represents
779 * the highest supported RX data rate in units of 1 Mbps.
780 * If this field is 0 this value should not be used to
781 * consider the highest RX data rate supported.
775 * @tx_params: TX parameters 782 * @tx_params: TX parameters
776 */ 783 */
777struct ieee80211_mcs_info { 784struct ieee80211_mcs_info {
@@ -824,6 +831,7 @@ struct ieee80211_ht_cap {
824#define IEEE80211_HT_CAP_LDPC_CODING 0x0001 831#define IEEE80211_HT_CAP_LDPC_CODING 0x0001
825#define IEEE80211_HT_CAP_SUP_WIDTH_20_40 0x0002 832#define IEEE80211_HT_CAP_SUP_WIDTH_20_40 0x0002
826#define IEEE80211_HT_CAP_SM_PS 0x000C 833#define IEEE80211_HT_CAP_SM_PS 0x000C
834#define IEEE80211_HT_CAP_SM_PS_SHIFT 2
827#define IEEE80211_HT_CAP_GRN_FLD 0x0010 835#define IEEE80211_HT_CAP_GRN_FLD 0x0010
828#define IEEE80211_HT_CAP_SGI_20 0x0020 836#define IEEE80211_HT_CAP_SGI_20 0x0020
829#define IEEE80211_HT_CAP_SGI_40 0x0040 837#define IEEE80211_HT_CAP_SGI_40 0x0040
@@ -839,6 +847,7 @@ struct ieee80211_ht_cap {
839/* 802.11n HT capability AMPDU settings (for ampdu_params_info) */ 847/* 802.11n HT capability AMPDU settings (for ampdu_params_info) */
840#define IEEE80211_HT_AMPDU_PARM_FACTOR 0x03 848#define IEEE80211_HT_AMPDU_PARM_FACTOR 0x03
841#define IEEE80211_HT_AMPDU_PARM_DENSITY 0x1C 849#define IEEE80211_HT_AMPDU_PARM_DENSITY 0x1C
850#define IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT 2
842 851
843/* 852/*
844 * Maximum length of AMPDU that the STA can receive. 853 * Maximum length of AMPDU that the STA can receive.
@@ -922,12 +931,17 @@ struct ieee80211_ht_info {
922#define IEEE80211_MAX_AMPDU_BUF 0x40 931#define IEEE80211_MAX_AMPDU_BUF 0x40
923 932
924 933
925/* Spatial Multiplexing Power Save Modes */ 934/* Spatial Multiplexing Power Save Modes (for capability) */
926#define WLAN_HT_CAP_SM_PS_STATIC 0 935#define WLAN_HT_CAP_SM_PS_STATIC 0
927#define WLAN_HT_CAP_SM_PS_DYNAMIC 1 936#define WLAN_HT_CAP_SM_PS_DYNAMIC 1
928#define WLAN_HT_CAP_SM_PS_INVALID 2 937#define WLAN_HT_CAP_SM_PS_INVALID 2
929#define WLAN_HT_CAP_SM_PS_DISABLED 3 938#define WLAN_HT_CAP_SM_PS_DISABLED 3
930 939
940/* for SM power control field lower two bits */
941#define WLAN_HT_SMPS_CONTROL_DISABLED 0
942#define WLAN_HT_SMPS_CONTROL_STATIC 1
943#define WLAN_HT_SMPS_CONTROL_DYNAMIC 3
944
931/* Authentication algorithms */ 945/* Authentication algorithms */
932#define WLAN_AUTH_OPEN 0 946#define WLAN_AUTH_OPEN 0
933#define WLAN_AUTH_SHARED_KEY 1 947#define WLAN_AUTH_SHARED_KEY 1
@@ -1150,6 +1164,18 @@ enum ieee80211_spectrum_mgmt_actioncode {
1150 WLAN_ACTION_SPCT_CHL_SWITCH = 4, 1164 WLAN_ACTION_SPCT_CHL_SWITCH = 4,
1151}; 1165};
1152 1166
1167/* HT action codes */
1168enum ieee80211_ht_actioncode {
1169 WLAN_HT_ACTION_NOTIFY_CHANWIDTH = 0,
1170 WLAN_HT_ACTION_SMPS = 1,
1171 WLAN_HT_ACTION_PSMP = 2,
1172 WLAN_HT_ACTION_PCO_PHASE = 3,
1173 WLAN_HT_ACTION_CSI = 4,
1174 WLAN_HT_ACTION_NONCOMPRESSED_BF = 5,
1175 WLAN_HT_ACTION_COMPRESSED_BF = 6,
1176 WLAN_HT_ACTION_ASEL_IDX_FEEDBACK = 7,
1177};
1178
1153/* Security key length */ 1179/* Security key length */
1154enum ieee80211_key_len { 1180enum ieee80211_key_len {
1155 WLAN_KEY_LEN_WEP40 = 5, 1181 WLAN_KEY_LEN_WEP40 = 5,