* Patch for linux wireless extension @ 2008-03-04 3:01 hce 2008-03-04 10:26 ` Johannes Berg 0 siblings, 1 reply; 7+ messages in thread From: hce @ 2008-03-04 3:01 UTC (permalink / raw) To: linux-wireless Hi, 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. 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. 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? Thank you. Kind Regards, Jim ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Patch for linux wireless extension 2008-03-04 3:01 Patch for linux wireless extension hce @ 2008-03-04 10:26 ` Johannes Berg 2008-03-04 13:58 ` Dan Williams 0 siblings, 1 reply; 7+ messages in thread From: Johannes Berg @ 2008-03-04 10:26 UTC (permalink / raw) To: hce; +Cc: linux-wireless [-- Attachment #1: Type: text/plain, Size: 737 bytes --] 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. johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Patch for linux wireless extension 2008-03-04 10:26 ` Johannes Berg @ 2008-03-04 13:58 ` Dan Williams 2008-03-06 10:37 ` hce 0 siblings, 1 reply; 7+ messages in thread From: Dan Williams @ 2008-03-04 13:58 UTC (permalink / raw) To: Johannes Berg; +Cc: hce, linux-wireless 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Patch for linux wireless extension 2008-03-04 13:58 ` Dan Williams @ 2008-03-06 10:37 ` hce 2008-03-06 14:00 ` Dan Williams 0 siblings, 1 reply; 7+ messages in thread From: hce @ 2008-03-06 10:37 UTC (permalink / raw) To: Dan Williams; +Cc: Johannes Berg, linux-wireless On 3/5/08, Dan Williams <dcbw@redhat.com> 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. Thank you. Kind Regards, Jim ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Patch for linux wireless extension 2008-03-06 10:37 ` hce @ 2008-03-06 14:00 ` Dan Williams 2008-03-07 3:00 ` hce 0 siblings, 1 reply; 7+ messages in thread From: Dan Williams @ 2008-03-06 14:00 UTC (permalink / raw) To: hce; +Cc: Johannes Berg, linux-wireless On Thu, 2008-03-06 at 21:37 +1100, hce wrote: > On 3/5/08, Dan Williams <dcbw@redhat.com> 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. dan ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Patch for linux wireless extension 2008-03-06 14:00 ` Dan Williams @ 2008-03-07 3:00 ` hce 2008-03-07 12:11 ` Dan Williams 0 siblings, 1 reply; 7+ messages in thread From: hce @ 2008-03-07 3:00 UTC (permalink / raw) To: Dan Williams; +Cc: Johannes Berg, linux-wireless On Fri, Mar 7, 2008 at 1:00 AM, Dan Williams <dcbw@redhat.com> wrote: > > On Thu, 2008-03-06 at 21:37 +1100, hce wrote: > > On 3/5/08, Dan Williams <dcbw@redhat.com> 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? Thank you Dan. Kind Regards, Jim ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Patch for linux wireless extension 2008-03-07 3:00 ` hce @ 2008-03-07 12:11 ` Dan Williams 0 siblings, 0 replies; 7+ messages in thread From: Dan Williams @ 2008-03-07 12:11 UTC (permalink / raw) To: hce; +Cc: Johannes Berg, linux-wireless On Fri, 2008-03-07 at 14:00 +1100, hce wrote: > On Fri, Mar 7, 2008 at 1:00 AM, Dan Williams <dcbw@redhat.com> wrote: > > > > On Thu, 2008-03-06 at 21:37 +1100, hce wrote: > > > On 3/5/08, Dan Williams <dcbw@redhat.com> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-03-07 12:15 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-03-04 3:01 Patch for linux wireless extension hce 2008-03-04 10:26 ` Johannes Berg 2008-03-04 13:58 ` Dan Williams 2008-03-06 10:37 ` hce 2008-03-06 14:00 ` Dan Williams 2008-03-07 3:00 ` hce 2008-03-07 12:11 ` Dan Williams
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).