Return-path: Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:43754 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1168417AbcKAKYm (ORCPT ); Tue, 1 Nov 2016 06:24:42 -0400 From: Xinming Hu To: Brian Norris , Xinming Hu CC: Linux Wireless , Kalle Valo , Dmitry Torokhov , Amitkumar Karwar , Cathy Luo , Shengzhen Li Subject: RE: [PATCH 02/12] mwifiex: check tx_hw_pending before downloading sleep confirm Date: Tue, 1 Nov 2016 10:24:35 +0000 Message-ID: <466df51c1b9a4869b42f204df5f76f6a@SC-EXCH02.marvell.com> (sfid-20161101_112446_366277_2E4ED3CD) References: <1477900940-10549-1-git-send-email-huxinming820@marvell.com> <1477900940-10549-2-git-send-email-huxinming820@marvell.com> <20161101001437.GB101079@google.com> In-Reply-To: <20161101001437.GB101079@google.com> Content-Type: text/plain; charset="gb2312" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: SGkgQnJhaW4sDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogbGludXgt d2lyZWxlc3Mtb3duZXJAdmdlci5rZXJuZWwub3JnDQo+IFttYWlsdG86bGludXgtd2lyZWxlc3Mt b3duZXJAdmdlci5rZXJuZWwub3JnXSBPbiBCZWhhbGYgT2YgQnJpYW4gTm9ycmlzDQo+IFNlbnQ6 IDIwMTbE6jEx1MIxyNUgODoxNQ0KPiBUbzogWGlubWluZyBIdQ0KPiBDYzogTGludXggV2lyZWxl c3M7IEthbGxlIFZhbG87IERtaXRyeSBUb3Jva2hvdjsgQW1pdGt1bWFyIEthcndhcjsgQ2F0aHkg THVvOw0KPiBTaGVuZ3poZW4gTGkNCj4gU3ViamVjdDogUmU6IFtQQVRDSCAwMi8xMl0gbXdpZmll eDogY2hlY2sgdHhfaHdfcGVuZGluZyBiZWZvcmUgZG93bmxvYWRpbmcNCj4gc2xlZXAgY29uZmly bQ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