Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can't connect to Wi-Fi using wpa_supplicant
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
errror
n00b
n00b


Joined: 03 Jul 2016
Posts: 7

PostPosted: Sun Jul 03, 2016 11:50 pm    Post subject: [SOLVED] Can't connect to Wi-Fi using wpa_supplicant Reply with quote

I run /etc/init.d/net.wlan0 start and open wpa_cli.

I run scan and after a while it says CTRL-EVENT-NETWORK-NOT-FOUND. While scanning I can see my Wi-Fi LED light up.

My network controller is an Intel Corporation PRO/Wireless 5100 AGN and I'm using the iwlwifi driver.

I should point out connecting to ethernet works fine, but this is a laptop.

Thanks in advance for the help.


Last edited by errror on Mon Jul 04, 2016 10:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Mon Jul 04, 2016 12:18 am    Post subject: Reply with quote

What have you configured in /etc/conf.d/net for wlan0?
What is the output of "iw dev wlan0 scan"?
Is wifi blocked by rfkill?
Back to top
View user's profile Send private message
errror
n00b
n00b


Joined: 03 Jul 2016
Posts: 7

PostPosted: Mon Jul 04, 2016 3:54 am    Post subject: Reply with quote

chithanh wrote:
What have you configured in /etc/conf.d/net for wlan0?
What is the output of "iw dev wlan0 scan"?
Is wifi blocked by rfkill?


I didn't have iw but I installed it now, ran "iw dev wlan0 scan", and got this: http://pastebin.com/gwZLHDyv

My /etc/conf.d/net looks like this: http://pastebin.com/ATG0MTUU

dunno how to check rfkill
Back to top
View user's profile Send private message
nictki
n00b
n00b


Joined: 10 Jan 2007
Posts: 63
Location: somewhere else...

PostPosted: Mon Jul 04, 2016 9:00 am    Post subject: Reply with quote

error wrote:
dunno how to check rfkill

Code:
rfkill list

_________________
github
Back to top
View user's profile Send private message
nictki
n00b
n00b


Joined: 10 Jan 2007
Posts: 63
Location: somewhere else...

PostPosted: Mon Jul 04, 2016 9:09 am    Post subject: Reply with quote

@errror

Are you running wpa_cli as a root?
_________________
github
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Mon Jul 04, 2016 9:12 am    Post subject: Reply with quote

You will see the rfkill controls in subdirectories of /sys/class/rfkill/ (state needs to contain 1) or you can emerge rfkill for convenience as nictki suggested.

Your /etc/conf.d/net looks ok, maybe try the following:
Code:
# wpa_passphrase "yourssid" >> /etc/wpa_supplicant/wpa_supplicant.conf

Then enter your WPA-PSK (will be shown on terminal) and restart net.wlan0

If that works, your connection between wpa_cli and wpa_supplicant is somehow broken, maybe a dbus issue.
Back to top
View user's profile Send private message
errror
n00b
n00b


Joined: 03 Jul 2016
Posts: 7

PostPosted: Mon Jul 04, 2016 3:10 pm    Post subject: Reply with quote

nictki wrote:
@errror

Are you running wpa_cli as a root?


Yep, I've been running it as root.

chithanh wrote:
You will see the rfkill controls in subdirectories of /sys/class/rfkill/ (state needs to contain 1) or you can emerge rfkill for convenience as nictki suggested.

Your /etc/conf.d/net looks ok, maybe try the following:
Code:
# wpa_passphrase "yourssid" >> /etc/wpa_supplicant/wpa_supplicant.conf

Then enter your WPA-PSK (will be shown on terminal) and restart net.wlan0

If that works, your connection between wpa_cli and wpa_supplicant is somehow broken, maybe a dbus issue.


It worked like that, thanks m8!
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Fri Aug 05, 2022 5:32 am    Post subject: Reply with quote

Sorry for bumping this old topic, but people seem to be directed here from various places on the Internet. Especially more recently when they report problems connecting to certain Wifi networks.

The most recent cause of connection problems affecting wpa_supplicant is that USE="tkip" now defaults to disabled. This is because WPA1/TKIP has been considered insecure for a while. Please switch the networks to WPA2/CCMP or better. If that is not an option and you still wish to connect to such insecure networks, you can enable the tkip USE flag for wpa_supplicant.

See this topic for more explanation.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum