software/drivers/sd8887/src/wlan/mlan/mlan_sta_event.c
/**
 *  @brief This function will print diconnect reason code according
 *  to IEEE 802.11 spec
 *
 *  @param reason_code    reason code for the deauth/disaccoc
 *                        received from firmware
 *  @return        N/A
 */
@brief This function will print diconnect reason code according
to IEEE 802.11 spec

@param reason_code    reason code for the deauth/disaccoc
received from firmware
@return        N/A
@brief This function will print diconnect reason code according to IEEE 802 . 11 spec @param reason_code reason code for the deauth / disaccoc received from firmware @return N / A
static void
wlan_print_disconnect_reason(t_u16 reason_code)
{
	ENTER();
	switch (reason_code) {
	case MLAN_REASON_UNSPECIFIED:
		PRINTM(MMSG, "wlan: REASON: Unspecified reason\n");
		break;
	case MLAN_REASON_PREV_AUTH_NOT_VALID:
		PRINTM(MMSG,
		       "wlan: REASON: Previous authentication no longer valid\n");
		break;
	case MLAN_REASON_DEAUTH_LEAVING:
		PRINTM(MMSG,
		       "wlan: REASON: (Deauth) Sending STA is leaving (or has left) IBSS or ESS\n");
		break;
	case MLAN_REASON_DISASSOC_DUE_TO_INACTIVITY:
		PRINTM(MMSG,
		       "wlan: REASON: Disassociated due to inactivity \n");
		break;
	case MLAN_REASON_DISASSOC_AP_BUSY:
		PRINTM(MMSG,
		       "wlan: REASON: (Disassociated) AP unable to handle all connected STAs\n");
		break;
	case MLAN_REASON_CLASS2_FRAME_FROM_NOAUTH_STA:
		PRINTM(MMSG,
		       "wlan: REASON: Class 2 frame was received from nonauthenticated STA\n");
		break;
	case MLAN_REASON_CLASS3_FRAME_FROM_NOASSOC_STA:
		PRINTM(MMSG,
		       "wlan: REASON: Class 3 frame was received from nonassociated STA\n");
		break;
	case MLAN_REASON_DISASSOC_STA_HAS_LEFT:
		PRINTM(MMSG,
		       "wlan: REASON: (Disassocated) Sending STA is leaving (or has left) BSS\n");
		break;
	case MLAN_REASON_STA_REQ_ASSOC_WITHOUT_AUTH:
		PRINTM(MMSG,
		       "wlan: REASON: STA requesting (re)assoc is not authenticated with responding STA\n");
		break;
	default:
		break;
	}
	LEAVE();
	return;
}
static void wlan_print_disconnect_reason ( t_u16 reason_code ) { ENTER ( ) ; switch ( reason_code ) { case MLAN_REASON_UNSPECIFIED : PRINTM ( MMSG , " \n " ) ; break ; case MLAN_REASON_PREV_AUTH_NOT_VALID : PRINTM ( MMSG , " \n " ) ; break ; case MLAN_REASON_DEAUTH_LEAVING : PRINTM ( MMSG , " \n " ) ; break ; case MLAN_REASON_DISASSOC_DUE_TO_INACTIVITY : PRINTM ( MMSG , " \n " ) ; break ; case MLAN_REASON_DISASSOC_AP_BUSY : PRINTM ( MMSG , " \n " ) ; break ; case MLAN_REASON_CLASS2_FRAME_FROM_NOAUTH_STA : PRINTM ( MMSG , " \n " ) ; break ; case MLAN_REASON_CLASS3_FRAME_FROM_NOASSOC_STA : PRINTM ( MMSG , " \n " ) ; break ; case MLAN_REASON_DISASSOC_STA_HAS_LEFT : PRINTM ( MMSG , " \n " ) ; break ; case MLAN_REASON_STA_REQ_ASSOC_WITHOUT_AUTH : PRINTM ( MMSG , " \n " ) ; break ; default : break ; } LEAVE ( ) ; return ; }
@brief This function will print diconnect reason code according
  to IEEE 802.11 spec
@brief This function will print diconnect reason code according to IEEE 802 . 11 spec