/* Note: All these constants are defined in wpa.h For supplicant, there is only EAPOL Key message avaliable */
BOOLEAN WpaMsgTypeSubst(u8 EAPType, int *MsgType)
/* Note: All these constants are defined in wpa.h For supplicant, there is only EAPOL Key message avaliable */
BOOLEAN WpaMsgTypeSubst(u8 EAPType, int *MsgType)
{
	switch (EAPType) {
	case EAPPacket:
		*MsgType = MT2_EAPPacket;
		break;
	case EAPOLStart:
		*MsgType = MT2_EAPOLStart;
		break;
	case EAPOLLogoff:
		*MsgType = MT2_EAPOLLogoff;
		break;
	case EAPOLKey:
		*MsgType = MT2_EAPOLKey;
		break;
	case EAPOLASFAlert:
		*MsgType = MT2_EAPOLASFAlert;
		break;
	default:
		return FALSE;
	}
	return TRUE;
}