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