software/drivers/sd8887/src/wlan/mlan/mlan_wmm.c
/**
 * @brief Map ACs to TID
 *
 * @param priv             Pointer to the mlan_private driver data struct
 * @param queue_priority   Queue_priority structure
 *
 * @return 	   N/A
 */
@brief Map ACs to TID
@param priv             Pointer to the mlan_private driver data struct
@param queue_priority   Queue_priority structure

@return         N/A
@brief Map ACs to TID @param priv Pointer to the mlan_private driver data struct @param queue_priority Queue_priority structure @return N / A
static void
wlan_wmm_queue_priorities_tid(pmlan_private priv, t_u8 queue_priority[])
{
	int i;
	ENTER();
	for (i = 0; i < 4; ++i) {
		tos_to_tid[7 - (i * 2)] = ac_to_tid[queue_priority[i]][1];
		tos_to_tid[6 - (i * 2)] = ac_to_tid[queue_priority[i]][0];
	}
	for (i = 0; i < MAX_NUM_TID; i++)
		tos_to_tid_inv[tos_to_tid[i]] = (t_u8)i;
	util_scalar_write(priv->adapter->pmoal_handle,
			  &priv->wmm.highest_queued_prio,
			  HIGH_PRIO_TID,
			  priv->adapter->callbacks.moal_spin_lock,
			  priv->adapter->callbacks.moal_spin_unlock);
	LEAVE();
}
static void wlan_wmm_queue_priorities_tid ( pmlan_private priv , t_u8 queue_priority [ ] ) { int i ; ENTER ( ) ; for ( i = 0 ; i < 4 ; ++ i ) { tos_to_tid [ 7 - ( i * 2 ) ] = ac_to_tid [ queue_priority [ i ] ] [ 1 ] ; tos_to_tid [ 6 - ( i * 2 ) ] = ac_to_tid [ queue_priority [ i ] ] [ 0 ] ; } for ( i = 0 ; i < MAX_NUM_TID ; i ++ ) tos_to_tid_inv [ tos_to_tid [ i ] ] = ( t_u8 ) i ; util_scalar_write ( priv -> adapter -> pmoal_handle , & priv -> wmm . highest_queued_prio , HIGH_PRIO_TID , priv -> adapter -> callbacks . moal_spin_lock , priv -> adapter -> callbacks . moal_spin_unlock ) ; LEAVE ( ) ; }
@brief Map ACs to TID
 @param priv             Pointer to the mlan_private driver data struct
 @param queue_priority   Queue_priority structure
@brief Map ACs to TID @param priv Pointer to the mlan_private driver data struct @param queue_priority Queue_priority structure
/* in case priorities have changed, force highest priority so
	 * next packet will check from top to re-establish the highest
	 */