wifi: iwlwifi: mvm: Use the SMPS cfg of the correct link
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sun, 12 May 2024 04:30:56 +0000 (07:30 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 May 2024 08:51:24 +0000 (10:51 +0200)
The exiting code is checking the SMPS mode of deflink.
Use the SMPS mode of the link_sta function parameter.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240512072733.f3e2834e78f5.Ie24b431a6ad0dbf977afbbd4d2116bfe2426a0d5@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c

index b7a461dba41ee3fe87a09f3ca10d5a1cdded0360..3b2875f2cab74b7f77d13ecd690febb21174d065 100644 (file)
@@ -470,7 +470,7 @@ static int iwl_mvm_mld_cfg_sta(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
                break;
        }
 
-       switch (sta->deflink.smps_mode) {
+       switch (link_sta->smps_mode) {
        case IEEE80211_SMPS_AUTOMATIC:
        case IEEE80211_SMPS_NUM_MODES:
                WARN_ON(1);