On Sun, Sep 12, 2004 at 06:33:46PM +1000, Andrew Pollock wrote: > I've managed to build a d-i image to test that incorporates this patch, and > it does actually work. I couldn't verify it 100% because iwconfig wasn't > there for some reason, but I entered my ESSID, I entered my WEP key, and > DHCP worked without further intervention. Good! Now if you have time, I'd like you to try applying this patch (to pristine source) and seeing if it all works... because then we'll still be able to use the iwlib API effectively. I'm fairly sure this more or less duplicates what your own patch did with the code already in iwlib. Thanks for your time coming up with the fix. -- Joshua Kwan
Index: wireless.c =================================================================== --- wireless.c (revision 21429) +++ wireless.c (working copy) @@ -217,13 +217,14 @@ wconf.has_key = 1; wconf.key_size = keylen; - wconf.key_flags = IW_ENCODE_ENABLED | IW_ENCODE_OPEN; + wconf.key_flags = 0; strncpy (wconf.key, buf, keylen); wepkey = strdup(rv); - iw_set_basic_config (wfd, iface, &wconf); + if (iw_set_basic_config (wfd, iface, &wconf) == -1) + fprintf(stderr, "warning: failed to set wep key"); return 0; }
Attachment:
signature.asc
Description: Digital signature