Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5565995pxj; Wed, 23 Jun 2021 04:17:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCEBWTSlWFvIIKPcFKnj9xABHgnYgtTB6nZiNcKtyc2aqUoyAeh7lgrtJtRad+cVcStdOO X-Received: by 2002:a92:ad03:: with SMTP id w3mr2370299ilh.225.1624447027221; Wed, 23 Jun 2021 04:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624447027; cv=none; d=google.com; s=arc-20160816; b=H/DoVsgy0vQorSPYtUZp0GA3EBM8H8XQEU6UDNK8B4rT14lRiybqhUU3pJ4Gxlzyof 21nYAsjhakxl3a7BSj9DzVwI214QueY3syBLew0JmC2Fz7vZSSF4nKJ7paTFsYrzwp2n EWSsowjZw/qfKWXEury7lWpquZJfP23JWI3IvL68UD/P3yYoEuVJKTGUYZ+uVXrnixRK D9NQzbT5v9hgKS3VH+uwwqVkJj5rLYbBjPNztHhudiGgvBObAYOMIQuk0PhU2IvHj3eT gE0muLnYhIQdV6DQVEcQ8PefhmP79am+h+ulI/VvCznXy6HV25vfBpc2U6M/ERIw2bAu xQDA== 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:to:from:subject:message-id; bh=PxdCLecepzdkTLAPyI23bvEv2z4SOhIJELYCMfH1j7Q=; b=ILCI70MfOXOJqATKOVW175bTBxlWpa9br4C8lqJ7Ohj+veCQE/0Wnn8brwFHJ27Trj i9AeGU+1HgHguGXUge8hnIvQPTVTdmr7OgPteV+JArcrSyEiEOn3p/f8xB9WCdZUd+wn f3oBbKANrq/3TwnHv4+9NUgaf4xJI/zkmcRq4RiZvhsM5+OX22aOlCf+hphXqW+yZ7bW vxHdU9R0e6fL1vx4ivpPlI+GsOPcLOsF7BTtevhg9qV35D5tznJP21x2aUmfsEXEfc7S 58j0cmdc2O5AAFo+Ec8BWUId3sd4FD/A09hrx+II/1Ie41opv7uCOkPgihhs/QwCKKxA 5Hrw== 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 t8si17757787ilu.89.2021.06.23.04.16.53; Wed, 23 Jun 2021 04:17:07 -0700 (PDT) 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 S230212AbhFWLTF (ORCPT + 99 others); Wed, 23 Jun 2021 07:19:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbhFWLTE (ORCPT ); Wed, 23 Jun 2021 07:19:04 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B98CC061574 for ; Wed, 23 Jun 2021 04:16:47 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1lw0s5-00AXaj-0H; Wed, 23 Jun 2021 13:16:41 +0200 Message-ID: Subject: Re: [PATCH v4 1/3] nl80211: Add support for beacon tx mode From: Johannes Berg To: Maharaja Kennadyrajan , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Date: Wed, 23 Jun 2021 13:16:40 +0200 In-Reply-To: <1623164855-15910-2-git-send-email-mkenna@codeaurora.org> (sfid-20210608_171052_201356_8AEA5406) References: <1623164855-15910-1-git-send-email-mkenna@codeaurora.org> <1623164855-15910-2-git-send-email-mkenna@codeaurora.org> (sfid-20210608_171052_201356_8AEA5406) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) 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 First, I'd like to see some input from other vendors - is this useful? I have no objections to it and it comes with an in-kernel driver, so I'm inclined to accept it, but maybe we should have other modes, etc.? > + * @NL80211_ATTR_BEACON_TX_MODE: used to configure the beacon tx mode as > + * staggered mode = 1 or burst mode = 2 in %NL80211_CMD_START_AP or > + * %NL80211_CMD_JOIN_MESH from user-space. This should refer to the enum, not the hard-coded constants. > > +/** > + * enum nl80211_beacon_tx_mode - Beacon Tx Mode enum. > + * Used to configure beacon staggered mode or beacon burst mode. > + */ > +enum nl80211_beacon_tx_mode { That's missing kernel-doc, and you also don't specify what default means. Why is it even here? > + [NL80211_ATTR_BEACON_TX_MODE] = NLA_POLICY_RANGE(NLA_U32, 1, 2), That really also needs to use the enum, not hard-coded constants... johannes