Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2781487pxb; Fri, 12 Feb 2021 00:43:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJypirALnRnl+jw4A2Q5xzoReBkStUsLlyXBGj5q5JjIsZ8nZKMCLO6CoCxaHWzcOlVV/96i X-Received: by 2002:a17:906:2353:: with SMTP id m19mr2009913eja.13.1613119425222; Fri, 12 Feb 2021 00:43:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613119425; cv=none; d=google.com; s=arc-20160816; b=Lv/l4UA4nMrXAePby4n1/Ri/nLuOOEoAFh57ybYO8QEiJwmoxv8ePPSfQZ5VWYwrE9 ahxao4/VytH6mbqvAZCxQA+UzVfAJZry+NQ9P1yx3CrCXs/mXHdzqCkGhm1CFPgADCUf DbFJFm772HmZTQFH3y4WSvk1ySERjIZ9X2o3fHbSQIWfKvP3xVE+puirPhZnNLlQ/bFF PY7nnopxCf1H5aMCbalmk/GkerwBt7gK9ldrDo8Ifm9JlLzXpP9BWqOvrYj/CBXeyaRQ J4i7EOrh3IMWYzLVwK/ZeJ4EPp0tO9XJQ7EiJGM8Mwtr2N/NxvkcNhPjhUztgLtWyZQ9 2/LA== 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=bzbEfYL4/eBMf2qJGl2Q35lbGE3WRSsaqgxTD/+xWyk=; b=HvARfYsm1AiUSe0otUc2q89+YqiD4qWbDEVe3V4EENzD7Gihb7l6XYOR0oYKO8ZE3i KdIajrfgOXAc8Jw1E0TsdW86i26t3q58BtdX2G4zBAJxltDS8R/7wYCtHYB9INLu9WnS lTVRNZP7Hf4HG/94ni0oz3ACoRxNvvOH63sZ9BBvwJ7ncY9juoC48nAYbkBhJC9kC32I QofmhHu+vuMZUbDLYsYlERATPDHc2tXrt7YHNdm1cX2o5U2h5/SZrR3o++G67WbvS8bm q+KMo3YJ5qSP/+fJTUoI70auoNt+UmyqIId238ehvTjrwRfAe7T5QdAw0g5KGX+jwobn YTpQ== 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 cc7si686288edb.420.2021.02.12.00.43.20; Fri, 12 Feb 2021 00:43:45 -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 S230206AbhBLIm6 (ORCPT + 99 others); Fri, 12 Feb 2021 03:42:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbhBLImz (ORCPT ); Fri, 12 Feb 2021 03:42:55 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF357C061574; Fri, 12 Feb 2021 00:42:14 -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 1lAU1i-001m8q-P3; Fri, 12 Feb 2021 09:42:10 +0100 Message-ID: <991c55472dd1f2be79438fbc11f2aa6d96ce5075.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:42:09 +0100 In-Reply-To: <20201215172352.5311-1-youghand@codeaurora.org> References: <20201215172352.5311-1-youghand@codeaurora.org> 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 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. johannes