From: Eliad Peller <[email protected]>

The new duration (remaining duration after the current
ROC ends) was calculated but not used, making the
optimization worthless.

Signed-off-by: Eliad Peller <[email protected]>
Reviewed-by: Ilan Peer <[email protected]>
Signed-off-by: Emmanuel Grumbach <[email protected]>
---
 net/mac80211/cfg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 6cd0a59e..edeab09 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2503,6 +2503,7 @@ static int ieee80211_start_roc_work(struct 
ieee80211_local *local,
 
                                if (new_dur > 0) {
                                        /* add right after tmp */
+                                       roc->duration = new_dur;
                                        list_add(&roc->list, &tmp->list);
                                } else {
                                        list_add_tail(&roc->list,
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to