diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2014-09-04 23:57:41 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-09-05 13:54:07 +0200 |
commit | a4bcaf5556da649f0160e60fa7b4bb2c29801c12 (patch) | |
tree | 7ccfccbde36c5ef1eaadf28108eb60b30910bfd0 /net/mac80211/cfg.c | |
parent | 3057dbfdab1b86a77ed6d512fc857b032f78663b (diff) | |
download | lwn-a4bcaf5556da649f0160e60fa7b4bb2c29801c12.tar.gz lwn-a4bcaf5556da649f0160e60fa7b4bb2c29801c12.zip |
mac80211: extend set_coverage_class signature
Extend mac80211 set_coverage_class API in order to enable ACK timeout
estimation algorithm (dynack) passing coverage class equals to -1
to lower drivers. Synchronize set_coverage_class routine signature with
mac80211 function pointer for p54, ath9k, ath9k_htc and ath5k drivers.
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 4c1681bae232..101ae6cfad81 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1978,8 +1978,13 @@ static int ieee80211_set_wiphy_params(struct wiphy *wiphy, u32 changed) return err; } - if (changed & WIPHY_PARAM_COVERAGE_CLASS) { - err = drv_set_coverage_class(local, wiphy->coverage_class); + if ((changed & WIPHY_PARAM_COVERAGE_CLASS) || + (changed & WIPHY_PARAM_DYN_ACK)) { + s16 coverage_class; + + coverage_class = changed & WIPHY_PARAM_COVERAGE_CLASS ? + wiphy->coverage_class : -1; + err = drv_set_coverage_class(local, coverage_class); if (err) return err; |