]> www.infradead.org Git - users/hch/dma-mapping.git/commitdiff
wifi: iwlwifi: properly set WIPHY_FLAG_SUPPORTS_EXT_KEK_KCK
authorDaniel Gabay <daniel.gabay@intel.com>
Wed, 3 Jul 2024 03:43:13 +0000 (06:43 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 14:04:13 +0000 (16:04 +0200)
The WIPHY_FLAG_SUPPORTS_EXT_KEK_KCK should be set based on the
WOWLAN_KEK_KCK_MATERIAL command version. Currently, the command
version in the firmware has advanced to 4, which prevents the
flag from being set correctly, fix that.

Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240703064026.a0f162108575.If1a9785727d2a1b0197a396680965df1b53d4096@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

index 18ce060df9b5b3d3efe28efcfb92f7bc6d256a88..b1e6d4eee68d22e407e7f61ed064bdf7cd8a63e5 100644 (file)
@@ -654,7 +654,7 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
                hw->wiphy->features |= NL80211_FEATURE_WFA_TPC_IE_IN_PROBES;
 
        if (iwl_fw_lookup_cmd_ver(mvm->fw, WOWLAN_KEK_KCK_MATERIAL,
-                                 IWL_FW_CMD_VER_UNKNOWN) == 3)
+                                 IWL_FW_CMD_VER_UNKNOWN) >= 3)
                hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_EXT_KEK_KCK;
 
        if (fw_has_api(&mvm->fw->ucode_capa,