Thanks Punky, I'm not sure if there was some freak typo or something messed up with my .conf file, but I recreated it and it seems to be working now. Took me all day but it seems to be connected properly with dhcp address. If i wanted to connect to a network that wasn't secured would I just comment out the wpa-conf line and uncomment the rest of those lines in /etc/network/interfaces?<br /><br />On May 6, 2009 6:12pm, Kim-man 'Punky' TSE <punkytse@punknix.com> wrote:<br />> Hi Ian,<br />> <br />> <br />> <br />> Let me save you out here ;-), and lucky I have one test board running wpa_supplicant.<br />> <br />> <br />> <br />> Edit /etc/network/interfaces:<br />> <br />> ======================<br />> <br />> auto ath0<br />> <br />> iface ath0 inet dhcp<br />> <br />>        madwifi-base wifi0<br />> <br />>        wireless-mode Managed<br />> <br />>        wireless-channel 11<br />> <br />>        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf<br />> <br />> ======================<br />> <br />> This will setup wireless client. And /etc/wpa_supplicant/wpa_supplicant.conf setup WPA2 look like this:<br />> <br />> ======================<br />> <br />> ctrl_interface=/var/run/wpa_supplicant<br />> <br />> #eapol_version=1<br />> <br />> #ap_scan=1<br />> <br />> network={<br />> <br />>        ssid="voyage"<br />> <br />>        #psk="voyage-wds"<br />> <br />>        psk=ce6dcf0cfac9886647d3e0124996aaf40b0f84ddfa99b0ed75fc1d5d66f5d8c3<br />> <br />> #    key_mgmt=WPA-PSK<br />> <br />> #    proto=WPA<br />> <br />>       proto=RSN<br />> <br />> #pairwise=CCMP TKIP<br />> <br />> #  group=CCMP TKIP<br />> <br />> #       scan_ssid=1<br />> <br />> }<br />> <br />> ======================<br />> <br />> I will add an entry in README and /etc/network/interfaces.<br />> <br />> <br />> <br />> Regards,<br />> <br />> Punky<br />> <br />> <br />> <br />> <br />> <br />> Ian Holm wrote:<br />> <br />> <br />> I tried running 'ifup ath0 -v' and here is output:<br />> <br />> <br />> <br />> voyage:~# ifup ath0 -v<br />> <br />> Configuring interface ath0=ath0 (inet)<br />> <br />> run-parts --verbose  /etc/network/if-pre-up.d<br />> <br />> run-parts: executing /etc/network/if-pre-up.d/050madwifi<br />> <br />> ath0<br />> <br />> run-parts: executing /etc/network/if-pre-up.d/bridge<br />> <br />> run-parts: executing /etc/network/if-pre-up.d/hostap-utils<br />> <br />> run-parts: executing /etc/network/if-pre-up.d/hostapd<br />> <br />> run-parts: executing /etc/network/if-pre-up.d/ifenslave<br />> <br />> run-parts: executing /etc/network/if-pre-up.d/vlan<br />> <br />> run-parts: executing /etc/network/if-pre-up.d/wireless-tools<br />> <br />> run-parts: executing /etc/network/if-pre-up.d/wpasupplicant<br />> <br />> wpa_supplicant: terminating wpa_supplicant daemon via pidfile /var/run/wpa_supplicant.ath0.pid<br />> <br />> Stopped /sbin/wpa_supplicant (pid 4186).<br />> <br />> wpa_supplicant: removing /lib/init/rw/sendsigs.omit.d/wpa_supplicant.wpa_supplicant.ath0.pid<br />> <br />> wpa_supplicant: using default driver type: wpa-driver wext<br />> <br />> wpa_supplicant: /sbin/wpa_supplicant -B -P /var/run/wpa_supplicant.ath0.pid -i ath0 -D wext -q -f /var/log/wpa_supplicant.ath0.log -c /etc/wpa_supplicant/wpa_supplicant.conf -C /var/run/wpa_supplicant<br />> <br />> Starting /sbin/wpa_supplicant...<br />> <br />> wpa_supplicant: creating sendsigs omission pidfile: /lib/init/rw/sendsigs.omit.d/wpa_supplicant.wpa_supplicant.ath0.pid<br />> <br />> wpa_supplicant: ctrl_interface socket located at /var/run/wpa_supplicant/ath0<br />> <br />> <br />> <br />> pump -i ath0<br />> <br />> Operation failed.<br />> <br />> Failed to bring up ath0.<br />> <br />> <br />> <br />> So after everything i've tried I still don't seem to be any closer. Could it likely be my hardware? Is there another way to do this? Some sort of kernel module I could compile? I'm willing to do anything, I just have to get wireless working soon here for a project I'm working on. I'd be satisfied with a workaround as long as I accomplish connecting to a standard WPA-PSK encrypted wireless router.<br />> <br />> <br />> <br />> <br />> <br />> On Wed, May 6, 2009 at 3:44 PM, Ian Holm dxbydt@gmail.com dxbydt@gmail.com>> wrote:<br />> <br />> <br />> <br />>     So I tried setting it to managed mode and then running<br />> <br />>     'wpa_supplicant -iath0 -c/etc/wpa_supplicant/wpa_supplicant.conf<br />> <br />>     -Dwext and it didn't give me the same error as before but it still<br />> <br />>     complains about the link being down. I did 'ip link set ath0 up'<br />> <br />>     and ran wpa_supplicant again but it still failed. I also tried<br />> <br />>     'ifup ath0' and it seems that's the script that's creating the<br />> <br />>     message:<br />> <br />> <br />> <br />>     Operation not permitted<br />> <br />>     Failed bringing up ath0<br />> <br />> <br />> <br />>     Am I missing some kind of step here?<br />> <br />> <br />> <br />>     On Wed, May 6, 2009 at 3:02 PM, Gustin Johnson gustin@echostar.ca<br />> <br />>     gustin@echostar.ca>> wrote:<br />> <br />> <br />> <br />>         -----BEGIN PGP SIGNED MESSAGE-----<br />> <br />>         Hash: SHA1<br />> <br />> <br />> <br />>         Ian Holm wrote:<br />> <br />>         > I tried running wpa_supplicant without the -Dmadwifi<br />> <br />>         parameter and it<br />> <br />>         > gave me the follwing messages.<br />> <br />> <br />> <br />>         There are other options, like -D wext.<br />> <br />>         ><br />> <br />>         > Why would it try and configure to use managed mode if it's<br />> <br />>         set to Master<br />> <br />>         ><br />> <br />>         Master mode is for APs, you want managed.  Wpa_supplicant is<br />> <br />>         for devices<br />> <br />>         in Managed mode.  Hostap is for master.<br />> <br />> <br />> <br />>         > mode. Here is my interfaces config.<br />> <br />> <br />> <br />>         Ignore this for a little while.<br />> <br />> <br />> <br />>         Try getting it to bind manually using the instructions I<br />> <br />>         previously<br />> <br />>         supplied before messing around in /etc/network/interfaces.<br />> <br />>          This means<br />> <br />>         ignore the ifup/ifdown scripts for now.<br />> <br />>         -----BEGIN PGP SIGNATURE-----<br />> <br />>         Version: GnuPG v1.4.9 (GNU/Linux)<br />> <br />>         Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org<br />> <br />> <br />> <br />>         iEYEARECAAYFAkoCCP0ACgkQwRXgH3rKGfMyfQCcDHMmr2QTLNgpNJtuAXYEEWaL<br />> <br />>         rYkAnjjwNb725aebgNQ35oKY6tNFJPpj<br />> <br />>         =vlWU<br />> <br />>         -----END PGP SIGNATURE-----<br />> <br />> <br />> <br />> <br />> <br />> <br />> <br />> ------------------------------------------------------------------------<br />> <br />> <br />> <br />> _______________________________________________<br />> <br />> Voyage-linux mailing list<br />> <br />> Voyage-linux@list.voyage.hk<br />> <br />> http://list.voyage.hk/mailman/listinfo/voyage-linux<br />> <br />>   <br />> <br />> <br />> <br />>