Search Linux Wireless

Re: Patch for linux wireless extension

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

 



On Fri, 2008-03-07 at 14:00 +1100, hce wrote:
> On Fri, Mar 7, 2008 at 1:00 AM, Dan Williams <dcbw@xxxxxxxxxx> wrote:
> >
> > On Thu, 2008-03-06 at 21:37 +1100, hce wrote:
> >  > On 3/5/08, Dan Williams <dcbw@xxxxxxxxxx> wrote:
> >  > > On Tue, 2008-03-04 at 11:26 +0100, Johannes Berg wrote:
> >  > >  > Jim,
> >  > >  >
> >  > >  > > I am running a wifi device on kernel 2.6.11 and wireless extension
> >  > >  > > version 17 for an ARM processor, it works fine with an open AP and
> >  > >  > > wpa_supplicant 0.5.8.
> >  > >  >
> >  > >  > That's ancient.
> >  > >  >
> >  > >  > > Now I would like to support WEP and WPA. I know
> >  > >  > > the best is to upgrade to latest kernel, but I am not in the position
> >  > >  > > to do it as various reasons.
> >  > >  >
> >  > >  > Upgrade anyway.
> >  > >  >
> >  > >  > > An alternative as people suggested is to
> >  > >  > > do a wireless extension patch which supports WEP and WPA on kernel
> >  > >  > > 2.6.11. Any advice if it is feasible and where can I find the wireless
> >  > >  > > extension patch for WEP and WPA on kernel 2.6.11 please?
> >  > >  >
> >  > >  > Hahaha. We'll you'll have to *make* that patch and invest a
> >  > >  > *significant* amount of time into that.
> >  > >
> >  > >
> >  > > Yeah; it's not just the defines and whatnot in wireless.h; you probably
> >  > >  also want to update wireless-tools too, then you have to update your
> >  > >  driver as well.  It's not hugely complex, but it's going to be a lot of
> >  > >  boring work :)
> >  > >
> >  > >
> >  > >  Dan
> >  >
> >  > I've just upgrade wireless extension version 18 which supports WPA (Is
> >  > it for WEP as well?), with replaced two files of version 18 wireless.h
> >  > and wireless.c in the kernel 2.6.11. Please correct me if I missed
> >  > other source files in the kernel.
> >  >
> >  > The wireless-tools we are using come from different sources, the
> >  > iwconfig was from busybox 1.3 and wpa_supplicant 0.5.8 was compiled to
> >  > our firmware. The initial test for WEP set up was not good, but I was
> >  > told, the wireless extension vresion 18 only supports WPA not WEP,
> >  > please advice.
> >
> >  Incorrect.  WE-18 _added_ support for WPA ioctls but did not remove
> >  support for WEP.  You'll just have to debug stuff and find out what's
> >  going wrong.
> 
> Thanks Dan.
> 
> There was an error of "ioctl[SIOCSIWENCODEEXT]: Input/output error". I
> looked at wireless.h and wireless.c of WE18, that the
> "SIOCSIWENCODEEXT" is defined and it also defines following in the
> static const struct iw_ioctl_description standard_ioctl[]
> 
> [SIOCSIWENCODEEXT - SIOCIWFIRST] = {
>         .header_type    = IW_HEADER_TYPE_POINT,
>         .token_size = 1,
>         .min_tokens = sizeof(struct iw_encode_ext),
>         .max_tokens = sizeof(struct iw_encode_ext) +
>                 IW_ENCODING_TOKEN_MAX,
>     },
> 
> What could I be missing for that ioctl[SIOCSIWENCODEEXT] in the kernel?

Well, if you want to support WPA you _also_ have to update your driver
with the ENCODEEXT and AUTH calls, and have your driver deliver WPA and
RSN IEs in the scan results with the GENIE tag.

There might also be something wrong with the backport, the IO error
reported looks odd.  I'm not an expert on the implementation of WEXT in
wireless.c though and I'm unsure what the exact path is that the ioctl
takes before it gets to the driver :(

Dan


--
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