diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ieee80211.h | 9 | ||||
-rw-r--r-- | include/net/mac80211.h | 30 |
2 files changed, 39 insertions, 0 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index aeea282bd2fe..602c0692c3fc 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h | |||
@@ -130,6 +130,15 @@ struct ieee80211_hdr { | |||
130 | u8 addr4[6]; | 130 | u8 addr4[6]; |
131 | } __attribute__ ((packed)); | 131 | } __attribute__ ((packed)); |
132 | 132 | ||
133 | struct ieee80211_hdr_3addr { | ||
134 | __le16 frame_control; | ||
135 | __le16 duration_id; | ||
136 | u8 addr1[6]; | ||
137 | u8 addr2[6]; | ||
138 | u8 addr3[6]; | ||
139 | __le16 seq_ctrl; | ||
140 | } __attribute__ ((packed)); | ||
141 | |||
133 | /** | 142 | /** |
134 | * ieee80211_has_tods - check if IEEE80211_FCTL_TODS is set | 143 | * ieee80211_has_tods - check if IEEE80211_FCTL_TODS is set |
135 | * @fc: frame control bytes in little-endian byteorder | 144 | * @fc: frame control bytes in little-endian byteorder |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 7e5af6d90b93..75f46e26ad60 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1875,6 +1875,36 @@ static inline struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw, | |||
1875 | } | 1875 | } |
1876 | 1876 | ||
1877 | /** | 1877 | /** |
1878 | * ieee80211_pspoll_get - retrieve a PS Poll template | ||
1879 | * @hw: pointer obtained from ieee80211_alloc_hw(). | ||
1880 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. | ||
1881 | * | ||
1882 | * Creates a PS Poll a template which can, for example, uploaded to | ||
1883 | * hardware. The template must be updated after association so that correct | ||
1884 | * AID, BSSID and MAC address is used. | ||
1885 | * | ||
1886 | * Note: Caller (or hardware) is responsible for setting the | ||
1887 | * &IEEE80211_FCTL_PM bit. | ||
1888 | */ | ||
1889 | struct sk_buff *ieee80211_pspoll_get(struct ieee80211_hw *hw, | ||
1890 | struct ieee80211_vif *vif); | ||
1891 | |||
1892 | /** | ||
1893 | * ieee80211_nullfunc_get - retrieve a nullfunc template | ||
1894 | * @hw: pointer obtained from ieee80211_alloc_hw(). | ||
1895 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. | ||
1896 | * | ||
1897 | * Creates a Nullfunc template which can, for example, uploaded to | ||
1898 | * hardware. The template must be updated after association so that correct | ||
1899 | * BSSID and address is used. | ||
1900 | * | ||
1901 | * Note: Caller (or hardware) is responsible for setting the | ||
1902 | * &IEEE80211_FCTL_PM bit as well as Duration and Sequence Control fields. | ||
1903 | */ | ||
1904 | struct sk_buff *ieee80211_nullfunc_get(struct ieee80211_hw *hw, | ||
1905 | struct ieee80211_vif *vif); | ||
1906 | |||
1907 | /** | ||
1878 | * ieee80211_rts_get - RTS frame generation function | 1908 | * ieee80211_rts_get - RTS frame generation function |
1879 | * @hw: pointer obtained from ieee80211_alloc_hw(). | 1909 | * @hw: pointer obtained from ieee80211_alloc_hw(). |
1880 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. | 1910 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. |