1. 31 Jan, 2017 1 commit
  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 5 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
    • Larry Finger's avatar
      rtlwifi: Remove debugging entry in sysfs · 9336d376
      Larry Finger authored
      As the kernel provides access to module parameters through entries in
      /sys/module/<driver>/parameters/, there is no need for a private
      interface. Thus the existing code for setting the debug level is
      removed.
      Reported-by: default avatarKalle Valo <kvalo@codeaurora.org>
      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>
      9336d376
    • Larry Finger's avatar
      rtlwifi: Convert COMP_XX entries into a proper debugging mask · c34df318
      Larry Finger authored
      The debugging macros contain a parameter COMP_XX that could be used as a
      mask; however, the code turns all these various bits on at the same time.
      This change implements them as a proper mask, and adds module parameters
      to set the mask at load time.
      
      The current name "debug" for the debug level has been changed to
      "debug_level" to better differentiate it from "debug_mask".
      
      The debug routines have also been changed to interrogate the structure
      that is loaded at entry time. As a result, the structure rtl_debug is no
      longer needed, and all references to it are deleted.
      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>
      c34df318