aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2014-09-03 08:25:05 -0400
committerJohannes Berg <johannes.berg@intel.com>2014-09-05 07:52:08 -0400
commit24ecd45e2eb194dcadefeb60a16f4ca751402413 (patch)
tree1506f7f444c89ad035d4c1ced9347435601f2b14 /net/mac80211/cfg.c
parenta62a1aed3733d7ec6489adca4c2f69881d78cfd6 (diff)
mac80211: adjust roc duration when combining ROCs
The new duration (remaining duration after the current ROC ends) was calculated but not used, making the optimization worthless. Signed-off-by: Eliad Peller <eliadx.peller@intel.com> Reviewed-by: Ilan Peer <ilan.peer@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index d7f437ef6e7e..4e57b67a91dd 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2496,6 +2496,7 @@ static int ieee80211_start_roc_work(struct ieee80211_local *local,
2496 2496
2497 if (new_dur > 0) { 2497 if (new_dur > 0) {
2498 /* add right after tmp */ 2498 /* add right after tmp */
2499 roc->duration = new_dur;
2499 list_add(&roc->list, &tmp->list); 2500 list_add(&roc->list, &tmp->list);
2500 } else { 2501 } else {
2501 list_add_tail(&roc->list, 2502 list_add_tail(&roc->list,