2007-04-23 04:55:33

by Larry Finger

[permalink] [raw]
Subject: [PATCH] mac80211: Add channel to scan results

The scan results from mac80211 list only the frequency for any access
point found. This patch adds the channel to the output as well.

Signed-off-by: Larry Finger <[email protected]>
---


Index: wireless-dev/net/mac80211/ieee80211_sta.c
===================================================================
--- wireless-dev.orig/net/mac80211/ieee80211_sta.c
+++ wireless-dev/net/mac80211/ieee80211_sta.c
@@ -2971,6 +2971,10 @@ ieee80211_sta_scan_result(struct net_dev

memset(&iwe, 0, sizeof(iwe));
iwe.cmd = SIOCGIWFREQ;
+ iwe.u.freq.m = bss->channel;
+ iwe.u.freq.e = 0;
+ current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe,
+ IW_EV_FREQ_LEN);
iwe.u.freq.m = bss->freq * 100000;
iwe.u.freq.e = 1;
current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe,



2007-04-28 13:28:50

by Jiri Benc

[permalink] [raw]
Subject: Re: [PATCH] mac80211: Add channel to scan results

Sun, 22 Apr 2007 23:54:55 -0500, Larry Finger pise:
> The scan results from mac80211 list only the frequency for any access
> point found. This patch adds the channel to the output as well.

Applied, thanks!

Jiri

--
Jiri Benc
SUSE Labs