Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2399733rdh; Sun, 26 Nov 2023 05:20:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBzkTrAgR4crsbmsdK3XxfgTTZCvLd8hKSpohM9409ZrqvlruDruHmrvvyeNbTjNtJ4s33 X-Received: by 2002:a17:902:9344:b0:1cf:89c8:b97e with SMTP id g4-20020a170902934400b001cf89c8b97emr7523878plp.36.1701004801600; Sun, 26 Nov 2023 05:20:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701004801; cv=none; d=google.com; s=arc-20160816; b=YogbvT9JcJiW/1o8xeZ35qvGEsk/QwY5GJj+D/vB/HARa8PwNQsSoHtZFznIt501Op 4hgJQ4wRMCu95BA9qnrJozV0XlXXV62afzrJy2Cyd8I8LPXbz18jjkhaxwA/YDyXpJnK LWGWufp8DFbw3oM08Am2fElbl0mu26AYmCd7r2WFlcLwckaW7gEHrFSuIbVShUndHZOP cwJmlPBMYChgPrA+MGgCLBHTejcz618C/25l49CClFuHpsn64CVmf2yDt5TAu677xfDC skov4Jgcxtb++20k5NMw3cQ9+4wslhCQebeAxY0fk41Ejd1xeWc48S+hCO39yVT08xLA wa7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=sGtM2uHwgRQzBywqt5NLxY6NYUjZ2Q6OYC1uq8/v5PI=; fh=RhrtAvwgbVbzk0mtH/MIbBVC/i7wxGWdgtR1OA7T3gg=; b=MFilk420Mx3iaO7HFtybGWurzGWWVl5ZKLGlJnHv+u528yVtSyvloZBpcOJrpHKoBx dkoDEUjz66OilqxGSjzTG4ym5XDFv9cMNvxm7/JHP5Iq6b0e3nzs//UNSUSvYvYijyNJ i6JfjXd9XL4EXcaMcCC5cIfjUc6n8ymnNR02MgMi+uAz+yJzXPs67P0WEfJnstn0LKB2 +eChAlXgVY8B98JpPpv2GzmnSnayBYxPSdkLhzWlI3YGYKxv59iFL2z7aA5EDkCxmA5r D/teJFtmvk2yYH8l3Vh/kakPkeFm7mzZjS8bjl/rMa3PHXlQleiUVzb/FbPsKHYKa7fi 0EIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=iqEKsB0d; spf=pass (google.com: domain of linux-wireless+bounces-82-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-82-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t11-20020a170902e84b00b001cfc35d12f4si1543017plg.140.2023.11.26.05.20.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 05:20:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-82-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=iqEKsB0d; spf=pass (google.com: domain of linux-wireless+bounces-82-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-82-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1A402281016 for ; Sun, 26 Nov 2023 13:20:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE0ECD262; Sun, 26 Nov 2023 13:19:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="iqEKsB0d" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C33A1102 for ; Sun, 26 Nov 2023 05:19:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=sGtM2uHwgRQzBywqt5NLxY6NYUjZ2Q6OYC1uq8/v5PI=; t=1701004792; x=1702214392; b=iqEKsB0dev+4eTW+3Fkn/MCXthH9hexyZ9/c4ZGRH4QP/JG EWoKvpPpQwFcLAylO/lK4Mqw4Tsa1xhvwHCXn7t6zau2QF6aKVC12Tm+ka6XxjU1p10RhVx26OVd9 Rtz8vubfqHGhI0KM6t6B/dgLFu8TC4AmZdpGtvtrX7njVIh2AybIcm1SST0Zcl5JC/k0sXZViPGwq zuOoaXDbFt6bQu5cZ60TXgi0+Iq/KxREUbgEx4FqxwmHybgBP4avAIoqRSWzbBGx/mYna7xSQq/U4 MrWscplZq5JdNqMmwG296qXFyDRq5E0iE5WFCKJkHEEFb8hYlQU8jk2SpXDhkikw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1r7F37-00000004wno-3xsM; Sun, 26 Nov 2023 14:19:50 +0100 Message-ID: Subject: Re: [PATCH 4/6] wifi: cfg80211: Schedule regulatory check on BSS STA channel change From: Johannes Berg To: "Otcheretianski, Andrei" , "Greenman, Gregory" Cc: "linux-wireless@vger.kernel.org" Date: Sun, 26 Nov 2023 14:19:48 +0100 In-Reply-To: References: <20231113093505.456824-1-gregory.greenman@intel.com> <20231113112844.15d7a0ee3fda.I1879d259d8d756159c8060f61f4bce172e6d323e@changeid> <782a4f7ac91dcb0e1c564e285051c63e2a95d71f.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned >=20 > >=20 > > > +void cfg80211_schedule_channels_check(struct net_device *netdev) { > > > + struct wireless_dev *wdev =3D netdev->ieee80211_ptr; > > > + struct wiphy *wiphy =3D wdev->wiphy; > > > + > > > + /* Schedule channels check if NO_IR or DFS relaxations are > > supported */ > > > + if (wdev->iftype =3D=3D NL80211_IFTYPE_STATION && > > > + (wiphy_ext_feature_isset(wiphy, >=20 > We do need wdev here,=C2=A0 >=20 Oh right, I missed that, sorry. > I will change it to be wireless device instead >=20 No need I guess, if we're only going to check for it being a station? Would we ever have a reason to call this for a p2p/nan device? I guess not, since that doesn't affect regulatory in the same way? johannes