LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-15-2014, 09:14 AM   #1
latawaz
LQ Newbie
 
Registered: Feb 2014
Distribution: Centos 7
Posts: 23
Blog Entries: 1

Rep: Reputation: Disabled
Question Connecting to WiFi


I have setup my wireless to connect to an AP and it successfully does when Slackware 14.1 boots.

If I bring wlan0 down and then start again, it will not connect. No matter how much I try. ESSID is hidden. (WPA2 PSK authentication)

Hardware:
Code:
root@darkstar:~# lspci | grep -i network
04:00.0 Network controller: Broadcom Corporation BCM43224 802.11a/b/g/n (rev 01)
If I restart wlan0
Code:
root@darkstar:~# /etc/rc.d/rc.inet1 wlan0_restart
/etc/rc.d/rc.inet1:  wlan0 information: 'Any ESSID'
Error for wireless request "Set Nickname" (8B1C) :
    SET failed on device wlan0 ; Operation not supported.
Successfully initialized wpa_supplicant
Polling for DHCP server on interface wlan0:
dhcpcd[3432]: version 6.0.5 starting
dhcpcd[3432]: wlan0: waiting for carrier
dhcpcd[3432]: timed out
dhcpcd[3432]: allowing 8 seconds for IPv4LL timeout
dhcpcd[3432]: timed out
dhcpcd[3432]: exited
root@darkstar:~#
But the thing is, if I restart Slackware, wlan0 will immediately take the IP, not timed out of any kind.
 
Old 11-15-2014, 11:25 AM   #2
slouchfuzz
LQ Newbie
 
Registered: May 2009
Distribution: Slackware, Mythbuntu
Posts: 24

Rep: Reputation: 7
Try these three lines instead:

ifconfig wlan0 up

iwconfig wlan0 essid <your SSID> mode managed key <your password>

dhcpcd wlan0
 
Old 11-15-2014, 12:06 PM   #3
genss
Member
 
Registered: Nov 2013
Posts: 739

Rep: Reputation: Disabled
try first killing wpa_supplicant manually
 
Old 11-15-2014, 01:05 PM   #4
latawaz
LQ Newbie
 
Registered: Feb 2014
Distribution: Centos 7
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by slouchfuzz View Post
Try these three lines instead:

ifconfig wlan0 up

iwconfig wlan0 essid <your SSID> mode managed key <your password>

dhcpcd wlan0
Tried this but didn't work.

Also tried after killing wpa_supplicant, still the same.

At the time of boot, it looks like this:
Code:
/etc/rc.d/rc.M:  wlan0 information: 'Any ESSID'
Error for wireless request "Set Nickname" (8B1C) :
    SET failed on device wlan0 ; Operation not supported.
Successfully initialized wpa_supplicant
Polling for DHCP server on interface wlan0:
dhcpcd[678]: version 6.0.5 starting
dhcpcd[678]: wlan0: rebinding lease of 192.168.1.43
dhcpcd[678]: wlan0: leased 192.168.1.43 for 86400 seconds
dhcpcd[678]: wlan0: adding host route to 192.168.1.43 via 127.0.0.1
dhcpcd[678]: wlan0: adding route to 192.168.1.0/24
dhcpcd[678]: wlan0: adding default route via 192.168.1.1
dhcpcd[678]: forked to background, child pid 719
If I restart the interface, it always waits for a carrier and then times out!
 
Old 11-15-2014, 04:04 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,266
Blog Entries: 29

Rep: Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461
Member response

Hi,

You can add this to the '/etc/rc.d/rc.inet1.conf'
Code:
WLAN_WPAWAIT[4]=20
Defualt wait is '10 sec'.

This error comes from '/etc/rc.d/rc.wireless';
Quote:
/etc/rc.d/rc.M: wlan0 information: 'Any ESSID' Error for wireless request "Set Nickname" (8B1C) : SET failed on device wlan0 ; Operation not supported.
'/etc/rc.d/rc.wireless' is deprecated so you can either remove it or do a 'chmod -x /etc/rc.d/rc.wireless' and that error will disappear.
Hope this helps.
Have fun & enjoy!
 
Old 11-15-2014, 04:15 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,303

Rep: Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461
Quote:
Originally Posted by onebuck View Post
This error comes from '/etc/rc.d/rc.wireless';
'/etc/rc.d/rc.wireless' is deprecated so you can either remove it or do a 'chmod -x /etc/rc.d/rc.wireless' and that error will disappear.
If you do that, your wireless connections will stop working. While rc.wireless.conf is deprecated, the rx.wirelsss script certainly is not.

Eric
 
Old 11-15-2014, 06:29 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,266
Blog Entries: 29

Rep: Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461
Member response

Hi,

Quote:
Originally Posted by Alien Bob View Post
If you do that, your wireless connections will stop working. While rc.wireless.conf is deprecated, the rx.wirelsss script certainly is not.

Eric
My bad, I miss-read the doc.

EDIT: An from memory that was not a good recall. Sorry for any inconvenience to the OP. Glad Alien_Bob responded.

Can you tell why this error is created?;
Code:
'Any ESSID' Error for wireless request "Set Nickname" (8B1C) :     SET failed on device wlan0 ; Operation not supported.
It does seem to come from '/etc/rc.d/rc.wireless'.

Last edited by onebuck; 11-15-2014 at 08:04 PM.
 
Old 11-15-2014, 06:33 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,303

Rep: Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461
Quote:
Originally Posted by onebuck View Post
Can you tell why this error is created?;
Code:
'Any ESSID' Error for wireless request "Set Nickname" (8B1C) :     SET failed on device wlan0 ; Operation not supported.
It does seem to come from '/etc/rc.d/rc.wireless'.
Something that used to work in the past, but has been showing an error for a long time now. It is harmless though.

Eric
 
Old 11-15-2014, 06:39 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,266
Blog Entries: 29

Rep: Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461
Member response

Hi,

I have noticed that error for a while. Hoping you could point out why it is generated by rc.wireless since you have written most of those scripts. I know it's harmless just curious.

Thanks for the feedback.
 
Old 11-16-2014, 12:52 AM   #10
latawaz
LQ Newbie
 
Registered: Feb 2014
Distribution: Centos 7
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by onebuck View Post
You can add this to the '/etc/rc.d/rc.inet1.conf'
Code:
WLAN_WPAWAIT[4]=20
Defualt wait is '10 sec'.
I changed WPAWAIT to 30 seconds, still did not work. I am noticing
Code:
wlan0: rebinding lease of xx.xx.xx.xx
when system boots. There is no lag or wait of any kind at the start. Maybe I am missing a file to execute? As per documentation, /etc/rc.d/rc.inet1 wlan0_restart should take care of everything.
 
Old 11-17-2014, 07:02 AM   #11
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,050

Rep: Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771
Disclaimer: I have never owned, nor do I ever intend to own, a Broadcom device. So, I have no personal experience.

This is a hot potato and I know I am going to get my fingers burned, but ...
1. your Chip ID of BCM43224 is associated with three PCI-IDs. http://wireless.kernel.org/en/users/Drivers/b43
Which do you have?
2. your device can be used with the proprietary Broadcom wireless LAN driver (wl, aka broadcom-sta) obtainable from http://slackbuilds.org/repository/14.../broadcom-sta/
or the open source brcmsmac driver. http://wireless.kernel.org/en/users/Drivers/brcm80211 https://wiki.debian.org/wl
Which driver are you using? Have you tried an alternative driver?
3. the /etc/rc.inet1 script logs events to /var/log/messages.
Are there any relevant messages?
4. perhaps your device is not being reinitialised when you bring the interface up.
Have you tried bringing wlan0 down, removing the driver with 'modprobe', adding the driver with 'modprobe', then bringing wlan0 up?
 
  


Reply

Tags
slackware, wireless, wpa2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting wifi ? TEQUIEJOE Linux - Newbie 1 05-04-2014 06:14 AM
wifi not connecting with 11.10 teepee Linux - Networking 2 12-12-2011 02:46 AM
Connecting to wifi birddseedd Linux - Wireless Networking 2 02-13-2007 11:45 AM
wifi connecting Nostur Linux - Wireless Networking 3 09-08-2006 02:12 PM
Connecting to WiFi fails Ubuntu 3 10-07-2005 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration