Message ID | 20190620143852.15857-1-shay.bar@celeno.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=celeno.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="THUrUOMh"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Celeno.onmicrosoft.com header.i=@Celeno.onmicrosoft.com header.b="fAGK3cHB"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45V4Fz1CYsz9s9y for <incoming@patchwork.ozlabs.org>; Fri, 21 Jun 2019 00:39:13 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject: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=wz7/Vn54tJVlRLAZbChx3mdsWQVDawgDr39QAqOcwuc=; b=THUrUOMhiegjwP gIaynCZpSUz2qegLRMRIni9PPeabbhUF1rGYQ+DXnoYVxclttSnUdr89MHkdwdsJhEo99wTe8JYK7 l2SGIjSALmFk+XLCphxLijmsSjVJiYtKE9GW03X8SLzc/aiOJUA3S/wWZ2MARtWxBEhBZ7zF5/718 RmQbw2FvHRhELXtXcY+/qyMAHcKu3eRU+G4JxcAMtKbAheA1InujMhQqEl9hHdPoxqOj35Qtoqh0W 9mCPRJbla7TjYi8wd1hmBLfPrZItE6M5jk9Rm+jSp3SUgQvWUNqAzQm1JbkViBw9cgh+D5uyn2IVW +fELF+nGnEwlZpkE9WmQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hdyDS-00006V-4Q; Thu, 20 Jun 2019 14:39:06 +0000 Received: from mail-eopbgr60068.outbound.protection.outlook.com ([40.107.6.68] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hdyDO-0008WB-SV for hostap@lists.infradead.org; Thu, 20 Jun 2019 14:39:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Celeno.onmicrosoft.com; s=selector1-Celeno-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+7Yeflhte+Gojw25TfE+poSMumOfDMRq8njmk+n9cDg=; b=fAGK3cHB75QY8QJ9DxsgnT+kZntmN9Yz/0EtwIirGykgn6HxB4bfzgmA1hEed4RCRO+gJbgnsobm4b6HKVUnL2vO5Zm411ulODPn2ZErSpeXY9npSBMLcd6CDdkvDEmq+BaCszp2PM8OLd+tOcvjYqt80oOvNT50YOSfEKj0u00= Received: from AM5P192MB0226.EURP192.PROD.OUTLOOK.COM (10.175.12.18) by AM5P192MB0052.EURP192.PROD.OUTLOOK.COM (10.175.13.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.12; Thu, 20 Jun 2019 14:39:00 +0000 Received: from AM5P192MB0226.EURP192.PROD.OUTLOOK.COM ([fe80::2ce6:6e28:8951:9569]) by AM5P192MB0226.EURP192.PROD.OUTLOOK.COM ([fe80::2ce6:6e28:8951:9569%7]) with mapi id 15.20.1987.014; Thu, 20 Jun 2019 14:39:00 +0000 From: Shay Bar <Shay.Bar@celeno.com> To: "hostap@lists.infradead.org" <hostap@lists.infradead.org> Subject: [PATCH] HE: Correctly parse PPE THR present bit Thread-Topic: [PATCH] HE: Correctly parse PPE THR present bit Thread-Index: AQHVJ3XlhsqGwElD40yNSSVGE/1EUg== Date: Thu, 20 Jun 2019 14:38:59 +0000 Message-ID: <20190620143852.15857-1-shay.bar@celeno.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [217.132.124.128] x-clientproxiedby: AM0PR01CA0076.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::17) To AM5P192MB0226.EURP192.PROD.OUTLOOK.COM (2603:10a6:203:80::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Shay.Bar@celeno.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.22.0 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d52592cb-4303-463f-1960-08d6f58d082c x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:AM5P192MB0052; x-ms-traffictypediagnostic: AM5P192MB0052: x-microsoft-antispam-prvs: <AM5P192MB00521196B111DA6A803CD9A4E7E40@AM5P192MB0052.EURP192.PROD.OUTLOOK.COM> x-ms-oob-tlc-oobclassifiers: OLM:1850; x-forefront-prvs: 0074BBE012 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39850400004)(136003)(376002)(346002)(189003)(199004)(26244003)(26234003)(1730700003)(81156014)(53936002)(81166006)(99286004)(68736007)(73956011)(6116002)(5660300002)(52116002)(8676002)(7736002)(186003)(305945005)(50226002)(6436002)(8936002)(71200400001)(66946007)(6506007)(64756008)(102836004)(256004)(6916009)(6486002)(14454004)(386003)(5640700003)(2616005)(71190400001)(26005)(72206003)(14444005)(486006)(86362001)(2351001)(66476007)(44832011)(476003)(3846002)(66556008)(6512007)(66446008)(2906002)(66066001)(107886003)(36756003)(2501003)(4326008)(316002)(1076003)(478600001)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5P192MB0052; H:AM5P192MB0226.EURP192.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: celeno.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: NiE8A2W7B1AUwyoAJn0qO40F7FxvSz1qksugY+VZqB3EVdy0eq9ObUiYZEY590tK08yrEIlLWNpvgv5YgrscuKqAa1gavkJ0IwxM+GFnlDhqUX3HvCWrNQoyyb4dtt8j5QiVK2MXTCJTtsO8HZSqs0KrAqfmey/KvgOFGFfEJ86B3zm17tyjzhlLPFf3mAXKFEtm03tKxa0PvGOaOVNxuTrUbauGt8goh4MVkDwrodhGjmiMd887Vj7BxHt3+jKNvQqd7zw1zBnsY1NjbgMdBPaDVveisSJ65JevoNMFQrx3MEk655qweijTkh2SioeJc1c4JQWX49oIUBj70t6a6AkjSZQXAcYo1euhLp5vtCY8zlWw4LOfv1IfntyQaw9VICz1iKamWRv89geyKGG3+EOyvVN7nEerlbW6U0JwiAQ= MIME-Version: 1.0 X-OriginatorOrg: celeno.com X-MS-Exchange-CrossTenant-Network-Message-Id: d52592cb-4303-463f-1960-08d6f58d082c X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jun 2019 14:39:00.0109 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f313103b-4c9f-4fd3-b5cf-b97f91c4afa8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Shay.Bar@celeno.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5P192MB0052 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190620_073902_924881_4CCAD2C9 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.6.68 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 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> Cc: Shay Bar <Shay.Bar@celeno.com> 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 |
HE: Correctly parse PPE THR present bit
|
expand
|
On Thu, Jun 20, 2019 at 02:38:59PM +0000, Shay Bar wrote: > Use the correct define to check if the "PPE THR present" bit is set in the phy_cap_info. > Because of this bug, the PPE Thresholds field was absent from the HE capabilities IE. > Verified that after this fix, the PPE Thresholds field is present as it should (if the "PPE THR present" bit is set). There was a bit earlier contribution with the exact same fix, so I'm applying that instead: http://patchwork.ozlabs.org/patch/1114908/
diff --git a/src/ap/ieee802_11_he.c b/src/ap/ieee802_11_he.c index ba22a174a..d3d3c1db3 100644 --- a/src/ap/ieee802_11_he.c +++ b/src/ap/ieee802_11_he.c @@ -23,7 +23,7 @@ static u8 ieee80211_he_ppet_size(u8 ppe_thres_hdr, const u8 *phy_cap_info) u8 sz = 0, ru; if ((phy_cap_info[HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX] & - HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX) == 0) + HE_PHYCAP_PPE_THRESHOLD_PRESENT) == 0) return 0; ru = (ppe_thres_hdr >> HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT) &
Use the correct define to check if the "PPE THR present" bit is set in the phy_cap_info. Because of this bug, the PPE Thresholds field was absent from the HE capabilities IE. Verified that after this fix, the PPE Thresholds field is present as it should (if the "PPE THR present" bit is set). Signed-off-by: shay.bar <shay.bar@celeno.com> --- src/ap/ieee802_11_he.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.22.0