diff options
Diffstat (limited to 'include/linux/ieee80211.h')
-rw-r--r-- | include/linux/ieee80211.h | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 7f4df7c7659d..abc1abc63bf0 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h | |||
@@ -643,6 +643,9 @@ struct ieee80211_mgmt { | |||
643 | } u; | 643 | } u; |
644 | } __attribute__ ((packed)); | 644 | } __attribute__ ((packed)); |
645 | 645 | ||
646 | /* mgmt header + 1 byte category code */ | ||
647 | #define IEEE80211_MIN_ACTION_SIZE offsetof(struct ieee80211_mgmt, u.action.u) | ||
648 | |||
646 | 649 | ||
647 | /* Control frames */ | 650 | /* Control frames */ |
648 | struct ieee80211_rts { | 651 | struct ieee80211_rts { |
@@ -708,12 +711,13 @@ struct ieee80211_ht_addt_info { | |||
708 | 711 | ||
709 | /* 802.11n HT capabilities masks */ | 712 | /* 802.11n HT capabilities masks */ |
710 | #define IEEE80211_HT_CAP_SUP_WIDTH 0x0002 | 713 | #define IEEE80211_HT_CAP_SUP_WIDTH 0x0002 |
711 | #define IEEE80211_HT_CAP_MIMO_PS 0x000C | 714 | #define IEEE80211_HT_CAP_SM_PS 0x000C |
712 | #define IEEE80211_HT_CAP_GRN_FLD 0x0010 | 715 | #define IEEE80211_HT_CAP_GRN_FLD 0x0010 |
713 | #define IEEE80211_HT_CAP_SGI_20 0x0020 | 716 | #define IEEE80211_HT_CAP_SGI_20 0x0020 |
714 | #define IEEE80211_HT_CAP_SGI_40 0x0040 | 717 | #define IEEE80211_HT_CAP_SGI_40 0x0040 |
715 | #define IEEE80211_HT_CAP_DELAY_BA 0x0400 | 718 | #define IEEE80211_HT_CAP_DELAY_BA 0x0400 |
716 | #define IEEE80211_HT_CAP_MAX_AMSDU 0x0800 | 719 | #define IEEE80211_HT_CAP_MAX_AMSDU 0x0800 |
720 | #define IEEE80211_HT_CAP_DSSSCCK40 0x1000 | ||
717 | /* 802.11n HT capability AMPDU settings */ | 721 | /* 802.11n HT capability AMPDU settings */ |
718 | #define IEEE80211_HT_CAP_AMPDU_FACTOR 0x03 | 722 | #define IEEE80211_HT_CAP_AMPDU_FACTOR 0x03 |
719 | #define IEEE80211_HT_CAP_AMPDU_DENSITY 0x1C | 723 | #define IEEE80211_HT_CAP_AMPDU_DENSITY 0x1C |
@@ -736,11 +740,26 @@ struct ieee80211_ht_addt_info { | |||
736 | #define IEEE80211_HT_IE_NON_GF_STA_PRSNT 0x0004 | 740 | #define IEEE80211_HT_IE_NON_GF_STA_PRSNT 0x0004 |
737 | #define IEEE80211_HT_IE_NON_HT_STA_PRSNT 0x0010 | 741 | #define IEEE80211_HT_IE_NON_HT_STA_PRSNT 0x0010 |
738 | 742 | ||
739 | /* MIMO Power Save Modes */ | 743 | /* block-ack parameters */ |
740 | #define WLAN_HT_CAP_MIMO_PS_STATIC 0 | 744 | #define IEEE80211_ADDBA_PARAM_POLICY_MASK 0x0002 |
741 | #define WLAN_HT_CAP_MIMO_PS_DYNAMIC 1 | 745 | #define IEEE80211_ADDBA_PARAM_TID_MASK 0x003C |
742 | #define WLAN_HT_CAP_MIMO_PS_INVALID 2 | 746 | #define IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK 0xFFA0 |
743 | #define WLAN_HT_CAP_MIMO_PS_DISABLED 3 | 747 | #define IEEE80211_DELBA_PARAM_TID_MASK 0xF000 |
748 | #define IEEE80211_DELBA_PARAM_INITIATOR_MASK 0x0800 | ||
749 | |||
750 | /* | ||
751 | * A-PMDU buffer sizes | ||
752 | * According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2) | ||
753 | */ | ||
754 | #define IEEE80211_MIN_AMPDU_BUF 0x8 | ||
755 | #define IEEE80211_MAX_AMPDU_BUF 0x40 | ||
756 | |||
757 | |||
758 | /* Spatial Multiplexing Power Save Modes */ | ||
759 | #define WLAN_HT_CAP_SM_PS_STATIC 0 | ||
760 | #define WLAN_HT_CAP_SM_PS_DYNAMIC 1 | ||
761 | #define WLAN_HT_CAP_SM_PS_INVALID 2 | ||
762 | #define WLAN_HT_CAP_SM_PS_DISABLED 3 | ||
744 | 763 | ||
745 | /* Authentication algorithms */ | 764 | /* Authentication algorithms */ |
746 | #define WLAN_AUTH_OPEN 0 | 765 | #define WLAN_AUTH_OPEN 0 |