Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4017381rwl; Tue, 28 Mar 2023 01:06:03 -0700 (PDT) X-Google-Smtp-Source: AKy350Zk0f7IGYM6T8vlKdlD/YMoh2/CU/xIeiCpt6gSm5RWlqcHKj4AEdWa9h7+6ypl311RRaca X-Received: by 2002:a17:906:7e16:b0:92d:145a:6115 with SMTP id e22-20020a1709067e1600b0092d145a6115mr14741541ejr.38.1679990762904; Tue, 28 Mar 2023 01:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679990762; cv=none; d=google.com; s=arc-20160816; b=SV1N/BbaY4KO8lXRp6Z5wpMj/wEpql3KY/+GU1RybbzlN708v6MtXyaV3Yr1ET5e3Y C57GgqhZ2RTJ7AhZ05Eu6aApya5DHv9qFRWctdUHaibxgOn4ECaGEq9aBZwNtk1vbbhD itESZKFaY5acSF2mswm9AsPrvHizjDjixNa3q7cycBxeiNKcH0ATCc6NPrqqW77rl4Wv qeyQbCrr3reZNHZ1fa/qGcM5ULhIRdsbcM9+lEd7uzN9wiEiQ0ViU/861vM2IN99YPQN ylYW8OJS1QN7HfV7o/F9J4k8e+pBIniSTQvT5QSrM4IspBRaV/Dan/GaR0jbMYISXbIL Vi2Q== 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=ni39vnzOU5FGo3u05xo9kC5OATnZXJ19HVbEgNzIiaM=; b=QTo+Kdh3mt9pWOaXJ/3IIIFkPrWvVExrZ4kCRScVtN0RmJ4pdaIO7fqzWrHvNgPRBM y3LiHSwVNxEpnC9+binNwob89Uy8hLAeWVQYweQeikgvBEySiSoac9g1AdxyBik1jkRy 1Sm+wldprG+++SeM7ZxCNlh7gRJKWJi+4SbP4usE45ITcuV30X5JBDlK0s2rzApupmu4 MDLIcRkfPvTZOcCCKXOxH6AaBvAvYomuPRA4oZFANLs+ARHmHR9p64Mi8pRvhN8dYkbG U2tztabD0ZDBXErsmEbuiOKk+ehSvVGMgTRSWzc0thEZgD5EICwJEUQbu0oZvwtUTlv1 4ymw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ds+4rkMv; 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 k21-20020a170906579500b009337bae35c1si15182202ejq.237.2023.03.28.01.05.48; Tue, 28 Mar 2023 01:06: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=ds+4rkMv; 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 S232663AbjC1IAP (ORCPT + 60 others); Tue, 28 Mar 2023 04:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbjC1IAN (ORCPT ); Tue, 28 Mar 2023 04:00:13 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 463E7420A for ; Tue, 28 Mar 2023 01:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679990412; x=1711526412; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5Dz1JlyF8uBPoyRKq5x2mnVKdAEcD3KlKtT4HxawejQ=; b=ds+4rkMvi5BWvURd7OTbuepRMnQpV6p0+yY/PXRIITaCd2u5qUl6dC5u d3KDnejMbcTyhYWH0CnTgHd9un/zWnjmVw6f8AZC5lkHQuoYOzphV+h4N WHlQvy0fSXqP55EI2idgD0wV7k7bBupYOFpye9lr797OYQL+GQ8rkdOKZ 6QQc+lMKT3W2hG+/JQXYF8fB1sESxHpxeJCcdLgYbW/1/71pdcRg3B7fA LHP4MP7JRJkHPFCTGRyCCnGCA6kQS9/VCIvJ6p7qcaHUzoqkpVHpVmYQQ osh6rIO8mdm4MPilu7smE6/5ftYBYTAU2W0MhV7fvDST6ORuebxIsMbZ1 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="328958130" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="328958130" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 00:59:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="773045144" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="773045144" Received: from gershonr-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.214.194.136]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 00:59:46 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Miri Korenblit , Gregory Greenman Subject: [PATCH 11/31] wifi: iwlwifi: mvm: fix "modify_mask" value in the link cmd. Date: Tue, 28 Mar 2023 10:58:51 +0300 Message-Id: <20230328104948.19ddbee0c98d.I595abb79d0419c9a21e5234303c2c3fd5290a52a@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328075911.2370108-1-gregory.greenman@intel.com> References: <20230328075911.2370108-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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: Miri Korenblit This bitmap indicates what fields of the cmd got changed. A field will be ignored by the FW if the corresponding flag wasn't set. There are a few cases in which we currently set the wrong bits when sending this cmd, which caused FW asserts. Fix this by setting the correct bits in each case. Fixes: 1ab26632332e ("wifi: iwlwifi: mvm: Add an add_interface() callback for mld mode") Signed-off-by: Miri Korenblit Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c index 5f54e57de8e6..33368e5945f4 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c @@ -54,9 +54,7 @@ static int iwl_mvm_mld_mac_add_interface(struct ieee80211_hw *hw, if (ret) goto out_unref_phy; - ret = iwl_mvm_link_changed(mvm, vif, - LINK_CONTEXT_MODIFY_ACTIVE | - LINK_CONTEXT_MODIFY_RATES_INFO, + ret = iwl_mvm_link_changed(mvm, vif, LINK_CONTEXT_MODIFY_ACTIVE, true); if (ret) goto out_remove_link; @@ -162,7 +160,8 @@ static int __iwl_mvm_mld_assign_vif_chanctx(struct iwl_mvm *mvm, ret = iwl_mvm_add_link(mvm, vif); if (ret) goto out; - ret = iwl_mvm_link_changed(mvm, vif, LINK_CONTEXT_MODIFY_ACTIVE, + ret = iwl_mvm_link_changed(mvm, vif, LINK_CONTEXT_MODIFY_ACTIVE | + LINK_CONTEXT_MODIFY_RATES_INFO, true); if (ret) goto out_remove_link; @@ -270,7 +269,7 @@ static int iwl_mvm_mld_start_ap_ibss(struct ieee80211_hw *hw, if (ret) goto out_remove_mac; - ret = iwl_mvm_link_changed(mvm, vif, LINK_CONTEXT_MODIFY_ACTIVE, + ret = iwl_mvm_link_changed(mvm, vif, LINK_CONTEXT_MODIFY_ALL, true); if (ret) goto out_remove_link; -- 2.38.1