mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Remove configuration parameters and dead code for other devices
The vendor code includes some code that is needed for RTL8182CU, RTL8192DU, RTL8711, RTL8712, and RTL8723AU. This dead code is removed. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
1c5cb9ca00
commit
c5e461c221
18 changed files with 202 additions and 1200 deletions
|
@ -324,12 +324,6 @@ void _rtw_free_xmit_priv (struct xmit_priv *pxmitpriv)
|
|||
struct xmit_buf *pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmitbuf;
|
||||
u32 max_xmit_extbuf_size = MAX_XMIT_EXTBUF_SZ;
|
||||
u32 num_xmit_extbuf = NR_XMIT_EXTBUFF;
|
||||
#if defined(CONFIG_MP_INCLUDED) && defined(CONFIG_RTL8723A)
|
||||
if (padapter->registrypriv.mp_mode) {
|
||||
max_xmit_extbuf_size = 20000;
|
||||
num_xmit_extbuf = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
@ -2414,54 +2408,38 @@ __inline static struct tx_servq *rtw_get_sta_pending
|
|||
|
||||
_func_enter_;
|
||||
|
||||
#ifdef CONFIG_RTL8711
|
||||
|
||||
if (IS_MCAST(psta->hwaddr))
|
||||
{
|
||||
ptxservq = &(psta->sta_xmitpriv.be_q); /* we will use be_q to queue bc/mc frames in BCMC_stainfo */
|
||||
*ppstapending = &padapter->xmitpriv.bm_pending;
|
||||
switch (up) {
|
||||
case 1:
|
||||
case 2:
|
||||
ptxservq = &(psta->sta_xmitpriv.bk_q);
|
||||
*ppstapending = &padapter->xmitpriv.bk_pending;
|
||||
(phwxmits+3)->accnt++;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BK\n"));
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
ptxservq = &(psta->sta_xmitpriv.vi_q);
|
||||
*ppstapending = &padapter->xmitpriv.vi_pending;
|
||||
(phwxmits+1)->accnt++;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : VI\n"));
|
||||
break;
|
||||
case 6:
|
||||
case 7:
|
||||
ptxservq = &(psta->sta_xmitpriv.vo_q);
|
||||
*ppstapending = &padapter->xmitpriv.vo_pending;
|
||||
(phwxmits+0)->accnt++;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : VO\n"));
|
||||
break;
|
||||
case 0:
|
||||
case 3:
|
||||
default:
|
||||
ptxservq = &(psta->sta_xmitpriv.be_q);
|
||||
*ppstapending = &padapter->xmitpriv.be_pending;
|
||||
(phwxmits+2)->accnt++;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BE\n"));
|
||||
break;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
switch (up)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
ptxservq = &(psta->sta_xmitpriv.bk_q);
|
||||
*ppstapending = &padapter->xmitpriv.bk_pending;
|
||||
(phwxmits+3)->accnt++;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BK\n"));
|
||||
break;
|
||||
|
||||
case 4:
|
||||
case 5:
|
||||
ptxservq = &(psta->sta_xmitpriv.vi_q);
|
||||
*ppstapending = &padapter->xmitpriv.vi_pending;
|
||||
(phwxmits+1)->accnt++;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : VI\n"));
|
||||
break;
|
||||
|
||||
case 6:
|
||||
case 7:
|
||||
ptxservq = &(psta->sta_xmitpriv.vo_q);
|
||||
*ppstapending = &padapter->xmitpriv.vo_pending;
|
||||
(phwxmits+0)->accnt++;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : VO\n"));
|
||||
break;
|
||||
|
||||
case 0:
|
||||
case 3:
|
||||
default:
|
||||
ptxservq = &(psta->sta_xmitpriv.be_q);
|
||||
*ppstapending = &padapter->xmitpriv.be_pending;
|
||||
(phwxmits+2)->accnt++;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BE\n"));
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue