Search Linux Wireless

Re: iwl4965 - wpa_supplicant can't see 5Ghz frequencies - 2.6.26-rc1 kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tomas Winkler <tomasw@...> writes:

> 
> On Thu, May 22, 2008 at 8:42 PM, Dann Church <dann.church@...> wrote:
> > Tomas Winkler <tomasw@...> writes:
> >
> >>
> >> On Mon, May 12, 2008 at 9:37 PM, Vincent C Jones
> >> <v.jones@...> wrote:
> >> >
> >> > On Mon, 2008-05-12 at 19:50 +0300, Tomas Winkler wrote:
> >> >
> >> >> Meanwhile we've reproduced the wpa_supplicant issue...
> >> >>
> >> >
> >> > That is great news. Let me know when it is time to test again...
> >>
> >> Please try this one. I've just pasted that in so it's might be
> >> white-space-wise broken
> >
> > I have this same issue running fedora core 9 with a kernel version
> > 2.6.25.3-18.fc9.i686.PAE.  Any chance this patch would work on such a kernel
> > (assuming I recompiled it from source)?
> >
> >
> Yes it will please try it out
> Thanks
> Tomas
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@...
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
I'm happy to report that I have made the equivalent changes to ieee80211_sta.c
in the 2.6.25 kernel on my FC9 box and it works as expected.  I didn't do the
wpa_supplicant fix mentioned later in this thread as it didn't seem necessary in
my case.

Here's the patch I generated (which isn't conceptually different from the
previous one posted) in case anyone needs it for such a kernel:

diff -uNrp linux-2.6.25.noarch/net/mac80211/ieee80211_sta.c
kernel-2.6.25.new/linux-2.6.25.i686/net/mac80211/ieee80211_sta.c
--- linux-2.6.25.noarch/net/mac80211/ieee80211_sta.c	2008-05-23
10:23:15.000000000 -0600
+++ linux-2.6.25.noarch/net/mac80211/ieee80211_sta.c	2008-05-23
10:28:44.000000000 -0600
@@ -4035,15 +4035,15 @@ ieee80211_sta_scan_result(struct net_dev
 
 	memset(&iwe, 0, sizeof(iwe));
 	iwe.cmd = SIOCGIWFREQ;
-	iwe.u.freq.m = bss->freq;
-	iwe.u.freq.e = 6;
+	iwe.u.freq.m = ieee80211_frequency_to_channel(bss->freq);
+	iwe.u.freq.e = 0;
 	current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe,
 					  IW_EV_FREQ_LEN);
 
 	memset(&iwe, 0, sizeof(iwe));
 	iwe.cmd = SIOCGIWFREQ;
-	iwe.u.freq.m = ieee80211_frequency_to_channel(bss->freq);
-	iwe.u.freq.e = 0;
+	iwe.u.freq.m = bss->freq;
+	iwe.u.freq.e = 6;
 	current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe,
 					  IW_EV_FREQ_LEN);
 

Thanks for tracking this issue down!

--Dann






--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux