|
@@ -166,7 +166,7 @@ static void update_recvframe_attrib_from_recvstat(struct rx_pkt_attrib *pattrib,
|
|
|
* Offset 0 */
|
|
|
pattrib->bdecrypted = ((le32_to_cpu(prxstat->rxdw0) & BIT(27)) >> 27)
|
|
|
? 0 : 1;
|
|
|
- pattrib->crc_err = ((le32_to_cpu(prxstat->rxdw0) & BIT(14)) >> 14);
|
|
|
+ pattrib->crc_err = (le32_to_cpu(prxstat->rxdw0) & BIT(14)) >> 14;
|
|
|
/*Offset 4*/
|
|
|
/*Offset 8*/
|
|
|
/*Offset 12*/
|
|
@@ -435,7 +435,7 @@ void r8712_rxcmd_event_hdl(struct _adapter *padapter, void *prxcmdbuf)
|
|
|
poffset = (u8 *)prxcmdbuf;
|
|
|
voffset = *(uint *)poffset;
|
|
|
prxstat = (struct recv_stat *)prxcmdbuf;
|
|
|
- drvinfo_sz = ((le32_to_cpu(prxstat->rxdw0) & 0x000f0000) >> 16);
|
|
|
+ drvinfo_sz = (le32_to_cpu(prxstat->rxdw0) & 0x000f0000) >> 16;
|
|
|
drvinfo_sz <<= 3;
|
|
|
poffset += RXDESC_SIZE + drvinfo_sz;
|
|
|
do {
|