mac80211: Fix IBSS merge
authorSujith <Sujith.Manoharan@atheros.com>
Mon, 2 Nov 2009 07:03:23 +0000 (12:33 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:04:08 +0000 (15:04 -0800)
commit9f7028e71d940aadcdea9f777286b066971ba5da
tree9e2ea9ca82522ae409410deef74e1d3863d802cc
parent0b41c5a957e4fb2be4a8ef960e4e50c8791999f3
mac80211: Fix IBSS merge

commit 450aae3d7b60a970f266349a837dfb30a539198b upstream.

Currently, in IBSS mode, a single creator would go into
a loop trying to merge/scan. This happens because the IBSS timer is
rearmed on finishing a scan and the subsequent
timer invocation requests another scan immediately.

This patch fixes this issue by checking if we have just completed
a scan run trying to merge with other IBSS networks.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Cc: Luis Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/mac80211/ibss.c