1. 13 10月, 2017 7 次提交
  2. 28 7月, 2017 4 次提交
  3. 21 7月, 2017 1 次提交
  4. 29 6月, 2017 3 次提交
  5. 21 6月, 2017 6 次提交
  6. 21 3月, 2017 1 次提交
  7. 08 2月, 2017 1 次提交
  8. 07 2月, 2017 4 次提交
  9. 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
  10. 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
  11. 27 9月, 2016 1 次提交
  12. 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
  13. 12 5月, 2016 1 次提交
  14. 12 4月, 2016 1 次提交
  15. 08 4月, 2016 1 次提交
  16. 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
  17. 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
  18. 07 3月, 2016 1 次提交
  19. 25 2月, 2016 2 次提交