You are not logged in.

#1 2013-06-19 04:04:23

lwalen
Member
Registered: 2013-06-19
Posts: 1

Cannot connect to wireless network

Hello,
I am trying to connect to my wifi network which is secured using WPA2. I have tried wpa_supplicant and netctl.

Relevant part of ip link

3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
    link/ether 00:0f:b5:07:47:e9 brd ff:ff:ff:ff:ff:ff

Relevant output of iwlist wlan0 scanning:

          Cell 02 - Address: C0:C1:C0:23:87:D6
                    ESSID:"GotThatGlitter"
                    Protocol:IEEE 802.11b
                    Mode:Master
                    Frequency:2.452 GHz (Channel 9)
                    Quality:56/100  Signal level:-60 dBm  Noise level:-96 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
                    IE: Unknown: 000E476F7454686174476C6974746572
                    IE: Unknown: 010C82848B960C1218243048606C
                    IE: Unknown: 02050000000001
                    IE: Unknown: 030109

Attempt at connecting via wpa_supplicant:

wpa_supplicant -Dnl80211,wext -d -i wlan0 -c /etc/wpa_supplicant/GotThatGlitter.conf

wpa_supplicant v2.0
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant/GotThatGlitter.conf' driver 'nl80211,wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/GotThatGlitter.conf' -> '/etc/wpa_supplicant/GotThatGlitter.conf'
Reading configuration file '/etc/wpa_supplicant/GotThatGlitter.conf'
Priority group 0
   id=0 ssid='GotThatGlitter'
nl80211: 'nl80211' generic netlink not found
Failed to initialize driver 'nl80211'
rfkill: Cannot open RFKILL control device
WEXT: RFKILL status not available
ioctl[SIOCSIWPMKSA]: Invalid argument
SIOCGIWRANGE: WE(compiled)=22 WE(source)=19 enc_capa=0x5
  capabilities: key_mgmt 0x5 enc 0x17 flags 0x0
netlink: Operstate: linkmode=1, operstate=5
wlan0: Own MAC address: 00:0f:b5:07:47:e9
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wlan0: RSN: flushing PMKID list in the driver
ioctl[SIOCSIWPMKSA]: Invalid argument
wlan0: Setting scan request: 0 sec 100000 usec
WPS: Set UUID for interface wlan0
WPS: UUID based on MAC address - hexdump(len=16): 72 d9 be 0e c4 a0 5e e1 8d 4e 25 92 94 78 e2 d8
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b1a len=40
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
EAPOL: disable timer tick
EAPOL: Supplicant port status: Unauthorized
Scan timeout - try to get results
wlan0: Event SCAN_RESULTS (3) received
Received 568 bytes of scan results (2 BSSes)
wlan0: BSS: Start scan result update 1
wlan0: BSS: Add new id 0 BSSID 68:7f:74:87:cc:6a SSID '400 Network'
wlan0: BSS: Add new id 1 BSSID c0:c1:c0:23:87:d6 SSID 'GotThatGlitter'
BSS: last_scan_res_used=2/32 last_scan_full=0
wlan0: New scan results available
wlan0: Selecting BSS from priority group 0
wlan0: 0: 68:7f:74:87:cc:6a ssid='400 Network' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 level=-76
wlan0:    skip - SSID mismatch
wlan0: 1: c0:c1:c0:23:87:d6 ssid='GotThatGlitter' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 level=-58
wlan0:    skip - no WPA/RSN proto match
wlan0: No suitable network found
wlan0: Setting scan request: 5 sec 0 usec
wlan0: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
^Cwlan0: Removing interface wlan0
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 state=SCANNING
wlan0: No keys have been configured - skip key clearing
wlan0: State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
wpa_driver_wext_set_countermeasures
wlan0: No keys have been configured - skip key clearing
wlan0: BSS: Remove id 0 BSSID 68:7f:74:87:cc:6a SSID '400 Network' due to wpa_bss_flush
wlan0: BSS: Remove id 1 BSSID c0:c1:c0:23:87:d6 SSID 'GotThatGlitter' due to wpa_bss_flush
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
netlink: Operstate: linkmode=0, operstate=6
wlan0: CTRL-EVENT-TERMINATING

cat /etc/wpa_supplicant/GotThatGlitter.conf

network={
        ssid="GotThatGlitter"
        #psk="why ... "
        psk=f0014a19f67dc ... 947a6dae9
}

Attempt at connecting via netctl:

netctl start wireless-wpa

Job for netctl@wireless\x2dwpa.service failed. See 'systemctl status netctl@wireless\x2dwpa.service' and 'journalctl -xn' for details.

cat /etc/netctl/wireless-wpa

Description='Home'
Interface=wlan0
Connection=wireless
Security=wpa
IP=dhcp
ESSID='GotThatGlitter'
# Prepend hexadecimal keys with \"
#Key="why ..."
Key=\"f0014a19f67dc ... 2a947a6dae9

systemctl status netctl@wireless\x2dwpa.service

netctl@wirelessx2dwpa.service - Networking for netctl profile wirelessx2dwpa
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: inactive (dead)
     Docs: man:netctl.profile(5)

Jun 18 20:37:57 valinor systemd[1]: Stopped Networking for netctl profile wirelessx2dwpa.
Jun 18 20:39:46 valinor systemd[1]: Starting Networking for netctl profile wirelessx2dwpa...
Jun 18 20:39:46 valinor systemd[1]: netctl@wirelessx2dwpa.service: main process exited, code=ex...LURE
Jun 18 20:39:46 valinor systemd[1]: Failed to start Networking for netctl profile wirelessx2dwpa.
Jun 18 20:39:46 valinor systemd[1]: Unit netctl@wirelessx2dwpa.service entered failed state.

journalctl -xn

-- Logs begin at Tue 2013-06-18 13:32:21 MDT, end at Tue 2013-06-18 21:52:53 MDT. --
Jun 18 21:52:37 valinor systemd[1]: Starting A simple WPA encrypted wireless connection...
-- Subject: Unit netctl@wireless\x2dwpa.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netctl@wireless\x2dwpa.service has begun starting up.
Jun 18 21:52:37 valinor network[528]: Starting network profile 'wireless-wpa'...
Jun 18 21:52:37 valinor network[528]: ioctl[SIOCSIWPMKSA]: Invalid argument
Jun 18 21:52:37 valinor kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jun 18 21:52:37 valinor network[528]: ioctl[SIOCSIWPMKSA]: Invalid argument
Jun 18 21:52:53 valinor network[528]: WPA association/authentication failed for interface 'wlan0'
Jun 18 21:52:53 valinor network[528]: Failed to bring the network up for profile 'wireless-wpa'
Jun 18 21:52:53 valinor systemd[1]: netctl@wireless\x2dwpa.service: main process exited, code=exited,
Jun 18 21:52:53 valinor systemd[1]: Failed to start A simple WPA encrypted wireless connection.
-- Subject: Unit netctl@wireless\x2dwpa.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d02
--
-- Unit netctl@wireless\x2dwpa.service has failed.
--
-- The result is failed.
Jun 18 21:52:53 valinor systemd[1]: Unit netctl@wireless\x2dwpa.service entered failed state.

The fact that I can find the see the network with iwlist wlan0 scanning leads me to believe that the driver is working fine, but I could be wrong. I am using ndiswrapper with a Windows driver.

I appreciate any suggestions! Thanks.

Last edited by lwalen (2013-06-19 04:04:54)

Offline

#2 2013-06-19 06:12:53

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Cannot connect to wireless network

If you are using the 'Key=\"hexkeyhere' netctl parameter, it would seem taht you apparently think you should be using wep. If it is wep, you could just connect with iwconfig directly.  But from scanning through all that ouput and stuff, I am really not sure if you are using wpa or wep.  I think using "iw dev wlan0 scan" will provide more in depth info than iwlist.

Offline

Board footer

Powered by FluxBB