LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-22-2017, 09:03 AM   #1
Ian M
Member
 
Registered: Oct 2017
Location: UK
Distribution: Slackware 15
Posts: 39

Rep: Reputation: Disabled
NetworkManager WIFI not working after recent wpa_supplicant 2.6 upgrade in 14.2


Hi

I'm a long time Slackware user and lurker on here but never had anything to say until now

I'm running Slackware 14.2 64bit and using NetworkManager to handle networking. Following the security update to wpa_supplicant 2.6 on the 18th October WIFI stopped working. For some reason NetworkManager can't to detect my WIFI card.

Looking at /var/log/wpa_supplicant.logs shows the following when NetworkManager starts, this keeps repeating and it never makes a connection.

Code:
Successfully initialized wpa_supplicant
eth1: Failed to set random MAC address
eth1: Failed to assign random MAC address for a scan
eth1: CTRL-EVENT-SCAN-FAILED ret=-1
Compared to this when reverting to wpa_supplicant 2.5
Code:
Successfully initialized wpa_supplicant
eth1: Trying to associate with 00:18:39:aa:64:84 (SSID='xxxxxx' freq=2472 MHz)
eth1: Associated with 00:18:39:aa:64:84
eth1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
eth1: WPA: Key negotiation completed with 00:18:39:aa:64:84 [PTK=TKIP GTK=TKIP]
eth1: CTRL-EVENT-CONNECTED - Connection to 00:18:39:aa:64:84 completed [id=0 id_
str=]
I found this blog post which might explain what's going on https://blogs.gnome.org/thaller/2016...manager-1-4-0/

Here's the relevant bit "(NetWorkManager)...1.2.0 relies on support from wpa_supplicant to configure a random MAC address. The problem is that it requires API which will only be part of the next major release 2.6 of the supplicant. Such a release does not yet exist to this date and thus virtually nobody is using this feature."

I tried the configuration change mentioned there and some others to try and stop NetworkManager trying to assign a random MAC address but they didn't work. I think they apply to later versions.

The WIFI card is a broadcom 43142 using the broadcom-sta driver from SBo, so I'm guessing the problem is driver/card specific, otherwise someone else would have reported the problem.

Building and installing NetworkManager 1.8.4 from current has fixed the problem so I'm happy to mark this as solved but if anyone has any other suggestions to fix it I'd be happy to try them.
 
Old 10-22-2017, 10:57 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Small aside: you might want to consider swapping to CCMP(AES) for the cipher if your hardware supports it. TKIP has known weaknesses and has long since been deprecated (though it still seems to be in common use judging by the results of a scan of APs in range of my home).

Personally, I avoid NetworkManager like the plague and just let wpa_supplicant handle everything.
 
1 members found this post helpful.
Old 10-22-2017, 02:53 PM   #3
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273
I know this is simplistic, but did you restart wpa-supplicant and/or networkmanager?

After installing the patched wpa-supplicant, networkmanager didn't show any available wifi connections, none.
Not knowing enough (and not really wanting to know enough) to track down the problem, I rebooted the machine and wifi has been working perfectly since. Just a thought.

Last edited by cwizardone; 10-22-2017 at 02:59 PM.
 
2 members found this post helpful.
Old 10-23-2017, 03:17 PM   #4
Ian M
Member
 
Registered: Oct 2017
Location: UK
Distribution: Slackware 15
Posts: 39

Original Poster
Rep: Reputation: Disabled
Cheers for the replies. Yeah I tried rebooting and stopping and restarting networkmananger and that didn't help.

Quote:
Originally Posted by GazL View Post
Small aside: you might want to consider swapping to CCMP(AES)
You're right, unfortunately I've got a Now TV streaming box and with certain routers, unluckily including mine, they only work using TKIP, won't work in AES or mixed TKIP/AES mode.
 
Old 10-23-2017, 07:19 PM   #5
artificiosus
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 4
I have the same issue when using the broadcom-STA driver.

To recap/expand on your research:
It appears that wpa_supplicant 2.6 has the ability to randomize the mac address used during a scan.
NetworkManager 1.2.2 will use this ability by default if available, unfortunately this doesn't work for all chipsets/drivers.

Later versions of NetworkManager made this "feature" configurable by setting wifi.scan-rand-mac-address=no in NetworkManager.conf as well as implementing the randomization internally rather than using wpa_supplicant.

So...
I built a NetworkManager 1.8.4 package using the sources from -current and it solved my issues with no need to set wifi.scan-rand-mac-address=no

Not my favorite solution, but if we're lucky maybe NetworkManager will get upgraded in /patches for 14.2.
 
1 members found this post helpful.
Old 10-24-2017, 11:58 AM   #6
Ian M
Member
 
Registered: Oct 2017
Location: UK
Distribution: Slackware 15
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thanks for the confirmation, yeah 1.8.4 worked for me without having to set wifi.scan-rand-mac-address=no.
 
Old 10-27-2017, 08:16 AM   #7
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
1.8.4 works for me too.

Last edited by PROBLEMCHYLD; 11-01-2017 at 05:46 AM.
 
  


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
aren't Wpa_supplicant and Networkmanager working together gbcbooks Linux - Networking 2 10-09-2015 09:49 PM
A few wifi problems, both with wpa_supplicant/dhcpcd and NetworkManager theactionindex Slackware 7 08-21-2015 05:03 PM
NetworkManager + wpa_supplicant Zxarr Linux - Wireless Networking 2 07-07-2008 08:39 AM
A problem with networkmanager and wpa_supplicant flamy Linux - Networking 1 04-13-2007 09:13 AM
Ndiswrapper + NetworkManager + wpa_supplicant lonelydreamer Linux - Wireless Networking 5 06-13-2006 07:45 AM

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

All times are GMT -5. The time now is 10:00 AM.

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