Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2241303pxb; Thu, 11 Feb 2021 07:45:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJykeWzKxfuW2BNKhujoPLg/pBAjRFkcm/JMJOZw9BQQsjGW4r6e6mDYkBDQadEzPd766aPK X-Received: by 2002:a17:906:3499:: with SMTP id g25mr9148751ejb.367.1613058306148; Thu, 11 Feb 2021 07:45:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613058306; cv=none; d=google.com; s=arc-20160816; b=X7HAZ8M96mzLjwDZOS6hzKCijuAfELO5tiGOiGZxyYgm6WQsQQ6jalyfQzT/KBHKLl lJbezEmGkxXTLeldUzKAk3V1lxWNKr91u7PZiuPL/PTLOjrdztCdpvsw0pMIt2Teocaj +mnzXzpw9Sm/QLGFPOcTgZIohxoWydtmND9QtcPcmII4dJIwRhYbdZ+T4VpXwtUX40K1 WNy8RoFUDypuot16q8eETS7KS6V/hnXGhiEP8IXmGn9tiyZCO0pIhn5yKMsvkWaD/qBH PFrPt7chqKt7Fzshc6cIDMXkUpiIWGRBVnsx045CJlHN226E4J5PYEhzq18pwisumiz+ VXBQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yUqia/VB8H2c/GzTiCkr7Qxm6EU9xyJANOy3EfvZ1zI=; b=AbQ/sPg+fTolvFP0DTFZc9A4Esgp8IpRZYsc0zbk7JGgKCJ6T6NH+03TAXjLY1ppaB IOZ/LaPDU2lrIzNmrylslbFelFXn2SdWRooAeJqtDQ1s60/dhdvfRkZJCK/Rxvpr0aW3 Ms/j8/NfUi2Hwyb4UcJ/u9GpNfEZaMQKDn+xyxm3bkf/XBMDC+eoSH7ooqTwDgHChgSb HNbd2sobFjbsjSZkbQ/9tM/skW6vqdmxlXggJS9FyJg+URWoh9F534Zjy6yeO3waGdDl CJQJplu9YFbIpXeYAwqfPIq/aWQRB9gN7Rd/7VMlOT6wmsMB0hriQyD6PchC9jrx2m9u RrOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wp3tuJcP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si3941051edq.170.2021.02.11.07.44.32; Thu, 11 Feb 2021 07:45:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wp3tuJcP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231317AbhBKPl4 (ORCPT + 99 others); Thu, 11 Feb 2021 10:41:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:52058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230009AbhBKPNT (ORCPT ); Thu, 11 Feb 2021 10:13:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6424864EEC; Thu, 11 Feb 2021 15:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613055866; bh=H+McNijkMR/bhxDtYibNQd0KYp1YtnL9gfDDcwOMDNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wp3tuJcPhLrKuEM0+AS0kR2Rte8nZTESTzyzjAfnNDiNdCng7mYsmzMgOu9r14zYg FNsTAk8bUNMRVCldxLQGCJiUT1okH1tsoat+Dn6w83LYtM1jyYToQA/t8FD55tlwRz DIjfdNCNSksbb9tApYcnf/e9lhYQmwAtFL9IV0oI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sara Sharon , Luca Coelho , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 31/54] iwlwifi: mvm: skip power command when unbinding vif during CSA Date: Thu, 11 Feb 2021 16:02:15 +0100 Message-Id: <20210211150154.242643007@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210211150152.885701259@linuxfoundation.org> References: <20210211150152.885701259@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sara Sharon [ Upstream commit bf544e9aa570034e094a8a40d5f9e1e2c4916d18 ] In the new CSA flow, we remain associated during CSA, but still do a unbind-bind to the vif. However, sending the power command right after when vif is unbound but still associated causes FW to assert (0x3400) since it cannot tell the LMAC id. Just skip this command, we will send it again in a bit, when assigning the new context. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlwifi.20210115130252.64a2254ac5c3.Iaa3a9050bf3d7c9cd5beaf561e932e6defc12ec3@changeid Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index b627e7da7ac9d..d42165559df6e 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -4249,6 +4249,9 @@ static void __iwl_mvm_unassign_vif_chanctx(struct iwl_mvm *mvm, iwl_mvm_binding_remove_vif(mvm, vif); out: + if (fw_has_capa(&mvm->fw->ucode_capa, IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD) && + switching_chanctx) + return; mvmvif->phy_ctxt = NULL; iwl_mvm_power_update_mac(mvm); } -- 2.27.0