This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC3100: P2P Wifi Direct- IS_IP_LEASED, IS_IP_ACQUIRED is being set

Part Number: CC3100


Tool/software: TI-RTOS

Hi 

I am trying wifi direct( P2P) between 2 boards using TI-RTOS  and both the device get stuck in the while loop . Any suggestion would be appreciated

   while ((!IS_IP_LEASED(g_Status) && !IS_IP_ACQUIRED(g_Status)) ||(!IS_CONNECTED(g_Status) && !IS_STA_CONNECTED(g_Status))){

       if(IS_CONNECTION_FAILED(g_Status)) {

            /* Error, connection is failed */

            System_printf( Connection Failed\r\n");
       }
        Task_sleep(100);
     }

Thanks