Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - ath0 dhcp setup: (4 Items)
   
ath0 dhcp setup  
I am trying to get my WiFi to DHCP on boot. I think I am close.  My rc.d/rc.local has
---------------------------->
#
#reset paths to use /altnet
#
export PATH=/altnet/sbin:/altnet/usr/sbin:/altnet/bin: ...
export LD_LIBRARY_PATH=/proc/boot:/altnet/lib:/altnet/usr/lib:/proc/boot:/lib: ...
# Load WiFi support
#
io-pkt-v4-hc -d /altnet/lib/dll/devnp-ath.so
#
# start WiFi
#
wpa_supplicant -B -i ath0
sleep 2
ifconfig ath0 ssid "SOMENET" nwkey 0x0000000000000000000000XXXX up
dhcpd ath0
#
#
# --- E O F ---
<----------------------------

The Altheros HW inits and has the proper ssid and WEP key, and ifconfig shows it is active, but I still have to log on 
as root and use the network setup GUI panel to kick it into DHCP'ing.

Can someone help me out or point me to the proper docs?  I have been grovlling over the boot sequence stuff but have not
 quite found what I wanted.

Thanks much,
-KenD
Re: ath0 dhcp setup  
On Mon, Dec 03, 2007 at 09:20:39PM -0500, Ken Dickey wrote:
> I am trying to get my WiFi to DHCP on boot. I think I am close.  My
> rc.d/rc.local has
> ---------------------------->
> #
> #reset paths to use /altnet
> #
> export PATH=/altnet/sbin:/altnet/usr/sbin:/altnet/bin: ...
> export
> LD_LIBRARY_PATH=/proc/boot:/altnet/lib:/altnet/usr/lib:/proc/boot:/lib:
> ...
> # Load WiFi support
> #
> io-pkt-v4-hc -d /altnet/lib/dll/devnp-ath.so
> #
> # start WiFi
> #
> wpa_supplicant -B -i ath0
> sleep 2
> ifconfig ath0 ssid "SOMENET" nwkey 0x0000000000000000000000XXXX up
> dhcpd ath0
> #
> #
> # --- E O F ---
> <----------------------------
> 
> The Altheros HW inits and has the proper ssid and WEP key, and ifconfig
> shows it is active, but I still have to log on as root and use the
> network setup GUI panel to kick it into DHCP'ing.

Do you want the client side of dhcp?

# dhcp.client -i ath0

-seanb
Re: ath0 dhcp setup  
Just to let you know, the wpa_supplicant and the ifconfig are likely redundant.  If you set up the wpa_supplicant with a
 network configuration block (see http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/
Wifi_wep_wiki_page
) then it will automatically do the association with the AP for you.  If you do the ifconfig and you're using WEP, then 
you don't need wpa_supplicant running.

Once you've got the association working (which you have), you treat it just like any other network interface from the IP
 configuration point of view.

    Sounds like you're pretty much there...

        Robert.
Re: ath0 dhcp setup  
Comes up smooth as glass now.

Thanks a bunch for everything!!!

-KenD

PS:  tail of file now looks like:
---------------------------------> ...
#
# Load WiFi support
#
io-pkt-v4-hc -d /altnet/lib/dll/devnp-ath.so
#
# start WiFi
#
ifconfig ath0 ssid "TheKey" nwkey 0x0000000000000000000000XXXX up
dhcp.client -i ath0
#
# --- E O F ---