1. 30 12月, 2016 2 次提交
  2. 17 11月, 2016 1 次提交
  3. 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
  4. 27 9月, 2016 2 次提交
  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. 08 7月, 2016 2 次提交
  7. 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
  8. 16 6月, 2016 1 次提交
    • A
      rtlwifi: fix error handling in *_read_adapter_info() · 5345ea6a
      Arnd Bergmann 提交于
      There are nine copies of the _rtl88ee_read_adapter_info() function,
      and most but not all of them cause a build warning in some configurations:
      
      rtl8192de/hw.c: In function '_rtl92de_read_adapter_info':
      rtl8192de/hw.c:1767:12: error: 'hwinfo' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      rtl8723ae/hw.c: In function '_rtl8723e_read_adapter_info.constprop':
      rtlwifi/rtl8723ae/hw.c:1654:12: error: 'hwinfo' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      The problem is that when rtlefuse->epromtype is something other than
      EEPROM_BOOT_EFUSE, the rest of the function uses undefined data, resulting
      in random behavior later.
      
      Apparently, in some drivers, the problem was already found and fixed
      but the fix did not make it into the others.
      
      This picks one approach to deal with the problem and applies identical
      code to all 9 files, to simplify the later consolidation of those.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      5345ea6a
  9. 30 12月, 2015 1 次提交
  10. 14 10月, 2015 1 次提交