From 744c5e170dd4db2dbbbc0a76a9d4d0a4e1c33f04 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sat, 6 Apr 2019 08:12:03 +0200 Subject: [PATCH] fix: bitwise comparison always evaluates to false --- hal/rtl8812a/usb/rtl8812au_xmit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/rtl8812a/usb/rtl8812au_xmit.c b/hal/rtl8812a/usb/rtl8812au_xmit.c index 36b3d1e..7d14c79 100644 --- a/hal/rtl8812a/usb/rtl8812au_xmit.c +++ b/hal/rtl8812a/usb/rtl8812au_xmit.c @@ -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); 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); if (loop_cnt++ == 100) return _FALSE;