mac80211: fix mesh path flushing
Previously, mpaths were never flushed since the mpath is not active once we call this function. Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
a6965c44e9
commit
00e3f25c85
|
@ -735,8 +735,7 @@ void mesh_path_flush_pending(struct mesh_path *mpath)
|
||||||
{
|
{
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
|
|
||||||
while ((skb = skb_dequeue(&mpath->frame_queue)) &&
|
while ((skb = skb_dequeue(&mpath->frame_queue)) != NULL)
|
||||||
(mpath->flags & MESH_PATH_ACTIVE))
|
|
||||||
mesh_path_discard_frame(skb, mpath->sdata);
|
mesh_path_discard_frame(skb, mpath->sdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue