Re: Wireless

Joshua Oreman <[email protected]> Sun, 29 Nov 2009 08:22:10 -0800
Newsgroups gmane.network.etherboot.user
Message-ID <[email protected]>
On Sun, Nov 29, 2009 at 2:46 AM, Peter Meyer <[email protected]> wrote:
> Hi Josh,
>
> i commented 'return -ENOSYS;' and it runs a little bit futher but it still doesn't work.
>
> gPXE> dhcp net0
> Waiting for link-up on net0...
> 802.11 0xa0d7c found network ME (00:1f:3f:17:49:5e)
> 802.11 0xa0d7c authenticating with method 0
> 802.11 0xa0d7c spectrum managed network detected. Maybe it wont work.
> 802.11 0xa0d7c setting country regulations for DE
> 802.11 0xa0d7c association failed (state=0100): Not supported (0x3c266003)
>
> It seems that 'net80211_step_associate' fail.
>
> What does 'Not supported' mean?
> How is the errorcode to read/split?

Oh good, an easy one. :-) Edit config/general.h and enable support for
WPA2 (change #undef to #define). WPA2 support is not included by
default because it uses AES encryption, which takes up quite a bit of
space in the image.

#define CRYPTO_80211_WPA        /* WPA Personal, authenticating with
passphrase */
#undef  CRYPTO_80211_WPA2       /* Add support for stronger WPA cryptography */

gPXE error codes encode an error number ("Not supported" = ENOTSUP =
0x3c000000), the type of subsystem where the error occurred
(ERRFILE_NET = 0x00006000), the particular file that produced the
error (ERRFILE_wpa = 0x00260000), a file-specific "unique error code"
(0/unspecified here), and a PXE API error code
(PXENV_STATUS_UNSUPPORTED = 0x00000003) all OR'ed together. See
src/include/errno.h for more details.

http://www.etherboot.org/wiki/troubleshooting#error_0x contains links
to a couple utilities that will split the error code for you; they
might not know about code like WPA that's not in mainline yet, though
(so you'll just get "errfile 0x133" instead of the name of the file).

You can enable DEBUG=wpa to get debug messages from the WPA code; I
suspect the one you're triggering here is "WPA: No support for (GC:2,
PC:3)" (Pairwise Cipher 3 is NET80211_CRYPT_CCMP, the one not compiled
in by default).

Thank you for your patience!

-- Josh

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july