aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorLukáš Turek <8an@praha12.net>2009-12-21 16:50:48 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-01-12 13:50:07 -0500
commit310bc676e314e92c18257bfc916951879451ee32 (patch)
tree12050b5b473b8c9a1bf67450e03d45ade2a4b219 /net/mac80211/cfg.c
parent81077e82c3f591578625805dd6464a27a9ff56ec (diff)
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 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 2e5e841e9b7b..976014c5e742 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1230,6 +1230,13 @@ static int ieee80211_set_wiphy_params(struct wiphy *wiphy, u32 changed)
1230 struct ieee80211_local *local = wiphy_priv(wiphy); 1230 struct ieee80211_local *local = wiphy_priv(wiphy);
1231 int err; 1231 int err;
1232 1232
1233 if (changed & WIPHY_PARAM_COVERAGE_CLASS) {
1234 err = drv_set_coverage_class(local, wiphy->coverage_class);
1235
1236 if (err)
1237 return err;
1238 }
1239
1233 if (changed & WIPHY_PARAM_RTS_THRESHOLD) { 1240 if (changed & WIPHY_PARAM_RTS_THRESHOLD) {
1234 err = drv_set_rts_threshold(local, wiphy->rts_threshold); 1241 err = drv_set_rts_threshold(local, wiphy->rts_threshold);
1235 1242