atheros_wifi/custom_src/osal/osal.c
A_UINT32 qosal_wait_for_event(qosal_event_handle event_ptr,
                                        A_UINT32 bitsToWaitFor, 
                                        A_UINT32 all, 
                                        A_UINT32 var1, 
                                        A_UINT32 ticksToWait) {
  A_UINT32 osal_ret = A_OK;
  A_UINT32 opt;

  if(all) {
    opt = osFlagsWaitAll;
  } else {
    opt = osFlagsWaitAny;
  }
  if (event_ptr != DriverWakeEvent) {
    opt |= osFlagsNoClear;
  }

  if (osEventFlagsWait(*event_ptr, bitsToWaitFor, opt, ticksToWait) & 0x80000000) {
    osal_ret = (uint32_t)A_ERROR;
  }
  return osal_ret;
}
/*
 * Description: This function is used for waiting for an event 
 *
 * Params: Event pointer, Bits to Wait for, Ticks to Wait for
 *          
 * Returns: A_OK if Success, A_ERROR if Fail
 */
This function is used for waiting for an event
Params: Event pointer, Bits to Wait for, Ticks to Wait for


This function is used for waiting for an event Params : Event pointer Bits to Wait for Ticks to Wait for
A_UINT32 qosal_wait_for_event(qosal_event_handle event_ptr,
                                        A_UINT32 bitsToWaitFor, 
                                        A_UINT32 all, 
                                        A_UINT32 var1, 
                                        A_UINT32 ticksToWait) {
  A_UINT32 osal_ret = A_OK;
  A_UINT32 opt;
  if(all) {
    opt = osFlagsWaitAll;
  } else {
    opt = osFlagsWaitAny;
  }
  if (event_ptr != DriverWakeEvent) {
    opt |= osFlagsNoClear;
  }
  if (osEventFlagsWait(*event_ptr, bitsToWaitFor, opt, ticksToWait) & 0x80000000) {
    osal_ret = (uint32_t)A_ERROR;
  }
  return osal_ret;
}
A_UINT32 qosal_wait_for_event ( qosal_event_handle event_ptr , A_UINT32 bitsToWaitFor , A_UINT32 all , A_UINT32 var1 , A_UINT32 ticksToWait ) { A_UINT32 osal_ret = A_OK ; A_UINT32 opt ; if ( all ) { opt = osFlagsWaitAll ; } else { opt = osFlagsWaitAny ; } if ( event_ptr != DriverWakeEvent ) { opt |= osFlagsNoClear ; } if ( osEventFlagsWait ( * event_ptr , bitsToWaitFor , opt , ticksToWait ) & 0x80000000 ) { osal_ret = ( uint32_t ) A_ERROR ; } return osal_ret ; }
Description: This function is used for waiting for an event
 Params: Event pointer, Bits to Wait for, Ticks to Wait for
Description : This function is used for waiting for an event Params : Event pointer Bits to Wait for Ticks to Wait for