I tried running wpa_supplicant without the -Dmadwifi parameter and it gave me the follwing messages.<br><br>ioctl[SIOCSIWMODE]: Invalid argument<br>Could not configure driver to use managed mode<br>CTRL-EVENT-SCAN-RESULTS <br>
CTRL-EVENT-SCAN-RESULTS <br>CTRL-EVENT-SCAN-RESULTS <br>CTRL-EVENT-SCAN-RESULTS <br>CTRL-EVENT-SCAN-RESULTS <br>CTRL-EVENT-SCAN-RESULTS <br>.............................................<br><br>Why would it try and configure to use managed mode if it's set to Master mode. Here is my interfaces config.<br>
<br>auto ath0<br>iface ath0 inet dhcp<br># address 10.1.20.1<br># netmask 255.255.255.0<br># broadcast 10.1.20.255<br># #pre-up wlanconfig ath create wlandev wifi1 wlanmode ap<br> madwifi-base wifi0<br>
wireless-mode Master<br># wireless-mode Adhoc<br># wireless-mode Managed<br> up iwpriv ath0 mode 3<br> up iwconfig ath0 mode master<br> up iwconfig ath0 essid dd-wrt<br> up iwconfig ath0 txpower auto<br>
up iwconfig ath0 enc off<br> up iwconfig ath0 rate auto<br># up nat.sh ath0 eth0 "<a href="http://10.1.20.0/24">10.1.20.0/24</a>"<br><br><div class="gmail_quote">On Wed, May 6, 2009 at 2:05 PM, Ian Holm <span dir="ltr"><<a href="mailto:dxbydt@gmail.com">dxbydt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">This is how voyage used to connect pre-0.6.0 afaik. With the release of 0.6.0 the madwifi driver was integrated into the kernel. If I try and run wpa_supplicant with -Dmadwifi it gives me an error saying madwifi is an invalid driver selection. So there has to be some other way that this is intended to be setup. One thing I still find odd is that after uncommenting those lines in /etc/network/interfaces I get that line on boot that says "Failed bringing up ath0" what part of that script is even trying to bring up ath0? And why is it failing if I can just run 'ifconfig ath0 up' successfully after boot?<div>
<div></div><div class="h5"><br>
<br><div class="gmail_quote">On Wed, May 6, 2009 at 1:59 PM, Gustin Johnson <span dir="ltr"><<a href="mailto:gustin@echostar.ca" target="_blank">gustin@echostar.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Ian Holm wrote:<br>
</div><div>> Alright, details of what I'm trying to do.<br>
> I'm using voyage 0.6.1 which is installed on a 1gb CF drive. It's more<br>
> or less a clean install with little modification. I have a Gigabyte<br>
> GN-WPEAG wireless card that uses one of the supported Atheros drivers,<br>
> not sure which one but I've looked it up and verified that it is<br>
> supported before.� So far all I've done is uncommented the ath0 block<br>
> for madwifi in the /etc/network/interfaces file and changed 'wifi1' to<br>
> 'wifi0' in the madwifi-base line. I am trying to use this with DHCP and<br>
> WPA-PSK. Since I'm using DHCP, I left the last line in the interfaces<br>
> block pertaining to nat.sh commented because I figured that was related<br>
> to using a static IP address. I haven't done anything with<br>
> /etc/hostapd/hostapd.conf yet and haven't found any documentation on<br>
> what changes need to be made there. Your email is the first I've heard<br>
<br>
</div>hostapd.conf is for setting up as an AP. For a client connect it is not<br>
needed.<br>
<br>
The following is how I connect with my laptop (ubuntu based but the<br>
commands should be same):<br>
<br>
Generate a wpa_supplicant config:<br>
wpa_passphrase <essid> <passphrase> > essid.wpa.conf<br>
<br>
The filename is entirely arbitrary.<br>
<br>
Then:<br>
wpa_supplicant -i ath0 -D madwifi -c essid.wpa.conf<br>
Then for dhcp I run: "dhclient ath0"<br>
<br>
Since my laptop connects to about half a dozen APs in a given day, I do<br>
not automate its connection. It only connects when I want it to.<br>
<br>
<br>
You should note that I did not use the flag to run wpa_supplicant in the<br>
background because I like to see the output. If you are connecting to<br>
your voyage box via serial, then you probably want to add the "-B" flag<br>
or use wpa_cli.<br>
<br>
As always, the "man" command is your friend.<br>
<br>
Hth,<br>
<div>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
</div>iEYEARECAAYFAkoB+hIACgkQwRXgH3rKGfP+hgCfQtNthLJjfV6BBw2RwV/57TrE<br>
vrMAoJPq2+nvy11v/wZWWc4lfvLfN7zQ<br>
=66+R<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br>
</div></div></blockquote></div><br>