software/drivers/sd8887/src/wlan/mlan/mlan_cmdevt.c
/**
 *  @brief This function sends the HS_ACTIVATED event to the application
 *
 *  @param priv         A pointer to mlan_private structure
 *  @param activated    MTRUE if activated, MFALSE if de-activated
 *
 *  @return             N/A
 */
@brief This function sends the HS_ACTIVATED event to the application
@param priv         A pointer to mlan_private structure
@param activated    MTRUE if activated, MFALSE if de-activated

@return             N/A
@brief This function sends the HS_ACTIVATED event to the application @param priv A pointer to mlan_private structure @param activated MTRUE if activated MFALSE if de - activated @return N / A
t_void
wlan_host_sleep_activated_event(pmlan_private priv, t_u8 activated)
{
	ENTER();
	if (!priv) {
		LEAVE();
		return;
	}
	if (activated) {
		if (priv->adapter->is_hs_configured) {
			priv->adapter->hs_activated = MTRUE;
			wlan_update_rxreorder_tbl(priv->adapter, MTRUE);
			PRINTM(MEVENT, "hs_activated\n");
			wlan_recv_event(priv, MLAN_EVENT_ID_DRV_HS_ACTIVATED,
					MNULL);
		} else
			PRINTM(MWARN, "hs_activated: HS not configured !!!\n");
	} else {
		PRINTM(MEVENT, "hs_deactived\n");
		priv->adapter->hs_activated = MFALSE;
		wlan_recv_event(priv, MLAN_EVENT_ID_DRV_HS_DEACTIVATED, MNULL);
	}
	LEAVE();
	return;
}
t_void wlan_host_sleep_activated_event ( pmlan_private priv , t_u8 activated ) { ENTER ( ) ; if ( ! priv ) { LEAVE ( ) ; return ; } if ( activated ) { if ( priv -> adapter -> is_hs_configured ) { priv -> adapter -> hs_activated = MTRUE ; wlan_update_rxreorder_tbl ( priv -> adapter , MTRUE ) ; PRINTM ( MEVENT , " \n " ) ; wlan_recv_event ( priv , MLAN_EVENT_ID_DRV_HS_ACTIVATED , MNULL ) ; } else PRINTM ( MWARN , " \n " ) ; } else { PRINTM ( MEVENT , " \n " ) ; priv -> adapter -> hs_activated = MFALSE ; wlan_recv_event ( priv , MLAN_EVENT_ID_DRV_HS_DEACTIVATED , MNULL ) ; } LEAVE ( ) ; return ; }
@brief This function sends the HS_ACTIVATED event to the application
  @param priv         A pointer to mlan_private structure
  @param activated    MTRUE if activated, MFALSE if de-activated
@brief This function sends the HS_ACTIVATED event to the application @param priv A pointer to mlan_private structure @param activated MTRUE if activated MFALSE if de - activated