Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539364 - net-wireless/wpa_supplicant-2.3, net-wireless/wireless-tools-30_pre9 AccessPoint is no more recognized
Summary: net-wireless/wpa_supplicant-2.3, net-wireless/wireless-tools-30_pre9 AccessPo...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-08 18:55 UTC by Juergen Rose
Modified: 2015-02-08 21:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2015-02-08 18:55:10 UTC
Since yesterday my WLAN does not work under Linux. Under Window and Android there is not any problem to use the WLAN. 
Ifconfig shows the correct IP address for wlan0:

root@lynx2:/root(28)# ifconfig
...
wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.1.43  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 00:21:5c:00:67:4d  txqueuelen 1000  (Ethernet)
        RX packets 2  bytes 270 (270.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1  bytes 153 (153.0 B)


Iwconfig shows the correct ESSID, but the Access Point is not associated:

root@lynx2:/root(31)# iwconfig wlan0
wlan0     IEEE 802.11abgn  ESSID:"jrnet"  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=15 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off


'iwlist scan' shows the access point. 


root@lynx2:/root(27)# iwlist wlan0 scan | grep -B5 -A 15 jrnet 
          Cell 02 - Address: 30:46:9A:85:BC:DE
                    Channel:12
                    Frequency:2.467 GHz (Channel 12)
                    Quality=70/70  Signal level=-35 dBm  
                    Encryption key:on
                    ESSID:"jrnet"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000071f57beee
                    Extra: Last beacon: 43ms ago
                    IE: Unknown: 00056A726E6574
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 03010C
                    IE: Unknown: 2A0104
                    IE: Unknown: 2F0104
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK


If I run wpa_supplicant manually, no error is shown, but nevertheless I can not access the Access Point:

root@lynx2:/root(51)# /usr/sbin/wpa_supplicant -B -i wlan0  -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=wheel'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.


root@lynx2:/root(53)# ll /var/run/wpa_supplicant/wlan0
srwxrwx--- 1 root wheel 0 Feb  8 09:30 /var/run/wpa_supplicant/wlan0=

root@lynx2:/root(54)# rm /var/run/wpa_supplicant/wlan0

root@lynx2:/root(55)# /usr/sbin/wpa_supplicant -B -i wlan0  -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant


Successfully initialized wpa_supplicant
root@lynx2:/root(56)# iwconfig
eth0      no wireless extensions.

wlan0     IEEE 802.11abgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=15 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          
sit0      no wireless extensions.

lo        no wireless extensions.



If I run wpa_cli, I see the following:

root@lynx2:/root(8)# wpa_cli
wpa_cli v2.3
Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.


Selected interface 'wlan0'

Interactive mode

<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
...
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SSID-REENABLED id=0 ssid="jrnet"
<3>SME: Trying to authenticate with 30:46:9a:85:bc:de (SSID='jrnet' freq=2467 MHz)
<3>Trying to associate with 30:46:9a:85:bc:de (SSID='jrnet' freq=2467 MHz)
<3>Associated with 30:46:9a:85:bc:de
<3>CTRL-EVENT-DISCONNECTED bssid=30:46:9a:85:bc:de reason=3 locally_generated=1
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="jrnet" auth_failures=11 duration=120 reason=CONN_FAILED
<3>CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
...
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SSID-REENABLED id=0 ssid="jrnet"
<3>SME: Trying to authenticate with 30:46:9a:85:bc:de (SSID='jrnet' freq=2467 MHz)
<3>Trying to associate with 30:46:9a:85:bc:de (SSID='jrnet' freq=2467 MHz)
<3>Associated with 30:46:9a:85:bc:de
<3>CTRL-EVENT-DISCONNECTED bssid=30:46:9a:85:bc:de reason=3 locally_generated=1
<3>WPA: 4-Way Handshake failed - pre-shared key may be incorrect
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="jrnet" auth_failures=12 duration=120 reason=WRONG_KEY
<3>CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
<3>CTRL-EVENT-SCAN-STARTED 
...
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SSID-REENABLED id=0 ssid="jrnet"
<3>SME: Trying to authenticate with 30:46:9a:85:bc:de (SSID='jrnet' freq=2467 MHz)
<3>Trying to associate with 30:46:9a:85:bc:de (SSID='jrnet' freq=2467 MHz)
<3>Associated with 30:46:9a:85:bc:de
<3>CTRL-EVENT-DISCONNECTED bssid=30:46:9a:85:bc:de reason=3 locally_generated=1
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="jrnet" auth_failures=14 duration=120 reason=CONN_FAILED
<3>CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
...
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SSID-REENABLED id=0 ssid="jrnet"
<3>SME: Trying to authenticate with 30:46:9a:85:bc:de (SSID='jrnet' freq=2467 MHz)
<3>Trying to associate with 30:46:9a:85:bc:de (SSID='jrnet' freq=2467 MHz)
<3>Associated with 30:46:9a:85:bc:de
<3>CTRL-EVENT-DISCONNECTED bssid=30:46:9a:85:bc:de reason=3 locally_generated=1
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="jrnet" auth_failures=16 duration=120 reason=CONN_FAILED
<3>CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD



I would appreciate any hint.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-02-08 19:28:53 UTC
Are you sure that this is related to wireless-tools? They are not involved in any kind of WPA connection.
# qlop -lu | tail
may give you hints about which packages were upgraded recently.

<3>WPA: 4-Way Handshake failed - pre-shared key may be incorrect
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="jrnet" auth_failures=12 duration=120 reason=WRONG_KEY

This appears to be your AP rejecting your STA's attempt at authentication.
Comment 2 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2015-02-08 21:00:43 UTC
This seems to be more related to how wpa_supplicant work, or your AP configuration, than Gentoo.

Could you try and take it upstream, and ask them to help you - they know this ins and outs of wpa_supplicant, which I don't that well.

You can find them here: http://lists.shmoo.com/mailman/listinfo/hostap :-)