Return-path: Received: from mail-ew0-f165.google.com ([209.85.219.165]:38868 "EHLO mail-ew0-f165.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761845AbZCaRTA (ORCPT ); Tue, 31 Mar 2009 13:19:00 -0400 Received: by ewy9 with SMTP id 9so2676541ewy.37 for ; Tue, 31 Mar 2009 10:18:57 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <200903311159.57449.rossi.f@inwind.it> References: <200903311159.57449.rossi.f@inwind.it> Date: Tue, 31 Mar 2009 20:18:55 +0300 Message-ID: <40f31dec0903311018u104ea3c4x165829ade89b2e76@mail.gmail.com> (sfid-20090331_191906_451636_9FC6DCF5) Subject: Re: [PATCH] ath5k: fix interpolation with equal power levels From: Nick Kossifidis To: Fabio Rossi Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org, jirislaby@gmail.com, lrodriguez@atheros.com, me@bobcopeland.com, ath5k-devel@lists.ath5k.org Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: MjAwOS8zLzMxIEZhYmlvIFJvc3NpIDxyb3NzaS5mQGlud2luZC5pdD46Cj4gV2hlbiB0aGUgRUVQ Uk9NIGNvbnRhaW5zIHdlaXJkIHZhbHVlcyBmb3IgdGhlIHBvd2VyIGxldmVscyB3ZSBoYXZlIHRv Cj4gZml4IHRoZSBpbnRlcnBvbGF0aW9uIHByb2Nlc3MuCj4KPiBTaWduZWQtb2ZmLWJ5OiBGYWJp byBSb3NzaSA8cm9zc2kuZkBpbndpbmQuaXQ+Cj4gLS0tCj4gZGlmZiAtLWdpdCBhL2RyaXZlcnMv bmV0L3dpcmVsZXNzL2F0aDVrL3BoeS5jIGIvZHJpdmVycy9uZXQvd2lyZWxlc3MvYXRoNWsvcGh5 LmMKPiBpbmRleCA5ZTJmYWFlLi4wZTNlMGUwIDEwMDY0NAo+IC0tLSBhL2RyaXZlcnMvbmV0L3dp cmVsZXNzL2F0aDVrL3BoeS5jCj4gKysrIGI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