Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6720828rwb; Wed, 18 Jan 2023 08:34:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXuUAGzVpah0GOiy2GV0JPJYJ96e1OMZgdNmj1gMeT/ek0BxV1bw7g6AcFI7GM8ALmaFTmvS X-Received: by 2002:a05:6a20:e610:b0:9d:efbf:787d with SMTP id my16-20020a056a20e61000b0009defbf787dmr7505401pzb.50.1674059650771; Wed, 18 Jan 2023 08:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674059650; cv=none; d=google.com; s=arc-20160816; b=SwPkcnpgLOJIMvoUYn+ZFlPvUjQf7NuDY5s7NlC4qu4XdROT5s9yn0zXBUzgS6FsPq 4vZDJkkJIb/TshGVLkXaEYzhyCs6/L77Hr3UkAi+p//B+WFB4GHZ8oeTvs91yvJSU8jT 8JucpKyEjHa47Le/ByivGlQ6LKs21gAwdbcFxitZYFsXBDeNKUhH/hpJns/xkgb9MSWH GAN57eC+/g29EqycpgwYKFRt7bZyTz69hlYDjx+MgovZXnK8XEyjtiqOMkNX7/CngG0A f9uNT9+BVNsrQbVe1sM5onE2cLwvXXH2zV4vl7DsXDOO3VdXkWItuvM7dJo89D72vL4o o/KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=K/+rA7ADEh7Cf9JIm+LeaHAHtk2gmiF0EE0EQlQ4VrM=; b=KPzAy9QSLBtW/dCGuhWFxDTNSVymtRXO/mAWfkYQFi2hNJnCMdDNvgZXdT3h8vA80W 5aLBDhS++SIcAwIurCz18pbWoq+dOHTzQBDM1k8td0YmfCNrDsFdVNg1t1ADCPPGStp5 kfnfko1gG2YY8UBNa9tGi+1I289AY4YWhFLSMYW8/V5kI1jzuN+xo9SvzXvXE2kI9i/i Cg2W22LXzIojAACiijS/6tlMq1IuRZeG+CIx0mc3ZRnijJ+IZVIR91orMFwO48YCa7uW gAbIkFTTU7FnhaBhjDCj1toj0tkEDAx8mBUhO+NQLoNguIiGdlYZbxFe6AZkp+eVn2/j sGVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=XtojV5SS; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 16-20020a630010000000b00476759b8788si36888504pga.861.2023.01.18.08.34.02; Wed, 18 Jan 2023 08:34:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=XtojV5SS; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbjARQcm (ORCPT + 63 others); Wed, 18 Jan 2023 11:32:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbjARQcP (ORCPT ); Wed, 18 Jan 2023 11:32:15 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2ABE4617A; Wed, 18 Jan 2023 08:30:14 -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=K/+rA7ADEh7Cf9JIm+LeaHAHtk2gmiF0EE0EQlQ4VrM=; t=1674059415; x=1675269015; b=XtojV5SSh5megmKTifUGL+8U2pqmuXb0h45soXQavoosVIX 3JyWJnKx5cCaIwZdpj7QlZ+u9lKptfrVdfaeeoDKnpTSGDNxOEo10KMxUfGHTvKymcdOdd1qHVuRe 07dBC1E8P6d27KBl16SPD+yGDHJdgRUGdGhe+ypuKs40FQhGaPTMFWM7graHZc0b6KwfWhfYrImll U/P8545x/kncz2HeNQTC6KmfFINb1RbY0kN+6RiqvwbNE09AtHHAb/8pCVkYzj04bFHvH64QH1Fkm XlzxexnVGBSAwkrLpk8YfyjH6fV8DBtpc0IP0H8QiTx4zB0BrsU3JIpGWfJIx7rw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1pIBKG-005fqO-24; Wed, 18 Jan 2023 17:30:12 +0100 Message-ID: <1df59863e78e8ddbe7eb3a74e6dd4c8f0bd7f098.camel@sipsolutions.net> Subject: Re: [PATCH 1/2] wifi: cfg80211: Add beacon hint notifier support From: Johannes Berg To: Youghandhar Chintala , ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, quic_mpubbise@quicinc.com Date: Wed, 18 Jan 2023 17:30:11 +0100 In-Reply-To: <20221222124221.30894-2-quic_youghand@quicinc.com> References: <20221222124221.30894-1-quic_youghand@quicinc.com> <20221222124221.30894-2-quic_youghand@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 (3.46.3-1.fc37) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > +++ b/include/net/cfg80211.h > @@ -5386,6 +5386,8 @@ struct wiphy { > void (*reg_notifier)(struct wiphy *wiphy, > struct regulatory_request *request); > =20 > + void (*beacon_hint_notifier)(struct wiphy *wiphy); missing documentation, for sure Also this should probably be in the ops, rather than here? Not sure why reg_notifier is here. > - if (channel_changed) > + if (channel_changed) { > nl80211_send_beacon_hint_event(wiphy, &chan_before, chan); > + if (wiphy->beacon_hint_notifier) > + wiphy->beacon_hint_notifier(wiphy); > + } This also seems excessive if you're not even passing the channel - you call it for every (affected) channel, but you don't tell it anything about the channel? Seems strange. However ... Why is this even needed? You should always get reg_notifier after this anyway? johannes