]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8723au: Don't read REQ_NQOS_SEQ 16 bits and write back 8 bits
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 10 Oct 2014 19:41:32 +0000 (21:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:30:14 +0000 (10:30 +0800)
This fixes a potential endian bug

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/hal_com.c
drivers/staging/rtl8723au/include/rtw_xmit.h

index bf919f6e41286abd04fd9c5431ac8427e2550e93..f906317579bc30d5dc0c4ab938c97c153b92d5aa 100644 (file)
@@ -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;
index 70cd4b69d8f827e956d628237f489700b36f8b99..780ec0665f208178d96ac7964ae0cf67c06764a5 100644 (file)
@@ -330,7 +330,7 @@ struct      xmit_priv {
        struct list_head xmitextbuf_list;       /* track buffers for cleanup */
        uint free_xmit_extbuf_cnt;
 
-       u16     nqos_ssn;
+       u     nqos_ssn;
        int     ack_tx;
        struct mutex ack_tx_mutex;
        struct submit_ctx ack_tx_ops;