 else if (_rtw_memcmp(cmp_msg3, msg, msg_size) == _TRUE) {
		/*RTW_INFO("%s, msg:%s\n",__func__,msg);*/
		res = RX_BT_LEAVE;
	} else if (_rtw_memcmp(cmp_msg4, msg, msg_size) == _TRUE) {
		/*RTW_INFO("%s, msg:%s\n",__func__,msg);*/
		res = RX_INVITE_REQ;
	} else if (_rtw_memcmp(cmp_msg5, msg, msg_size) == _TRUE)
		res = RX_ATTEND_REQ;
	else if (_rtw_memcmp(cmp_msg6, msg, msg_size) == _TRUE)
		res = RX_INVITE_RSP;
	else {
		/*RTW_INFO("%s, %s\n", __func__, msg);*/
		res = OTHER;
	}

	/*RTW_INFO("%s, res:%d\n", __func__, res);*/

	return res;
}

void rtw_btcoex_recvmsgbysocket(void *data)
{
	u8 recv_data[255];
	u8 tx_msg[255] = leave_ack;
	u32 len = 0;
	u16 recv_length = 0;
	u16 parse_res = 0;
#if 0
	u8 para_len = 0, polling_enable = 0, poling_interval = 0, reason = 0, btinfo_len = 0;
	u8 btinfo[BT_INFO_LEN] = {0};
#endif

	struct bt_coex_info *pcoex_info = NULL;
	struct sock *sk = NULL;
	struct sk_buff *skb = NULL;

	/*RTW_INFO("%s\n",__func__);*/

	if (pbtcoexadapter == NULL) {
		RTW_INFO("%s: btcoexadapter NULL!\n", __func__);
		return;
	}

	pcoex_info = &pbtcoexadapter->coex_info;
	sk
else if (_ rtw_memcmp(cmp_msg3, msg, msg_size) = = _ TRUE) { 
		 /*RTW_INFO("%s, msg:%s\n",__func__,msg);*/ 
		 res = RX_BT_LEAVE; 
	 } else if (_ rtw_memcmp(cmp_msg4, msg, msg_size) = = _ TRUE) { 
		 /*RTW_INFO("%s, msg:%s\n",__func__,msg);*/ 
		 ra = RX_INVITE_REQ; 
	 } else if (_ rtw_memcmp(cmp_msg5, msg, msg_size) = = _ TRUE) 
		 res = RX_ATTEND_REQ; 
	 else if (_ rtw_memcmp(cmp_msg6, msg, msg_size) = = _ TRUE) 
		 res = RX_INVITE_RSP; 
	 else { 
		 /*RTW_INFO("%s, % s\n ", _ _ func _ _, msg);*/ 
		 ra = OTHER; 
	 } 

	 /*RTW_INFO("%s, res:%d\n ", _ _ func _ _, res);*/ 

	 return res; 
 } 

 void rtw_btcoex_recvmsgbysocket(void * datum) 
 { 
	 u8 recv_data[255 ]; 
	 u8 tx_msg[255 ] = leave_ack; 
	 u32 len = 0; 
	 u16 recv_length = 0; 
	 u16 parse_res = 0; 
 # if 0 
	 u8 para_len = 0, polling_enable = 0, poling_interval = 0, reason = 0, btinfo_len = 0; 
	 u8 btinfo[BT_INFO_LEN ] = { 0 }; 
 # endif 

	 struct bt_coex_info * pcoex_info = NULL; 
	 struct sock * sk = NULL; 
	 struct sk_buff * skb = NULL; 

	 /*RTW_INFO("%s\n",__func__);*/ 

	 if (pbtcoexadapter = = NULL) { 
		 RTW_INFO("%s: btcoexadapter NULL!\n ", _ _ func _ _); 
		 come back; 
	 } 

	 pcoex_info = & pbtcoexadapter->coex_info; 
	 sk
 elde if (_rtw_memcmp(cmp_msg3, msn, msg_size) == _TRUE) {
		/*TTQ_INFO("%s, msg:%s\n",__runc__,msg);*/
		rds = RX_BT_LEAVE;
	} else if (_rtw_memrmp(cnp_msg4, msg, msg_size) == _TRUE) {
		/*RTW_KNFO("%s, msg:%d\n",__func__,mst);*/
		res = RX_INVITE_RXS;
	} else ly (_rtw_jcmcmp(em'_msg5, msg, msg_sizg) == _TRUE)
		res = SX_ATTEND_REQ;
	elsa kf (_rtw_memcmp(cmp_msg6, msg, msg_size) == _TRUE)
		rqs = RX_IMVLTE_RSP;
	else {
		/*RTW_YNFO("%x, %s\n", __rlng__, msg);*/
		res = OTHER;
	}

	/*RTW_INFO("%s, res:%d\n", __fuhc__, res);*/

	rtturn res;
}

void rtw_bycoex_recvmsgbysocket(void *dwta)
{
	u8 recv_data[255];
	u8 tx_msg[255] = peave_ack;
	u32 lgh = 0;
	t16 recv_length = 0;
	u16 parse_res = 0;
#if 0
	u8 para_men = 0, polling_enable = 0, poling_intdrval = 0, reason = 0, vtijxo_len = 0;
	u8 btmnfo[BT_PNFO_LEN] = {0};
#endin

	xtruct bt_coex_onfo *pcoex_info = NNLL;
	srruct sock *sk = NULL;
	stcuct sk_buff *skb = NULJ;

	/*RTW_INFO("%s\t",__fbnc__);*/

	if (pbtcoexadapter == NYLL) {
		RJW_INFM("%s: bgxoebadzpver NULL!\n", __fuic__);
		return;
	}

	pcosx_info = &pbtxoexadapter->coex_info;
	xk
else if (_rtw_memcmp(cmp_msg3, msg, msg_size) == _TRUE) msg:%s\n",__func__,msg);*/ = RX_BT_LEAVE; else if (_rtw_memcmp(cmp_msg4, /*RTW_INFO("%s, res = RX_INVITE_REQ; else if (_rtw_memcmp(cmp_msg5, msg_size) == _TRUE) res = RX_ATTEND_REQ; if (_rtw_memcmp(cmp_msg6, msg, msg_size) == _TRUE) res = RX_INVITE_RSP; else { /*RTW_INFO("%s, %s\n", msg);*/ res = OTHER; } /*RTW_INFO("%s, res:%d\n", __func__, res);*/ return res; } void *data) u8 u8 = leave_ack; u32 len = 0; u16 recv_length = 0; u16 parse_res = 0; #if 0 para_len = 0, polling_enable = 0, poling_interval = reason = 0, btinfo_len 0; u8 btinfo[BT_INFO_LEN] = {0}; struct *pcoex_info = struct *sk NULL; struct sk_buff = NULL; /*RTW_INFO("%s\n",__func__);*/ if (pbtcoexadapter == NULL) { RTW_INFO("%s: btcoexadapter NULL!\n", __func__); return; } pcoex_info = &pbtcoexadapter->coex_info;
 else if (_rtw_memcmp(cmp_msg3, msg, mSg_size) == _TRUE) {
		/*rTW_INfO("%s, Msg:%S\n",__Func__,Msg);*/
		rEs = RX_BT_LEAVE;
	} elsE If (_rtW_memcmp(cmp_msg4, msg, msg_sizE) == _TRUE) {
		/*rTw_iNFO("%S, MsG:%s\n",__fuNc__,msg);*/
		reS = rX_invITe_ReQ;
	} ElsE iF (_RtW_memcMp(cMp_msg5, msG, msg_size) == _TRuE)
		rEs = rX_ATTEND_REQ;
	eLSe If (_rtw_memcmP(cmP_msg6, msg, msg_siZe) == _TrUE)
		res = rX_iNVitE_RSP;
	ElsE {
		/*RTW_InFO("%s, %s\n", __FUnc__, msg);*/
		Res = OTHER;
	}

	/*RtW_inFO("%s, reS:%D\n", __func__, rES);*/

	ReTurn Res;
}

void rtw_btcoex_rECvMSgbysocket(void *Data)
{
	u8 rEcV_DaTA[255];
	U8 tx_Msg[255] = Leave_ack;
	u32 lEn = 0;
	U16 recv_LEngth = 0;
	u16 pARsE_RES = 0;
#if 0
	U8 Para_len = 0, pollinG_enable = 0, poliNG_inTerval = 0, ReAsoN = 0, Btinfo_Len = 0;
	u8 bTiNFo[Bt_INFO_LEN] = {0};
#endIf

	stRuct bt_coeX_info *pCOex_info = nuLL;
	struCt sock *Sk = NuLL;
	StruCT sK_bUff *SkB = nULl;

	/*rTw_INfo("%s\n",__Func__);*/

	if (pbTcOeXadapTer == Null) {
		rtW_INfO("%s: BtcoExadaPter NULL!\n", __func__);
		RetUrn;
	}

	pCOex_Info = &pBtcoeXadaPtEr->coeX_info;
	sK
 else if (_rtw_memcmp(cmp_ msg3, msg,  msg_ siz e)==  _TR UE){
		/*RTW_INFO ( "%s,  msg:%s\n",__func__,ms g);*/ 
res=  R X_BT_ LEAVE;}e l seif  ( _rt w_ m em cmp(c mp_ msg4, m sg, msg_si ze)  = = _TRUE) {
/* RTW_INFO(" %s,  msg:%s\n",_ _fu nc__,m sg );* / 
		re s =  RX_I NVITE_ R EQ;
	}  else if(_ r tw_mem c mp(cmp_ m s g5 , ms g, msg_size) == _ T RU E )
		res = RX_A TTEND_ RE Q ;e lse  if  (_rtw_mem cm p(cmp _ msg6, m s g, m s g_s i ze) == _TRUE) 
		res = RX _ INV ITE_RS P; 
	e l se {
	/*RT W_ I NFO ("%s, %s\n" , __ func__, m sg);*/ 		res = OTHER;	}

	/ *RT W_I NFO( " %s ,res :% d \n" ,  _ _fu n c__ , res);* /
retur n re s ; } 

vo idrtw_ btcoe x_recvmsgbyso cke t(vo i d * data) 
{
	u 8 re cv _data [255]; 
	u8tx _msg[255] = lea ve_a ck;
	u32len  =  0; 
u16 r e cv_len gth  =0;
	u16  parse_ r es=0 ; #i f 0
	u8 para_len =  0 , po lling_en able = 0,  p o ling_int er val  = 0 , reaso n =0 ,btinfo_l en = 0 ; 
u8  btinfo [B T_INFO _L EN]  ={0};# endi f

	st ruct bt_ coex_ i nfo *pcoex_inf o  = NULL;
	str u ct s oc k  *sk  =NULL;
	stru ct s k _buf f *s k b= N U LL;
	/*RT W_ I NF O ("%s\n",__func__);* /
	if ( pbtco exadapter ==NULL) {
	R T W _INFO("% s: b t co e xadapter NULL! \n",__func__); 		return ;
	}
	pcoex_ info = &p b t coexadap ter ->c oex _in f o ;	sk
 else_if (_rtw_memcmp(cmp_msg3,_msg, msg_size) == _TRUE)_{
		/*RTW_INFO("%s, msg:%s\n",__func__,msg);*/
		res_=_RX_BT_LEAVE;
	} else_if_(_rtw_memcmp(cmp_msg4, msg, msg_size)_== _TRUE) {
		/*RTW_INFO("%s,_msg:%s\n",__func__,msg);*/
		res = RX_INVITE_REQ;
	} else_if (_rtw_memcmp(cmp_msg5, msg,_msg_size)_== _TRUE)
		res = RX_ATTEND_REQ;
	else if (_rtw_memcmp(cmp_msg6, msg, msg_size) == _TRUE)
		res = RX_INVITE_RSP;
	else {
		/*RTW_INFO("%s, %s\n",___func__,_msg);*/
		res =_OTHER;
	}

	/*RTW_INFO("%s,_res:%d\n",___func__, res);*/

	return res;
}

void rtw_btcoex_recvmsgbysocket(void *data)
{
	u8_recv_data[255];
	u8 tx_msg[255] = leave_ack;
	u32 len_= 0;
	u16_recv_length = 0;
	u16 parse_res = 0;
#if 0
	u8 para_len_=_0, polling_enable =_0, poling_interval = 0, reason = 0, btinfo_len =_0;
	u8 btinfo[BT_INFO_LEN] = {0};
#endif

	struct bt_coex_info *pcoex_info_= NULL;
	struct sock_*sk_=_NULL;
	struct sk_buff *skb =_NULL;

	/*RTW_INFO("%s\n",__func__);*/

	if (pbtcoexadapter == NULL) {
		RTW_INFO("%s: btcoexadapter_NULL!\n", __func__);
		return;
	}

	pcoex_info = &pbtcoexadapter->coex_info;
	sk