2007-04-14 00:19:51

by Michael Wu

[permalink] [raw]
Subject: [PATCH] mac80211: remove redundant rssi information in scan results

mac80211: remove redundant rssi information in scan results

From: Michael Wu <[email protected]>

rssi is already reported in IWEVQUAL. Remove the custom event that also
reported rssi.

Signed-off-by: Michael Wu <[email protected]>
---

net/mac80211/ieee80211_sta.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index 2678b95..1648c76 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -3047,13 +3047,6 @@ ieee80211_sta_scan_result(struct net_device *dev,

memset(&iwe, 0, sizeof(iwe));
iwe.cmd = IWEVCUSTOM;
- sprintf(buf, "rssi=%d", bss->rssi);
- iwe.u.data.length = strlen(buf);
- current_ev = iwe_stream_add_point(current_ev, end_buf, &iwe,
- buf);
-
- memset(&iwe, 0, sizeof(iwe));
- iwe.cmd = IWEVCUSTOM;
sprintf(buf, "capab=0x%04x", bss->capability);
iwe.u.data.length = strlen(buf);
current_ev = iwe_stream_add_point(current_ev, end_buf, &iwe,


Attachments:
(No filename) (0.99 kB)
(No filename) (189.00 B)
Download all attachments