atheros_wifi/custom_src/osal/osal.c
A_STATUS qosal_task_get_priority(qosal_task_handle task_handle,
                                         A_UINT32 *priority_ptr) {
  A_STATUS osal_ret = A_OK;
  osPriority_t priority;

  priority = osThreadGetPriority (task_handle);
  if(priority == osPriorityError) {
    osal_ret = A_ERROR;
  }
  *priority_ptr = (A_UINT32)priority;

  return osal_ret;
}
/* 
 * Description: This function is used to get the current priority of the task 
 * 
 * Params: Task handle          
 *         Task priority 
 * 
 * Returns: A_OK if Success, A_ERROR if Fail 
 */
This function is used to get the current priority of the task

Task handle
Task priority


This function is used to get the current priority of the task Task handle Task priority
A_STATUS qosal_task_get_priority(qosal_task_handle task_handle,
                                         A_UINT32 *priority_ptr) {
  A_STATUS osal_ret = A_OK;
  osPriority_t priority;
  priority = osThreadGetPriority (task_handle);
  if(priority == osPriorityError) {
    osal_ret = A_ERROR;
  }
  *priority_ptr = (A_UINT32)priority;
  return osal_ret;
}
A_STATUS qosal_task_get_priority ( qosal_task_handle task_handle , A_UINT32 * priority_ptr ) { A_STATUS osal_ret = A_OK ; osPriority_t priority ; priority = osThreadGetPriority ( task_handle ) ; if ( priority == osPriorityError ) { osal_ret = A_ERROR ; } * priority_ptr = ( A_UINT32 ) priority ; return osal_ret ; }
Description: This function is used to get the current priority of the task
Description : This function is used to get the current priority of the task