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=-7.0 required=3.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 4706DC43387 for ; Fri, 4 Jan 2019 12:49:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0876A208E3 for ; Fri, 4 Jan 2019 12:49:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727465AbfADMss (ORCPT ); Fri, 4 Jan 2019 07:48:48 -0500 Received: from mail-oln040092068052.outbound.protection.outlook.com ([40.92.68.52]:21312 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725913AbfADMsm (ORCPT ); Fri, 4 Jan 2019 07:48:42 -0500 Received: from HE1EUR02FT009.eop-EUR02.prod.protection.outlook.com (10.152.10.58) by HE1EUR02HT015.eop-EUR02.prod.protection.outlook.com (10.152.11.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1471.13; Fri, 4 Jan 2019 12:48:38 +0000 Received: from DB7PR07MB5353.eurprd07.prod.outlook.com (10.152.10.52) by HE1EUR02FT009.mail.protection.outlook.com (10.152.10.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1471.13 via Frontend Transport; Fri, 4 Jan 2019 12:48:38 +0000 Received: from DB7PR07MB5353.eurprd07.prod.outlook.com ([fe80::e1f9:8635:f629:eb8e]) by DB7PR07MB5353.eurprd07.prod.outlook.com ([fe80::e1f9:8635:f629:eb8e%4]) with mapi id 15.20.1516.000; Fri, 4 Jan 2019 12:48:38 +0000 From: Bernd Edlinger To: Ping-Ke Shih , Larry Finger , Kalle Valo , "David S. Miller" , "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH 1/4] rtlwifi: rtl8723ae: Take the FW LPS mode handling out Thread-Topic: [PATCH 1/4] rtlwifi: rtl8723ae: Take the FW LPS mode handling out Thread-Index: AQHUpCvPwWPgT51ue0O3JoR8mq9joA== Date: Fri, 4 Jan 2019 12:48:37 +0000 Message-ID: Accept-Language: en-US, en-GB, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR0201CA0020.eurprd02.prod.outlook.com (2603:10a6:203:3d::30) To DB7PR07MB5353.eurprd07.prod.outlook.com (2603:10a6:10:6e::26) x-incomingtopheadermarker: OriginalChecksum:F65FC2DAA506C115788BAEECCEC77591E925FE15A1629708F727F7657872AB07;UpperCasedChecksum:6CB205A53DBE57A6ED15B3EC2F98DF376A124A034472A3B43612C0698AE06942;SizeAsReceived:8763;Count:62 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [IFcncr/GriuuOUBiY3vPDgAtXCDBdt+G] x-microsoft-original-message-id: <58a45880-a96c-70c0-0d6d-e0e9c39537b9@hotmail.de> x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HE1EUR02HT015;6:ZlOAQ34PDsn6Z5iaT6QMy7wfGCPFg0kSfHLpZObtxPUseY0pY7OgSMgJjdAJLb3+9+z/x+uzBtY4PAkBxs6hcRSBNndfq3AR7tQwsLxCFdKCIDSw+yiue9SWGdfkTlPTsa2jq5gGwJPsjT/Tibt9PTv3h1uujZNwixP9yKZot7XurbiaD1O+NbPcTvIwbuVZp+zd2N97jGr3caeVS1z97+DYUODxoJTW9QPAlSEe3KpCMahbh+Or0BSlrAVlRh9nabP3XuiwH0RC4R4W5zLk611050MJDSusPl7IixESyRtGiBvkcbfVs8fmjiN1CG2jyzp04zC1vQmU8zP488bvihfQmWTMdz/yRVJQdzi74A2MLsUkdzOxzcJHv2RfQ4wCnn2xM7pajJUpBeqS2qxIb2uAqGMwZjMm4ceeWjual2GxAvr5zSAU49WoQJ9GZDpySwSFHi31waphlc2DUMd/WA==;5:dKm8WrNaP5NPGx8th6bSgpqYlM+HztSUSv9a6/xYcYqosL3yFMkmQSr+wf09gbjAuPEPBnMFdNkKS04ZDDSMdRnBpkV8IkRi9LnxxLYNnhPdvJSNT8r4GrnhWR8nuhodVG8kGiqWVOe9wb3zZh5/nT04deooZOP+owqSp7J3Ap8=;7:CwyfP2Q65stLMMfFfhAQt7FRCOwRHte6ixJWpDy5XUangQ0RYnw5wmsLNJm7Du32S2PzT+RqU0HqZx3SBP0IxRWYf7KTsYHjzpAMSXBIdGjV3Dt3hgxMNzAQfYWLSMxvTkiWuKsja9Y7HOH68KDLwg== x-incomingheadercount: 62 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:HE1EUR02HT015; x-ms-traffictypediagnostic: HE1EUR02HT015: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(4566010)(82015058);SRVR:HE1EUR02HT015;BCL:0;PCL:0;RULEID:;SRVR:HE1EUR02HT015; x-microsoft-antispam-message-info: 1RYPzCw1hR8v9O2KdiXMVgrDhAX2pooCFOEzWc3KmlUoLqG7r6Aq7ZPSDb0lJzTy Content-Type: text/plain; charset="utf-8" Content-ID: <77BCC8A5BDCDEF44A6C9237DF78B5080@eurprd07.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: d4d70346-2c10-4f39-8c00-e767963926d9 X-MS-Exchange-CrossTenant-Network-Message-Id: 4d28e800-430a-4a4e-4e42-08d67242f23d X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: d4d70346-2c10-4f39-8c00-e767963926d9 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jan 2019 12:48:37.1859 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT015 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org VGhpcyBhcHBlYXJzIHRvIHRyaWdnZXIgYSBmaXJtd2FyZSBidWcgYW5kIGNhdXNlcyBzZXZlcmUN CnByb2JsZW1zIHdpdGggcnRsODcyM2FlIFBDSSBkZXZpY2VzLg0KDQpXaGVuIHRoZSBwb3dlciBz YXZlIG1vZGUgaXMgYWN0aXZhdGVkIGZvciBsb25nZXIgcGVyaW9kcw0Kb2YgdGltZSB0aGUgZmly bXdhcmUgc3RvcHMgdG8gcmVjZWl2ZSBhbnkgcGFja2V0cy4NCg0KVGhpcyBwcm9ibGVtIHdhcyBl eHBvc2VkIGJ5IGNvbW1pdCA4NzNmZmUxNTRhZTAgKCJydGx3aWZpOg0KRml4IGxvZ2ljIGVycm9y IGluIGVudGVyL2V4aXQgcG93ZXItc2F2ZSBtb2RlIikuDQoNClByZXZpb3VzbHkgdGhlIHBvd2Vy IHNhdmUgbW9kZSB3YXMgb25seSBhY3RpdmUgcmFyZWx5IGFuZA0Kb25seSBmb3IgYSBzaG9ydCB0 aW1lIHNvIHRoYXQgdGhlIHByb2JsZW0gd2FzIG5vdCBub3RpY2VhYmxlLg0KDQpTaWduZWQtb2Zm LWJ5OiBCZXJuZCBFZGxpbmdlciA8YmVybmQuZWRsaW5nZXJA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