From patchwork Mon Apr 27 13:40:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 215812 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CAEBC54FCB for ; Mon, 27 Apr 2020 13:41:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5AD9D206B6 for ; Mon, 27 Apr 2020 13:41:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.b="ce5Ohdhf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728083AbgD0NlZ (ORCPT ); Mon, 27 Apr 2020 09:41:25 -0400 Received: from mail-mw2nam12on2085.outbound.protection.outlook.com ([40.107.244.85]:27104 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728039AbgD0NlW (ORCPT ); Mon, 27 Apr 2020 09:41:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WKEbyalUu3uCswzX3SyS9H9CwFiTZPf32suLvOvIm55iOvb69Q6KZa3BlIqstLtFgdpQjGMyBIcs1PjX0tJI1jjUcDiK05btlE0i4XnYy97sxwZAYQG9NfZf9glFcNBXA6q0VBSI8vOCz/kz6LUJOUetNwoo7+RudAYUCwEK1BTQrvk+1+xrPkXH+dfZzNesR37o/VPPEWA9SSkERb9+6Fqh7a0HgnedcfOtqn2ALnmwnolYSOiq8MxbIA1DBgqrYfMmMT44txuyrtz3s+j6Y3WXhX0l8khcL0fBlM4TTFHyc8TKpCRLW8DfG+6XIlV4+8iXrQv3YaILAqYD3JiXtw== 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-SenderADCheck; bh=ArHefbqV21SB9u1u11bvJ2ldj7JfEtPQEMPuhZ4pQ5g=; b=I56hOfbq4TrBDzeUhsvWIxUabhqJo6wprRGXXV+UOcPMXRWyi/NqPRp1Rf0upKMxzhIIQ4Ncx+GXaJldmhHBtXQ7Y5xOcYpuYitG6k/l5WMU6PcM9JYvatDQJGU83B+FHfJVsOs/cbvOeCXyt8Aj+yHGX34Ui+s75d/ik2sVyJju3PsIydos0zndBzqQVIw1FOspauxNBXQkBj9VYFxOpJjs+4QivD/gI+bABg/5QLV4oVIyg0V8c2rxYzY+r476/hfZUEgs5ayHMjeR+Wn27m/q0rLGAwy9W/4A4kkYlj3f3P2Hlzr9y4pMnc6BKd1Hcm8wj2f2pAt38LdlBKCKrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ArHefbqV21SB9u1u11bvJ2ldj7JfEtPQEMPuhZ4pQ5g=; b=ce5Ohdhf7qaqf1df7or0N+cFDReMdZbOsXErFJQaaMi5U4URbiBrv0hIGhak8drqOYnNq+cQG2jK1E9GiVVKeaKA4bn+zGDE6vIJQqqnTegtV/ucMNRRTMdcLb+3mYFaOFLAe6dEtOQPXx1fuRnkNPwhrh+AzxioFT+bY6dWjqs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerome.Pouiller@silabs.com; Received: from MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) by MWHPR11MB1424.namprd11.prod.outlook.com (2603:10b6:300:26::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.22; Mon, 27 Apr 2020 13:41:20 +0000 Received: from MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::81d5:b62b:3770:ffbe]) by MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::81d5:b62b:3770:ffbe%10]) with mapi id 15.20.2937.023; Mon, 27 Apr 2020 13:41:20 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 08/17] staging: wfx: fix highest Rx value declared in ieee80211_supported_band Date: Mon, 27 Apr 2020 15:40:22 +0200 Message-Id: <20200427134031.323403-9-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200427134031.323403-1-Jerome.Pouiller@silabs.com> References: <20200427134031.323403-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PR0P264CA0232.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::28) To MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.home (2a01:e35:2435:66a0:544b:f17b:7ae8:fb7) by PR0P264CA0232.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13 via Frontend Transport; Mon, 27 Apr 2020 13:41:17 +0000 X-Mailer: git-send-email 2.26.1 X-Originating-IP: [2a01:e35:2435:66a0:544b:f17b:7ae8:fb7] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3383b784-e967-481b-15d3-08d7eab0ab25 X-MS-TrafficTypeDiagnostic: MWHPR11MB1424: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-Forefront-PRVS: 0386B406AA X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1775.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(136003)(39850400004)(376002)(346002)(396003)(366004)(8886007)(66476007)(66556008)(4744005)(4326008)(81156014)(86362001)(8936002)(6486002)(52116002)(6666004)(6506007)(5660300002)(16526019)(6512007)(1076003)(478600001)(8676002)(36756003)(186003)(2616005)(54906003)(107886003)(66574012)(2906002)(316002)(66946007); DIR:OUT; SFP:1101; Received-SPF: None (protection.outlook.com: silabs.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q/1XJupTjPYq0sCCH0R44mnao4/5sG1nGuuechHGjbPeLF4rNE50gMz4Zg8MXsPXweFj7e7pBDdbCfyL5RIUkgZBLI+4rhdDbY9+9ZYhvp0GxQ8SIOrleE+WSuhPFY+4zCiNQL5+47eS2mIN6bkvdkAwE7MuEY5i7TVTDm05LDErbaIEdtWfUwwH+QkiyRla1Yn7t2Pl24dAXFfti0Ba4LO4y56/hoMRExF39XWLd+o1AwBduejGR//Qd452I8Wzps64ZcTnQXypAmvhi6aF3Xo2H4xRv5JXflkP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s.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3383b784-e967-481b-15d3-08d7eab0ab25 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2020 13:41:20.6990 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AZ/HkmTCTFLt27RL1TbCOaOKQpv+jsnkJSnveze61ptkiqn+gkRLiQyLwiu89goJUdF0GHbkkS6JzV2+cRsJ0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1424 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The highest Rx value declared in ieee80211_supported_band had two problems: 1. The value should be little endian 2. ShortGI was not taken into account. So value should be 72 instead of 65. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 1093584373ad..742a286c9207 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -106,7 +106,7 @@ static const struct ieee80211_supported_band wfx_band_2ghz = { .ampdu_density = IEEE80211_HT_MPDU_DENSITY_NONE, .mcs = { .rx_mask = { 0xFF }, // MCS0 to MCS7 - .rx_highest = 65, + .rx_highest = cpu_to_le16(72), .tx_params = IEEE80211_HT_MCS_TX_DEFINED, }, },