cw1200: Fix spurious BUG_ON() trigger when starting AP mode.
authorSolomon Peachy <pizza@shaftnet.org>
Fri, 2 Aug 2013 23:57:40 +0000 (19:57 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 5 Aug 2013 18:46:07 +0000 (14:46 -0400)
commit5a6e0cf70743f30c17ccb5f228db9a124b0e7477
treeb39eb334aaca9b1ae1a83749652b1ed4e8194421
parent89b59bcd3ad54c5cd5540ae12275f738dad333fb
cw1200: Fix spurious BUG_ON() trigger when starting AP mode.

There's an underlying race condition with the unjoin_work() call that is
sometimes triggered depending on scheduling order and the phase of the
moon.  This doesn't fix the race condition, but it does remove the
ill-advised BUG_ON() call in an easily-recoverable situation.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/cw1200/sta.c