From patchwork Mon Mar 5 08:03:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 144618 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id B1FD5B6F9D for ; Mon, 5 Mar 2012 19:03:50 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 9BBD69D1DF; Mon, 5 Mar 2012 03:03:46 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kIZWYgI-PRaL; Mon, 5 Mar 2012 03:03:46 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 5FCF79C2E5; Mon, 5 Mar 2012 03:03:42 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E72A59C2E5 for ; Mon, 5 Mar 2012 03:03:40 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C2vzcOpSx4Ec for ; Mon, 5 Mar 2012 03:03:36 -0500 (EST) Received: from sipsolutions.net (he.sipsolutions.net [78.46.109.217]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 188639C1B9 for ; Mon, 5 Mar 2012 03:03:36 -0500 (EST) Received: by sipsolutions.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.77) (envelope-from ) id 1S4StK-0006zZ-Cc for hostap@lists.shmoo.com; Mon, 05 Mar 2012 09:03:34 +0100 Subject: [PATCH] AP: remove ssi_signal from ap_info From: Johannes Berg To: hostap@lists.shmoo.com Date: Mon, 05 Mar 2012 09:03:32 +0100 Message-ID: <1330934612.3545.6.camel@jlt3.sipsolutions.net> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com From: Johannes Berg It is never used. Signed-hostap: Johannes Berg --- src/ap/ap_list.c | 4 +--- src/ap/ap_list.h | 1 - 2 files changed, 1 insertions(+), 4 deletions(-) diff --git a/src/ap/ap_list.c b/src/ap/ap_list.c index b4252cf..165cb16 100644 --- a/src/ap/ap_list.c +++ b/src/ap/ap_list.c @@ -289,10 +289,8 @@ void ap_list_process_beacon(struct hostapd_iface *iface, ap->num_beacons++; os_get_time(&now); ap->last_beacon = now.sec; - if (fi) { - ap->ssi_signal = fi->ssi_signal; + if (fi) ap->datarate = fi->datarate; - } if (!new_ap && ap != iface->ap_list) { /* move AP entry into the beginning of the list so that the diff --git a/src/ap/ap_list.h b/src/ap/ap_list.h index 201f6ec..f0b4125 100644 --- a/src/ap/ap_list.h +++ b/src/ap/ap_list.h @@ -34,7 +34,6 @@ struct ap_info { int channel; int datarate; /* in 100 kbps */ - int ssi_signal; int ht_support;