Message ID | 20200820155858.351292-7-Jerome.Pouiller@silabs.com |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=B0Ps=B6=vger.kernel.org=netdev-owner@kernel.org> 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=-11.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, RCVD_ILLEGAL_IP, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, 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 5AE22C433E1 for <netdev@archiver.kernel.org>; Thu, 20 Aug 2020 16:00:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1ED3E206DA for <netdev@archiver.kernel.org>; Thu, 20 Aug 2020 16:00:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.b="giQ+d6Nm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729601AbgHTQAX (ORCPT <rfc822;netdev@archiver.kernel.org>); Thu, 20 Aug 2020 12:00:23 -0400 Received: from mail-dm6nam12on2046.outbound.protection.outlook.com ([40.107.243.46]:36576 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729530AbgHTQAB (ORCPT <rfc822;netdev@vger.kernel.org>); Thu, 20 Aug 2020 12:00:01 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LvE0E/j9ccyezFe4cyujVUKLipwms4n0YJ+4K+q9JJJvqaRuUY3ZR2T6QPvDGoFoXGIxDxvDo1gzDXzVHIUSnd421pp0c9TEZtw2PvyG5B5us3Lmt3KrJAmv0J32axFrzJbIAWM9Lsc/SofhjnP6r5IhbzHVgSugt/WFNPb5b1bO8M7MbXzACdbcMGe1zGk6NgGi494CtU5IG2YEp1e4WdAaGJdhqnIiZipqrowfaonxZJ8X+cKMb8ZoDSU/Ec2f7dXDq0VRGnmEQkItCVi3stK5AYeyBvb8MqKjfjsCjJrZJTEqAn+tIIDlqZ8EWVCQpKXfiOd+xmzaOoAbMvek9Q== 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=y8gYD71gy7M3i6aldIw6atZ5i4c/cPN6j8VNbcXEVXE=; b=ikK5GLsjo1oX9iYugjGAUIeLIzn8w05/cnOZwsaBlOn57CtmGdVAvYOSNMZTKcl2tx7EnXYx3Jk+kG9pckx+Bmg8BpkYGfHfqvZa+kcApZMXAe+zI8/fFw3qfIpfbL5fSgMx8b4FMmyAdvFO5xak/I2NI2OrYIIaY30hGsGCAFVGbbSUZ1ClgqW79bU8XOefgQ027ankPEWUhrGst9NdY4uB6mDBINXtDZkg2Ylms0wTFNnFWq/DrV9+QENobf1AXuKCE+S60+uN4c59TducLPKLPwztgxfdBSn6EwbFD17OodvcNKIpVDf9N+pYLEYtjI45Pah+fz5Loiic3iFROw== 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=y8gYD71gy7M3i6aldIw6atZ5i4c/cPN6j8VNbcXEVXE=; b=giQ+d6NmbE/2Ii0ngdZ0uZ0tR+4reEvsDb/uxGkiWW/7Fuc4Mi38DhIvPoUvyToDIFxK/ndPJqTVotnv30aJLYij66Ye8tDOsSkuFyN/ZZ2k0h7JdUJwQcgY3K+U9ov5cb5DHSI0BeQu2Y8F8a93GA2lwMblELlrr47V7Ej2yK0= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA0PR11MB4541.namprd11.prod.outlook.com (2603:10b6:806:94::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.25; Thu, 20 Aug 2020 15:59:33 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::85c9:1aa9:aeab:3fa6]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::85c9:1aa9:aeab:3fa6%4]) with mapi id 15.20.3305.026; Thu, 20 Aug 2020 15:59:33 +0000 From: Jerome Pouiller <Jerome.Pouiller@silabs.com> To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Kalle Valo <kvalo@codeaurora.org>, "David S . Miller" <davem@davemloft.net>, =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= <jerome.pouiller@silabs.com> Subject: [PATCH 07/12] staging: wfx: fix frame reordering Date: Thu, 20 Aug 2020 17:58:53 +0200 Message-Id: <20200820155858.351292-7-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820155858.351292-1-Jerome.Pouiller@silabs.com> References: <20200820155858.351292-1-Jerome.Pouiller@silabs.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-ClientProxiedBy: PR0P264CA0122.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1a::14) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 255.255.255.255 (255.255.255.255) by PR0P264CA0122.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24 via Frontend Transport; Thu, 20 Aug 2020 15:59:32 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [37.71.187.125] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a25de83f-7f8e-4226-0dfa-08d8452207b2 X-MS-TrafficTypeDiagnostic: SA0PR11MB4541: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <SA0PR11MB4541D6428967DA75B5736A78935A0@SA0PR11MB4541.namprd11.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JRe8xhAh4Yi8PVP7qr0BdQwCK1nPaoCjTIzaW07yNYzFj7+0VJXoTqMFdarEes+rWad25JXWgd8n9U+tQX8cyCgWcVYisw77o+jHl6tmQZ+ee+lD8flXzftXaku/nC9Vj3ux5rtTEETXYcKTgCqxT3GJqC8V207tBkJYhvfVVfMdMVzqo1KXD5zwkthwzNnvzeocslaWUE11r+R/EsVinEB4S32mw+09JmIJY6dPyK5CfHhtvS42ZP8RI4vbzyXgpFe+97RAzu7ZKFAUj7DUHf5hsBdjRKu1CK51M1dwIJJhLnFtPJaEaKK4P8iL4k7vT4gKfOB0n4EdhU252m0w2Fe+0QWiNzNb5SsUaAsniGiYL6TRVMJlzmPf1nYBDS60 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(396003)(39850400004)(366004)(346002)(136003)(186003)(6666004)(2906002)(8676002)(316002)(16576012)(54906003)(956004)(26005)(66574015)(8936002)(2616005)(110011004)(52116002)(83380400001)(107886003)(1076003)(5660300002)(478600001)(36756003)(4326008)(66476007)(66556008)(66946007)(86362001)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: eF9jxYMvXsDS889+XqOzrxJshFXioqgU2S5HvpmShuG+QOyEJVMdCsMuCD+iWRPP/bM3G1FIw5eVHCcCuhBjW6FoKVIPEz7Kh7oB2UJ5cHEdwKrf65Jt/l3JksZF8Qyh8DRkIpNPo9tkl4RdxeM+HoAs6ZW+VUVqrjq4a3qw4nl6WPB6U6aQxmB7fEbcV2ttzwXQDXb2Qu0iZN5UdPgMaYAIw+MO2sE6lHKtsnG5HGAdFa3pEww6ZovAeajkA2a3RuxbPMOIKyhcQ0kUccDqKiPtQeKFtMIite9siUnMJ+ofnbrwuzSRqvHxnC6gsg9aptkUqJE8GflmDEQ4voqG0RC6qbRstgRr3y6FdsifNvaNqfWuGvdrhgaYsNkZdMH4mWMsybepUeuSQ4bF/3q4N4H3US1Uod6VBg7HLyQQaKuxiNMxzYrP4nGNU2Brkblj8s2YAGCaATXtWJhme+/rIbhfdE578VibnvyKyiWK5TYRp8W+ZAh2vgFdprVQH2ft8zJcq0jdPsOduGLEjtVYq2IZd/77T8kOZt8T0kPk07bREgc9elkhenYYDIS8NYyq73hS6+TIMpPKYmSY55MVK6wxutLjQIR8euc93xbv66oKMI0t+AeMYeAiOgb33Y5oVlm0ooi6zAf7GaWb3rzXAg== X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: a25de83f-7f8e-4226-0dfa-08d8452207b2 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2020 15:59:33.4648 (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: BxTVTuw0j9NjkRRrV4m/9wO4+08I5qBYk8G58UZSiMPArF/5gxvlhQYv7M230TALQLNEnEJwuPbhN0tApJWc9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4541 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series | None | expand |
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 20db4bbdd901..b18a0b61b7c0 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -674,15 +674,16 @@ int wfx_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_ampdu_params *params) { - /* Aggregation is implemented fully in firmware, - * including block ack negotiation. Do not allow - * mac80211 stack to do anything: it interferes with - * the firmware. - */ - - /* Note that we still need this function stubbed. */ - - return -ENOTSUPP; + // Aggregation is implemented fully in firmware + switch (params->action) { + case IEEE80211_AMPDU_RX_START: + case IEEE80211_AMPDU_RX_STOP: + // Just acknowledge it to enable frame re-ordering + return 0; + default: + // Leave the firmware doing its business for tx aggregation + return -ENOTSUPP; + } } int wfx_add_chanctx(struct ieee80211_hw *hw,