aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-06-10 04:21:30 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-14 15:38:17 -0400
commit35f20c14a103ca2c7062999e934a513b83d84de6 (patch)
tree780e5dd272b685d7b82fdd849b886553d203c430 /net/mac80211/mlme.c
parent2a419056c15478d2df3f3e9d4fa64e34eb1faa7d (diff)
mac80211: use common skb queue
IBSS, managed and mesh modes all have an skb queue, and in the future we want to also use it in other modes, so make them all use a common skb queue already. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 0154d74905c9..854ef4ed2cfa 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1652,7 +1652,7 @@ ieee80211_rx_result ieee80211_sta_rx_mgmt(struct ieee80211_sub_if_data *sdata,
1652 case IEEE80211_STYPE_DEAUTH: 1652 case IEEE80211_STYPE_DEAUTH:
1653 case IEEE80211_STYPE_DISASSOC: 1653 case IEEE80211_STYPE_DISASSOC:
1654 case IEEE80211_STYPE_ACTION: 1654 case IEEE80211_STYPE_ACTION:
1655 skb_queue_tail(&sdata->u.mgd.skb_queue, skb); 1655 skb_queue_tail(&sdata->skb_queue, skb);
1656 ieee80211_queue_work(&local->hw, &sdata->u.mgd.work); 1656 ieee80211_queue_work(&local->hw, &sdata->u.mgd.work);
1657 return RX_QUEUED; 1657 return RX_QUEUED;
1658 } 1658 }
@@ -1810,7 +1810,7 @@ static void ieee80211_sta_work(struct work_struct *work)
1810 ifmgd = &sdata->u.mgd; 1810 ifmgd = &sdata->u.mgd;
1811 1811
1812 /* first process frames to avoid timing out while a frame is pending */ 1812 /* first process frames to avoid timing out while a frame is pending */
1813 while ((skb = skb_dequeue(&ifmgd->skb_queue))) 1813 while ((skb = skb_dequeue(&sdata->skb_queue)))
1814 ieee80211_sta_rx_queued_mgmt(sdata, skb); 1814 ieee80211_sta_rx_queued_mgmt(sdata, skb);
1815 1815
1816 /* then process the rest of the work */ 1816 /* then process the rest of the work */
@@ -1967,7 +1967,6 @@ void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata)
1967 (unsigned long) sdata); 1967 (unsigned long) sdata);
1968 setup_timer(&ifmgd->chswitch_timer, ieee80211_chswitch_timer, 1968 setup_timer(&ifmgd->chswitch_timer, ieee80211_chswitch_timer,
1969 (unsigned long) sdata); 1969 (unsigned long) sdata);
1970 skb_queue_head_init(&ifmgd->skb_queue);
1971 1970
1972 ifmgd->flags = 0; 1971 ifmgd->flags = 0;
1973 1972