Commit 24ecd45e authored by Eliad Peller's avatar Eliad Peller Committed by Johannes Berg

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: default avatarEliad Peller <eliadx.peller@intel.com>
Reviewed-by: default avatarIlan Peer <ilan.peer@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent a62a1aed
...@@ -2496,6 +2496,7 @@ static int ieee80211_start_roc_work(struct ieee80211_local *local, ...@@ -2496,6 +2496,7 @@ static int ieee80211_start_roc_work(struct ieee80211_local *local,
if (new_dur > 0) { if (new_dur > 0) {
/* add right after tmp */ /* add right after tmp */
roc->duration = new_dur;
list_add(&roc->list, &tmp->list); list_add(&roc->list, &tmp->list);
} else { } else {
list_add_tail(&roc->list, list_add_tail(&roc->list,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment