aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/cfg.c2
-rw-r--r--net/mac80211/ieee80211_i.h1
-rw-r--r--net/mac80211/status.c2
-rw-r--r--net/mac80211/work.c2
4 files changed, 4 insertions, 3 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 1309bb9c97be..d0705f260178 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1886,7 +1886,7 @@ ieee80211_offchan_tx_done(struct ieee80211_work *wk, struct sk_buff *skb)
1886 * so in that case userspace will have to deal with it. 1886 * so in that case userspace will have to deal with it.
1887 */ 1887 */
1888 1888
1889 if (wk->offchan_tx.wait && wk->offchan_tx.frame) 1889 if (wk->offchan_tx.wait && !wk->offchan_tx.status)
1890 cfg80211_mgmt_tx_status(wk->sdata->dev, 1890 cfg80211_mgmt_tx_status(wk->sdata->dev,
1891 (unsigned long) wk->offchan_tx.frame, 1891 (unsigned long) wk->offchan_tx.frame,
1892 wk->ie, wk->ie_len, false, GFP_KERNEL); 1892 wk->ie, wk->ie_len, false, GFP_KERNEL);
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 9fa5f8a674bc..810d7b6a5567 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -346,6 +346,7 @@ struct ieee80211_work {
346 struct { 346 struct {
347 struct sk_buff *frame; 347 struct sk_buff *frame;
348 u32 wait; 348 u32 wait;
349 bool status;
349 } offchan_tx; 350 } offchan_tx;
350 }; 351 };
351 352
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 864a9c3bcf46..f3d710705e76 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -429,7 +429,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
429 continue; 429 continue;
430 if (wk->offchan_tx.frame != skb) 430 if (wk->offchan_tx.frame != skb)
431 continue; 431 continue;
432 wk->offchan_tx.frame = NULL; 432 wk->offchan_tx.status = true;
433 break; 433 break;
434 } 434 }
435 rcu_read_unlock(); 435 rcu_read_unlock();
diff --git a/net/mac80211/work.c b/net/mac80211/work.c
index af374fab1a12..94472eb34d76 100644
--- a/net/mac80211/work.c
+++ b/net/mac80211/work.c
@@ -577,7 +577,7 @@ ieee80211_offchannel_tx(struct ieee80211_work *wk)
577 /* 577 /*
578 * After this, offchan_tx.frame remains but now is no 578 * After this, offchan_tx.frame remains but now is no
579 * longer a valid pointer -- we still need it as the 579 * longer a valid pointer -- we still need it as the
580 * cookie for canceling this work. 580 * cookie for canceling this work/status matching.
581 */ 581 */
582 ieee80211_tx_skb(wk->sdata, wk->offchan_tx.frame); 582 ieee80211_tx_skb(wk->sdata, wk->offchan_tx.frame);
583 583