Return-path: Received: from wolverine01.qualcomm.com ([199.106.114.254]:10544 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755843AbaHEGPK (ORCPT ); Tue, 5 Aug 2014 02:15:10 -0400 From: qca_dlansky To: Florian Fainelli , "John W . Linville" CC: "linux-wireless@vger.kernel.org" , wil6210 , qca_vkondrat Subject: RE: [PATCH 04/14] wil6210: Optimization for Interrupt moderation threshold value Date: Tue, 5 Aug 2014 06:15:07 +0000 Message-ID: <65502A17874025489B7D8479C16CFA635C754BB1@nasanexd02f.na.qualcomm.com> (sfid-20140805_081516_721012_35BD8562) References: <1407140454-31639-1-git-send-email-qca_dlansky@qca.qualcomm.com> <1407140454-31639-5-git-send-email-qca_dlansky@qca.qualcomm.com> <53DFC52A.4030904@gmail.com> In-Reply-To: <53DFC52A.4030904@gmail.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: SGksDQoNCldlIHdpbGwgdGFrZSBhIGxvb2sgYXQgZXRodG9vbDo6c2V0X2NvYWxlc2NlIGFuZCBj b21lIHVwIHdpdGggYXBwcm9wcmlhdGUgaW1wbGVtZW50YXRpb24gZm9yIHRoaXMgcGF0Y2guDQpJ J20gZ29pbmcgdG8gcmUtdXBsb2FkIHRoZSByZW1haW5pbmcgMTMgcGF0Y2hlcyBzaG9ydGx5IGlm IHRoYXQncyBPSy4NCg0KVGhhbmtzLA0KIERlZHkuDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0t LS0tDQpGcm9tOiBsaW51eC13aXJlbGVzcy1vd25lckB2Z2VyLmtlcm5lbC5vcmcgW21haWx0bzps aW51eC13aXJlbGVzcy1vd25lckB2Z2VyLmtlcm5lbC5vcmddIE9uIEJlaGFsZiBPZiBGbG9yaWFu IEZhaW5lbGxpDQpTZW50OiBNb25kYXksIEF1Z3VzdCAwNCwgMjAxNCA4OjM5IFBNDQpUbzogcWNh X2RsYW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