Message ID | DM4PR19MB6173462F8EC6CBCC07195DE1A8A7A@DM4PR19MB6173.namprd19.prod.outlook.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> 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=alVhYeHa; 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=h8IOhFyU; 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 4SL49J35Hvz1yQm for <incoming@patchwork.ozlabs.org>; Wed, 1 Nov 2023 22:12:36 +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:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=72D3HkMsrFUXuYhhx5VzcLWP28nhIDRfWKD4ZruGYnk=; b=alVhYeHawlILX6 ecwezrAdGvBUUP5C0zuNT30BW+b78B5ZtbO+imFBzGJyUXmXpdtTTY15R+f4ufTfV1c6YqnxUMPJg JRFJJ17i3riJdQUjBF9+hRpFFVpyUwJV0xui1des2bdbeQ1SsnVGVB5W68acbjXSn3FKwTg9PY7jA L1lq5JDj7SEIKuVU+9axz1ypOvyrPoTWV1/XW9Dy4dvQfVjlTk1mAsPGrKKLGFI8sM/d9tihbb1C3 68//jCy2kQFvJB2G21zZ7KvNXHy2g4RfOmnpIfGxCS6CNrPZJhY4PMkN1Wb92HJhO/lCcoG9kxo6/ JcDV152zxtFXrp5AtNDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qy982-007FSj-2o; Wed, 01 Nov 2023 11:11:18 +0000 Received: from mail-bn7nam10on20731.outbound.protection.outlook.com ([2a01:111:f400:7e8a::731] helo=NAM10-BN7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qy97x-007FSO-0G for hostap@lists.infradead.org; Wed, 01 Nov 2023 11:11:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b+9lw3qbGhwI7BrMFcrUqrQnU70bn7fETfbXhkXsXFZoIYaEBSS3DmnQa7Pkzs9iHIm3Ckcx+7WbEkfZW2x9OZA4lV5V4FkftrOmGFpKVZoUdM4kBTk/S3WJjRramLBmcdrtUGhp2PawLucM4xGc/Zqj7dee/gdAEe4TqusjK4fyGmE8QoewRdrqFx/WQBQKyYSJCrPrw9hCSRU6yM8R6kkW9g+4yCMFE8luCvuGgdr8BL3DPWOI+VhnGjPW7zr75sGUOuWli0x+1fiuwvsRSqCiogtUGn4TfUm0NPQC6AqBIh35yBCYtHmQJzR46PqMv8Mh4BMSxGUvTo9M3KS7zA== 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=Q0xTXntP7eVBpk37Z6tybklVDm2xBvzbhS3M6kRp7oI=; b=dMK1SvHJDDZhUcVVkMMA59WbYUIjiB6nWjG41Ub7cuuSSLS1ijDDewvApE2NSS/sKNnPZ8eRhRVEOOFu3JAwnFpdTS10//wN62NyYSkS8jzWTDe5yu32P3A9qaTh6jGZf4THYTE3a4CACT9z9dlRSOsDfc8pjuSuUFe9x1/EsZSMvPAQZrDn9xkgDV0BqKueGam3JFgdjN+o27OxKFwIRZkui1nTLsJYE8MQR44oFMTdr41p4qXFKn/CdvXqUqdhTS7EGvwt9oce9QG6u07/1GfiOsQZrkCLiHBIsiI2Fv1FnjeWI6diUmzDNQM/Pkx/T79Ui2klun86VTPV8bB+UA== 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=Q0xTXntP7eVBpk37Z6tybklVDm2xBvzbhS3M6kRp7oI=; b=h8IOhFyU15oXwzpEkWBl0FJHUnULZ8y89UDumEvPkYhUGmu7f4t/d96PV2d5SI1ZPygEJiwaNv7BLWxLeSKUzoCpKYF/Isi8nlKB6nc/Hi+KWT1aNF6M0/hyz8kEbOhBJrl/73GVPyPS9bZTq16akJbxUoDLOA3ycw2uOmkr3Fo= Received: from DM4PR19MB6173.namprd19.prod.outlook.com (2603:10b6:8:b3::17) by DM6PR19MB4011.namprd19.prod.outlook.com (2603:10b6:5:22b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.28; Wed, 1 Nov 2023 11:11:03 +0000 Received: from DM4PR19MB6173.namprd19.prod.outlook.com ([fe80::e924:adc6:cac5:c98b]) by DM4PR19MB6173.namprd19.prod.outlook.com ([fe80::e924:adc6:cac5:c98b%6]) with mapi id 15.20.6954.019; Wed, 1 Nov 2023 11:11:03 +0000 From: Jurijs Soloveckis <jsoloveckis@maxlinear.com> To: "hostap@lists.infradead.org" <hostap@lists.infradead.org> Subject: [PATCH] DSSS Parameter Set element is added for 2.4GHz only Thread-Topic: [PATCH] DSSS Parameter Set element is added for 2.4GHz only Thread-Index: AdoMs9k7tnhUTRRpRVOkUjAUKl5ATg== Date: Wed, 1 Nov 2023 11:11:03 +0000 Message-ID: <DM4PR19MB6173462F8EC6CBCC07195DE1A8A7A@DM4PR19MB6173.namprd19.prod.outlook.com> 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_|DM6PR19MB4011:EE_ x-ms-office365-filtering-correlation-id: 4e2c6845-8f1d-4317-4648-08dbdacb3c96 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QlLytkdnbNv2UV6bg9evyFEWs1i6TdocsqPKjVISPbkCl6nfHXtrzQR9rPgwMFp9c1vAwU0WgjrXqeQWpxy8BJm3nn14fqyBshOm/kcb9GwUQ+6/JrVET9LkLqBV+PYU4Hfg4sKwLY1qabaF20LFGuBxpyJWCAgj79+tHvmDqKpXAhl+mIw/n1gUViP7Du1mXSkLSmqNyZPUgHjyNqY55y3FirqLTP9T3OKPYX2t/rel7J94AiUJG6jry3hujhlW6l7yxI2gwVI7X/BRPRPVTwZ5VbX9dMHHBF8DMqcZr9ck0gIXeqSyHMo5EotWwM23i7vYjaQqG0A2LtbpYE+d3bLY8ZOtkauD3GVg3QWkjMDyT5zqsXvqR7pqnv1+slY9iuUQ/QCzP+OoEBIPZyorFwKt10hVoeoTAVj7/HRfWGjGd773a1m3AJpBB/QMq4quglBzl5L1jOUbhXXwcxF4Q6KPVaGniBsfkNzvy4II6P0MUkN92byDXp2ebegFi0hd0Z7sCCZIv17VHc9yMUF1NM3RNcfJN2STgCoPR63s/3Fna7eZlWeP8faPt+vivPVClRlfuWssLAEQS+Zxc+L0/nIk4ylWjC+dya4N/sr2G5eehV2DKJo8YgqTgbLpZCob 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)(346002)(376002)(396003)(366004)(136003)(230922051799003)(186009)(1800799009)(451199024)(64100799003)(55016003)(26005)(9686003)(71200400001)(6506007)(7696005)(5660300002)(478600001)(83380400001)(2906002)(41300700001)(76116006)(66476007)(66946007)(66556008)(52536014)(66446008)(8936002)(64756008)(6916009)(8676002)(38070700009)(122000001)(38100700002)(316002)(33656002)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: XLOQLwCAPixkJROdq2yosWamT5CbN1ZM/zKN/NmfAh2iQBgxvT+m9K/dbMrqeAdatv4irEpYNjg5b3jI6dlil49zOlTEYNVKmmEL9N4RJfqc5uxBB+jrOv4oRO4Z1JPl09gVdnUGWaF9ON55w2iE+6s4pDBfHBEHSjGCDXUVFSsgr9P+cWoBwj7EN4BNLn3fVwgrg6R2OFlAeTqPBaua36p0rMhs7pUqNgnC9G5IdvM5k+wHBewQ5B49q47b4U8GPrOhzv72OlzOY1CsxQPPU382EjU2vPO7IfctP4eUrIbwxynswLeu35Htc4GLH//wm3pGk+ZsEzbEwPEquTvATVjtkm095Jdof7A4KggoXCRIZYgBoYNvh3pLvfJkU4cUdTwYCf4I1VSen19hcYGv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LZTp03IKGTIwH+5EurTTgq2S3IQEAENZWc+I+aZqzWDgeCcLklZytmL/FCeAuG7JIwRa3hlI9XC0IfEiar08CnuaP05ilfOzbh3rPZ9B0U+fAWItPrOqHAlOtd2NpGsQN8qVlSXmzw== 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: 4e2c6845-8f1d-4317-4648-08dbdacb3c96 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2023 11:11:03.2185 (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: ZNJTsyVt1TLhH7LhlvIsEcPD04sAwC+SmIoQgtGKydYSbveS2+McNa3b0yLZLOTgGVi4o7ViiPGKl0FkRRM9Cxi7if7q88noHJa5Q+oTZFc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR19MB4011 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231101_041113_215000_31CD4F18 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. 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: From IEEE802.11: The DSSS Parameter Set element is present within Beacon frames generated by STAs using Clause 15, Clause 16, and Clause 18 PHYs. The element is present within Beacon frames generated [...] 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: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
DSSS Parameter Set element is added for 2.4GHz only
|
expand
|
On Wed, Nov 01, 2023 at 11:11:03AM +0000, Jurijs Soloveckis wrote: > From IEEE802.11: > The DSSS Parameter Set element is present within Beacon frames > generated by STAs using Clause 15, Clause 16, and Clause 18 > PHYs. > The element is present within Beacon frames generated by STAs > using a Clause 19 PHY in the 2.4 GHz band. > > Same is applied to the Probe Response frame. Thanks, applied with somewhat modified design. Please note that this email was whitespace damaged so it did not apply and I had to do the edits manually.
diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 1d3b96ac7..8b2093438 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -87,9 +87,14 @@ static u8 ieee802_11_erp_info(struct hostapd_data *hapd) static u8 * hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid) { - *eid++ = WLAN_EID_DS_PARAMS; - *eid++ = 1; - *eid++ = hapd->iconf->channel; + enum hostapd_hw_mode hw_mode = hapd->iconf->hw_mode; + bool is_24ghz = hw_mode == HOSTAPD_MODE_IEEE80211G || + hw_mode == HOSTAPD_MODE_IEEE80211B; + if (is_24ghz) { + *eid++ = WLAN_EID_DS_PARAMS; + *eid++ = 1; + *eid++ = hapd->iconf->channel; + } return eid; }
From IEEE802.11: The DSSS Parameter Set element is present within Beacon frames generated by STAs using Clause 15, Clause 16, and Clause 18 PHYs. The element is present within Beacon frames generated by STAs using a Clause 19 PHY in the 2.4 GHz band. Same is applied to the Probe Response frame. Signed-off-by: Jurijs Soloveckis <jsoloveckis@maxlinear.com> --- src/ap/beacon.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -- 2.17.1