| View previous topic :: View next topic |
| Author |
Message |
DerekTan n00b

Joined: 24 Nov 2007 Posts: 29
|
Posted: Sat Apr 12, 2008 10:02 am Post subject: fail to set wireless mode |
|
|
Hi all, I can't get my wireless card to work. Here is the output:
lspci | grep 3945
| Quote: | 03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
|
lsmod | grep 3945
| Quote: |
iwl3945 165992 0
mac80211 112460 1 iwl3945
|
iwconfig wlan0
| Quote: | wlan0 IEEE 802.11g ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=off
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
|
iwlist wlan0 scanning
| Quote: |
Last login: Sat Apr 12 12:11:52 CST 2008 from localhost on pts/1
wlan0 Scan completed :
Cell 01 - Address: 00:19:5B:E5:A0:AA
ESSID:"dlink"
Mode:Master
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=87/100 Signal level=-46 dBm Noise level=-127 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=00000049c3715edc
|
I don't know how to configure /etc/conf.d/net and /etc/wpa_supplicant/wpa_supplicant files. So I try to set the parameters by "iwconfig".
when setting mode to "Master", the error log is:
iwconfig wlan0 mode Master
| Quote: |
Last login: Sat Apr 12 17:24:13 CST 2008 from localhost on pts/3
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.
|
it seems that other parameters are right, now the "iwconfig wlan0" output is:
| Quote: |
wlan0 IEEE 802.11g ESSID:"dlink"
Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated
Tx-Power=off
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Encryption key:1111-1111-11
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
|
I find some related data and configure the /etc/conf.d/net as following:
| Quote: | modules=("wpa_supplicant")
modules_wlan0=( "dhcpcd" "iwconfig" )
config_wlan0=( "dhcp" )
dhcpcd_wlan0="-t 5 -A" #timeout after 5 seconds
essid_wlan0="dlink"
pre-up(){
ifconfig wlan0 up
}
|
and /etc/wpa_supplicant/wpa_supplicant:
| Quote: |
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=0
fast_reauth=1
network={
ssid="dlink"
key_mgmt=NONE
wep_key0=1111111111
wep_tx_keyidx=0
group=CCMP TKIP WEP104 WEP40
priority=5
}
|
My questions are:
how to set the wireless mode to "Master"?
how to configure the /etc/conf.d/net and /etc/wpa_supplicant/wpa_supplicant files?
Thanks in advance. |
|
| Back to top |
|
 |
meal n00b


Joined: 20 Nov 2006 Posts: 65 Location: Silesia / Poland
|
Posted: Sat Apr 12, 2008 12:41 pm Post subject: |
|
|
To change mode, interface must be down. Co if iwlist scan works, you need put your wlan0 device down.
ifconfig wlan0 down
iwconfig wlan0 mode Master
ifconfig wlan0 up
Should works  _________________ http://www.mkozak.pl
http://blog.mkozak.pl |
|
| Back to top |
|
 |
DerekTan n00b

Joined: 24 Nov 2007 Posts: 29
|
Posted: Mon Apr 14, 2008 1:26 am Post subject: |
|
|
| meal wrote: | To change mode, interface must be down. Co if iwlist scan works, you need put your wlan0 device down.
ifconfig wlan0 down
iwconfig wlan0 mode Master
ifconfig wlan0 up
Should works  |
I have turned wlan0 down before setting parameters, and the other parameters were all done except "mode".
Thank you all the same. |
|
| Back to top |
|
 |
|