Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2782140pxb; Fri, 12 Feb 2021 00:45:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhm+F9qh6UahOVAg6HHwEOB4NudcpsYQcqYJg9I/sdAUN4ROZURr4bIbMxg1DrgKrlrvFx X-Received: by 2002:a17:906:b50:: with SMTP id v16mr1908022ejg.298.1613119529872; Fri, 12 Feb 2021 00:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613119529; cv=none; d=google.com; s=arc-20160816; b=uTJTauvh3K/U6phwbAJuPDdTIKVAfzM1AnnXH8TaCwMBJrDbPxsr+K7E8ArfdZNp19 N77Efj34wlGXIg0ecmPRY7jqimwI6/PPcxwJcklCsWk9gBq5UuHl6UxyHJXUNTsWWKzu Z77y3/Ght8rVTh04VA5lA1P88pvNbWhzzZlmsPoo6zMOeytRnkdfl0Ze4v1/rcRj89St TQ4bDoRyeUDIPaI52msM5ISISL94zFvV7eIgqxiY6qzFzEwBJxXykBPR90ROLpym18fU uHKVYYR+oRN1UKjMDx9OUBYljd8OTc5JjhL0FHbaLn299aggOYK5e0gTf0GQRfwooCDm lymg== 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:date:cc:to:from:subject :message-id; bh=HuzLO6jmTuyMYkokVkWzbur9xiLaEPY2U5H9fY5Pmic=; b=t1R7TuJsebnkWHfIsqAIIPWz8W8dbt5fR9LvC2LPI2YxF5NiKcQtIwvQFVjmHW00SP 6OgI9BJCffEQE5PK55kWErw9ceMicJFYCa5jTugrtR/9HiMzCYP06D2erxfPLDLp/pcw IOsY8AYI2/cMNTPDtsVWzMXpACCdUYdSFK01Fjt6MSlP6AAVIZeg4BrCfUBrR75iVRzd a/yksv6EluiJNGs1Ebjis6RYS57dnXwuqnnO3bqbqQ9UgzyD1yURUWXtr0PgFxk/NVlT 1gTxY2EZl4hSD/RUa4Ae08XhmJwnz83TSKfoplm79kdiUxE+YcZIkfimJREVW/ezZdGh Pejg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si5738842edy.511.2021.02.12.00.45.06; Fri, 12 Feb 2021 00:45:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbhBLIot (ORCPT + 99 others); Fri, 12 Feb 2021 03:44:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbhBLIos (ORCPT ); Fri, 12 Feb 2021 03:44:48 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDC62C061756; Fri, 12 Feb 2021 00:44:06 -0800 (PST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1lAU3X-001mBP-0T; Fri, 12 Feb 2021 09:44:03 +0100 Message-ID: <9e24638bdadeb4f08bcc8a130d8e0fa416d0e595.camel@sipsolutions.net> Subject: Re: [PATCH 2/3] mac80211: Add support to trigger sta disconnect on hardware restart From: Johannes Berg To: Youghandhar Chintala Cc: davem@davemloft.net, kuba@kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuabhs@chromium.org, dianders@chromium.org, briannorris@chromium.org, pillair@codeaurora.org Date: Fri, 12 Feb 2021 09:44:02 +0100 In-Reply-To: <991c55472dd1f2be79438fbc11f2aa6d96ce5075.camel@sipsolutions.net> References: <20201215172352.5311-1-youghand@codeaurora.org> <991c55472dd1f2be79438fbc11f2aa6d96ce5075.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2021-02-12 at 09:42 +0100, Johannes Berg wrote: > On Tue, 2020-12-15 at 22:53 +0530, Youghandhar Chintala wrote: > > The right fix would be to pull the entire data path into the host > > +++ b/net/mac80211/ieee80211_i.h > > @@ -748,6 +748,8 @@ struct ieee80211_if_mesh { > > * back to wireless media and to the local net stack. > > * @IEEE80211_SDATA_DISCONNECT_RESUME: Disconnect after resume. > > * @IEEE80211_SDATA_IN_DRIVER: indicates interface was added to driver > > + * @IEEE80211_SDATA_DISCONNECT_HW_RESTART: Disconnect after hardware restart > > + * recovery > > How did you model this on IEEE80211_SDATA_DISCONNECT_RESUME, but than > didn't check how that's actually used? > > Please change it so that the two models are the same. You really don't > need the wiphy flag. In fact, you could even simply generalize IEEE80211_SDATA_DISCONNECT_RESUME and ieee80211_resume_disconnect() to _reconfig_ instead of _resume_, and call it from the driver just before requesting HW restart. johannes