1. 12 Feb, 2024 3 commits
    • Ajay Singh's avatar
      wifi: wilc1000: set preamble size to auto as default in wilc_init_fw_config() · a8e5fefa
      Ajay Singh authored
      WILC driver currently applies some default configuration whenever the firmware
      is initialized, and sets the default preamble size to short. However, despite
      this passed option, firmware is also able to successfully connect to access
      points only using long preamble, so this setting does not really enforce short
      preambles and is misleading regarding applied configuration.
      
      Update default configuration and make it match the firmware behavior by passing
      the existing WILC_FW_PREAMBLE_AUTO value (2 instead of 0). The updated setting
      does not really alter firmware behavior since it is still capable to connect to
      both short preamble and long preamble access points, but at list the setting now
      expresses for real the corresponding firmware behavior.
      
      More info: it has been implemented to address the transmission (Tx) blackout
      issue observed in the 802.11b mode. The modification has no impact on the other
      modes, which will continue to work as they did in the previous implementation.
      This change will allow the 802.11b transmission (2, 5.5, 11Mbps) to use long
      preamble.
      Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
      Signed-off-by: default avatarAlexis Lothoré <alexis.lothore@bootlin.com>
      Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
      Link: https://msgid.link/20240115-wilc_1000_fixes-v1-1-54d29463a738@bootlin.com
      a8e5fefa
    • Dmitry Antipov's avatar
      wifi: mwifiex: use kstrtoX_from_user() in debugfs handlers · 425c3326
      Dmitry Antipov authored
      Use convenient 'kstrtou32_from_user()' in 'mwifiex_verext_write()'
      and 'kstrtobool_from_user()' in 'mwifiex_timeshare_coex_write()',
      respectively. Compile tested only.
      Signed-off-by: default avatarDmitry Antipov <dmantipov@yandex.ru>
      Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
      Link: https://msgid.link/20240110115314.421298-1-dmantipov@yandex.ru
      425c3326
    • Arnd Bergmann's avatar
      wifi: iwlwifi: fix #ifdef CONFIG_ACPI check · bad9d211
      Arnd Bergmann authored
      The #ifdef check around the function definition for two functions was
      changed without also changing the one on the declaration:
      
      drivers/net/wireless/intel/iwlwifi/fw/uefi.c:359:6: error: redefinition of 'iwl_uefi_get_sgom_table'
        359 | void iwl_uefi_get_sgom_table(struct iwl_trans *trans,
            |      ^~~~~~~~~~~~~~~~~~~~~~~
      In file included from drivers/net/wireless/intel/iwlwifi/fw/uefi.c:11:
      drivers/net/wireless/intel/iwlwifi/fw/uefi.h:294:6: note: previous definition of 'iwl_uefi_get_sgom_table' with type 'void(struct iwl_trans *, struct iwl_fw_runtime *)'
        294 | void iwl_uefi_get_sgom_table(struct iwl_trans *trans, struct iwl_fw_runtime *fwrt)
            |      ^~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/wireless/intel/iwlwifi/fw/uefi.c:392:5: error: redefinition of 'iwl_uefi_get_uats_table'
        392 | int iwl_uefi_get_uats_table(struct iwl_trans *trans,
            |     ^~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/wireless/intel/iwlwifi/fw/uefi.h:299:5: note: previous definition of 'iwl_uefi_get_uats_table' with type 'int(struct iwl_trans *, struct iwl_fw_runtime *)'
        299 | int iwl_uefi_get_uats_table(struct iwl_trans *trans,
            |     ^~~~~~~~~~~~~~~~~~~~~~~
      
      Adapt it by merging the declarations into the existing #ifdef block.
      
      Fixes: 74f4cd71 ("wifi: iwlwifi: take SGOM and UATS code out of ACPI ifdef")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://msgid.link/20240212112343.1148931-1-arnd@kernel.orgSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      bad9d211
  2. 09 Feb, 2024 1 commit
  3. 08 Feb, 2024 36 commits