mirror of https://gitee.com/openkylin/linux.git
staging: rtl8723au: pxmitframe->frame_tag is never set to a value > 8
No point of masking out high bits since we never set the value to anything exceeding bits 0-3. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
22f42e2aa2
commit
b81f3f26c5
|
@ -1291,7 +1291,7 @@ void rtw_count_tx_stats23a(struct rtw_adapter *padapter, struct xmit_frame *pxmi
|
|||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
||||
if ((pxmitframe->frame_tag&0x0f) == DATA_FRAMETAG) {
|
||||
if (pxmitframe->frame_tag == DATA_FRAMETAG) {
|
||||
pxmitpriv->tx_bytes += sz;
|
||||
pmlmepriv->LinkDetectInfo.NumTxOkInPeriod++;
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz, u8 bag
|
|||
|
||||
memset(ptxdesc, 0, sizeof(struct tx_desc));
|
||||
|
||||
if ((pxmitframe->frame_tag&0x0f) == DATA_FRAMETAG) {
|
||||
if (pxmitframe->frame_tag == DATA_FRAMETAG) {
|
||||
/* offset 4 */
|
||||
ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id&0x1f);
|
||||
|
||||
|
@ -215,7 +215,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz, u8 bag
|
|||
|
||||
ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate23a(pmlmeext->tx_rate));
|
||||
}
|
||||
} else if ((pxmitframe->frame_tag&0x0f) == MGNT_FRAMETAG) {
|
||||
} else if (pxmitframe->frame_tag == MGNT_FRAMETAG) {
|
||||
/* offset 4 */
|
||||
ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id&0x1f);
|
||||
|
||||
|
@ -240,10 +240,11 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz, u8 bag
|
|||
ptxdesc->txdw5 |= cpu_to_le32(0x00180000);/* retry limit = 6 */
|
||||
|
||||
ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate23a(pmlmeext->tx_rate));
|
||||
} else if ((pxmitframe->frame_tag&0x0f) == TXAGG_FRAMETAG) {
|
||||
} else if (pxmitframe->frame_tag == TXAGG_FRAMETAG) {
|
||||
DBG_8723A("pxmitframe->frame_tag == TXAGG_FRAMETAG\n");
|
||||
} else {
|
||||
DBG_8723A("pxmitframe->frame_tag = %d\n", pxmitframe->frame_tag);
|
||||
DBG_8723A("pxmitframe->frame_tag = %d\n",
|
||||
pxmitframe->frame_tag);
|
||||
|
||||
/* offset 4 */
|
||||
ptxdesc->txdw1 |= cpu_to_le32((4)&0x1f);/* CAM_ID(MAC_ID) */
|
||||
|
@ -392,7 +393,7 @@ bool rtl8723au_xmitframe_complete(struct rtw_adapter *padapter,
|
|||
|
||||
pxmitbuf->priv_data = pxmitframe;
|
||||
|
||||
if ((pxmitframe->frame_tag&0x0f) == DATA_FRAMETAG) {
|
||||
if (pxmitframe->frame_tag == DATA_FRAMETAG) {
|
||||
if (pxmitframe->attrib.priority <= 15)/* TID0~15 */
|
||||
res = rtw_xmitframe_coalesce23a(padapter, pxmitframe->pkt, pxmitframe);
|
||||
|
||||
|
|
Loading…
Reference in New Issue