Patchwork AP: remove ssi_signal from ap_info

login
register
mail settings
Submitter Johannes Berg
Date March 5, 2012, 8:03 a.m.
Message ID <1330934612.3545.6.camel@jlt3.sipsolutions.net>
Download mbox | patch
Permalink /patch/144618/
State Accepted
Commit c8c340a9f639da0e6e5b0b126b43cce055ab8fc5
Headers show

Comments

Johannes Berg - March 5, 2012, 8:03 a.m.
From: Johannes Berg <johannes.berg@intel.com>

It is never used.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>
---
 src/ap/ap_list.c |    4 +---
 src/ap/ap_list.h |    1 -
 2 files changed, 1 insertions(+), 4 deletions(-)
Jouni Malinen - March 5, 2012, 2:39 p.m.
On Mon, Mar 05, 2012 at 09:03:32AM +0100, Johannes Berg wrote:
> It is never used.

Thanks, applied.

Patch

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;