Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4792626iob; Mon, 9 May 2022 01:34:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuxwTyDsdkYlQ8gHAycRxzPyElwTCf79uJ4sVI+hRdClnZAE96ZP4ZDfC+4JNuRmkEl1kG X-Received: by 2002:a17:90b:90:b0:1dc:ba92:41c8 with SMTP id bb16-20020a17090b009000b001dcba9241c8mr23287011pjb.161.1652085289847; Mon, 09 May 2022 01:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652085289; cv=none; d=google.com; s=arc-20160816; b=V8sEzlcMJ0p6E7xLVJPNu5WYDI+0UAM543OW22A8TyIFgFDtLQ+b3QCPyVEJoJNoYk uJYsrSkxetS4/HIgestpnb6VXr5LV0WOn/Z1Y8zsuaMA/RX5WpcpHCPzgu4pntHGsy/S r/+GmAQDlHpcn7gm2d53JQIE2FTyaCHdFMtcTWySv6Lg8y/C7+a7JVMF1eQrpN5PCNnI jaFRoOZvAiK3EI4DDd4lfC0JMBehtPfKYl3o2I6cbvS/vcPfNNYKkTFqEOZqwjeEiC+5 IGj1z5o0GT2TtA89FLiah5JsSANJ8QZY26MQ/jfJxo2Tjccs+y3xtIzhXlYilTcVg/q4 F/Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SuwMv52npbNXfx0kPG8/lbGKnvjrMZBj3O5gaNNh3Dc=; b=xVqrCKbCNdZjwXuBzjloNNSjdsCZ5fiBGAjT+oUA5y1OmuUqB5vqv8Jf8y2544iMe9 OVDL2KkB15Ixig2nfgWVpNXIg91qpJZzJ1YbX66M1arkHf28SjTuFVNOe61QlvzVybqs JH/exH3PJNy0maDJ4soJsT0cFJxOv1yabIPlDGtP0TBeXgPhGXe6GOWM7igrrNkFFGZx RJQ7oSRFwFZVn5thUUqBgwoKklRYrXhyzUfvmAh2J+JrYTsPDHedMxuGSTF7NyrwRVY5 ddeL/jdsWdRs0kMFjXOWtPON3ZzaagsQr/hRYvsx/2vAYOBbxl9wYHbRA9z4Wha23Btn VsPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=HSyKHdeH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id kb3-20020a17090ae7c300b001cb6eb55244si23614068pjb.93.2022.05.09.01.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:34:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=HSyKHdeH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 26E711D3D01; Mon, 9 May 2022 01:17:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388812AbiEFS5E (ORCPT + 69 others); Fri, 6 May 2022 14:57:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239453AbiEFS5D (ORCPT ); Fri, 6 May 2022 14:57:03 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E73D04EA28 for ; Fri, 6 May 2022 11:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651863199; x=1683399199; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=SuwMv52npbNXfx0kPG8/lbGKnvjrMZBj3O5gaNNh3Dc=; b=HSyKHdeHUng0CVTN6B8PlULTOFBNl4d5Cfte9EX/AyLqCAE341BP9XiF D2ynj7zS1pxYSXUbkCspNniNSkYGFAyr595AtvBj0UeDjzYTfs5DLVjmd 7j35RIJ5zX05ioZ+K8fnl0FMBX2BDjzsvtXIInZp1o0rKklXB2g5qa/9E I=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 06 May 2022 11:53:19 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 11:53:19 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 6 May 2022 11:53:19 -0700 Received: from [10.48.240.64] (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 6 May 2022 11:53:18 -0700 Message-ID: <49e5ab55-c7db-5861-4eb4-bc68dc814084@quicinc.com> Date: Fri, 6 May 2022 11:53:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v2 1/2] nl80211: process additional attributes in NL80211_CMD_SET_BEACON Content-Language: en-US To: Jeff Johnson , CC: References: <20220505173449.4424-1-quic_alokad@quicinc.com> <20220505173449.4424-2-quic_alokad@quicinc.com> <5235cf9e-ad4c-3557-e1ee-d4ece1187652@quicinc.com> From: Aloka Dixit In-Reply-To: <5235cf9e-ad4c-3557-e1ee-d4ece1187652@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 5/6/2022 11:22 AM, Jeff Johnson wrote: > On 5/5/2022 10:34 AM, Aloka Dixit wrote: >> -    struct cfg80211_beacon_data params; >> +    struct cfg80211_ap_settings params; >>       int err; >> +    memset(¶ms, 0, sizeof(params)); >> + > > is adding an = {} initializer preferable? > I will change this from static to dynamic allocation in the next version instead because noticed following error with some compiler: error: the frame size of 1032 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] >> +    if (info->attrs[NL80211_ATTR_UNSOL_BCAST_PROBE_RESP]) { >> +        err = nl80211_parse_unsol_bcast_probe_resp( >> +                rdev, info->attrs[NL80211_ATTR_UNSOL_BCAST_PROBE_RESP], >> +                ¶ms); >> +        if (err) >> +            goto out; >> +    } >> + > > would adding a local variable 'attr' make the code more readable? >     attr = info->attrs[NL80211_ATTR_{foo}]; >     if (attr) { >         err = nl80211_parse_{foo}(rdev, attr, ¶ms); > Sure, thanks.