wlcore: don't WARN_ON in case of existing ROC
authorEliad Peller <eliad@wizery.com>
Sun, 6 Mar 2016 22:28:08 +0000 (00:28 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Mar 2016 13:00:20 +0000 (15:00 +0200)
commit87cba1696045cbf963d09c82ceca98db92b7ace9
tree6505d991a99a8061ef94ec9a09e0b8a65dbdfb18
parent54f008497b9f09f0880dd84ce5608be4ad7cff13
wlcore: don't WARN_ON in case of existing ROC

When working with AP + P2P, it's possible to get into
a state when the AP is in ROC (due to assiciating station)
while trying to ROC on the P2P interface.

Replace the WARN_ON with wl1271_error to avoid warnings
in this case.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wlcore/main.c