LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 01-03-2017, 04:16 AM   #1
m00rg
LQ Newbie
 
Registered: Jan 2017
Posts: 5

Rep: Reputation: Disabled
Wifi can't connect to one access point: Association timed out


Hi,

I have problems connecting to my workplace WiFi network on Ubuntu 16.04 on a Sony Vaio VPCZ1 i5 laptop.
I can connect to nearly all Wifi networks without a problem, but my workplace network doesn't connect.
<disclaimer> I am not the only person who has this problem, although most devices connect with an issue, it happens on various devices particularly android devices as well, but it is more difficult to get good debugging on them. </disclaimer>
Also, Windows 7 on the same laptop connects well.

In NetworkManager I can see the AP, it asks for a password so I type it in, then it tries to connect multiple times and fails.
I caught up with someone who could change some AP settings yesterday for half an hour and we tried with no security and it still failed to connect, and also tried combinations of WEP, 802.11n and 802.11g without it working.

There are 4 AP's all with the same setup in multiple parts of the building, and all fail. I am almost certainly connecting to the one right outside my office, although looking at the logs it sometimes tries other ones.. They are NetGear WAG102 routers.

wireless-info log is here https://dl.dropboxusercontent.com/u/...ss-info.tar.gz, and have also got full logs available from trying to connect with wpa_supplicant, but I'm not sure whether I need to anonymise apart from the SSID/password. Are MAC addresses OK?

While I don't have access to the router settings myself, I can ask someone to change things, and we would love to fix this problem for all devices, so changing settings on the AP is a good option.

Thank you for your assistance, I would be very happy to get this issue solved!
Pete

The bit where it all goes wrong for wpa_supplicant:
Code:
wlp2s0: New scan results available (own=1 ext=0)
wlp2s0: Radio work 'scan'@0x816409c0 done in 3.038933 seconds
wlp2s0: Selecting BSS from priority group 0
wlp2s0: 0: e0:46:9a:b1:ed:af ssid='MyAP' wpa_ie_len=26 rsn_ie_len=24 caps=0x411 level=-43
wlp2s0:    selected based on RSN IE
wlp2s0:    selected BSS e0:46:9a:b1:ed:af ssid='MyAP'
wlp2s0: Considering connect request: reassociate: 0  selected: e0:46:9a:b1:ed:af  bssid: 00:00:00:00:00:00  pending: 00:00:00:00:00:00  wpa_state: SCANNING  ssid=0x81631470  current_ssid=(nil)
wlp2s0: Request association with e0:46:9a:b1:ed:af
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=10): 00 08 43 43 57 6f 6b 69 6e 67
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=3): 03 01 08
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=8): 07 06 47 42 20 01 0d 14
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=3): 2a 01 04
WPA: RSN IE in EAPOL-Key - hexdump(len=26): 30 18 01 00 00 0f ac 02 02 00 00 0f ac 02 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: WPA IE in EAPOL-Key - hexdump(len=28): dd 1a 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 02 00 50 f2 04 01 00 00 50 f2 02
wlp2s0: Add radio work 'sme-connect'@0x81645100
wlp2s0: First radio work item in the queue - schedule start immediately
wlp2s0: Starting radio work 'sme-connect'@0x81645100 after 0.000015 second wait
wlp2s0: Automatic auth_alg selection: 0x1
RSN: PMKSA cache search - network_ctx=(nil) try_opportunistic=0
RSN: Search for BSSID e0:46:9a:b1:ed:af
RSN: No PMKSA cache entry found
wlp2s0: RSN: using IEEE 802.11i/D9.0
wlp2s0: WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 2 proto 2
wlp2s0: WPA: Selected mgmt group cipher 32
WPA: set AP WPA IE - hexdump(len=28): <hex removed as I'm not sure if if it's a security issue>
WPA: set AP RSN IE - hexdump(len=26): <hex removed as I'm not sure if if it's a security issue>
wlp2s0: WPA: using GTK TKIP
wlp2s0: WPA: using PTK CCMP
wlp2s0: WPA: using KEY_MGMT WPA-PSK
wlp2s0: WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=22): <hex removed as I'm not sure if if it's a security issue>
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
RRM: Determining whether RRM can be used - device support: 0x0
RRM: No RRM in network
wlp2s0: Cancelling scan request
wlp2s0: SME: Trying to authenticate with e0:46:9a:b1:ed:af (SSID='MyAP' freq=2447 MHz)
wlp2s0: State: SCANNING -> AUTHENTICATING
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
wlp2s0: Determining shared radio frequencies (max len 1)
wlp2s0: Shared frequencies (len=0): completed iteration
nl80211: Authenticate (ifindex=3)
  * bssid=<hex removed as I'm not sure if if it's a security issue>
  * freq=2447
  * SSID - hexdump_ascii(len=8):
    <hex removed as I'm not sure if if it's a security issue>       
  * IEs - hexdump(len=0): [NULL]
  * Auth Type 0
nl80211: Authentication request send successfully
RTM_NEWLINK: ifi_index=3 ifname=wlp2s0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Event message available
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlp2s0
nl80211: New station e0:46:9a:b1:ed:af
nl80211: Event message available
nl80211: Drv Event 37 (NL80211_CMD_AUTHENTICATE) received for wlp2s0
nl80211: MLME event 37 (NL80211_CMD_AUTHENTICATE) on wlp2s0(00:27:10:0e:f6:f4) <hex removed as I'm not sure if if it's a security issue>
nl80211: MLME event frame - hexdump(len=30): <hex removed as I'm not sure if if it's a security issue>
nl80211: Authenticate event
wlp2s0: Event AUTH (11) received
wlp2s0: SME: Authentication response: peer=e0:46:9a:b1:ed:af auth_type=0 auth_transaction=2 status_code=0
SME: Authentication response IEs - hexdump(len=0): [NULL]
wlp2s0: set_disable_max_amsdu: -1
wlp2s0: set_ampdu_factor: -1
wlp2s0: set_ampdu_density: -1
wlp2s0: set_disable_ht40: 0
wlp2s0: set_disable_sgi: 0
wlp2s0: set_disable_ldpc: 0
wlp2s0: Trying to associate with <hex removed as I'm not sure if if it's a security issue> (SSID='MyAP' freq=2447 MHz)
wlp2s0: State: AUTHENTICATING -> ASSOCIATING
nl80211: Set wlp2s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
WPA: set own WPA/RSN IE - hexdump(len=22): <hex removed as I'm not sure if if it's a security issue>
nl80211: Associate (ifindex=3)
  * bssid=<hex removed as I'm not sure if if it's a security issue>
  * freq=2447
  * SSID - hexdump_ascii(len=8):
     <hex removed as I'm not sure if if it's a security issue>                           MyAP
  * IEs - hexdump(len=32): <hex removed as I'm not sure if if it's a security issue>
  * WPA Versions 0x2
  * pairwise=0xfac04
  * group=0xfac02
  * akm=0xfac02
  * htcaps - hexdump(len=26): 63 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  * htcaps_mask - hexdump(len=26): 63 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  * vhtcaps - hexdump(len=12): 00 00 00 00 00 00 00 00 00 00 00 00
  * vhtcaps_mask - hexdump(len=12): 00 00 00 00 00 00 00 00 00 00 00 00
nl80211: Association request send successfully
nl80211: Event message available
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlp2s0
nl80211: Delete station e0:46:9a:b1:ed:af
nl80211: Event message available
nl80211: Drv Event 38 (NL80211_CMD_ASSOCIATE) received for wlp2s0
nl80211: MLME event 38; timeout with e0:46:9a:b1:ed:af
wlp2s0: Event ASSOC_TIMED_OUT (15) received
wlp2s0: SME: Association timed out
wlp2s0: Radio work 'sme-connect'@0x81645100 done in 0.345564 seconds
Added BSSID e0:46:9a:b1:ed:af into blacklist
wlp2s0: Another BSS in this ESS has been seen; try it next
BSSID e0:46:9a:b1:ed:af blacklist count incremented to 2
wlp2s0: Blacklist count 1 --> request scan in 100 ms
wlp2s0: Setting scan request: 0.100000 sec
wlp2s0: State: ASSOCIATING -> DISCONNECTED
nl80211: Set wlp2s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
wlp2s0: State: DISCONNECTED -> SCANNING
wlp2s0: Starting AP scan for wildcard SSID
wlp2s0: Optimize scan based on previously generated frequency list
wlp2s0: Add radio work 'scan'@0x81640f68
wlp2s0: First radio work item in the queue - schedule start immediately
wlp2s0: Starting radio work 'scan'@0x81640f68 after 0.000022 second wait
wlp2s0: nl80211: scan request
nl80211: Scan SSID - hexdump_ascii(len=0): [NULL]
nl80211: Scan frequency 2447 MHz
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Event message available
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlp2s0
wlp2s0: nl80211: Scan trigger
wlp2s0: Event SCAN_STARTED (47) received
wlp2s0: Own scan request started a scan in 0.000072 seconds
RTM_NEWLINK: ifi_index=3 ifname=wlp2s0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Event message available
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlp2s0
wlp2s0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2447
wlp2s0: Event SCAN_RESULTS (3) received
wlp2s0: Scan completed in 0.034247 seconds
nl80211: Received scan results (25 BSSes)
wlp2s0: BSS: Start scan result update 2
BSS: last_scan_res_used=25/32
wlp2s0: New scan results available (own=1 ext=0)
wlp2s0: Radio work 'scan'@0x81640f68 done in 0.035166 seconds
wlp2s0: Selecting BSS from priority group 0
 
Old 01-04-2017, 12:02 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,288

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Had this once a few years back. It's probably authentication protocols. A lot of stuff is presumed, and in some cases the presumption is wrong. Look at these 2 entries from my wpa_supplicant.conf
Code:
# WPA protected network, supply your own ESSID and WPAPSK here:
network={
#  scan_ssid=0
  ssid=<My Home ESSID>
#  proto=WPA-PSK
  key_mgmt=WPA-PSK WPA-EAP
  #psk="My Home Keyphrase" 
  psk=<My Home Keyphrase passed through wpa_passphrase>
# Setup for EDUROAM access points (A common University setup here)
network={
  ssid="eduroam"
  scan_ssid=1
  proto=WPA2
  key_mgmt=WPA-EAP
  eap=TTLS
  identity="Student_Number@Faculty.University.Country"
  password="My_Password"
  #psk - not working with psk
  phase2="auth=PAP"
}
They're completely different. I supply the key at home. I supply ID for them to verify at eduroam. As root, do
Code:
iwlist wlan0 scan |less
while within reach of the offending signal, and it will tell you the protocols in use. Make sure you include those.
 
Old 01-13-2017, 08:25 AM   #3
m00rg
LQ Newbie
 
Registered: Jan 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for your reply!

iw_list gives me the following (I'll exclude the many other access points within range)
Code:
Cell 03 - Address: 28:C6:8E:62:9E:29
                    Channel:8
                    Frequency:2.447 GHz (Channel 8)
                    Quality=69/70  Signal level=-41 dBm  
                    Encryption key:on
                    ESSID:"CCWoking"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s
                    Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000006e3ed271e
                    Extra: Last beacon: 3060ms ago
                    IE: Unknown: 00084343576F6B696E67
                    IE: Unknown: 010882848B960C183048
                    IE: Unknown: 030108
                    IE: Unknown: 0706474220010D14
                    IE: Unknown: 2A0104
                    IE: Unknown: 32041224606C
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
I also can't connect when we set it to be an open AP, we get the same result.

Thank you
Pete
 
Old 01-13-2017, 10:43 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,288

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
If you can't connect to an open AP, that's eliminated authentication as an issue. iwlist can scan for networks, so the driver seems OK. That leaves network settings, and NetworkManager. Can you connect anywhere?

NetworkManager I find to be a piece of (expletive deleted) which I avoid/circumvent where possible. I suggest you STOP NetworkManager, and connect manually. For an open network, one of these (as root)should connect automagically as long as NetworkManager is inactive.
Code:
dhclient wlan0
dhcpcd wlan0
Each of the config files in /etc (/etc/dhcp.conf, or /etc/dhclient.conf) has a man page. Look it up and check your file. To connect with wpa_supplicant involved, you need a sensible description of the network.

Let's try for an open access first
 
Old 01-17-2017, 04:35 AM   #5
m00rg
LQ Newbie
 
Registered: Jan 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for your help!
Answers to your questions:

* I can connect to every other network. In fact, this office network has one AP which is a Zytel rather than a Netgear (but otherwise has the same settings). It has a faulty PSU so isn't often on, but when it is I can connect to it perfectly (but not the other AP's).
* The set of logs in my original post is with wpa_supplicant (wpa_supplicant -d -D nl80211 -i wlp2s0 -c <(wpa_passphrase "AP_NAME" "AP_PWD"). It doesn't connect to the netgear AP's with this, but does connect to the Zytel

Thank you for your assistance!
Pete
 
Old 01-17-2017, 10:32 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,288

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
What happens if you change the invocation of wpa_supplicant I don't like putting it all on the command line. /There is /etc/wpa_supplicant.conf. The phrase generated by wpa_passphrase goes in to wpa_supplicant.conf (the line psk=<My Home Keyphrase passed through wpa_passphrase>
You only should need
Code:
wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant
Note: Some distros use /etc/wpa_supplicant/wpa_supplicant.conf. Alter as needed. Try also with the wext driver instead of nl80211.

BTW: Do we have an issue with firmware here?
 
Old 02-01-2017, 02:21 PM   #7
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
some times the access point is to over loaded
or
the channel is so loaded there's no time to tack your request

ether case even if you do get connected the connection will
be uselessly slow
 
  


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
Wifi printer and access point. hack3rcon Linux - Mobile 7 02-07-2015 05:43 AM
setting up a vpn-only wifi access point danbeen Linux - Networking 0 08-17-2013 08:46 PM
Recommend me a micro WiFi access point jago25_98 Linux - Hardware 2 03-27-2008 02:27 AM
WiFi Access Point and Zinc Roofing win32sux Linux - Wireless Networking 9 05-20-2006 03:27 AM
Mandrake or Redhat as a WIFI Access point? colin.mca Linux - Wireless Networking 4 07-19-2004 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:43 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