I have an Intel Pro 3945 network card, and the kernel iwl3945 kernel module loaded. I've ascertained that there is
nothing wrong with the iwl3945 drivers. However, I can get dhcp to work from the command-line but
not from rc.inet1!
Here's the situation.
My network device is detected. I have a node at wlan0.
The top part of my rc.wireless.conf looks like this:
Quote:
## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
INFO="Any ESSID"
ESSID="my essid"
KEY="my key"
;;
## ---------- END SECTION TO REMOVE ------------
|
The relevant part (read: the part I changed) of rc.inet1.conf looks like this:
The following commands work:
/etc/rc.d/rc.inet1 stop
/etc/rc.d/rc.inet1 start
dhcpcd wlan0
After doing the above, I'm connected to my router.
HOWEVER, if I set my rc.inet1.conf up as follows...
Quote:
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
|
...then "/etc/rc.d/rc.inet1 start" just times out! The exact output is:
Quote:
/etc/rc.d/rc.inet1: wlan0 information: 'Any ESSID'
Error for wireless request "Set Nickname" (8B1C) :
SET failed on device wlan0 ; Operation not supported.
Polling for DHCP server on interface wlan0:
dhcpcd: MAC address = 00:19:d2:69:fc:62
|
After the above, just typing "dhcpcd wlan0" at the command prompt also just times out.
So what happens if I use wpa_supplicant? The results are exactly the same.
My complete wpa_supplicant.conf is as follows:
Quote:
# See /usr/doc/wpa_supplicant-0.5.10/wpa_supplicant.conf.sample
# for many more options that you can use in this file.
# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
ctrl_interface=/var/run/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
network={
ssid="my essid"
wep_key0=my WEP key
key_mgmt=NONE
wep_tx_keyidx=0
priority=5
}
# WPA protected network, supply your own ESSID and WPAPSK here:
#network={
# scan_ssid=0
# ssid="your_essid_here"
# proto=WPA
# key_mgmt=WPA-PSK
# pairwise=CCMP TKIP
# group=CCMP TKIP WEP104 WEP40
# psk=your_psk_here
#}
# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
network={
key_mgmt=NONE
priority=0
}
|
Now, if I set my rc.inet1.conf as follows...
Quote:
IFNAME[4]="wlan0"
WLAN_WPA[4]="wpa_supplicant"
|
Then I can type the following...
/etc/rc.d/rc.inet1 start
dhcpcd wlan0
...to connect to my router.
Once again, however, if I add USE_DHCP="yes" to rc.inet1.conf then rc.inet1 times out.
What's going on?