1. 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
  2. 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
  3. 30 12月, 2015 1 次提交
  4. 14 10月, 2015 1 次提交
  5. 25 12月, 2014 1 次提交
  6. 11 11月, 2014 1 次提交
  7. 31 10月, 2014 3 次提交
  8. 20 5月, 2014 1 次提交
  9. 02 4月, 2013 2 次提交
  10. 07 12月, 2012 1 次提交
  11. 01 12月, 2012 2 次提交
  12. 27 6月, 2012 1 次提交
  13. 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
  14. 23 2月, 2012 1 次提交
    • T
      rtlwifi: rtl8192se firmware load can overflow target buffer · 3fccdcf5
      Tim Gardner 提交于
      Define RTL8190_MAX_RAW_FIRMWARE_CODE_SIZE which represents the
      maximimum possible firmware file size. Use it in the definition
      of the buffer which receives the firmware file data.
      
      Set RTL8190_MAX_RAW_FIRMWARE_CODE_SIZE closer to the actual size of
      the firmware file, e.g., 90000 (down from hard coded 164000). The current
      size of rtlwifi/rtl8192sefw.bin is 88856.
      
      Set max_fw_size to RTL8190_MAX_RAW_FIRMWARE_CODE_SIZE for the size limit
      check. Fix the error case where max_fw_size is not cleared if the size
      limit check fails.
      
      Cc: Chaoming Li <chaoming_li@realsil.com.cn>
      Cc: linux-wireless@vger.kernel.org
      Cc: netdev@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NTim Gardner <tim.gardner@canonical.com>
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      3fccdcf5
  15. 01 2月, 2012 1 次提交
  16. 31 1月, 2012 2 次提交
  17. 25 1月, 2012 4 次提交
  18. 20 12月, 2011 1 次提交
  19. 01 11月, 2011 1 次提交
  20. 15 10月, 2011 2 次提交
  21. 12 10月, 2011 1 次提交
  22. 21 9月, 2011 1 次提交
  23. 25 8月, 2011 1 次提交
  24. 22 7月, 2011 1 次提交
  25. 11 5月, 2011 1 次提交
  26. 06 5月, 2011 2 次提交
  27. 27 4月, 2011 4 次提交