mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-12-01 01:12:20 +00:00
fix: bitwise comparison always evaluates to false
This commit is contained in:
parent
35f64254c1
commit
744c5e170d
@ -444,7 +444,7 @@ u32 upload_txpktbuf_8812au(_adapter *adapter, u8 *buf, u32 buflen)
|
|||||||
}
|
}
|
||||||
rtw_write32(adapter, REG_PKTBUF_DBG_CTRL, 0xff800000+(beacon_head<<6) + qw_addr);
|
rtw_write32(adapter, REG_PKTBUF_DBG_CTRL, 0xff800000+(beacon_head<<6) + qw_addr);
|
||||||
loop_cnt = 0;
|
loop_cnt = 0;
|
||||||
while ((rtw_read32(adapter, REG_PKTBUF_DBG_CTRL) & BIT23) == 1) {
|
while ((rtw_read32(adapter, REG_PKTBUF_DBG_CTRL) & BIT23) != 0) {
|
||||||
rtw_udelay_os(10);
|
rtw_udelay_os(10);
|
||||||
if (loop_cnt++ == 100)
|
if (loop_cnt++ == 100)
|
||||||
return _FALSE;
|
return _FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user