1. 21 12月, 2021 22 次提交
  2. 09 12月, 2021 2 次提交
    • A
      iwlwifi: fix LED dependencies · efdbfa0a
      Arnd Bergmann 提交于
      The dependencies for LED configuration are highly inconsistent and too
      complicated at the moment. One of the results is a randconfig failure I
      get very rarely when LEDS_CLASS is in a loadable module, but the wireless
      core is built-in:
      
      WARNING: unmet direct dependencies detected for MAC80211_LEDS
        Depends on [n]: NET [=y] && WIRELESS [=y] && MAC80211 [=y] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=MAC80211 [=y])
        Selected by [m]:
        - IWLEGACY [=m] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_INTEL [=y]
        - IWLWIFI_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_INTEL [=y] && IWLWIFI [=m] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=IWLWIFI [=m]) && (IWLMVM [=m] || IWLDVM [=m])
      
      aarch64-linux-ld: drivers/net/wireless/ath/ath5k/led.o: in function `ath5k_register_led':
      led.c:(.text+0x60): undefined reference to `led_classdev_register_ext'
      aarch64-linux-ld: drivers/net/wireless/ath/ath5k/led.o: in function `ath5k_unregister_leds':
      led.c:(.text+0x200): undefined reference to `led_classdev_unregister'
      
      For iwlwifi, the dependency is wrong, since this config prevents the
      MAC80211_LEDS code from being part of a built-in MAC80211 driver.
      
      For iwlegacy, this is worse because the driver tries to force-enable
      the other subsystems, which is both a layering violation and a bug
      because it will still fail with MAC80211=y and IWLEGACY=m, leading
      to LEDS_CLASS being a module as well.
      
      The actual link failure in the ath5k driver is a result of MAC80211_LEDS
      being enabled but not usable. With the Kconfig logic fixed in the
      Intel drivers, the ath5k driver works as expected again.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NLuca Coelho <luciano.coelho@intel.com>
      Signed-off-by: NKalle Valo <kvalo@kernel.org>
      Link: https://lore.kernel.org/r/20211204173848.873293-1-arnd@kernel.org
      efdbfa0a
    • J
      iwlwifi: mvm: don't crash on invalid rate w/o STA · d599f714
      Johannes Berg 提交于
      If we get to the WARN_ONCE(..., "Got a HT rate (...)", ...)
      here with a NULL sta, then we crash because mvmsta is bad
      and we try to dereference it. Fix that by printing -1 as the
      state if no station was given.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Fixes: 6761a718 ("iwlwifi: mvm: add explicit check for non-data frames in get Tx rate")
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      Signed-off-by: NKalle Valo <kvalo@kernel.org>
      Link: https://lore.kernel.org/r/iwlwifi.20211203140410.1a1541d7dcb5.I606c746e11447fe168cf046376b70b04e278c3b4@changeid
      d599f714
  3. 08 12月, 2021 16 次提交