Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp783746pxp; Fri, 11 Mar 2022 15:03:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2WTeVaa18elLETMD4bjiLChYjTuMN838efONyP0oy/FONjJ86i4NcaX3H0tQdaD9TNrC5 X-Received: by 2002:aa7:9253:0:b0:4e1:53d4:c2c6 with SMTP id 19-20020aa79253000000b004e153d4c2c6mr12416378pfp.62.1647039798859; Fri, 11 Mar 2022 15:03:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647039798; cv=none; d=google.com; s=arc-20160816; b=o8scoaoDrhehI7wBYufuEVxaPZlBHPuZpGUJDE+9ONDEKXTXZ+ghOGXzfFSGPCbd2W AtIrh/l5bEINcPO5X3x+APpDL8EVkOYvcaVAbAWK7qy1uv2SrTjjo4aOY7BMCwOP2pxl wb8VoP9rj+bZAFLW055i801H0sPPLJoQ94K90zwlVa1PrEPrBs1Q+vnCWhxBiOVK8ydD 4ed9GVuIch0vgA1PTTYoO+ZwZvQpz5FOKggYTmI4drZi3QpliEtYvhJ/TvC0T8hlwqAC /osW0PO8sBPEb+Vfo7XFXyT9Ga4LQbwT4fDcdd3FraQ/Hz3Io0/m7xf7qGsHqE5Q5CpN a9Pg== 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=A0Vtf0oIcOhC5jNJ0AvM/ZmbPBrz6RKmGRE+jynQMCI=; b=F/rhx/F3TF7yeTMXyuI7RHETp4sE3XN10eYdiovBCSbZ5sVe79Yf8lDRbRIavOEhbU SvzPVXzgxVEqQLPt1YPxaOG9Z/K8Q8/mSxPC2AiTy2dDURnb1LcYg1ajt03oqWUDqjfI SzCAuyxIEkFRkEbdMI4kxsfO3NdBOSIRc04DwJmCC9qofhPjlNJPMkuFrR0pRnKkLF5d iK2B9Sb1eYLB578plH93en8lpL1KH0RxgyL2eHK+Bn1rwbg1JGhWvhljOv1qdHyTxekf dHuZkDy3Hg9MTfWjStnmLNHCxE28J5BnHzCMfA68uNEmpZMo2ovlADAW0VoK99yNbviE JIjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=TM2xZcww; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f1-20020a17090274c100b00151f9b39a66si8333630plt.41.2022.03.11.15.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:03:18 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=TM2xZcww; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D0868380F15; Fri, 11 Mar 2022 13:59:17 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348105AbiCKLEc (ORCPT + 69 others); Fri, 11 Mar 2022 06:04:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239577AbiCKLEb (ORCPT ); Fri, 11 Mar 2022 06:04:31 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6812A186B9B for ; Fri, 11 Mar 2022 03:03:28 -0800 (PST) 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=A0Vtf0oIcOhC5jNJ0AvM/ZmbPBrz6RKmGRE+jynQMCI=; t=1646996608; x=1648206208; b=TM2xZcww73qg21IjhGLmFbFV9ySIYa8CoNQXlQQbyE8ZAXC RhvohWj2SHxk+IW95QQXS5eOVsqTQSObAMBWNMXufKVA2hho4js8qL8ARhia9AZR8ug2CPR4YwVNw /YEARGJeCw67u4ScORq1Vt48uySuXndphEHfJ3xwqRrlAYFMdq6otiUAHTMXTiRwyOYCOhjGvh7jy COahPneoEh1WuVuuNwhjjR/wkesSKFNbKZucxiIotqzaWh0TvrTWZqFgj/0fXgeCWDt+ov3DalCDR A9xvVKAtlfTerPdvfG5fF8vcY9d0mq4dHlhCdLy13FFhNSdXvvYfRIbd0c3B4HwQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1nSd3M-00Bsc9-Uz; Fri, 11 Mar 2022 12:03:25 +0100 Message-ID: Subject: Re: [PATCH 1/2] mac80211: add support to configure 6GHz non-ht duplicate transmission From: Johannes Berg To: Rameshkumar Sundaram Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org Date: Fri, 11 Mar 2022 12:03:24 +0100 In-Reply-To: <1644914581-21682-2-git-send-email-quic_ramess@quicinc.com> References: <1644914581-21682-1-git-send-email-quic_ramess@quicinc.com> <1644914581-21682-2-git-send-email-quic_ramess@quicinc.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi, Couple of notes below: > @@ -704,6 +704,7 @@ struct ieee80211_bss_conf { > struct cfg80211_he_bss_color he_bss_color; > struct ieee80211_fils_discovery fils_discovery; > u32 unsol_bcast_probe_resp_interval; > + bool he_6g_nonht_dup_beacon_set; This is missing documentation. > + cap = cfg80211_find_ext_elem(WLAN_EID_EXT_HE_OPERATION, > + params->tail, params->tail_len); > + if (cap && cap->datalen >= sizeof(*he_oper) + 1) { > + he_oper = (void *)(cap->data + 1); > + he_6ghz_oper = ieee80211_he_6ghz_oper(he_oper); > + if (he_6ghz_oper) { > + sdata->vif.bss_conf.he_6g_nonht_dup_beacon_set = false; > + if (u8_get_bits(he_6ghz_oper->control, > + IEEE80211_HE_6GHZ_OPER_CTRL_DUP_BEACON)) { > + sdata->vif.bss_conf.he_6g_nonht_dup_beacon_set = true; > + } no braces needed there, and no u8_get_bits() either, you can just & ? > + } > + } I am wondering though if this should even be detected from the HE operation element itself, rather than from the beacon rate settings that are separate in nl80211? johannes