mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 23:54:24 +00:00
Get frame bandwidth from phy_info for RTL8814AU
This commit is contained in:
parent
4ed5e6803d
commit
d2b8153730
@ -4082,9 +4082,16 @@ static sint fill_radiotap_hdr(_adapter *padapter, union recv_frame *precvframe,
|
||||
hdr_buf[rt_len] |= BIT1; /* MCS index known */
|
||||
|
||||
/* 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 + 1] |= (pattrib->bw & 0x03);
|
||||
|
||||
#endif
|
||||
/* guard interval */
|
||||
hdr_buf[rt_len] |= BIT2;
|
||||
hdr_buf[rt_len + 1] |= (pattrib->sgi & 0x01) << 2;
|
||||
@ -4397,10 +4404,10 @@ int recv_func(_adapter *padapter, union recv_frame *rframe)
|
||||
#endif
|
||||
ret = _SUCCESS;
|
||||
goto exit;
|
||||
} else
|
||||
|
||||
} else {
|
||||
/* 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;
|
||||
int cnt = 0;
|
||||
|
||||
@ -4414,6 +4421,8 @@ int recv_func(_adapter *padapter, union recv_frame *rframe)
|
||||
RTW_INFO(FUNC_ADPT_FMT" dequeue %d from uc_swdec_pending_queue\n",
|
||||
FUNC_ADPT_ARG(padapter), cnt);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
DBG_COUNTER(padapter->rx_logs.core_rx);
|
||||
ret = recv_func_prehandle(padapter, rframe);
|
||||
|
Loading…
Reference in New Issue
Block a user