[TriLUG] hostap help?

crimsun at fungus.sh.nu crimsun at fungus.sh.nu
Sun Oct 30 03:29:53 EST 2005


On Sun, Oct 30, 2005 at 01:43:43AM -0400, Cristobal Palmer wrote:
> so I (on a kubuntu box):
> 
> sudo apt-get hostap-source

[Presume you meant "install" as the action]

> cd /usr/src/modules/hostap-source

[And the above after untarring the tarball in /usr/src]

> sudo ./debian/rules binary-modules KSRC=/usr/src/linux-source-2.6.12

[Why is installing linux-source-2.6.12 necessary? Installing
linux-headers-$(uname -r) suffices. Moreover, you should use
KVERS=$(uname -r) as well:

$ fakeroot debian/rules binary-modules KSRC=/lib/modules/$(uname -r)/build KVERS=$(uname -r)]

> cd ..
> sudo dpkg -i hostap-modules-2.6.12_0.4.1-1_i386.deb

[Normally this would be a naming mismatch, since you should use
linux-headers-$(uname -r), but it's ok here.]

> uname -r == 2.6.12-9-k7 (in case you were wondering)
> 
> sudo depmod -ae
> sudo modprobe hostap
> 
> /etc/network/interfaces has this stanza:
> 
> iface wlan0 inet dhcp
> wireless-essid  soymilk latte

[You should enclose the essid in ""s]

> wireless-key    wireless-key    hu:zz:ah:my:ke:yi:sl:on:gi:sh

[If you specify the key as hex, you can use one long hex string not
enclosed by ""s. If you specify the key as an ASCII string, you must
use s:someasciistring.]

The culprit is that you specified wireless-key TWICE. You must use it
only once, as the error below indicates...

> Error for wireless request "Set Encode" (8B2A) :
>     invalid argument "wireless-key".
> Error for wireless request "Set ESSID" (8B1A) :
>     SET failed on device wlan0 ; No such device.
> Internet Systems Consortium DHCP Client V3.0.2
> Copyright 2004 Internet Systems Consortium.
> All rights reserved.
> For info, please visit http://www.isc.org/products/DHCP
[...]
-- 
Daniel T. Chen            crimsun at ubuntu.com
GPG key:   www.sh.nu/~crimsun/pubkey.gpg.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://www.trilug.org/pipermail/trilug/attachments/20051030/0d5154ec/attachment.pgp>


More information about the TriLUG mailing list