Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2256640ybg; Thu, 30 Jul 2020 14:56:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwkdHIU6OIoyRi09MdtRUbEsVsyuHWhlrU8UHXcyl6QKMiXXm36tdHKYUeUgIg+buGiK0H X-Received: by 2002:a17:906:6558:: with SMTP id u24mr1087433ejn.364.1596146200924; Thu, 30 Jul 2020 14:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596146200; cv=none; d=google.com; s=arc-20160816; b=d1PkHIMPW7rnooN+dCkvqlVxahe9dP3g7DwsCS5HIfPcnPP//insQcP5XywDxej2Pk hzLwOuBADJbSsRwGibrnDwcwQ24+k2T4bC0Oise3Jpx3/orXKjVPpuoX/LDfL6scfU+0 W7YpBiCAi2U5a7pMphujWeuGaqApKOnpjuJU70/5IWb33Nqv7ErlexBLDuXB4jCBXwTK 9LoKavSA5NZ8sJv5hBjCs6XihySJG8w8D9T7yQSbAyaWEUqMuiPuIBpIh52zeKXP88C0 U/aACU9D6VF4tmXmwsyCSdR2aKmPqHj3q7cSfiSHQRw1dm+TU3eukV4OPuTQAFy/Jfsj s7kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=rLtNgw6dHJHIrGMaL4whUVA8h434vIgTdWSFRpvNr1Y=; b=azypAZo1S9NtBjgk4VYll9gDeNyQw8UkorIQTa6VcKkYqdMCdrjo6g+nNTcVJ4C2yW 08TcDDHPI6e0yWMwrCfseM/3+ffz6743rsMEi2GdX5kFBfLC67IAJQhqzbq0wTV/Apte OcbccALnuNVg/A0w0miLnIrWcJUwkaJbq9hobsMiMBUmLgCsuHIYYEl6AHO4CkWqd9tT +cFnA3cGaeZit8aM6z8AuGPEurhI5+PipM56t0KRgK3Sb425cNaqO4JH/jIQwXRTWAbq Dz2XjbGkcv6uVrUxLbsiVnnhzOBKBb16neQMdQOQeTe8VIIvTyOMDo10ydDhdjdVCCYz s/Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=LXoYi0M4; 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 y7si3371555ejr.228.2020.07.30.14.56.15; Thu, 30 Jul 2020 14:56:40 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=LXoYi0M4; 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 S1730587AbgG3Vxz (ORCPT + 99 others); Thu, 30 Jul 2020 17:53:55 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:18137 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730552AbgG3Vxy (ORCPT ); Thu, 30 Jul 2020 17:53:54 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1596146034; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=rLtNgw6dHJHIrGMaL4whUVA8h434vIgTdWSFRpvNr1Y=; b=LXoYi0M4lxGBu6BxEumXEytzAgukmavqs5Fjya22VlRiC7yR9Jy0c/e5RIxbam9uiC0vBlTt AjBNm3SfQhX/GBSOg8Z2IIA5UZUKBcdrf31S7umorX55dl2mQ1DHi/J8oo6zStVOj0CfHylm 3hyfJPRgaVCYMSqrlB4Cu3oNVxY= X-Mailgun-Sending-Ip: 104.130.122.29 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-n20.prod.us-west-2.postgun.com with SMTP id 5f234165eb556d49a6606a6e (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 30 Jul 2020 21:53:41 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 707D2C433C6; Thu, 30 Jul 2020 21:53:41 +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=-1.0 required=2.0 tests=ALL_TRUSTED 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: alokad) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0999DC433C9; Thu, 30 Jul 2020 21:53:40 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 30 Jul 2020 14:53:40 -0700 From: Aloka Dixit To: Johannes Berg Cc: linux-wireless@vger.kernel.org, linux-wireless-owner@vger.kernel.org Subject: Re: [PATCH v4 1/2] nl80211: Add FILS discovery support In-Reply-To: <54628f052b380e660c37cb9b7c3f224976aa1c83.camel@sipsolutions.net> References: <20200618050427.5891-1-alokad@codeaurora.org> <20200618050427.5891-2-alokad@codeaurora.org> <2b1ea1c4baedcb119f4e632b26399071@codeaurora.org> <54628f052b380e660c37cb9b7c3f224976aa1c83.camel@sipsolutions.net> Message-ID: X-Sender: alokad@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-07-30 14:22, Johannes Berg wrote: > On Thu, 2020-07-30 at 14:17 -0700, Aloka Dixit wrote: > >> > OTOH, if it's with headers, how could it be optional? In fact, either >> > way, how is it optional? >> > >> >> Template has management frame headers as well. Will change the wording >> accordingly. > > OK. > >> I made the template optional because FILS discovery may or may not be >> offloaded to FW. > > But how would anyone know? Try without it, and then try again if that > fails? Would it fail? I mean, you also said it was required at least > for > 6 GHz, so wouldn't userspace be better off always giving it - and then > we should probably make it mandatory so it doesn't fall into the trap? > If the template is not provided, FW keeps sending event to get it. But as my ath11k driver code is limited to 6GHz, it already throws error if template not provided. Yes, in general it will be better to make it mandatory, I will do it in next version. > However - and here that's my ignorance speaking - can it really be > offloaded? I mean, is everything in there completely determined by the > beacon already, and so you have no choice in how to build it? Or how > does that work? > Yes, the frame parameters are fixed except for the timestamp which FW is expected to fill. >> Yeah, I looked through existing examples for NLA_BINARY, those provide >> only the higher bound for length. > > Yeah, no way to do anything else right now. But you should have a lower > bound in the code, I think. > Okay. >> But I can modify it to range once that is added. > > Later maybe :) > > johannes