LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-06-2017, 08:55 AM   #1
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
wifi problem


Hello,

I have slackware64-current on two laptops, with identical etc/resolv.conf, /etc/wpa_supplicant.conf, /etc/rc.d/rc.inet1.conf. But one laptop connects correctly to wifi after booting, and the other not. But it is still possible to connect using wicd. How can this happen ?
 
Old 03-06-2017, 09:27 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Network Manager can be temperamental with dhcp clients. I would try changing the client used from dhcpcd to dhclient and see if that fixes your problem. Network Manager seems to have issues with both clients, but usually one will work if the other won't. Pat has found the least amount of issues with dhcpcd, but it doesn't work for everyone.

If that doesn't solve your problem, please also post more information on your wireless devices, using lspci -k | grep -iA3 net.
 
1 members found this post helpful.
Old 03-06-2017, 10:44 AM   #3
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Original Poster
Rep: Reputation: Disabled
@bassmadrigal : thank you for your answer, but I don't use networkmanager. I have tried to make /etc/rc.d/rc.networkmanager executable, but this does not change anything. lspci -k | grep -iA3 net gives
Quote:
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 04)
Subsystem: Hewlett-Packard Company Ethernet Connection I217-LM
Kernel driver in use: e1000e
Kernel modules: e1000e
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
--
3d:00.0 Network controller: Intel Corporation Wireless 7260 (rev 6b)
Subsystem: Intel Corporation Dual Band Wireless-N 7260
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi


I am used to need only the simple files


wpa_supplicant.conf
Quote:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

# WPA protected network, supply your own ESSID and WPAPSK here:
network={
scan_ssid=1
ssid="XXXXXXXXXXXXX"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="XXXXXXXXXXXXXXXXXXXXXXXX"
}

resolv.conf
Quote:
# Generated by dhcpcd from wlan0.dhcp
# /etc/resolv.conf.head can replace this line
domain home
nameserver 192.168.1.1
# /etc/resolv.conf.tail can replace this line

rc.inet1.conf
Quote:
GATEWAY="192.168.1.1"

DEBUG_ETH_UP="no"

IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"
WLAN_WPACONF[4]="/etc/wpa_supplicant.conf"
 
Old 03-06-2017, 11:08 AM   #4
ppencho
Member
 
Registered: Jan 2004
Location: Bulgaria
Distribution: Slackware64-current
Posts: 94

Rep: Reputation: Disabled
wpa_supplicant could be run in debug mode, check its options.
 
Old 03-06-2017, 12:35 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I didn't realize you were using wpa_supplicant directly (it isn't very common anymore as most prefer to use GUIs like Network Manager or wicd).

Have you tried running the wpa_supplicant command directly to see if it connects? This can help us determine if it is an rc.inet1.conf misconfiguration or an issue with wpa_supplicant itself. If it doesn't connect, please paste the output here.

Code:
wpa_supplicant -dd -c/etc/wpa_supplicant.conf -Dwext -iwlan0
You could also try regenerating your wpa passphrase using, well, wpa_passphrase.

Code:
wpa_passphrase your-SSID "your psk" >> /etc/wpa_supplicant.conf
I would then remove your first network entry (most of those lines aren't needed) on your existing /etc/wpa_supplicant.conf just to make sure it is connecting to the right network with the correct information.
 
Old 03-06-2017, 12:51 PM   #6
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Original Poster
Rep: Reputation: Disabled
I have tried to run wpa_supplicant directly and it gives some kind of infinite loop. The beginning is here



Quote:
wpa_supplicant v2.6
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 14 - start of a new network block
ssid - hexdump_ascii(len=12):
4c 69 76 65 62 6f 78 2d 31 43 34 35 Livebox-1C45
proto: 0x1
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=18): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='Livebox-1C45'
WEXT: cfg80211-based driver detected
wext: interface wlan0 phy: phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0x1f flags 0x0
WEXT: Driver: iwlwifi
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
wlan0: Own MAC address: a4:c4:94:a8:59:b2
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wlan0: RSN: flushing PMKID list in the driver
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: ec7f8f4e-e402-5e33-a0a1-f393d01d980a
ENGINE: Loading dynamic engine
ENGINE: Loading dynamic engine
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
ctrl_interface_group=0
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
random: Got 19/20 bytes from /dev/random
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b1a len=16
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x10ec320
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x10ec320 after 0.000006 second wait
ioctl[SIOCSIWSCAN]: Device or resource busy
Scan requested (ret=-1) - scan timeout 10 seconds
wlan0: State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: Radio work 'scan'@0x10ec320 done in 0.000042 seconds
wlan0: radio_work_free('scan'@0x10ec320: num_active_works --> 0
wlan0: Setting scan request: 1.000000 sec
EAPOL: disable timer tick
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x10ec320
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x10ec320 after 0.000006 second wait
ioctl[SIOCSIWSCAN]: Device or resource busy
Scan requested (ret=-1) - scan timeout 10 seconds
wlan0: State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: Radio work 'scan'@0x10ec320 done in 0.000045 seconds
wlan0: radio_work_free('scan'@0x10ec320: num_active_works --> 0
wlan0: Setting scan request: 1.000000 sec
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x10ec320
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x10ec320 after 0.000006 second wait
ioctl[SIOCSIWSCAN]: Device or resource busy
Scan requested (ret=-1) - scan timeout 10 seconds
wlan0: State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: Radio work 'scan'@0x10ec320 done in 0.000034 seconds
wlan0: radio_work_free('scan'@0x10ec320: num_active_works --> 0
wlan0: Setting scan request: 1.000000 sec
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x10ec320
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x10ec320 after 0.000027 second wait
ioctl[SIOCSIWSCAN]: Device or resource busy
Scan requested (ret=-1) - scan timeout 10 seconds
wlan0: State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: Radio work 'scan'@0x10ec320 done in 0.000067 seconds
wlan0: radio_work_free('scan'@0x10ec320: num_active_works --> 0
wlan0: Setting scan request: 1.000000 sec
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b19 len=16
wlan0: Event SCAN_RESULTS (3) received
Received 1434 bytes of scan results (2 BSSes)
wlan0: BSS: Start scan result update 1
wlan0: BSS: Add new id 0 BSSID 48:83:c7:2e:e6:75 SSID 'Livebox-1C45' freq 5500
wlan0: BSS: Add new id 1 BSSID 48:83:c7:2e:e6:70 SSID 'Livebox-1C45' freq 2412
BSS: last_scan_res_used=2/32
wlan0: New scan results available (own=0 ext=0)
WPS: AP 48:83:c7:2e:e6:75 type 0 added
WPS: AP 48:83:c7:2e:e6:70 type 0 added
WPS: AP[0] 48:83:c7:2e:e6:75 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[1] 48:83:c7:2e:e6:70 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlan0: Selecting BSS from priority group 0
wlan0: 0: 48:83:c7:2e:e6:75 ssid='Livebox-1C45' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-40 freq=5500 wps
wlan0: skip - no WPA/RSN proto match
wlan0: 1: 48:83:c7:2e:e6:70 ssid='Livebox-1C45' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-47 freq=2412 wps
wlan0: skip - no WPA/RSN proto match
wlan0: No suitable network found
wlan0: Ignore new scan request for 5.000000 sec since an earlier request is scheduled to trigger sooner
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x10ec2f0
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x10ec2f0 after 0.000017 second wait
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b19 len=16
wlan0: Event SCAN_RESULTS (3) received
Received 1433 bytes of scan results (2 BSSes)
wlan0: BSS: Start scan result update 2
BSS: last_scan_res_used=2/32
wlan0: New scan results available (own=0 ext=0)
WPS: AP[0] 48:83:c7:2e:e6:75 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[1] 48:83:c7:2e:e6:70 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlan0: Radio work 'scan'@0x10ec2f0 done in 3.275153 seconds
wlan0: radio_work_free('scan'@0x10ec2f0: num_active_works --> 0
wlan0: Selecting BSS from priority group 0
wlan0: 0: 48:83:c7:2e:e6:75 ssid='Livebox-1C45' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-43 freq=5500 wps
wlan0: skip - no WPA/RSN proto match
wlan0: 1: 48:83:c7:2e:e6:70 ssid='Livebox-1C45' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-46 freq=2412 wps
wlan0: skip - no WPA/RSN proto match
wlan0: No suitable network found
wlan0: Setting scan request: 5.000000 sec
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b19 len=16
wlan0: Event SCAN_RESULTS (3) received
Received 1433 bytes of scan results (2 BSSes)
wlan0: BSS: Start scan result update 3
BSS: last_scan_res_used=2/32
wlan0: New scan results available (own=0 ext=0)
WPS: AP[0] 48:83:c7:2e:e6:75 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[1] 48:83:c7:2e:e6:70 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlan0: Selecting BSS from priority group 0
wlan0: 0: 48:83:c7:2e:e6:75 ssid='Livebox-1C45' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-40 freq=5500 wps
wlan0: skip - no WPA/RSN proto match
wlan0: 1: 48:83:c7:2e:e6:70 ssid='Livebox-1C45' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-56 freq=2412 wps
wlan0: skip - no WPA/RSN proto match
wlan0: No suitable network found
wlan0: Ignore new scan request for 5.000000 sec since an earlier request is scheduled to trigger sooner
wlan0: Starting AP scan for wildcard SSID
wlan0: Determining shared radio frequencies (max len 1)
wlan0: Shared frequencies (len=0): completed iteration
wlan0: Add radio work 'scan'@0x10cb2c0
 
Old 03-06-2017, 12:58 PM   #7
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Original Poster
Rep: Reputation: Disabled
It is possible to connect using wicd, with the same data as in the config files in /etc. But apparently wicd does something else...
 
Old 03-06-2017, 01:07 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I'm curious about these lines:

Code:
wlan0: 0: 48:83:c7:2e:e6:75 ssid='Livebox-1C45' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-43 freq=5500 wps
wlan0: skip - no WPA/RSN proto match
wlan0: 1: 48:83:c7:2e:e6:70 ssid='Livebox-1C45' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-46 freq=2412 wps
wlan0: skip - no WPA/RSN proto match
wlan0: No suitable network found
Is Livebox-1C45 your network or a network provided by someone else? Based on the output, I think it is provided by someone else, since it says no WPA/RSN match. Do you have any special things going on with your wireless network (hiding SSID, MAC address filtering, etc)? Did you try the new wpa_passphrase output?
 
Old 03-06-2017, 01:53 PM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
My guess is that Livebox-1C45 is the name of a of box that provides the wifi connection, rented by the french Internet provider Orange.

@Toutatis: just run "netconfig" as root, choose NetworkManager to manage your connections and be happy. No need to fiddle with all these config files.
 
Old 03-07-2017, 12:33 AM   #10
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Original Poster
Rep: Reputation: Disabled
Thank you for all your answers.

@Didier Spaier : I have started from the beginning with netconfig and it works. The two laptops are on distinct locations with not the same Liveboxes. From bassmadrigal remarks I suspect that they don't use the same protocol.
 
  


Reply



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
Static WiFi problem in Dual Booted System. Dynamic WiFi working Shahbaz E Linux - Newbie 3 01-22-2016 09:21 PM
Want to share my wifi by creating a wifi hotspot ( While staying connected to wifi)? shadyXV Linux - Desktop 4 07-20-2015 05:37 PM
[SOLVED] Wifi problem danne123 Linux - Newbie 3 11-07-2009 01:18 PM
Wifi problem in ubuntu 9.04 with atheros wifi card raghulmz Linux - Hardware 1 10-28-2009 04:58 AM
Slackware 12.0: boot problem & sudo / wifi-radar problem War_Ensemble Slackware 7 01-15-2008 09:49 AM

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

All times are GMT -5. The time now is 12:47 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
Open Source Consulting | Domain Registration