From patchwork Tue Nov 17 16:50:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 60731 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAHGoXfc008185 for ; Tue, 17 Nov 2009 16:50:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754910AbZKQQuM (ORCPT ); Tue, 17 Nov 2009 11:50:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755078AbZKQQuL (ORCPT ); Tue, 17 Nov 2009 11:50:11 -0500 Received: from smtp.nokia.com ([192.100.122.230]:53020 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754806AbZKQQuK (ORCPT ); Tue, 17 Nov 2009 11:50:10 -0500 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nAHGo4pO019880; Tue, 17 Nov 2009 18:50:05 +0200 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 17 Nov 2009 18:50:04 +0200 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 17 Nov 2009 18:50:03 +0200 Received: from [127.0.1.1] (trdhcp14579.ntc.nokia.com [172.22.145.79]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nAHGo0Aj011843; Tue, 17 Nov 2009 18:50:01 +0200 From: Kalle Valo Subject: [PATCH 15/16] wl1251: remove depcreated qual usage To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org Date: Tue, 17 Nov 2009 18:50:01 +0200 Message-ID: <20091117165000.2236.74825.stgit@tikku> In-Reply-To: <20091117164614.2236.8543.stgit@tikku> References: <20091117164614.2236.8543.stgit@tikku> User-Agent: StGIT/0.14.2 MIME-Version: 1.0 X-OriginalArrivalTime: 17 Nov 2009 16:50:03.0917 (UTC) FILETIME=[02971BD0:01CA67A6] X-Nokia-AV: Clean Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/wl12xx/wl1251_rx.c b/drivers/net/wireless/wl12xx/wl1251_rx.c index 601fe0d..f84cc89 100644 --- a/drivers/net/wireless/wl12xx/wl1251_rx.c +++ b/drivers/net/wireless/wl12xx/wl1251_rx.c @@ -72,10 +72,6 @@ static void wl1251_rx_status(struct wl1251 *wl, } status->signal = desc->rssi; - status->qual = (desc->rssi - WL1251_RX_MIN_RSSI) * 100 / - (WL1251_RX_MAX_RSSI - WL1251_RX_MIN_RSSI); - status->qual = min(status->qual, 100); - status->qual = max(status->qual, 0); /* * FIXME: guessing that snr needs to be divided by two, otherwise