From patchwork Wed Dec 6 08:55:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jurijs Soloveckis X-Patchwork-Id: 1872506 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=PgDm4xtM; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=maxlinear.com header.i=@maxlinear.com header.a=rsa-sha256 header.s=selector1 header.b=q9XphdLP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SlWVY2wlnz1yST for ; Wed, 6 Dec 2023 19:56:53 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=7ohN7k2OBJsznR1JAqKe+98STUQas16Bh//sJ/L2VmA=; b=PgDm4xtMtVxdtt fezZshbLFDVx6x+TQxD/gY9sbvEE3kpHw3ji+qfwAdhZR/PHh9I2Y8oXc7xvAHgR/KQ5aVdgsYta2 AxSO99y/zBLg9faU8AIzVPJr8I5ouVmd5K39uuBMN/9TY20D8W7+JdrpLLw9sPGyCRVbY7US2wM2p HOcBYghw9eIT2uEltedVG+P1+X6/97MFsywg5xhV79oA0k3PlCUi9rVixEYm9QVMSahuJ2Z+eRrRj 6bJ5wCGUlPWOEJPMynPIqPRFNvtmA6LoGuwGHhfPT0fysEL7kjov3WRhnehIvswLU6BvWEXurtQYA NbO++aM3bXTgwMfieOjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAngs-009Tt0-25; Wed, 06 Dec 2023 08:55:34 +0000 Received: from mail-mw2nam12on20731.outbound.protection.outlook.com ([2a01:111:f400:fe5a::731] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAngo-009Tru-01 for hostap@lists.infradead.org; Wed, 06 Dec 2023 08:55:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QCWVu6gFu6B1xFGz6MZOISPhBVxBO8CMJ6i7UzUKW58ePjAqwoR0Ge3Foq+LNeGf/Z1HKFiJpp0nymZb+zD7t4rNtMgKJXijtNaJlwculBnwQ2AYTCDNVeOVaNu/RcQf8HaGFwnzbJ2ovKfl/gj61xYgRRl6/yONwsfHpNRoOkuU0ouQZTJhTimVIsEa/8FbxYnzcDEHil6vq69jD4KSPcGBAAdyumBvPMXC81ssen3Q7x12LQi6V4OCEJ3iHX0axE2OX0G2uYwWv7BtFet+SmYZ+Dv4D66CySaLtXbMp3pXeNQb6YtmCTbUeTLh0aVycoaoqNhwPD54L4yIkMICBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=03TtGcs+0fhr7xdiSMSatWJLwWbRYkjYjgIPNgzj+8k=; b=FNm+DEyGaYv110Tx6LwH6x0rbhahlurydSGuxO0/BIJyN1M0E0/z77aW6ua/RxQA22qScBKq3s+gTAllqixFaS1R8DPYHuPYPdtpWC8+42BoBriHJlHQ33+KMG8tiiqwcjHXZBz590se+VdYhXERwT/HPuOQYaJM/6mRyzAAyhPLaxzBE23yyFaN5su1WX0mWR4bmenmf6EZ1MKN63B/9X/P9Y4t0AuSP9ZRvog/KMG8thJbxj6CmziGDUXeZunfPOZmWnepMKlDfxrsxJqx9o8rQS4dnRa+s6uYwNpa1s/mDfO2o2z4RoDt6r1a201Zl3jUsPF5/C6I/lWTHiJK+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=maxlinear.com; dmarc=pass action=none header.from=maxlinear.com; dkim=pass header.d=maxlinear.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxlinear.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=03TtGcs+0fhr7xdiSMSatWJLwWbRYkjYjgIPNgzj+8k=; b=q9XphdLPIlrZRFIL6i35GEQ18GGPU5bEasB/6b4h3MWSKvavHI0v2wW7V1hBPRLgHOile9l/xVHroI4nVBc/ua7lbcKR6XVivN3tnvPevi1ZOJ5SqX02Hv0fsIzL6p5lAexLrG23kcq91tZg+VPvKPK8UfUD82rDbSQ3M4BfdW8= Received: from DM4PR19MB6173.namprd19.prod.outlook.com (2603:10b6:8:b3::17) by CH2PR19MB3992.namprd19.prod.outlook.com (2603:10b6:610:9a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.34; Wed, 6 Dec 2023 08:55:23 +0000 Received: from DM4PR19MB6173.namprd19.prod.outlook.com ([fe80::3ac4:eff3:1fb6:1eb6]) by DM4PR19MB6173.namprd19.prod.outlook.com ([fe80::3ac4:eff3:1fb6:1eb6%6]) with mapi id 15.20.7046.024; Wed, 6 Dec 2023 08:55:22 +0000 From: Jurijs Soloveckis To: "hostap@lists.infradead.org" CC: Sergejs Hatinecs , Arnon Meydav Subject: [PATCH] EHT: added configuration for the EHT default PE duration Thread-Topic: [PATCH] EHT: added configuration for the EHT default PE duration Thread-Index: AdooIb0oDLfELqDDSvSfc/Gvb+ojaw== Date: Wed, 6 Dec 2023 08:55:22 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=maxlinear.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR19MB6173:EE_|CH2PR19MB3992:EE_ x-ms-office365-filtering-correlation-id: 08ada80d-19f4-4b1d-0b26-08dbf6391504 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SSNm9lYgH1BSxN3BMIxCPZg6Eyw97C51Apei+pBaxdw4U3gggVv3ZFEILTrtxEd4Sm8wkYfx9CiolrvzrpJu7NTwDy+652gC8XPlMyt+f5ErNzu8SXbv2kFnpXyN22AS0rrI6tAsYqj1Q/SDmjPOPXXC2vDT1f6l20kySQUp4s3jAfXQqllt4qvLR1ZuzeP4+AiBkbWP8HZiZOZhJHlOQfLRV9OzZO0cLlyLRGW2fxrp0Lx/5VMcTi7+gaZqx6/CysXf6Y9LBPkdEqbWWrQ//GA8fTkrvY7fSZFrtVsCcQRM2XlSn+ZEYwRROvB/+rKK1Kzgz8o7QV9/u21gDfxDF/Ssbdt37czUsrhRzaMxkFeI9kGbJoKQYPcodgh1qxPVH7XC7PyfJVTNto1SPoQuC9YfyeRrilv4DZS1v8ar6G5Hq+5C6YuwDKMM3AkWnYAz054foHS9wp5Ec6Eb4/T56yWN20d+elwbC+XabAKQ45uhEst6gWZyew+NCECPaGPR6HeKFlInMtDIN/jiC3yaXzcH27VzxT3DPIE7ccQOf3uorMIuzVEBcY+Kd5fE87BSu5+hADnSsAxRVFFWighvlY73lTb8I95mdaoXiOA51FL9pKGbBfIBG++GPA2NoLSe x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR19MB6173.namprd19.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39850400004)(366004)(396003)(346002)(136003)(376002)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(38100700002)(122000001)(55016003)(7696005)(71200400001)(9686003)(6506007)(478600001)(54906003)(64756008)(66946007)(66446008)(66556008)(66476007)(316002)(26005)(107886003)(83380400001)(4326008)(6916009)(8676002)(8936002)(76116006)(5660300002)(52536014)(2906002)(33656002)(38070700009)(41300700001)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: V2GXuEAuSaR4Xjhl8udKezdabemNWQRnrZU2xWI4kP0LvzUpall4CSF1PxObcibIsrDkrzDKOZ4BXuzUxOSBPvNhTsUVmmhwQHx8MUAE99KmWHpAY9+sDMPPSwio4Zz3Tj7ElMu/rt3MGTztI0LkoQ/bS9JB8seo8WLri/v71QZNFmSvN28+R62riunvO4v+VPLWpvv4JY4BuIh2YvUA/D8rB/xcgLk/+7A8kkJOg5cUvqhQnqAQp4wJ8xmQwJx72nB8+gxqJkkK3G7+sEaeBm3hGQkuSuVSN60FQbt8SiHOsohTQdcASDkxq3i4hMwA/kikW/LAEXvSmuPRlk10kqP1pn1hW1dssTPgM21tzQpEf+3iUvxkeKFqdlqjSu8gyfXFVNWAxGXAbH4KTTWEyBnEDA3CMFWJbXZFk7t/0I2seYK4Dn1ocqMllRHKWnj+0lNi5KWbc0YanJPEDCtS/rw8v273B/2Vl+YY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WoL8k6HrfbMZny0csLntSODxnYwUR8musFm2liOfLI9f/e7hObA== MIME-Version: 1.0 X-OriginatorOrg: maxlinear.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR19MB6173.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08ada80d-19f4-4b1d-0b26-08dbf6391504 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2023 08:55:22.8749 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: dac28005-13e0-41b8-8280-7663835f2b1d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: F2mL+xTqT+i3SRGRwLkUEyjXi4AwfcoSXz70YeXGiVvWivlw8iIKtxIFwLJcR8Q+IIn6pAyUai7tgKQcWbggI+BEfY0in1kcs4AvdkkBgG4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR19MB3992 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231206_005530_293191_5FD08AB3 X-CRM114-Status: GOOD ( 14.72 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Added new configuration parameter for the duration of PE field in EHT TB PPDU Signed-off-by: Jurijs Soloveckis --- hostapd/config_file.c | 2 ++ hostapd/hostapd.conf | 5 +++++ src/ap/ap_config.h | 1 + src/ap/ieee802_11_eht.c | 5 ++++- 4 files changed, [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Added new configuration parameter for the duration of PE field in EHT TB PPDU Signed-off-by: Jurijs Soloveckis --- hostapd/config_file.c | 2 ++ hostapd/hostapd.conf | 5 +++++ src/ap/ap_config.h | 1 + src/ap/ieee802_11_eht.c | 5 ++++- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 7cf0ccfbe..1a49292b1 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -4766,6 +4766,8 @@ static int hostapd_config_fill(struct hostapd_config *conf, conf->eht_phy_capab.su_beamformee = atoi(pos); } else if (os_strcmp(buf, "eht_mu_beamformer") == 0) { conf->eht_phy_capab.mu_beamformer = atoi(pos); + } else if (os_strcmp(buf, "eht_default_pe_duration") == 0) { + conf->eht_default_pe_duration = atoi(pos); } else if (os_strcmp(buf, "punct_bitmap") == 0) { conf->punct_bitmap = atoi(pos); } else if (os_strcmp(buf, "punct_acs_threshold") == 0) { diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf index f02cd9274..6a8976bcb 100644 --- a/hostapd/hostapd.conf +++ b/hostapd/hostapd.conf @@ -1027,6 +1027,11 @@ wmm_ac_vo_acm=0 #eht_oper_chwidth (see vht_oper_chwidth) #eht_oper_centr_freq_seg0_idx +#eht_default_pe_duration: The duration of PE field in EHT TB PPDU in us +# 0 = PE field duration is the same as he_default_pe_duration (default) +# 1 = PE field duration is 20 us +#eht_default_pe_duration=0 + # Disabled subchannel bitmap (16 bits) as per IEEE P802.11be/3.0, # Figure 9-1002c (EHT Operation Information field format). Each bit corresponds # to a 20 MHz channel, the lowest bit corresponds to the lowest frequency. A diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index 5699a6be1..9ecb6ee81 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -1173,6 +1173,7 @@ struct hostapd_config { struct eht_phy_capabilities_info eht_phy_capab; u16 punct_bitmap; /* a bitmap of disabled 20 MHz channels */ u8 punct_acs_threshold; + u8 eht_default_pe_duration; #endif /* CONFIG_IEEE80211BE */ /* EHT enable/disable config from CHAN_SWITCH */ diff --git a/src/ap/ieee802_11_eht.c b/src/ap/ieee802_11_eht.c index fc02f1198..630baa4e8 100644 --- a/src/ap/ieee802_11_eht.c +++ b/src/ap/ieee802_11_eht.c @@ -226,6 +226,9 @@ u8 * hostapd_eid_eht_operation(struct hostapd_data *hapd, u8 *eid) oper = (struct ieee80211_eht_operation *) pos; oper->oper_params = 0; + if (hapd->iconf->eht_default_pe_duration) + oper->oper_params |= EHT_OPER_DEFAULT_PE_DURATION; + /* TODO: Fill in appropriate EHT-MCS max Nss information */ oper->basic_eht_mcs_nss_set[0] = 0x11; oper->basic_eht_mcs_nss_set[1] = 0x00; @@ -235,7 +238,7 @@ u8 * hostapd_eid_eht_operation(struct hostapd_data *hapd, u8 *eid) if (!eht_oper_info_present) return pos + elen; - oper->oper_params = EHT_OPER_INFO_PRESENT; + oper->oper_params |= EHT_OPER_INFO_PRESENT; seg0 = hostapd_get_oper_centr_freq_seg0_idx(conf); switch (chwidth) {