aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-08 20:19:01 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-08 20:19:01 -0500
commit263fb5b1bf9265d0e4ce59ff6ea92f478b5b61ea (patch)
tree5ee497d530185d32421122729af86cf77d0dc649 /net/mac80211
parent8d13a2a9fb3e5e3f68e9d3ec0de3c8fcfa56a224 (diff)
parentc69b90920a36b88ab0d649963d81355d865eeb05 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/e1000e/netdev.c
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/cfg.c2
-rw-r--r--net/mac80211/ieee80211_i.h2
-rw-r--r--net/mac80211/status.c7
-rw-r--r--net/mac80211/tx.c2
4 files changed, 10 insertions, 3 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 845c76d58d25..2ba3af850dda 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;
@@ -1891,6 +1892,7 @@ static int ieee80211_mgmt_tx_cancel_wait(struct wiphy *wiphy,
1891 if (ret == 0) { 1892 if (ret == 0) {
1892 kfree_skb(local->hw_roc_skb); 1893 kfree_skb(local->hw_roc_skb);
1893 local->hw_roc_skb = NULL; 1894 local->hw_roc_skb = NULL;
1895 local->hw_roc_skb_for_status = NULL;
1894 } 1896 }
1895 1897
1896 mutex_unlock(&local->mtx); 1898 mutex_unlock(&local->mtx);
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 44eea1af1553..f2ef15d910a5 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -951,7 +951,7 @@ struct ieee80211_local {
951 951
952 struct ieee80211_channel *hw_roc_channel; 952 struct ieee80211_channel *hw_roc_channel;
953 struct net_device *hw_roc_dev; 953 struct net_device *hw_roc_dev;
954 struct sk_buff *hw_roc_skb; 954 struct sk_buff *hw_roc_skb, *hw_roc_skb_for_status;
955 struct work_struct hw_roc_start, hw_roc_done; 955 struct work_struct hw_roc_start, hw_roc_done;
956 enum nl80211_channel_type hw_roc_channel_type; 956 enum nl80211_channel_type hw_roc_channel_type;
957 unsigned int hw_roc_duration; 957 unsigned int hw_roc_duration;
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index ffb0de9bc2fa..010a559bd872 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -327,6 +327,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
327 327
328 if (info->flags & IEEE80211_TX_INTFL_NL80211_FRAME_TX) { 328 if (info->flags & IEEE80211_TX_INTFL_NL80211_FRAME_TX) {
329 struct ieee80211_work *wk; 329 struct ieee80211_work *wk;
330 u64 cookie = (unsigned long)skb;
330 331
331 rcu_read_lock(); 332 rcu_read_lock();
332 list_for_each_entry_rcu(wk, &local->work_list, list) { 333 list_for_each_entry_rcu(wk, &local->work_list, list) {
@@ -338,8 +339,12 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
338 break; 339 break;
339 } 340 }
340 rcu_read_unlock(); 341 rcu_read_unlock();
342 if (local->hw_roc_skb_for_status == skb) {
343 cookie = local->hw_roc_cookie ^ 2;
344 local->hw_roc_skb_for_status = NULL;
345 }
341 cfg80211_mgmt_tx_status( 346 cfg80211_mgmt_tx_status(
342 skb->dev, (unsigned long) skb, skb->data, skb->len, 347 skb->dev, cookie, skb->data, skb->len,
343 !!(info->flags & IEEE80211_TX_STAT_ACK), GFP_ATOMIC); 348 !!(info->flags & IEEE80211_TX_STAT_ACK), GFP_ATOMIC);
344 } 349 }
345 350
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 38e593939727..17ef4f4e8602 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1549,7 +1549,7 @@ static int ieee80211_skb_resize(struct ieee80211_local *local,
1549 skb_orphan(skb); 1549 skb_orphan(skb);
1550 } 1550 }
1551 1551
1552 if (skb_header_cloned(skb)) 1552 if (skb_cloned(skb))
1553 I802_DEBUG_INC(local->tx_expand_skb_head_cloned); 1553 I802_DEBUG_INC(local->tx_expand_skb_head_cloned);
1554 else if (head_need || tail_need) 1554 else if (head_need || tail_need)
1555 I802_DEBUG_INC(local->tx_expand_skb_head); 1555 I802_DEBUG_INC(local->tx_expand_skb_head);