LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Error for wireless request "Set Nickname" (https://www.linuxquestions.org/questions/linux-wireless-networking-41/error-for-wireless-request-set-nickname-670854/)

robogymnast 09-18-2008 11:44 AM

Error for wireless request "Set Nickname"
 
Trying to get wireless running on slackware 12.1, I've been following Alien Bob's guide but I can't seem to get a connection to my wireless network
Code:

# ping 192.168.1.1
connect: Network is unreachable

Code:

# /etc/rc.d/rc/inet1 wlan0_start
Error for wireless request "Set Nickname" (8B1C) :
    SET failed on device wlan0 ; Operation not supported.
Polling for DHCP server on interface wlan0:
No carrier detected on wlan0. Reducing DHCP timeout to 10 seconds.
dhcp: MAC address = 00:1f.....

After running "wpa_supplicant -dw -c/etc/wpa_supplicant.conf -Dwext -iwlan0" and looking in /var/log/messages at that time I see:
Code:

kernel: ADDRCONF(NETDEV_UP): wlan0: link is not ready
kernel: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
logger: /etc/rc.d/rc.inet1: List of interfaces: `eth0 eth1 eth2 eth3 wlan0 eth5`
logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 mode Managed
logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 nick blackice
logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 channel 6
logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 essid "pandora"
logger: /etc/rc.d/rc.inet1: /sbin/dhcpcp -d -t 30 -h blackice wlan0
kernel: ADDRCONF(NETDEV_UP): wlan0: link is not ready

ifconfig and iwconfig give:
Code:

# ifconfig wlan0
Link encap:Ethernet HWaddr 00:1f:...
BOADCAST MULTICAST MTU:1500 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3251 (3.1 KiB) TX bytes:888 (888.0 B)

# iwconfig wlan0
IEEE 802.11g ESSID:"pandora"
Mode: Managed  Frequency:2.437 GHz  Access Point: 00:21:29:A1:7D:A3
Bit Rate=1 Mb/s Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr:2346 B
Encryption key:off
Link Quality=74/100 Signal level=-62 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

The card is an EDIMAX EW-7128G PCI wireless card:
Code:

# lspci
05:08.0 Network controller: RaLink RT2561/RT61 802.11g PCI

Can anyone help or at least point me in the right direction? I'm really liking slackware so far but I don't know where to go from here :-(

Hangdog42 09-19-2008 11:26 AM

If I were in your shoes I would take it a step at a time, and start with the console before jumping into doing a lot of startup configuration. Basically, we need to figure out if this is a driver problem or a config problem.

I would start by temporarily turning off encryption and seeing if you can connect. If you can, then the driver is working and we can move on to figuring out the encryption.

I would then just run wpa_supplicant and see if you can get an association. If you can, then run dhcpcd wlan0 to see if you can get an IP address. If that works, then we can work on how to configure this.

Oh, and actually I lied a bit. I would actually start by either undoing or commenting out any changes you've made in the various /etc/rc.d files. I think you need to start with as pristine a set of startup files as possible.

robogymnast 09-22-2008 06:14 PM

Quote:

Originally Posted by Hangdog42 (Post 3285767)
If I were in your shoes I would take it a step at a time, and start with the console before jumping into doing a lot of startup configuration. Basically, we need to figure out if this is a driver problem or a config problem.

I would start by temporarily turning off encryption and seeing if you can connect. If you can, then the driver is working and we can move on to figuring out the encryption.

I would then just run wpa_supplicant and see if you can get an association. If you can, then run dhcpcd wlan0 to see if you can get an IP address. If that works, then we can work on how to configure this.

Oh, and actually I lied a bit. I would actually start by either undoing or commenting out any changes you've made in the various /etc/rc.d files. I think you need to start with as pristine a set of startup files as possible.

Thanks for the response, I reinstalled from scratch to make sure that I am starting with a fresh environment, and disabled security on my wireless. I was able to connect by using iwconfig to set my essid and channel and then
"ifconfig wlan0 up". Then after running "iwlist wlan0 scan" I could see my network.

Next I ran "dhcpcp wlan0" as you suggested and was able to ping outside the network :-)

Now I'm going to re-enable encryption and see if I can get that working.

robogymnast 09-22-2008 07:14 PM

w00t it works! :-)

Alright, so I after adding my WPA PSK and SSID to /etc/wpa_supplicant.conf and restarting my wireless card with "/etc/rc.d/rc.inet1 wlan0_stop" and then wlan0_start, I realized that everything seemed to be working except that I had no IP address. So after reading the man page for dhcpcd I found the -n option and ran "dhcpcd wlan0 -n" which forced dhcpcd to renew its lease on the IP address, and now everything appears to be working =)

Thanks for your help hangdog.

robogymnast 09-22-2008 07:37 PM

Something to add: somewhere along the way I ran "wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf" and switched terminals. When I ended this process (don't ask) I lost my connection and had to restart this process. Wanted to add this info in case anyone else had the same problem.

Hangdog42 09-23-2008 07:26 AM

Quote:

Something to add: somewhere along the way I ran "wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf" and switched terminals. When I ended this process (don't ask) I lost my connection and had to restart this process. Wanted to add this info in case anyone else had the same problem.
A simple way to solve this is to add the -B flag to your startup line. That causes wpa_supplicant to run as a daemon independent of the console. I also like to add the -w flag which causes wpa_supplicant to wait for the interface if it isn't up.

Congrats on solving this, I hope it keeps working for you!


All times are GMT -5. The time now is 07:14 AM.