diff options
author | Javier Cardona <javier@cozybit.com> | 2009-08-10 15:15:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:58 -0400 |
commit | fe58343461def0d376908a80cebd087b746a1483 (patch) | |
tree | ac888a0e19102fcf02a03b3f36cf1007350d0d00 /net/mac80211/mesh_hwmp.c | |
parent | a3e14f3d2a55fa1268f64ec8a839b6dfa4ff9ea2 (diff) |
mac80211: Improve dequeing from mpath frame queue.
Also, fix typo in comment.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Tested-by: Andrey Yurovsky <andrey@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh_hwmp.c')
-rw-r--r-- | net/mac80211/mesh_hwmp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index e1a763ea1e39..b54c21cf5f73 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c | |||
@@ -810,10 +810,8 @@ int mesh_nexthop_lookup(struct sk_buff *skb, | |||
810 | } | 810 | } |
811 | 811 | ||
812 | if (skb_queue_len(&mpath->frame_queue) >= | 812 | if (skb_queue_len(&mpath->frame_queue) >= |
813 | MESH_FRAME_QUEUE_LEN) { | 813 | MESH_FRAME_QUEUE_LEN) |
814 | skb_to_free = mpath->frame_queue.next; | 814 | skb_to_free = skb_dequeue(&mpath->frame_queue); |
815 | skb_unlink(skb_to_free, &mpath->frame_queue); | ||
816 | } | ||
817 | 815 | ||
818 | info->flags |= IEEE80211_TX_INTFL_NEED_TXPROCESSING; | 816 | info->flags |= IEEE80211_TX_INTFL_NEED_TXPROCESSING; |
819 | skb_queue_tail(&mpath->frame_queue, skb); | 817 | skb_queue_tail(&mpath->frame_queue, skb); |