1. 21 7月, 2017 1 次提交
  2. 29 6月, 2017 3 次提交
  3. 21 6月, 2017 6 次提交
  4. 21 3月, 2017 1 次提交
  5. 08 2月, 2017 1 次提交
  6. 07 2月, 2017 4 次提交
  7. 20 1月, 2017 2 次提交
    • L
      rtlwifi: rtl8192cu: Convert driver to use common macros · 106e0dec
      Larry Finger 提交于
      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: NLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Ping-Ke Shih <pkshih@realtek.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      106e0dec
    • L
      rtlwifi: Convert COMP_XX entries into a proper debugging mask · c34df318
      Larry Finger 提交于
      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: NLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Ping-Ke Shih <pkshih@realtek.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      c34df318
  8. 13 10月, 2016 1 次提交
    • L
      rtlwifi: Fix regression caused by commit d86e6476 · cf4747d7
      Larry Finger 提交于
      In commit d86e6476 ("rtlwifi: rtl818x: constify local structures"),
      the configuration struct for most of the drivers was changed to be
      constant. The problem is that five of the modified drivers need to be
      able to update the firmware name based on the exact model of the card.
      As the file names were stored in one of the members of that struct,
      these drivers would fail with a kernel BUG splat when they tried to
      update the firmware name.
      
      Rather than reverting the previous commit, I used a suggestion by
      Johannes Berg and made the firmware file name pointers be local to
      the routines that update the software variables.
      
      The configuration struct of rtl8192cu, which was not touched in the
      previous patch, is now constantfied.
      
      Fixes: d86e6476 ("rtlwifi: rtl818x: constify local structures")
      Suggested-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Stable <stable@vger.kernel.org> # 4.8
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      cf4747d7
  9. 27 9月, 2016 1 次提交
  10. 29 6月, 2016 1 次提交
    • A
      rtlwifi: use s8 instead of char · 08aba42f
      Arnd Bergmann 提交于
      Compiling the rtlwifi drivers for ARM with gcc -Wextra warns about lots of
      incorrect code that results from 'char' being unsigned here, e.g.
      
      realtek/rtlwifi/rc.c:113:18: error: comparison is always true due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8188ee/dm.c:1070:22: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8192ce/trx.c:54:16: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8192cu/mac.c:601:16: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8192de/trx.c:53:16: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8192ee/phy.c:1268:12: error: comparison is always true due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8192se/rf.c:150:20: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8723be/dm.c:877:29: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8723be/phy.c:386:16: error: comparison is always true due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8821ae/dm.c:1514:38: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8821ae/phy.c:1558:11: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8821ae/phy.c:386:24: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/rtl8821ae/trx.c:55:12: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      realtek/rtlwifi/stats.c:31:16: error: comparison is always false due to limited range of data type [-Werror=type-limits]
      
      This patch changes all uses of 'char' in this driver that refer to
      8-bit integers to use 's8' instead, which is signed on all architectures.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      08aba42f
  11. 12 5月, 2016 1 次提交
  12. 12 4月, 2016 1 次提交
  13. 08 4月, 2016 1 次提交
  14. 07 4月, 2016 1 次提交
    • L
      rtlwifi: rtl8723be: Add antenna select module parameter · c18d8f50
      Larry Finger 提交于
      A number of new laptops have been delivered with only a single antenna.
      In principle, this is OK; however, a problem arises when the on-board
      EEPROM is programmed to use the other antenna connection. The option
      of opening the computer and moving the connector is not always possible
      as it will void the warranty in some cases. In addition, this solution
      breaks the Windows driver when the box dual boots Linux and Windows.
      
      A fix involving a new module parameter has been developed.  This commit
      adds the new parameter and implements the changes needed for the driver.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Stable <stable@vger.kernel.org> [V4.0+]
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      c18d8f50
  15. 08 3月, 2016 1 次提交
    • L
      rtlwifi: Fix size of wireless mode variable · 73fb2705
      Larry Finger 提交于
      Smatch reports the following warning:
      
        CHECK   drivers/net/wireless/realtek/rtlwifi/rc.c
      drivers/net/wireless/realtek/rtlwifi/rc.c:144 _rtl_rc_rate_set_series() warn: impossible condition '(wireless_mode == 256) => (0-255 == 256)'
      
      This warning arises because commit acc6907b87a9 ("rtlwifi: Fix warning
      from ieee80211_get_tx_rates() when using 5G") now checks the wireless
      mode for WIRELESS_MODE_AC_ONLY (BIT(8)) in _rtl_rc_rate_set_series().
      As a result, all quantities used to store the wireless mode must be u16.
      
      This patch also reorders struct rtl_sta_info to save a little space.
      
      Fixes: d76d65fd ("rtlwifi: fix broken VHT support")
      Reported-by: NDan Williams <dcbw@redhat.com>
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      73fb2705
  16. 07 3月, 2016 1 次提交
  17. 25 2月, 2016 2 次提交
  18. 14 10月, 2015 1 次提交
  19. 03 10月, 2015 1 次提交
  20. 13 8月, 2015 2 次提交
    • L
      rtlwifi: rtl8723ae: rtl8723be: rtl8723com: Fix firmware header endian issues · 7c24d086
      Larry Finger 提交于
      The drivers are converted to use the common firmware header struct.
      Because the old header definition failed to indicate that the multi-byte
      entries should be little endian, several problems were thus exposed.
      These are fixed.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      7c24d086
    • L
      rtlwifi: rtl8192ce: rtl8192cu: Fix endian issue · e41c5135
      Larry Finger 提交于
      Commit e996db69 (rtlwifi: rtl8192c: Add init codes for "fw_version"
      and "fw_subversion") added initialization for fw_version, but failed to
      note that the variable in the firmware header is little-endian. The
      following Sparse warning results:
      
        CHECK   drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c
      drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c:242:36: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c:242:36:    expected unsigned short [unsigned] [usertype] fw_version
      drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c:242:36:    got restricted __le16 [usertype] version
      
      When fixing this problem, I noticed that several of the drivers contain
      nearly identical copies of the firmware header struct, and that only the one
      used in rtl8192c{e,u} had correct endian notation. The struct has been
      moved into a common header, and the other drivers will be fixed in
      subsequant patches.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      e41c5135
  21. 15 6月, 2015 1 次提交
  22. 06 2月, 2015 1 次提交
  23. 09 1月, 2015 1 次提交
  24. 25 12月, 2014 3 次提交
  25. 09 10月, 2014 1 次提交