mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: rtl8723au: Don't read REQ_NQOS_SEQ 16 bits and write back 8 bits
This fixes a potential endian bug Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b195011740
commit
516f29e1c8
@ -727,7 +727,7 @@ void rtl8723a_fifo_cleanup(struct rtw_adapter *padapter)
|
||||
rtl8723au_write8(padapter, REG_TXPAUSE, 0xff);
|
||||
|
||||
/* keep sn */
|
||||
padapter->xmitpriv.nqos_ssn = rtl8723au_read16(padapter, REG_NQOS_SEQ);
|
||||
padapter->xmitpriv.nqos_ssn = rtl8723au_read8(padapter, REG_NQOS_SEQ);
|
||||
|
||||
if (pwrpriv->bkeepfwalive != true) {
|
||||
u32 v32;
|
||||
|
@ -330,7 +330,7 @@ struct xmit_priv {
|
||||
struct list_head xmitextbuf_list; /* track buffers for cleanup */
|
||||
uint free_xmit_extbuf_cnt;
|
||||
|
||||
u16 nqos_ssn;
|
||||
u8 nqos_ssn;
|
||||
int ack_tx;
|
||||
struct mutex ack_tx_mutex;
|
||||
struct submit_ctx ack_tx_ops;
|
||||
|
Loading…
Reference in New Issue
Block a user