software/drivers/sd8887/src/wlan/mlan/mlan_wmm.c
/**
 *  @brief Downgrade WMM priority queue
 *
 *  @param priv     Pointer to the mlan_private driver data struct
 *
 *  @return         N/A
 */
@brief Downgrade WMM priority queue
@param priv     Pointer to the mlan_private driver data struct

@return         N/A
@brief Downgrade WMM priority queue @param priv Pointer to the mlan_private driver data struct @return N / A
void
wlan_wmm_setup_ac_downgrade(pmlan_private priv)
{
	int ac_val;
	ENTER();
	PRINTM(MINFO, "WMM: AC Priorities: BK(0), BE(1), VI(2), VO(3)\n");
	if (priv->wmm_enabled == MFALSE) {
		for (ac_val = WMM_AC_BK; ac_val <= WMM_AC_VO; ac_val++) {
			priv->wmm.ac_down_graded_vals[ac_val] =
				(mlan_wmm_ac_e)ac_val;
		}
	} else {
		for (ac_val = WMM_AC_BK; ac_val <= WMM_AC_VO; ac_val++) {
			priv->wmm.ac_down_graded_vals[ac_val]
				= wlan_wmm_eval_downgrade_ac(priv,
							     (mlan_wmm_ac_e)
							     ac_val);
			PRINTM(MINFO, "WMM: AC PRIO %d maps to %d\n", ac_val,
			       priv->wmm.ac_down_graded_vals[ac_val]);
		}
	}
	LEAVE();
}
void wlan_wmm_setup_ac_downgrade ( pmlan_private priv ) { int ac_val ; ENTER ( ) ; PRINTM ( MINFO , " \n " ) ; if ( priv -> wmm_enabled == MFALSE ) { for ( ac_val = WMM_AC_BK ; ac_val <= WMM_AC_VO ; ac_val ++ ) { priv -> wmm . ac_down_graded_vals [ ac_val ] = ( mlan_wmm_ac_e ) ac_val ; } } else { for ( ac_val = WMM_AC_BK ; ac_val <= WMM_AC_VO ; ac_val ++ ) { priv -> wmm . ac_down_graded_vals [ ac_val ] = wlan_wmm_eval_downgrade_ac ( priv , ( mlan_wmm_ac_e ) ac_val ) ; PRINTM ( MINFO , " \n " , ac_val , priv -> wmm . ac_down_graded_vals [ ac_val ] ) ; } } LEAVE ( ) ; }
@brief Downgrade WMM priority queue
  @param priv     Pointer to the mlan_private driver data struct
@brief Downgrade WMM priority queue @param priv Pointer to the mlan_private driver data struct
/* WMM is not enabled, default priorities */