Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5143504rwe; Tue, 18 Apr 2023 02:41:30 -0700 (PDT) X-Google-Smtp-Source: AKy350bnX2jkHuJde1Z6zHR6RFCCnbWffca9n2dxYSVRxT7sYDYLMLgatqWM1Ckat+d7U/1FQTuh X-Received: by 2002:a17:902:f549:b0:1a0:6a47:184e with SMTP id h9-20020a170902f54900b001a06a47184emr1936160plf.42.1681810890662; Tue, 18 Apr 2023 02:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681810890; cv=none; d=google.com; s=arc-20160816; b=P/zFzBfCZEFDTEOVKQCOtTOhywLLli18hgoAK7bdHJkUdEY0g68FjQiLYc7NDWjVz/ ScrEPvpQVoOIvUu08f8Jnt1mHfBRdwla9hzc7YhqY0E9PsJBwkHfgE0TmmCx2nQT5uvm NbXkLRe//MBSRvFNHNFPlt4idPZrw7TEEg6kQN6y/RJjVyBpWds+cnIb83frE2k5nHEI Qw2gzYADWx8H20MHEinZZJD53SWkbGSwYe3QZMtahxXwE2ehJvJaQ1CSY/jn8/W/otee uioNqfesUbH+Dn9MOBtCRzwEwwuqBMMXFKbS3nB2Dswzj9wkFyjojlxHuCRUUOme4eNn 1uxg== 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=WAmgUJrsK+sF0A/BhDNucd21vt8El3jpyDUqbBshBYY=; b=pg6300QT2SNi7JT9vu9wGT2XKVr4NjoxSf1l8E2/fIeVt2WMZqyOK/VxZ10vhhLhA0 tjRA8G1c3xwIGbL4teA5huOylwnHYBZVjM5PJM4Fcurzewr4mnhp87ATYWcTuAON20ZG oYBdh1w6HdJ5celZGytDauA3w8uOkAy70tULJ/qBX9GhcCY3k/uc4/RCL0ecZmEHsSTz JuvZgTskenVt6tmMWzT5SIJa9Ve+2X9z4hK4tt8TFR1mm1xCYo0yh8E4yNKTb5BXEGNA MbhuEA8NOivJUMsUnoT4N2dE2JYKIULewNX9IO84anH8vtMMgawRbnbNGTy7zC2YFuH7 QIYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lNEu8QN+; 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 k17-20020a17090aaa1100b002478b185f56si5014355pjq.138.2023.04.18.02.41.21; Tue, 18 Apr 2023 02:41:30 -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=lNEu8QN+; 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 S231325AbjDRJ2q (ORCPT + 63 others); Tue, 18 Apr 2023 05:28:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231335AbjDRJ2o (ORCPT ); Tue, 18 Apr 2023 05:28:44 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97CB359DC for ; Tue, 18 Apr 2023 02:28:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681810121; x=1713346121; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YkKl8jtoJBNLR9RH54X6HK8GpbTAMsqO6yJ69P/JiK4=; b=lNEu8QN+4B8yb7OGd1KIjMi60a8pbUr/s67c+OStF6GlgGJIiPInlWXw uRHVu9fReku1ZG8HOb+b257lbCy/gEh37dpv+6YMgrTbBnolyTxvCAcvI DLL9sofGmFlAN4X2ZQEARcgzytIKu0/77MCbYkfnARmg1iVGuRggV3UcE p7m0h+2hauJv5PK/9DxI3n8aAxxMSfNj9qgi1OJqGPN6T5ApcHyGkI7KH N93CEQ7tdX2zv6jqQ0Bo2oie3/CUT+C1cwZBt07p3+4T7frkizfah7Yhi /DSGB9xdZzCHZjtmmdyDP/1VMa5Sq9YyqQC3F52WQF1zXdloLuJdlqOlP g==; X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="410341182" X-IronPort-AV: E=Sophos;i="5.99,206,1677571200"; d="scan'208";a="410341182" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2023 02:28:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="684511230" X-IronPort-AV: E=Sophos;i="5.99,206,1677571200"; d="scan'208";a="684511230" Received: from kadanh-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.234.12]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2023 02:28:39 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Gregory Greenman , Johannes Berg Subject: [PATCH 07/11] wifi: iwlwifi: mvm: enable support for MLO APIs Date: Tue, 18 Apr 2023 12:28:10 +0300 Message-Id: <20230418122405.0ae0dd6f0481.Iec993cf0f28eacb2483fb9d1e755b0b2fd62e163@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230418092814.1438734-1-gregory.greenman@intel.com> References: <20230418092814.1438734-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, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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: Gregory Greenman Enable driver's support for MLO APIs to unlock this functionality. Signed-off-by: Gregory Greenman Signed-off-by: Johannes Berg --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index 51399284e097..0f01b62357c6 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -305,6 +305,11 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm) ieee80211_hw_set(hw, BUFF_MMPDU_TXQ); ieee80211_hw_set(hw, STA_MMPDU_TXQ); + /* Set this early since we need to have it for the check below */ + if (mvm->mld_api_is_used && + mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ) + hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO; + /* With MLD FW API, it tracks timing by itself, * no need for any timing from the host */ -- 2.38.1