static void rtl8723bs_c2h_packet_handler(PADAPTER padapter, u8 *pbuf, u16 length) { u8 *tmpBuf =NULL; u8 res = false; if (length == 0) return; /* DBG_871X("+%s() length =%d\n", __func__, length); */ tmpBuf = rtw_zmalloc(length); if (tmpBuf == NULL) return; memcpy(tmpBuf, pbuf, length); res = rtw_c2h_packet_wk_cmd(padapter, tmpBuf, length); if (res == false) kfree(tmpBuf); /* DBG_871X("-%s res(%d)\n", __func__, res); */ return; }
static void rtl8723bs_c2h_packet_handler(PADAPTER padapter, u8 *pbuf, u16 length) { u8 *tmpBuf=NULL; u8 res = _FALSE; if(length == 0) return; //DBG_871X("+%s() length=%d\n", __func__, length); tmpBuf = rtw_zmalloc(length); if (tmpBuf == NULL) return; _rtw_memcpy(tmpBuf, pbuf, length); res = rtw_c2h_packet_wk_cmd(padapter, tmpBuf, length); if (res == _FALSE && tmpBuf != NULL) rtw_mfree(tmpBuf, length); //DBG_871X("-%s res(%d)\n", __func__, res); return; }
static void rtl8723bs_c2h_packet_handler(PADAPTER padapter, u8 *pbuf, u16 length) { u8 *tmpBuf=NULL; if(length == 0) return; DBG_871X("+%s() length=%d\n", __func__, length); tmpBuf = rtw_zmalloc(length); if (tmpBuf == NULL) return; _rtw_memcpy(tmpBuf, pbuf, length); rtw_c2h_packet_wk_cmd(padapter, tmpBuf, length); DBG_871X("-%s()\n", __func__); return; }