Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp688319iob; Wed, 4 May 2022 06:08:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqx2oaWzVhayu4U5Ce4JRTteWi9ga5N8hR21Cpf4b9dqQYI1ZGqhiE8QKnVTA0PiyIQy8q X-Received: by 2002:aa7:dbd0:0:b0:427:4e6e:d779 with SMTP id v16-20020aa7dbd0000000b004274e6ed779mr22088841edt.27.1651669686429; Wed, 04 May 2022 06:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651669686; cv=none; d=google.com; s=arc-20160816; b=ZHdmOU2CeaL1D177cjUoYHv8vkAmTNMbvQp71pGqih+bMI75wix+JJ4x3GRPb87OEL EECLP9yLwDvho6xKOWAVhGq86wG//RKKTZjwLVdtlxMQY0cmzIow7AZUEJ4vD8wmEEEm SVUQifRt74NSdh9itu10Q1hVLZ8V0Mo1PEShmcM43lLb9N75c/jLXZRSdeoSyo4SQFas jJnCS1gyRvdSgIGL1R4x8HS2dmrX02oEJWrh6kIEONRLOGkt8J92OphGFEetAbHvRyTt SOHWeri2+bnFi5BrtcemBKs08YIVMggwt09+eAeNbZgfEBTE0FVtLnBHiLQ/PiV+5ElF Vzcg== 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:cc:to:from:subject :message-id:dkim-signature; bh=nYGoV3ylmcOTWs7rF3NN/2GWWtxA+11tRC2+2CldSo0=; b=fN6alrW/fUEwdvMicZZ3pqW0M2xKKoUDGH/EpIt+B5MRMqy8wE2JLi+gZEgpA0q5N1 3ukbidqPBJJ/jWtODA/VpKx5INWb7LEd7LuS50EaaSskFWD1GD/GvSHk+xReFybM8vVs rRE5prsyvRtT3VneGYfOeU9XJAkcKu0Jg38b/0Ky0jXRtmcdnJeFtovqj91R4/xJXawF VTrd7fMLxSH18ObXwO2tJiKwRmSxBdZuPXvmvfaCu08zP839CV3TYR3q8o09sVoJM4kv +t7FTc9P4QGldaNI6MBvKvTMmX0bILRNK3/j2Du+xH0M7g0CUSjjSpjoEBn6MDXnVG5J qiOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=GOyLLeMl; 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 t11-20020a170906948b00b006e8c745f302si15102341ejx.314.2022.05.04.06.07.48; Wed, 04 May 2022 06:08:06 -0700 (PDT) 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=GOyLLeMl; 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 S236670AbiEDLiC (ORCPT + 68 others); Wed, 4 May 2022 07:38:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348897AbiEDLiB (ORCPT ); Wed, 4 May 2022 07:38:01 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA692B279 for ; Wed, 4 May 2022 04:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: 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=nYGoV3ylmcOTWs7rF3NN/2GWWtxA+11tRC2+2CldSo0=; t=1651664065; x=1652873665; b=GOyLLeMl3F0NFq19M9dl1wfNMsMutu867gHiGwubzkBnAD9 akSUplxJpzG8zLmTgwEHKbgUoQAYHWu3OKM93HkH1T8K1eyLt6mPK4bJ5pNEi1b/8gudyWeSz8M3t GCcbCGxTxozRQZKkzeT05NA7FPUz1cQF5qFzhLtuV8B4OKq2G/ofVEjpStf1tRMoZXZ4PWy8YW4Px vBFgHtxedzwV4dSHGexT36XkEWXiDAKoN1fz05+icl7j1bnh4z4XIDmY0+sHuJZQ63L4jxC8QW+eA 1+OjT9S26GW9oenDHKG7zdOtDDRw3+zpoquSSKj4OFX6+4sOFBfr+8lSfhKHw9xQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1nmDGx-0021B5-R9; Wed, 04 May 2022 13:34:23 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] nl80211: retrieve EHT capabilities in AP mode From: Johannes Berg To: Aloka Dixit , linux-wireless@vger.kernel.org Cc: Vikram Kandukuri , Veerendranath Jakkam Date: Wed, 04 May 2022 13:34:23 +0200 In-Reply-To: <20220323225443.13947-1-quic_alokad@quicinc.com> References: <20220323225443.13947-1-quic_alokad@quicinc.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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, T_SCC_BODY_TEXT_LINE 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 On Wed, 2022-03-23 at 15:54 -0700, Aloka Dixit wrote: > From: Vikram Kandukuri > > Add support to retrieve the EHT capabilities element passed by > the userspace in the beacon template and store the pointer in > struct cfg80211_ap_settings to be used by MAC80211. s/MAC80211/drivers/ I guess > + cap = cfg80211_find_ext_elem(WLAN_EID_EXT_EHT_CAPABILITY, ies, ies_len); > + if (cap && cap->datalen >= sizeof(*params->eht_cap) + 1) > + params->eht_cap = (void *)(cap->data + 1); > Feels like this should be using ieee80211_eht_capa_size_ok() in some way, since drivers would probably use it? Maybe even returning an error to userspace if it's not OK? johannes