1. 31 Jan, 2017 3 commits
  2. 28 Jan, 2017 8 commits
  3. 27 Jan, 2017 1 commit
  4. 26 Jan, 2017 21 commits
  5. 23 Jan, 2017 4 commits
  6. 20 Jan, 2017 3 commits
    • Larry Finger's avatar
      rtlwifi: rtl8192cu: Convert driver to use common macros · 106e0dec
      Larry Finger authored
      These drivers use a set of complicated macros to extract and insert
      information for the RX and TX descriptors. Driver rtl8192cu had a
      different set than was used for the PCI-based drivers. To simplify
      the code, rtl8192cu is switched to use the common version. In the
      process, two errors in those common macros were found and fixed.
      
      Besides simplifying the code, there is an additional benefit. We have
      no BE hardware to test the PCI driver, but using the common macros
      provides an additional test for the validity of many endian-sensitive
      operations.
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Ping-Ke Shih <pkshih@realtek.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      106e0dec
    • Larry Finger's avatar
      rtlwifi: rtl8192cu: Calculate descriptor checksum correctly for BE · 69d8597e
      Larry Finger authored
      This driver requires a checksum for the descriptors so that the wifi
      chip is assured that the USB transmission was correct. These entries
      are little-endian, but the driver was always using cpu order in the
      calculation. As a result, the driver failed on BE hardware.
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Ping-Ke Shih <pkshih@realtek.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      69d8597e
    • Larry Finger's avatar
      rtlwifi: Download firmware as bytes rather than as dwords · 89d32c90
      Larry Finger authored
      The firmware is read from disk as a little-endian byte string. The code
      that loads the firmware into the device transfers it as 4-byte quantities.
      The routines that write multi-byte quantities on BE hardware assume that
      the data are in CPU order, and automatically do the conversion to the LE
      order required by the device. As a result, the firmware is transmitted
      incorrectly. Rather than do multiple byte swaps on the data, the download
      routine is revised to transmit bytes rather than dwords. Although the
      number of I/O operations is increased, the firmware is not often loaded.
      
      All drivers have the same bug, and use essentially the same code to
      download firmware. These routines have been moved into rtlwifi.
      
      Some CamelCase variables have been renamed.
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Ping-Ke Shih <pkshih@realtek.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      89d32c90