Heres the latest in the series. After much messing around with iwlib, I have decided to include functionality for interacting with wpasupplicant via its control interface, rather than writing a static config and hoping for the best. It add a quite a bit more code, but its still relatively simple. It also adds the possibly of implementing future functionality such as using the daemon to scan for networks and setting wep keys and essid. This would remove a bit of code from wireless.c as well.
This is still very much a work in progress, and comments are of course welcome. The wording I have added to the templates is pretty much just something I threw in to see it work, so comments on the desired wording here are most welcome. I have built some test images available at [1]. As I only have three different chipsets my testing is somewhat limited, so I would like some feedback from people that have tested on different chips that are available in the current 2.6.25 debian kernel. I have succesfully tested two atheros chips and an intel 3965. Unfortunately the ath5k available in the kernel appears broken in regard to WPA support, so I have also built an image with madwifi which is available also. (I realise madwifi can't be included, but this is just for testing purposes of the WPA support in netcfg) Also included is the intel 3945 and 4965 modules which can be used if firmware is manually installed. There are also usb images at the supplied link if your box supports booting from usb. I have left debugging prints in the built images and also in this patchset so that any problems that do arise, will hopefully be a little easier to try and track down. I will clean these up when people are happy with the functionality. Some idea of what the team might feel as usefull in regard to logging for installation reports would be appreciated. With this code introduced, the netcfg udeb size is 278K with the binary size for netcfg of 33K against 268K and 27K in current netcfg. Plus the size of the previously discussed wpasupplicant udeb. Timeout for wpasupplicant key exchange is 60 seconds, this is open for discussion as to what people think is a reasonable time. I have also increased the dhclient timeout to 25 seconds, as quite often I would get a lease after the default 15 seconds. This has been helpfull in my instance, not sure if by default its neccessary. That about covers it, look forward to hearing testing reports successfull or otherwise. For those that do try the test images I apologise in advance for my painfully slow upstream speeds. :) Cheers Glenn [1] http://foomagic.org/netcfg/ Glenn Saberton (3): Whitespace changes to prepare for more cases. Create ask_wifi_configuration function. Add WPA support to netcfg packages/netcfg/Makefile | 4 +- packages/netcfg/base-installer | 2 +- packages/netcfg/debian/netcfg-common.templates | 37 +++ packages/netcfg/debian/netcfg-dhcp.templates | 2 +- packages/netcfg/dhcp.c | 119 +++++-- packages/netcfg/netcfg-static.c | 49 +++- packages/netcfg/netcfg.c | 68 ++++- packages/netcfg/netcfg.h | 15 +- packages/netcfg/static.c | 20 +- packages/netcfg/wireless.c | 61 ++++- packages/netcfg/wpa.c | 415 ++++++++++++++++++++++++ packages/netcfg/wpa_ctrl.c | 256 +++++++++++++++ packages/netcfg/wpa_ctrl.h | 187 +++++++++++ 13 files changed, 1175 insertions(+), 60 deletions(-) create mode 100644 packages/netcfg/wpa.c create mode 100644 packages/netcfg/wpa_ctrl.c create mode 100644 packages/netcfg/wpa_ctrl.h -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]