]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: mld: always allow mimo in NAN
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 27 May 2026 20:05:05 +0000 (23:05 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 3 Jun 2026 14:02:54 +0000 (17:02 +0300)
The mimo field of the sta command is badly named. It really carries the
initial SMPS value as it is in the association request of the client
station (when we are the AP).

In NAN we don't have this information, just mark SMPS as disabled.

Link: https://patch.msgid.link/20260527230313.abd136be474e.I9eb663d953b482236345ffbcb611f28facea83c1@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
drivers/net/wireless/intel/iwlwifi/mld/sta.c

index 77eeeed66116be88fb8d9d289186e410fc08f0c7..e18d86f021dcc2287308a18c7bd0981d96110cf8 100644 (file)
@@ -538,6 +538,12 @@ int iwl_mld_add_modify_sta_cmd(struct iwl_mld *mld,
                break;
        }
 
+       /* In NAN, there is no association request so no initial SMPS info */
+       if (mld_sta->vif->type == NL80211_IFTYPE_NAN_DATA) {
+               cmd.mimo = cpu_to_le32(1);
+               cmd.mimo_protection = cpu_to_le32(0);
+       }
+
        iwl_mld_fill_ampdu_size_and_dens(link_sta, is_6ghz,
                                         &cmd.tx_ampdu_max_size,
                                         &cmd.tx_ampdu_spacing);