You are not logged in.

#1 2016-01-18 22:27:14

bediger4000
Member
Registered: 2013-07-29
Posts: 16

wpa_supplicant -u quit working.

Suddenly, my Dell Precision M6300 laptop's wireless quit working.

As near as I can tell, wpa_supplicant works differently with the "-u" flag. I've tried booting with 2 different kernels, the linux-lts 4.1.15-lts kernel, and the current 4.3.3-2-ARCH #1 SMP PREEMPT kernel.

The laptop has a built-in wireless card,  Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61), which uses the iwl4965 driver.

I've got a TP-Link TLWN722N (Atheros AR9271 chipset) USB wireless card.

I finally tracked it down to wpa_supplicant.  Both kernels and both wireless cards work exactly the same way. The wpa_supplicant -u command just doesn't work right.  When given the "-u" option, wpa_supplicant doesn't log to a file, and won't accept the -d or -dd increased debugging output flags.

In the unit file (/usr/lib/systemd/system/wpa_supplicant.service) for wpa_supplicant, it looks like the wpa_supplicant process gets started like this:

wpa_supplicant -u 

Here's what journalctl says when wpa_supplicant gets started by systemd:

Jan 17 15:14:46 bronze dhcpcd[288]: wlp0s26f7u3: waiting for carrier
Jan 17 15:14:46 bronze dhcpcd[288]: wlp0s26f7u3: waiting for carrier
Jan 17 15:14:46 bronze dhcpcd[288]: wlp0s26f7u3: carrier acquired
Jan 17 15:14:46 bronze dhcpcd[288]: wlp0s26f7u3: adding address fe80::12c1:d16f:33e5:d903
Jan 17 15:14:46 bronze dhcpcd[288]: wlp0s26f7u3: IAID 27:a1:77:ea
Jan 17 15:14:46 bronze dhcpcd[288]: wlp0s26f7u3: carrier lost
Jan 17 15:14:46 bronze dhcpcd[288]: wlp0s26f7u3: deleting address fe80::12c1:d16f:33e5:d903

Not much to go on.

I can get systemctl to stop wpa_supplicant process, and then restart it from the command line:

wpa_supplicant  -c /etc/wpa_supplicant/wpa_supplicant.conf \
        -dd -i wlp0s26f7u3 \
        -B -f /var/log/wpa_supplicant.log

Here's what journalctl says when I start wpa_supplicant from the command line:

Jan 17 15:30:15 bronze kernel: wlp0s26f7u3: authenticate with 30:b5:c2:31:0b:10
Jan 17 15:30:15 bronze kernel: wlp0s26f7u3: direct probe to 30:b5:c2:31:0b:10 (try 1/3)
Jan 17 15:30:15 bronze kernel: wlp0s26f7u3: direct probe to 30:b5:c2:31:0b:10 (try 2/3)
Jan 17 15:30:15 bronze kernel: wlp0s26f7u3: send auth to 30:b5:c2:31:0b:10 (try 3/3)
Jan 17 15:30:15 bronze kernel: wlp0s26f7u3: authenticated
Jan 17 15:30:15 bronze kernel: wlp0s26f7u3: associate with 30:b5:c2:31:0b:10 (try 1/3)
Jan 17 15:30:16 bronze kernel: wlp0s26f7u3: RX AssocResp from 30:b5:c2:31:0b:10 (capab=0x431 status=0 a
Jan 17 15:30:16 bronze kernel: wlp0s26f7u3: associated
Jan 17 15:30:16 bronze kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s26f7u3: link becomes ready
Jan 17 15:30:16 bronze kernel: cfg80211: Regulatory domain changed to country: US
Jan 17 15:30:16 bronze kernel: cfg80211:  DFS Master region: FCC
Jan 17 15:30:16 bronze kernel: cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_
Jan 17 15:30:16 bronze kernel: cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N
Jan 17 15:30:16 bronze kernel: cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N
Jan 17 15:30:16 bronze kernel: cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N
Jan 17 15:30:16 bronze kernel: cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2300 mBm), (
Jan 17 15:30:16 bronze kernel: cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N
Jan 17 15:30:16 bronze kernel: cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
Jan 17 15:30:16 bronze kernel: sha256_ssse3: Using SSSE3 optimized SHA-256 implementation
Jan 17 15:30:16 bronze dhcpcd[288]: wlp0s26f7u3: carrier acquired
Jan 17 15:30:16 bronze dhcpcd[288]: wlp0s26f7u3: adding address fe80::4b9a:6882:3dc2:affd
Jan 17 15:30:16 bronze dhcpcd[288]: wlp0s26f7u3: IAID 27:a1:77:ea
Jan 17 15:30:16 bronze dhcpcd[288]: wlp0s26f7u3: soliciting an IPv6 router
Jan 17 15:30:16 bronze dhcpcd[288]: wlp0s26f7u3: soliciting a DHCP lease
Jan 17 15:30:19 bronze ntpd[304]: Listen normally on 4 wlp0s26f7u3 [fe80::4b9a:6882:3dc2:affd%4]:123
Jan 17 15:30:19 bronze ntpd[304]: new interface(s) found: waking up resolver
Jan 17 15:30:20 bronze dhcpcd[288]: wlp0s26f7u3: offered 172.31.0.180 from 172.31.0.1
Jan 17 15:30:20 bronze dhcpcd[288]: wlp0s26f7u3: probing address 172.31.0.180/24
Jan 17 15:30:25 bronze dhcpcd[288]: wlp0s26f7u3: leased 172.31.0.180 for 43200 seconds
Jan 17 15:30:25 bronze dhcpcd[288]: wlp0s26f7u3: adding route to 172.31.0.0/24
Jan 17 15:30:25 bronze dhcpcd[288]: wlp0s26f7u3: adding default route via 172.31.0.1
Jan 17 15:30:25 bronze dhcpcd[288]: wlp0s26f7u3: removing route to 172.31.0.0/24

Here's my /etc/wpa_supplicant/wpa_supplicant.conf file, with all the comment lines stripped:

ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
        ssid="Los Pollos Hermanos"
        psk="SOmeThing"
        priority=3
}
network={
        ssid="Chuck Norris Guest Network"
        psk="SomethngElse"
        priority=4
}
network={
        ssid="Google Starbucks"
        key_mgmt=NONE
        priority=1
}

Last edited by bediger4000 (2016-01-18 22:54:49)

Offline

#2 2016-01-18 22:31:04

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,569
Website

Re: wpa_supplicant -u quit working.

Please use code tags when pasting config files or terminal output.

https://wiki.archlinux.org/index.php/Fo … s_and_code


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB