Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4025348rwr; Mon, 8 May 2023 01:29:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ60vBOsgSK4mD0BAbiglS5r8pAWZ4+dRxbkYj99eI+++BoOqzZKxJ4VSe5ZYYoefhLF2c+a X-Received: by 2002:a05:6a00:1a51:b0:643:98e3:d43b with SMTP id h17-20020a056a001a5100b0064398e3d43bmr11287310pfv.5.1683534542839; Mon, 08 May 2023 01:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683534542; cv=none; d=google.com; s=arc-20160816; b=j+1BoK3WXwt3rBPKao8EVHRyckpTQO25CueKxQhhffZDChLb0jGN7DepB82zag/LT/ aqqqRqppX6BDeENbG70s/HnR4Jrwqg9TII4k5XiLi64lgek1/fF23Rt/D0P27NKIIWH2 8/d4dVguzeM8pjRq/tFGVIHPEYHMSlzsXA1wmdRvKGyHGewtdtyYrlTDVzPddbE7iDIh JdGxm8By8dZ3DfTHeGo/fH+Vdby6MSL5n/UDSUL4vUbYwuKri+aJkvdsjqgjyKUdR5mS k1b0n9fixCDN1Y3xtLwOLuTpkoSNMlsNjI5ggrlkuR6GUNUbPvClTrqsUXaGICSDIxVb hYzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OW0/Bc9GRccpMKhG99rRiy/otqgmm+zxt8wJWdlIFZU=; b=P+RyWerH6vzARd3G2RKVoSplKHFhtnwnvfL7SEOYn259VNI1KPwgzTLOtpXJU/Fp3d AKus2BlfEMJ9aHzv6lhBkJA/LfuAVOJaCI8/Ps8hrs5BR3SAJhbF8CnnHVB5KhauJkLH 8pdBDKDhBOambv/ql61TBw61gpFqZx5xLm53h/0emTvT6gaTKlZhaSAUMbu2MZISP9tg wQALmb9Nu8UzpsbA/GmlTgtxe/f8uNtcn2c7RMLYNAzasQ3sNYnjhNbKhzoBm9hfoeQ5 +0PG/iy6ielDDGR2ctbJcVHrGXfvLYAo7ouLgNnGyqs3JQHzPjYjOLp+hOWgY6U8z4Xu EfWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hYqc2vRP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l72-20020a63914b000000b005130f15c5b1si8110314pge.363.2023.05.08.01.28.54; Mon, 08 May 2023 01:29:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hYqc2vRP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233765AbjEHIZ5 (ORCPT + 61 others); Mon, 8 May 2023 04:25:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233769AbjEHIZX (ORCPT ); Mon, 8 May 2023 04:25:23 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 433F619D5C for ; Mon, 8 May 2023 01:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683534319; x=1715070319; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cMwx1kn3P5ygp/EMddgaSnCrovvvDEhJtvgZP5XBy4Y=; b=hYqc2vRPBkwV2tIXgctCqdHnGZdQb542PnzwlvfEy5m1fNXVouzeCyGq pg0/ibmCfunkHtA96ohtW6fIz0g2655BBxlBAQoQRExVuED8KXtbOiz1C oHJX4gi+6XG814u1Uyq126n+tbNJ3DkayzD7j9ivGz+LQgPq5gCYH1oO8 QqETdb2YkLpfAYQeitoQtQYAvAM1D3cL9/biaJuuY7FkjSKjyJU+Q9qQI KDL8/OAQarPUaE/hbOaM2AOuQe/ajofukrozBJPZUa14km9jheqvYLWrv 63GIJLwR5ol5hTHcykNLhMMuKOTGzFsZIBXnELjo22/5+oCJUCN1mNcsI Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="329949935" X-IronPort-AV: E=Sophos;i="5.99,258,1677571200"; d="scan'208";a="329949935" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 01:25:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="767982691" X-IronPort-AV: E=Sophos;i="5.99,258,1677571200"; d="scan'208";a="767982691" Received: from shemert-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.224.248]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 01:25:11 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Emmanuel Grumbach , Gregory Greenman Subject: [PATCH 14/14] wifi: iwlwifi: pass the esr_transition_timeout to the firmware Date: Mon, 8 May 2023 11:24:33 +0300 Message-Id: <20230508082433.1349733-15-gregory.greenman@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230508082433.1349733-1-gregory.greenman@intel.com> References: <20230508082433.1349733-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Emmanuel Grumbach The firmware needs to know the esr_transtition_timeout to time the transition between EMLSR and single radio with the AP. Add the EMLSR support bit to the wiphy extended capabilities so that it'll be sent in our association request frame. We can set this field unconditionally since it'll be used only if the MLO is supported. Signed-off-by: Emmanuel Grumbach Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 2 ++ drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index 2ae665ba2ac9..c9c072a3c832 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -251,6 +251,8 @@ static const struct wiphy_iftype_ext_capab add_iftypes_ext_capa[] = { .extended_capabilities = he_if_types_ext_capa_sta, .extended_capabilities_mask = he_if_types_ext_capa_sta, .extended_capabilities_len = sizeof(he_if_types_ext_capa_sta), + /* relevant only if EHT is supported */ + .eml_capabilities = IEEE80211_EML_CAP_EMLSR_SUPP, }, { .iftype = NL80211_IFTYPE_STATION, diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c b/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c index 99bf71a2b690..f55b08d9642f 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c @@ -133,6 +133,9 @@ static int iwl_mvm_mld_mac_ctxt_cmd_sta(struct iwl_mvm *mvm, } cmd.client.assoc_id = cpu_to_le16(vif->cfg.aid); + cmd.client.esr_transition_timeout = + u16_get_bits(vif->cfg.eml_cap, + IEEE80211_EML_CAP_TRANSITION_TIMEOUT); if (vif->probe_req_reg && vif->cfg.assoc && vif->p2p) cmd.filter_flags |= cpu_to_le32(MAC_CFG_FILTER_ACCEPT_PROBE_REQ); -- 2.38.1