Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2575478lqp; Mon, 25 Mar 2024 03:12:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXXyC8pEIlDhwd1YHPAriurOi1LNwUzMyf+S76orDSo1A7lFcJZ/HTuYAAl9bOir/GOSJaIJkvQ+5VJIemqYsodx4+QCXxFp5ZfEqrkMA== X-Google-Smtp-Source: AGHT+IGezMKraouugDGkV39aU/DNZgTVvaNb8kmOz3ad/hzdHG/Xkc+yNWwCewEr2agtKARFPwZ2 X-Received: by 2002:ac8:5cc1:0:b0:431:3766:bb84 with SMTP id s1-20020ac85cc1000000b004313766bb84mr7796491qta.19.1711361571788; Mon, 25 Mar 2024 03:12:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711361571; cv=pass; d=google.com; s=arc-20160816; b=sWyCNj97UeVSZ7nmvneLb6fwNOjJA8wayWkyCqECwrJAbDYn0JY+6iEgLvR96/FP/H 3YwG0D9hjnMlTj+hIjmvvu/DtO63GtyL7cIcaMS4yR4MVAa22kWbfjdi7+NFV3mT4byj gAatm7InbbKGwz9Qo957nlg4YytvWWs2a4pAoR0tPx3jFp4+I1OYbvcomKGet+VZzoMu R3+p2B+60DtpFSS8AwDm8GUsAAWlJW2jLL3BXpdUXTBuzHXWacEwB3g1ZT+kNINZ3Awf dyqJYI1kI9k1OiIrBrSTZbl/nrKPpUU3bGZm/h7bytDQEs5NvOnk1XoV9ZVP8zlL643n WK3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=wEwZlXVa9uk2u2lJNRBS4Jl04Ufbq6JDv3G5KMVGUFE=; fh=JfWUvpOeeP7Md9Dp9qqmGzgAiHNGATTlTeHQJbWXJoA=; b=TOlWwfUTXky/ER4/vSaQawsT0ND8p5dJwrFNE+UfHWKqD7pvC/YsgH547ArWJmcmg/ vesHcC1MHP+bRv9wYuKiJxvMgLW83QMA2VQKxnzCTl0MXuFR88kyfs+Qrjahum0/kBbg MTo1kmlikTRbfwR/+RzDtus/QbUZar+8Zq0rQd2XEZ6d6YmKNof4gVIaVZ9SvvXCWrWA O5bq3viE5HAuOLLUGtVfsB+yccJ5kQxFUMdh6jFQ4wJxJUh2G29VErDDu2Xgr4o+SFWV iC94B5NSN2RLW0lcRt/mGj5Oi4wzjirP1NeUqyzJo70k9hMVtdzfdwVy2ntAKWGtqQ1/ 9pQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GELkPQ2t; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v18-20020a05622a015200b004313d2cea68si5086817qtw.221.2024.03.25.03.12.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:12:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GELkPQ2t; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 85CEB1C3287F for ; Mon, 25 Mar 2024 10:12:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40D543AEAF4; Mon, 25 Mar 2024 03:32:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GELkPQ2t" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3481D2811BB; Sun, 24 Mar 2024 23:41:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323675; cv=none; b=nGALOHAZC/QKp9g6SO5rYII3Z3QANrQuRAV5HgJjXv3wizJg1YjnbGQtfkv15zaik4WSUya4PInMfdMkHU921e3SBAciHxfqp/9grhegvj8iKAsEC6+MbP0fuR3/0D3+175JTbyOG+UjyoLdPkoc7e6B7i3hM8/SVrcmCoXjfs8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323675; c=relaxed/simple; bh=1XQ8MwnwM5Ha1tMesnidn2cTW17PhSN1EXbTQwFpS6A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mVeiQ4Pa+R6CYIL0lxHueP3LLaydZ2WmD2iw9s/RgIt1HOrUshMkmJ0GXfoNI4QlD7Dj3HooaMEaOubijjGQqObgt64pryrGMIB0ZEoin75lbc/IpwbYsbM+RKb5zy/r8hjCNoMQcGVoT3u9wRxZPzPYib4u7O6UXsGsf9+SOyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GELkPQ2t; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B5DCC433F1; Sun, 24 Mar 2024 23:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323675; bh=1XQ8MwnwM5Ha1tMesnidn2cTW17PhSN1EXbTQwFpS6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GELkPQ2tKub0pPTQJ28cmyRqaIYK+BKWZ8zHVtg/gL1yg7rhR3R9XNOP5FqKSLHIN p167/j4s6PSG7gftdnw2EQTRG+tzNUtB9boyDcDMXJStY51p/3jDCy8k7/JJ8zmxZX aDT/k/2DggucLlP13Wz+JgZSPKA27/eHbJtWkfzLvYK7BQ3OpwB+8gUvhuxcrxkpht +v3xXH9mkuoxhRo7HRDtfg/hPCQ+tBoedvyy0S13wDspv1Q3aMRUqvDbBeJYniMYdl foB9+0H7+tLlZdRMLaqjKcMFAsJsKZsqXRisrrTSUes20i5NzdoT3DZdwX62ATk7kl dWIaoVjEbGvyg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Ajay Singh , =?UTF-8?q?Alexis=20Lothor=C3=A9?= , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 047/238] wifi: wilc1000: fix multi-vif management when deleting a vif Date: Sun, 24 Mar 2024 19:37:15 -0400 Message-ID: <20240324234027.1354210-48-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Ajay Singh [ Upstream commit 12cfc9c8d3faf887a202c89bc312202445fca7e8 ] Adding then removing a second vif currently makes the first vif not working anymore. This is visible for example when we have a first interface connected to some access point: - create a wpa_supplicant.conf with some AP credentials - wpa_supplicant -Dnl80211 -c /etc/wpa_supplicant.conf -i wlan0 - dhclient wlan0 - iw phy phy0 interface add wlan1 type managed - iw dev wlan1 del wlan0 does not manage properly traffic anymore (eg: ping not working) This is due to vif mode being incorrectly reconfigured with some default values in del_virtual_intf, affecting by default first vif. Prevent first vif from being affected on second vif removal by removing vif mode change command in del_virtual_intf Fixes: 9bc061e88054 ("staging: wilc1000: added support to dynamically add/remove interfaces") Signed-off-by: Ajay Singh Co-developed-by: Alexis Lothoré Signed-off-by: Alexis Lothoré Signed-off-by: Kalle Valo Link: https://msgid.link/20240115-wilc_1000_fixes-v1-5-54d29463a738@bootlin.com Signed-off-by: Sasha Levin --- drivers/net/wireless/microchip/wilc1000/cfg80211.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/microchip/wilc1000/cfg80211.c b/drivers/net/wireless/microchip/wilc1000/cfg80211.c index dd26f20861807..5d4f9e9a81e05 100644 --- a/drivers/net/wireless/microchip/wilc1000/cfg80211.c +++ b/drivers/net/wireless/microchip/wilc1000/cfg80211.c @@ -1562,7 +1562,6 @@ static int del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev) unregister_netdevice(vif->ndev); vif->monitor_flag = 0; - wilc_set_operation_mode(vif, 0, 0, 0); mutex_lock(&wl->vif_mutex); list_del_rcu(&vif->list); wl->vif_num--; -- 2.43.0