Get frame bandwidth from phy_info for RTL8814AU

This commit is contained in:
kimocoder 2019-05-21 23:13:01 +02:00
parent 4ed5e6803d
commit d2b8153730

View File

@ -4082,9 +4082,16 @@ static sint fill_radiotap_hdr(_adapter *padapter, union recv_frame *precvframe,
hdr_buf[rt_len] |= BIT1; /* MCS index known */ hdr_buf[rt_len] |= BIT1; /* MCS index known */
/* bandwidth */ /* bandwidth */
#ifdef CONFIG_RTL8814A
if(pattrib->physt) {
hdr_buf[rt_len] |= BIT0;
hdr_buf[rt_len+1] |= (pattrib->phy_info.band_width & 0x03);
}
#else
hdr_buf[rt_len] |= BIT0; hdr_buf[rt_len] |= BIT0;
hdr_buf[rt_len + 1] |= (pattrib->bw & 0x03); hdr_buf[rt_len + 1] |= (pattrib->bw & 0x03);
#endif
/* guard interval */ /* guard interval */
hdr_buf[rt_len] |= BIT2; hdr_buf[rt_len] |= BIT2;
hdr_buf[rt_len + 1] |= (pattrib->sgi & 0x01) << 2; hdr_buf[rt_len + 1] |= (pattrib->sgi & 0x01) << 2;
@ -4397,10 +4404,10 @@ int recv_func(_adapter *padapter, union recv_frame *rframe)
#endif #endif
ret = _SUCCESS; ret = _SUCCESS;
goto exit; goto exit;
} else } else {
/* check if need to handle uc_swdec_pending_queue*/ /* check if need to handle uc_swdec_pending_queue*/
if (check_fwstate(mlmepriv, WIFI_STATION_STATE) && psecuritypriv->busetkipkey) { if (check_fwstate(mlmepriv, WIFI_STATION_STATE) && psecuritypriv->busetkipkey)
{
union recv_frame *pending_frame; union recv_frame *pending_frame;
int cnt = 0; int cnt = 0;
@ -4412,9 +4419,11 @@ int recv_func(_adapter *padapter, union recv_frame *rframe)
if (cnt) if (cnt)
RTW_INFO(FUNC_ADPT_FMT" dequeue %d from uc_swdec_pending_queue\n", RTW_INFO(FUNC_ADPT_FMT" dequeue %d from uc_swdec_pending_queue\n",
FUNC_ADPT_ARG(padapter), cnt); FUNC_ADPT_ARG(padapter), cnt);
}
} }
DBG_COUNTER(padapter->rx_logs.core_rx); DBG_COUNTER(padapter->rx_logs.core_rx);
ret = recv_func_prehandle(padapter, rframe); ret = recv_func_prehandle(padapter, rframe);