diff options
author | Kalle Valo <kalle.valo@nokia.com> | 2010-01-05 13:16:38 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-12 13:51:25 -0500 |
commit | 05e54ea6cce400ac34528d705179b45244f61074 (patch) | |
tree | d645290f4866b457795696c7c4e9f609a07a4e55 /include | |
parent | f7f70579340dba1e551c0e52349fde0370592174 (diff) |
mac80211: create Probe Request template
Certain type of hardware, for example wl1251 and wl1271, need a template
for the Probe Request. Create a function ieee80211_probereq_get() which
creates the template and drivers send it to hardware.
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 75f46e26ad60..e1e73c6abeff 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1905,6 +1905,23 @@ struct sk_buff *ieee80211_nullfunc_get(struct ieee80211_hw *hw, | |||
1905 | struct ieee80211_vif *vif); | 1905 | struct ieee80211_vif *vif); |
1906 | 1906 | ||
1907 | /** | 1907 | /** |
1908 | * ieee80211_probereq_get - retrieve a Probe Request template | ||
1909 | * @hw: pointer obtained from ieee80211_alloc_hw(). | ||
1910 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. | ||
1911 | * @ssid: SSID buffer | ||
1912 | * @ssid_len: length of SSID | ||
1913 | * @ie: buffer containing all IEs except SSID for the template | ||
1914 | * @ie_len: length of the IE buffer | ||
1915 | * | ||
1916 | * Creates a Probe Request template which can, for example, be uploaded to | ||
1917 | * hardware. | ||
1918 | */ | ||
1919 | struct sk_buff *ieee80211_probereq_get(struct ieee80211_hw *hw, | ||
1920 | struct ieee80211_vif *vif, | ||
1921 | const u8 *ssid, size_t ssid_len, | ||
1922 | const u8 *ie, size_t ie_len); | ||
1923 | |||
1924 | /** | ||
1908 | * ieee80211_rts_get - RTS frame generation function | 1925 | * ieee80211_rts_get - RTS frame generation function |
1909 | * @hw: pointer obtained from ieee80211_alloc_hw(). | 1926 | * @hw: pointer obtained from ieee80211_alloc_hw(). |
1910 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. | 1927 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. |