summaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorLukáš Turek2009-12-21 22:50:48 +0100
committerJohn W. Linville2010-01-12 19:50:07 +0100
commit310bc676e314e92c18257bfc916951879451ee32 (patch)
tree12050b5b473b8c9a1bf67450e03d45ade2a4b219 /include/net/mac80211.h
parentnl80211: Add new WIPHY attribute COVERAGE_CLASS (diff)
downloadkernel-qcow2-linux-310bc676e314e92c18257bfc916951879451ee32.tar.gz
kernel-qcow2-linux-310bc676e314e92c18257bfc916951879451ee32.tar.xz
kernel-qcow2-linux-310bc676e314e92c18257bfc916951879451ee32.zip
mac80211: Add new callback set_coverage_class
Mac80211 callback to driver set_coverage_class() sets slot time and ACK timeout for given IEEE 802.11 coverage class. The callback is optional, but it's essential for long distance links. Signed-off-by: Lukas Turek <8an@praha12.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index f073a2a50574..ad4b70034e77 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1533,6 +1533,10 @@ enum ieee80211_ampdu_mlme_action {
* and need to call wiphy_rfkill_set_hw_state() in the callback.
* The callback can sleep.
*
+ * @set_coverage_class: Set slot time for given coverage class as specified
+ * in IEEE 802.11-2007 section 17.3.8.6 and modify ACK timeout
+ * accordingly. This callback is not required and may sleep.
+ *
* @testmode_cmd: Implement a cfg80211 test mode command.
* The callback can sleep.
*
@@ -1592,6 +1596,7 @@ struct ieee80211_ops {
struct ieee80211_sta *sta, u16 tid, u16 *ssn);
void (*rfkill_poll)(struct ieee80211_hw *hw);
+ void (*set_coverage_class)(struct ieee80211_hw *hw, u8 coverage_class);
#ifdef CONFIG_NL80211_TESTMODE
int (*testmode_cmd)(struct ieee80211_hw *hw, void *data, int len);
#endif