Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant CTRL-EVENT-NETWORK-NOT-FOUND
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
susanne
n00b
n00b


Joined: 12 Oct 2019
Posts: 1

PostPosted: Sat Oct 12, 2019 5:57 am    Post subject: wpa_supplicant CTRL-EVENT-NETWORK-NOT-FOUND Reply with quote

THE PROBLEM I HAVE:
I managed to scan and add my network using wpa_cli but I'm still not connected.when I enter wpa_cli it loops the following messages:
    CTRL-EVENT-SCAN-STARTED
    CTRL-EVENT_SCANT-RESULTS
    WPS-AP-AVAILABLE
    CTRL-EVENT-NETWORK-NOT-FOUND

When I ping www.gentoo.org" it says:
Quote:
ping: www.gentoo.org: Temporary failure in name resolution.

The scan of the networks around me (using this guide: https://wiki.archlinux.org/index.php/WPA_supplicant) shows my network ( that I successfully added ) and the others. That means that the kernel is configured correctly, but I'm still unable to connect.

MY CONFIGURATION:
ip link:
    lo: ( if important I will add)
    eth0: ( if important I will add)
    bond0: ( if important I will add)
    wlan0: >NO-CARRIER, BROADCAST, MULTICAST, UP> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000 link/ether 2c:1f:4e:23:d6:21 brd ff:ff:ff:ff:ff:ff

nano /etc/wpa_supplicant/wpa_supplicant.conf:
    ctrl_interface=/var/run/wpa_supplicant
    update_config=1
    network={ssid:"??:??:??:??:??:??" psk="ILoveGentoo"}

lspci -k:
    Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
    Kernel driver in use: ath9k
    Kernel modules: ath9k

nano /etc/conf.d/net:
    modules="wpa_supplicant"

Thank you for your time :p
Edit: If you need any additional information, I'll give it to you as soon as possible!
Back to top
View user's profile Send private message
xanderal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2019
Posts: 133
Location: Germany

PostPosted: Tue Oct 15, 2019 10:34 pm    Post subject: Re: wpa_supplicant CTRL-EVENT-NETWORK-NOT-FOUND Reply with quote

susanne wrote:
using this guide: https://wiki.archlinux.org/index.php/WPA_supplicant
Maybe gentoo wiki would have been an idea - but anyway...
susanne wrote:
That means that the kernel is configured correctly
You're probably correct.
susanne wrote:
nano /etc/wpa_supplicant/wpa_supplicant.conf:
Code:
ctrl_interface=/var/run/wpa_supplicant
update_config=1
network={ssid:"??:??:??:??:??:??" psk="ILoveGentoo"}
Well, what kind of network do you have? Is it in any way secured? Again I would recommend reading the wiki and maybe checking out the template in /usr/share/doc/ (exact location in wiki) but your config does look a bit too basic to me.
susanne wrote:
nano /etc/conf.d/net:
Code:
modules="wpa_supplicant"
Following the handbook and above mentioned wiki page I end up with something along the lines of
Code:
dns_domain_lo="homenetwork"
config_eth0="dhcp"
# Prefer wpa_supplicant over wireless-tools
modules="wpa_supplicant"
modules_wlan0="wpa_supplicant"
wpa_supplicant_wlan0="-Dnl80211 -d -f /var/log/wpa_supplicant.log"
config_wlan0="dhcp"
I hope that helps. If not let me no what you tried and I'll look again.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Oct 15, 2019 10:43 pm    Post subject: Reply with quote

ssid should be the name of the network, not the MAC address.
Back to top
View user's profile Send private message
GrandeGrabois
n00b
n00b


Joined: 16 Oct 2019
Posts: 47

PostPosted: Thu Oct 17, 2019 7:45 pm    Post subject: Reply with quote

An easy way to create wpa_supplicant.conf files for simple WPA-PSK networks is by using wpa_passphrase tool (included in wpa_supplicant package). Just do
Code:
$ wpa_passphrase "ssid" "password" > "path/to/config"


For example, using:
Code:
$ wpa_passphrase "test network" this_is_just_a_test > test.conf


I get the following test.conf file

Code:

network={
   ssid="test network"
   #psk="this_is_just_a_test"
   psk=04513af11a72f0f63c0649dd209bbd09fad4369de2cb4ae33fbcdc4d96b41ce0
}


Note, as said above, that SSID is not the MAC address. And PSK is not the plain password.

Afterwards, just
Code:
wpa_supplicant -D nl80211 -i <ifname> -c <conffile> -B
to authenticate. Followed by dhcpcd or dhclient to get network address.
Back to top
View user's profile Send private message
ctejeda
n00b
n00b


Joined: 04 Sep 2022
Posts: 1

PostPosted: Sun Sep 04, 2022 8:30 pm    Post subject: I'm having the same issue. Reply with quote

Hi, I'm installing today's x86 version of gentoo, and I have the same problem as the one in this thread:
The automatic net-config did not work, so I tried with manual.
I can see using wpa_cli the message: <3>CTRL-EVENT-NETWORK-NOT-FOUND
but I do not have the WPS-AP-AVAILABLE message as Sussane has.
The scan works okay, in fact I can see the flags of the wifi I want to connect to in wpa_lic with the command scan_results: [WPA-PSK-CCMP+TKIP][WPA2-?][ESS]
I have in /etc/config.d/net:

Code:
modules="wpa_supplicant"


In /etc/wpa_supplicant/wpa_supplicant.conf
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=0
network={
   ssid="myssid"
   #psk="my password"
   psk=......
# I have added these flags too, but without them I had the same results
   key_mgmt=WPA-PSK
   pairwise=CCMP
   group=CCMP
}


I did generate the initial config with wpa_password "myssid" > /etc/wpa_supplicant/wpa_supplicant.conf

I start wpa_supplicant using this commandline:
Code:
wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlp1s0

And it answers : Successfully initialized wpa_supplicant

I do not know how to debug this issue, could you help me?

Thank you in advance.
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