Return-path: Received: from nsmtp.uni-koblenz.de ([141.26.64.14]:36233 "EHLO nsmtp.uni-koblenz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754751AbdIHIxl (ORCPT ); Fri, 8 Sep 2017 04:53:41 -0400 Subject: Re: [PATCH 2/2] wireless: return correct mandatory rates From: =?UTF-8?Q?Richard_Sch=c3=bctz?= To: Johannes Berg , linux-wireless@vger.kernel.org Cc: Simon Wunderlich References: <20170907154744.28357-1-rschuetz@uni-koblenz.de> <20170907154744.28357-2-rschuetz@uni-koblenz.de> <1504853740.6177.10.camel@sipsolutions.net> <5aed0ea0-f127-bd1e-ca06-db7edbf56680@uni-koblenz.de> Message-ID: <1f7e466e-2a68-b97a-ee2e-21c3e74a9fc5@uni-koblenz.de> (sfid-20170908_105346_648220_43C09DB7) Date: Fri, 8 Sep 2017 10:53:37 +0200 MIME-Version: 1.0 In-Reply-To: <5aed0ea0-f127-bd1e-ca06-db7edbf56680@uni-koblenz.de> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms050800080808050200050607" Sender: linux-wireless-owner@vger.kernel.org List-ID: This is a cryptographically signed message in MIME format. --------------ms050800080808050200050607 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 08.09.2017 um 10:43 schrieb Richard Sch=C3=BCtz: > Am 08.09.2017 um 08:55 schrieb Johannes Berg: >> On Thu, 2017-09-07 at 17:47 +0200, Richard Sch=C3=BCtz wrote: >>> Use IEEE80211_RATE_MANDATORY_G instead of IEEE80211_RATE_MANDATORY_B >>> for comparison to get all mandatory rates in 2.4 GHz band. It is safe= >>> to do so because ERP mandatory rates are a superset of HR/DSSS >>> mandatory rates. >> This I don't understand - what "comparison" are you talking about? >=20 > Sorry, I meant the condition that checks for the presence of=20 > mandatory_flag at the bottom of the function. >=20 >>> Also force IEEE80211_RATE_MANDATORY_A for 10 MHz and 5 MHz channels >>> as they use "half-clocked" respectively "quarter-clocked" operation >>> of the OFDM rates (IEEE Std 802.11-2016, 17.1.1). >> I don't think this is correct - the way the flags are used, anything o= n >> 2.4 GHz would never bother to check the MANDATORY_A flag. >=20 > Do we actually allow 10 MHz and 5 MHz operation in the 2.4 GHz band? As= =20 > far as I can tell that has only been specified for OFDM PHYs, which use= =20 > the 5 GHz band and are covered by IEEE80211_RATE_MANDATORY_A, but I am = > not a hundred per cent sure about that. Cc'ing Simon Wunderlich who=20 > originally implemented checking of scan_width here. Looks like the old address is invalid now. New try. > The main intention of this patch series is to fix mandatory rates=20 > returned for normal operation in 2.4 GHz band. Currently only 1 Mb/s is= =20 > returned here, which is wrong for both HR/DSSS and ERP PHYs. --=20 Richard --------------ms050800080808050200050607 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC D8IwggTVMIIDvaADAgECAghQTsb1PRG0ZDANBgkqhkiG9w0BAQsFADBxMQswCQYDVQQGEwJE RTEcMBoGA1UEChMTRGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxlU2VjIFRy dXN0IENlbnRlcjEjMCEGA1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBSb290IENBIDIwHhcNMTQw NzIyMTIwODI2WhcNMTkwNzA5MjM1OTAwWjBaMQswCQYDVQQGEwJERTETMBEGA1UEChMKREZO LVZlcmVpbjEQMA4GA1UECxMHREZOLVBLSTEkMCIGA1UEAxMbREZOLVZlcmVpbiBQQ0EgR2xv YmFsIC0gRzAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6ZvDZ4X5Da71jVTD llA1PWLpbkztlNcAW5UidNQg6zSP1uzAMQQLmYHiphTSUqAoI4SLdIkEXlvg4njBeMsWyyg1 OXstkEXQ7aAAeny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