Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp229655pxy; Wed, 5 May 2021 00:18:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgvwwaQLFjnnC+XhL9k6cshKhWMa0NZu2ra0y51f+F1WtBXTKcIHuJpyyZW5LMP8k29lIa X-Received: by 2002:a63:1c54:: with SMTP id c20mr27511555pgm.210.1620199131615; Wed, 05 May 2021 00:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620199131; cv=none; d=google.com; s=arc-20160816; b=x/xbRIy+dd3/BR01QHxRGVQ0NgMaeqV9J+IaZL+gb3nrjVTo2TyISMuCFMwdqGIlSU FIYskI0ukkq7rOZcxXujN7H7x31TX+d1Xuh9swXTuE8ZJoMGEFGdANTO4iBpY7mpCdvU doU3wjWiv+rLgwbrCJR525+p3JuB6LtxRv8g6rgZV/bTTr8x6YZQRR1J/Uchd9sOYQo/ /kitiJ9TqbK2J803EmyHKpTQilFug9L6nwuzk6l8z8BT01tIzpuDYpaGbslzzz1MtFoC eZ+CdwCMlnPYwV3P7LTgI7FxThK+PnRBXGG3VDCUUUGUCAhvqQbwhVxYr200W1rSXXN6 pKzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=OpInw1Tew815TdwcqGzqmtmjFZ/n9U86KvmoBeOdH2U=; b=CeP57kWm6Q0ldyjwZoW15TcX+YO3flxDvYlHPuOnWCYVhjdAlSPIiajhsIHHAU30t+ oGXmrPGIudr08z70uzZZAkhk4hf6qWJvRub/muoTFgP44YxT3H6AheIHFoWuFxvMZBPl UiC9MoF5e189wqiSaeiUOCIKPpUQzlXBlqxc/L3NfaNjbbO58Qf4HK2EBxc0qGR9/sJg GQKmnmsbdVNX16ODoB6eVJZTqRdt/DhLLbI3MdKzuW7XLyLhpzUonPfuUf3vQdVdaNDB 0f1oCSpUUt7X4U5Wa4ZQtUayCsqo3f+QFgTdSkcShcIhyo/32iRlTyyLTCPDRsJyVLT4 J1ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=w1Ghn0YR; 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 n20si6334725plp.383.2021.05.05.00.18.34; Wed, 05 May 2021 00:18:51 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=w1Ghn0YR; 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 S231459AbhEEHTE (ORCPT + 99 others); Wed, 5 May 2021 03:19:04 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:40578 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231607AbhEEHTE (ORCPT ); Wed, 5 May 2021 03:19:04 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1620199088; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=OpInw1Tew815TdwcqGzqmtmjFZ/n9U86KvmoBeOdH2U=; b=w1Ghn0YR8KU4rn/xQHDk/88jN/9m1UTWG22glxA40R8NKnm8F6QzrmHMlB0Ei5wPl5g7GeA9 pmq+Y311YOt3WhqVazMnTi/fhsbC2Kk3NM+gunZ75eGEHXR5idkY8wDi0G6P84vWbA3IpvDD Ek7W8J1Awk3dXPG6K4PZ3ccg8WA= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 609246acf34440a9d4140827 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 05 May 2021 07:18:04 GMT Sender: mkenna=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1F58AC433D3; Wed, 5 May 2021 07:18:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mkenna) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9BDB3C4338A; Wed, 5 May 2021 07:18:03 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 05 May 2021 12:48:03 +0530 From: Maharaja Kennadyrajan To: jjohnson@codeaurora.org Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, ath11k Subject: Re: [PATCH v2 1/3] nl80211: Add support for beacon tx mode In-Reply-To: <445ba573b519b9434d0e009eb9ff6f45@codeaurora.org> References: <1619696874-30072-1-git-send-email-mkenna@codeaurora.org> <1619696874-30072-2-git-send-email-mkenna@codeaurora.org> <445ba573b519b9434d0e009eb9ff6f45@codeaurora.org> Message-ID: X-Sender: mkenna@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-05-03 22:54, jjohnson@codeaurora.org wrote: > On 2021-04-29 04:47, Maharaja Kennadyrajan wrote: > [..snip..] >> +/** >> + * enum nl80211_beacon_tx_mode - Beacon Tx Mode enum. >> + * Used to configure beacon staggered mode or beacon burst mode. >> + */ >> +enum nl80211_beacon_tx_mode { >> + NL80211_BEACON_STAGGERED_MODE = 1, >> + NL80211_BEACON_BURST_MODE = 2, >> +}; >> + > [..snip..] >> @@ -5330,6 +5331,10 @@ static int nl80211_start_ap(struct sk_buff >> *skb, >> struct genl_info *info) >> params.dtim_period = >> nla_get_u32(info->attrs[NL80211_ATTR_DTIM_PERIOD]); >> >> + if (info->attrs[NL80211_ATTR_BEACON_TX_MODE]) >> + params.beacon_tx_mode = >> + >> nla_get_u32(info->attrs[NL80211_ATTR_BEACON_TX_MODE]); >> + > > Note that in the case where NL80211_ATTR_BEACON_TX_MODE is not > specified that > beacon_tx_mode will be zero, which is not a valid > nl80211_beacon_tx_mode enumeration. > > Should you renumber the nl80211_beacon_tx_mode enumerations so that the > default > mode has a value of 0? Or add NL80211_BEACON_DEFAULT_MODE = 0 and > allow the driver > to select a default mode? [Maha]: Yes, it will select the default mode as STAGGERED mode when the user set beacon_tx_mode as 0 in the hostapd conf file. Also, it will select the default mode as STAGGERED mode when the user didn't add beacon_tx_mode config in the hostapd conf file. This is how it is handled here already. Regards, Maha