wl12xx: couple role_start_dev with roc
commit679a673414473239d189b5b41ea4014b088be7b9
authorEliad Peller <eliad@wizery.com>
Tue, 11 Oct 2011 09:55:44 +0000 (11 11:55 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 8 Nov 2011 13:36:45 +0000 (8 15:36 +0200)
tree39a21f67c8ebc6b9e16bdcbfd2ecb4cfb488ae3f
parent0f1680147ce2509383e053fa843020e0e9f3c6ce
wl12xx: couple role_start_dev with roc

Device role is always started along with ROC.
Couple them together by introducing new wl12xx_start_dev
and wl12xx_stop_dev functions.

By using these functions, we solve a bug that occured during
channel switch - we started the dev role on one channel, and
ROCed on a different one.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/cmd.c
drivers/net/wireless/wl12xx/cmd.h
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/scan.c
drivers/net/wireless/wl12xx/tx.c