diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index f7a1f08ec3e0..140503d4c97a 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1838,6 +1838,7 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct net_device *dev, | |||
1838 | *cookie ^= 2; | 1838 | *cookie ^= 2; |
1839 | IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_CTL_TX_OFFCHAN; | 1839 | IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_CTL_TX_OFFCHAN; |
1840 | local->hw_roc_skb = skb; | 1840 | local->hw_roc_skb = skb; |
1841 | local->hw_roc_skb_for_status = skb; | ||
1841 | mutex_unlock(&local->mtx); | 1842 | mutex_unlock(&local->mtx); |
1842 | 1843 | ||
1843 | return 0; | 1844 | return 0; |
@@ -1892,6 +1893,7 @@ static int ieee80211_mgmt_tx_cancel_wait(struct wiphy *wiphy, | |||
1892 | if (ret == 0) { | 1893 | if (ret == 0) { |
1893 | kfree_skb(local->hw_roc_skb); | 1894 | kfree_skb(local->hw_roc_skb); |
1894 | local->hw_roc_skb = NULL; | 1895 | local->hw_roc_skb = NULL; |
1896 | local->hw_roc_skb_for_status = NULL; | ||
1895 | } | 1897 | } |
1896 | 1898 | ||
1897 | mutex_unlock(&local->mtx); | 1899 | mutex_unlock(&local->mtx); |