aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-11-11 01:50:18 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-11-16 16:37:08 -0500
commita619a4c0e1fd4e8c360c63d0df3fa0a401107d69 (patch)
treec9eb89d30834140f252c77bdf578528b11716678 /include/net/mac80211.h
parent4e8c14e9587c38f4cce8049c766935629fdb8d46 (diff)
mac80211: Add function to get probe request template for current AP
Chipsets with hardware based connection monitoring need to autonomically send directed probe-request frames to the AP (in the event of beacon loss, for example.) For the hardware to be able to do this, it requires a template for the frame to transmit to the AP, filled in with the BSSID and SSID of the AP, but also the supported rate IE's. This patch adds a function to mac80211, which allows the hardware driver to fetch this template after association, so it can be configured to the hardware. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index a7323eca08d1..af7e84199e62 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2509,6 +2509,21 @@ void ieee80211_sta_block_awake(struct ieee80211_hw *hw,
2509 struct ieee80211_sta *pubsta, bool block); 2509 struct ieee80211_sta *pubsta, bool block);
2510 2510
2511/** 2511/**
2512 * ieee80211_ap_probereq_get - retrieve a Probe Request template
2513 * @hw: pointer obtained from ieee80211_alloc_hw().
2514 * @vif: &struct ieee80211_vif pointer from the add_interface callback.
2515 *
2516 * Creates a Probe Request template which can, for example, be uploaded to
2517 * hardware. The template is filled with bssid, ssid and supported rate
2518 * information. This function must only be called from within the
2519 * .bss_info_changed callback function and only in managed mode. The function
2520 * is only useful when the interface is associated, otherwise it will return
2521 * NULL.
2522 */
2523struct sk_buff *ieee80211_ap_probereq_get(struct ieee80211_hw *hw,
2524 struct ieee80211_vif *vif);
2525
2526/**
2512 * ieee80211_beacon_loss - inform hardware does not receive beacons 2527 * ieee80211_beacon_loss - inform hardware does not receive beacons
2513 * 2528 *
2514 * @vif: &struct ieee80211_vif pointer from the add_interface callback. 2529 * @vif: &struct ieee80211_vif pointer from the add_interface callback.