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 <el...@wizery.com>
---
 drivers/net/wireless/ti/wlcore/main.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/ti/wlcore/main.c 
b/drivers/net/wireless/ti/wlcore/main.c
index d1109c4..cb2e8b6 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -5506,9 +5506,10 @@ static int wlcore_op_remain_on_channel(struct 
ieee80211_hw *hw,
                goto out;
 
        /* return EBUSY if we can't ROC right now */
-       if (WARN_ON(wl->roc_vif ||
-                   find_first_bit(wl->roc_map,
-                                  WL12XX_MAX_ROLES) < WL12XX_MAX_ROLES)) {
+       if (wl->roc_vif ||
+           find_first_bit(wl->roc_map, WL12XX_MAX_ROLES) < WL12XX_MAX_ROLES) {
+               wl1271_warning("active roc on role %d",
+                              find_first_bit(wl->roc_map, WL12XX_MAX_ROLES));
                ret = -EBUSY;
                goto out;
        }
-- 
2.6.3

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to