1. 20 1月, 2017 1 次提交
    • 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
  2. 30 12月, 2016 1 次提交
  3. 17 11月, 2016 1 次提交
  4. 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
  5. 15 9月, 2016 1 次提交
    • J
      rtlwifi: rtl818x: constify local structures · d86e6476
      Julia Lawall 提交于
      For structure types defined in the same file or local header files, find
      top-level static structure declarations that have the following
      properties:
      1. Never reassigned.
      2. Address never taken
      3. Not passed to a top-level macro call
      4. No pointer or array-typed field passed to a function or stored in a
      variable.
      Declare structures having all of these properties as const.
      
      Done using Coccinelle.
      Based on a suggestion by Joe Perches <joe@perches.com>.
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      d86e6476
  6. 30 12月, 2015 1 次提交
  7. 14 10月, 2015 1 次提交
  8. 25 12月, 2014 1 次提交
  9. 02 12月, 2014 1 次提交
  10. 31 10月, 2014 1 次提交
  11. 01 10月, 2014 1 次提交
  12. 13 8月, 2014 1 次提交
  13. 20 5月, 2014 1 次提交
  14. 04 10月, 2013 1 次提交
  15. 02 4月, 2013 2 次提交
  16. 01 12月, 2012 1 次提交
  17. 31 10月, 2012 1 次提交
    • L
      rtlwifi: rtl8192c: rtl8192ce: Add support for B-CUT version of RTL8188CE · 0bd899e7
      Larry Finger 提交于
      Realtek devices with designation RTL8188CE-VL have the so-called B-cut
      of the wireless chip. This patch adds the special programming needed by
      these devices. In addition, a variable that was static has been moved into
      the private data area as it is now needed in two different routines. This
      change also fixes a minor bug that would be present if a system had more
      than one RTL81{88,92}CE devices. Other drivers in the rtlwifi family had
      already made this change, thus the variable already exists in the private
      data structure.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Anisse Astier <anisse@astier.eu>
      Cc: Li Chaoming <chaoming_li@realsil.com.cn>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      0bd899e7
  18. 13 9月, 2012 1 次提交
  19. 08 9月, 2012 1 次提交
    • L
      rtlwifi: rtl8192c: rtl8192ce: rtl8192cu: rtl8192se: Remove sparse warnings · 8e2c406a
      Larry Finger 提交于
      The rtlwifi family of drivers has the following sparse errors:
      
        CHECK   drivers/net/wireless/rtlwifi/usb.c
      drivers/net/wireless/rtlwifi/usb.c:122:17: warning: cast to restricted __le32
        CHECK   drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c
      drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:1157:13: warning: context imbalance in 'rtl92c_dm_refresh_rate_adaptive_mask' - different lock contexts for basic block
        CHECK   drivers/net/wireless/rtlwifi/rtl8192ce/hw.c
      drivers/net/wireless/rtlwifi/rtl8192ce/hw.c:1909:30: warning: cast to restricted __le32
        CHECK   drivers/net/wireless/rtlwifi/rtl8192ce/sw.c
      drivers/net/wireless/rtlwifi/rtl8192ce/sw.c:345:1: warning: symbol 'rtl92ce_pci_ids' was not declared. Should it be static?
        CHECK   drivers/net/wireless/rtlwifi/rtl8192cu/trx.c
      drivers/net/wireless/rtlwifi/rtl8192cu/trx.c:494:9: warning: cast from restricted __le16
        CHECK   drivers/net/wireless/rtlwifi/rtl8192se/fw.c
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:490:17: warning: cast to restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:490:17: warning: cast to restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:494:17: warning: cast to restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:494:17: warning: cast to restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:499:17: warning: cast to restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:499:17: warning: cast to restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:510:25: warning: cast to restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:510:25: warning: cast to restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:607:9: warning: cast to restricted __le16
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:607:9: warning: cast to restricted __le16
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:650:9: warning: cast to restricted __le16
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:650:9: warning: cast to restricted __le16
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:652:9: warning: cast to restricted __le16
      drivers/net/wireless/rtlwifi/rtl8192se/fw.c:652:9: warning: cast to restricted __le16
        CHECK   drivers/net/wireless/rtlwifi/rtl8192se/trx.c
      drivers/net/wireless/rtlwifi/rtl8192se/trx.c:758:9: warning: cast from restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/trx.c:788:17: warning: cast from restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/trx.c:804:17: warning: cast to restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/trx.c:804:17: warning: cast to restricted __le32
      drivers/net/wireless/rtlwifi/rtl8192se/trx.c:807:17: warning: cast from restricted __le32
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      8e2c406a
  20. 17 4月, 2012 1 次提交
    • A
      net/wireless: use module_pci_driver · 5b0a3b7e
      Axel Lin 提交于
      This patch converts the drivers in drivers/net/wireless/* to use
      module_pci_driver() macro which makes the code smaller and a bit simpler.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Cc: "John W. Linville" <linville@tuxdriver.com>
      Cc: Jiri Slaby <jirislaby@gmail.com>
      Cc: Nick Kossifidis <mickflemm@gmail.com>
      Cc: "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
      Cc: Simon Kelley <simon@thekelleys.org.uk>
      Cc: Jouni Malinen <j@w1.fi>
      Cc: Lennert Buytenhek <buytenh@wantstofly.org>
      Cc: Christian Lamparter <chunkeey@googlemail.com>
      Cc: Ivo van Doorn <IvDoorn@gmail.com>
      Cc: Larry Finger <Larry.Finger@lwfinger.net>
      Cc: linux-wireless@vger.kernel.org
      Acked-by: NLennert Buytenhek <buytenh@wantstofly.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      5b0a3b7e
  21. 31 1月, 2012 2 次提交
  22. 25 1月, 2012 3 次提交
  23. 20 12月, 2011 1 次提交
  24. 01 11月, 2011 1 次提交
  25. 15 10月, 2011 2 次提交
  26. 12 10月, 2011 1 次提交
  27. 21 9月, 2011 1 次提交
  28. 25 8月, 2011 1 次提交
  29. 17 5月, 2011 1 次提交
  30. 27 4月, 2011 4 次提交
  31. 13 4月, 2011 1 次提交
  32. 24 2月, 2011 1 次提交
    • L
      rtlwifi: rtl8192ce: rtl8192cu: Fix multiple def errors for allyesconfig build · 1472d3a8
      Larry Finger 提交于
      As noted by Stephan Rothwell, an allyesconfig build fails since rtl8192cu
      was merged with failures such as:
      
      drivers/net/wireless/rtlwifi/rtl8192cu/built-in.o: In function `rtl92c_phy_sw_chnl':
      (.opd+0xf30): multiple definition of `rtl92c_phy_sw_chnl'
      drivers/net/wireless/rtlwifi/rtl8192ce/built-in.o:(.opd+0xb70): first defined here
      drivers/net/wireless/rtlwifi/rtl8192cu/built-in.o: In function `rtl92c_fill_h2c_cmd':
      (.opd+0x288): multiple definition of `rtl92c_fill_h2c_cmd'
      drivers/net/wireless/rtlwifi/rtl8192ce/built-in.o:(.opd+0x288): first defined here
      
      These are caused because the code shared between rtl8192ce and rtl8192cu
      is included in both drivers. This has been fixed by creating a new modue that
      contains the shared code.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1472d3a8