Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1390823rdh; Fri, 24 Nov 2023 11:18:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKYZEjVh080KDzIXCy9UzxyM6OSPtNqDQ5D7wjpUKy57eVmazKgTJx2GQ5mcRGZAbHDK0E X-Received: by 2002:a17:906:d7:b0:9e6:59d5:820d with SMTP id 23-20020a17090600d700b009e659d5820dmr3055066eji.2.1700853497012; Fri, 24 Nov 2023 11:18:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700853496; cv=none; d=google.com; s=arc-20160816; b=D3x2cyhMjAPLlRR8JHrnjVAYO4kZ8PGlOpkCO2/RkOKj9aA5tGGmb+9+VetxUJ/c2H Phi9Y+KONvLipevL8s2ir3mRdETX4MABUsfTNXOj0HI1ZGSwKJi0vNXC7ZLXuPbVEw5B 2MvUhzNl7sEK3NnJithEqXyQiCdkNZCzfRdldA/N+tmfa3FGTsThSJmXxHJg1OLVccAR 42IBjuBZ4yfQg8qkS24ljMwDpqLglYS160bMApE0rp0SaBJlMaMD/EP1uZxdCFSXA7hb nKIKV9/zwR6RLNwACBON9yG3WweKrpOE/FpjqzHgafDvsTWb36QLKQhsooCVq6UyMfMb Tg/g== 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=DEDBYl1c/XJDbk4iFcYtawgCZt7aMSZ++/KGczMT2f8=; fh=FPiMKhyze0cFAc/zmhwilNW/yC34vkoI9PfiBjV+N1w=; b=cmYMHwjvOp81ml4PcZOJWMF11RPtYjTU2r8XbZDUi9eNlmBxyZchvstHOaLyelMwK3 XrtCwIpRMMA5MdFOAVyfBJYXKy8H7Xk0uC7ODWNz6JXAc3m+5IH8gMhOqZBY/mPOwpid rYiIS/m4ivz9aJLOtVFJEKRgA6tA/s+6zI6142xqNx0Ys5zIqcboOU2nI3izUPixVNyu VAH42d3t7H7oEwtdyFi1YLXsN/SF+Vy9jrjtBB+mHa2caVV2H4ValNNNaFvnFKUqdXuw 10RLA3p91lm41/GNwueQyLfLzCXzRKlRV8U8GL/VPU0TceqkBYBfzwfPC1nilMSFVkRA luWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=L7lQGkLV; spf=pass (google.com: domain of linux-wireless+bounces-64-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-64-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k14-20020a1709063e0e00b009fcf8f27900si2129225eji.314.2023.11.24.11.18.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 11:18:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-64-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=L7lQGkLV; spf=pass (google.com: domain of linux-wireless+bounces-64-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-64-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B25AA1F210B0 for ; Fri, 24 Nov 2023 19:18:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5669C37170; Fri, 24 Nov 2023 19:18:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="L7lQGkLV" 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 E32DE268F for ; Fri, 24 Nov 2023 11:13:05 -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=DEDBYl1c/XJDbk4iFcYtawgCZt7aMSZ++/KGczMT2f8=; t=1700853185; x=1702062785; b=L7lQGkLVrWYMj1i+aNCtdIaFB2t2qw0o43SJLUNq5FXc0Gi KRIFoidOSG7hRwtHEc2xR+AWvk8t3qUPVcAZKa5lga6nEblq3klAcKwqthWMI4Z2P25MZVA3UX5V8 eqMIE3rce+HzE5ca6ibqNc4G4uTqMuqYgeD0BIcG6zqIX9uGx2PHfI+Nrh6GaCzVLb39isUs6WYf5 DhY2/+uG26UylC7JgN1sNKpUHNBRUkG0GWsgNAeQ8HuFvwW1kuN5A/NeAuyrdnMg8Nwcr1+0u0qpz 8BMR/QXXyecIOfTU/t6FovjbRuD8oyGcbjjkpScdWSCQSHXNcjStEqY3Nz+/XKJA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1r6bbr-00000002jhM-2LVU; Fri, 24 Nov 2023 20:13:03 +0100 Message-ID: <782a4f7ac91dcb0e1c564e285051c63e2a95d71f.camel@sipsolutions.net> Subject: Re: [PATCH 4/6] wifi: cfg80211: Schedule regulatory check on BSS STA channel change From: Johannes Berg To: gregory.greenman@intel.com Cc: linux-wireless@vger.kernel.org, Andrei Otcheretianski Date: Fri, 24 Nov 2023 20:13:02 +0100 In-Reply-To: <20231113112844.15d7a0ee3fda.I1879d259d8d756159c8060f61f4bce172e6d323e@changeid> References: <20231113093505.456824-1-gregory.greenman@intel.com> <20231113112844.15d7a0ee3fda.I1879d259d8d756159c8060f61f4bce172e6d323e@changeid> 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 On Mon, 2023-11-13 at 11:35 +0200, gregory.greenman@intel.com wrote: >=20 > @@ -9302,6 +9302,17 @@ bool cfg80211_valid_disable_subchannel_bitmap(u16 = *bitmap, > * case disconnect instead. > * Also note that the wdev mutex must be held. > */ > + > void cfg80211_links_removed(struct net_device *dev, u16 link_mask); What happened there? =20 > +/** > + * cfg80211_schedule_channels_check - schedule regulatory check if neede= d > + * @netdev: the device to check > + * > + * In case the device supports NO_IR or DFS relaxations, schedule regula= tory > + * channels check, as previous concurrent operation conditions may not > + * hold anymore. > + */ ... > +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, > + NL80211_EXT_FEATURE_DFS_CONCURRENT) || > + (IS_ENABLED(CONFIG_CFG80211_REG_RELAX_NO_IR) && > + wiphy->regulatory_flags & REGULATORY_ENABLE_RELAX_NO_IR))) > + reg_check_channels(); > +} That ... doesn't even use the netdev pointer, apart from going to the wiphy? Why not have a wiphy argument instead? johannes