Hi

I have been attempting to configure wireless manually from the command line on my Thinkpad 400, but have been unable to get a connection. I am using Trisquel 8.0 which I believe is based on Debian:

$ uname -a
Linux technoethical-t400s-b9d0 4.19.0-gnu #1 SMP Mon Oct 22 06:05:01 PDT 2018 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/os-release
NAME="Trisquel GNU/Linux"
VERSION="8.0, Flidas"
ID=trisquel
ID_LIKE=debian
PRETTY_NAME="Trisquel GNU/Linux Flidas (8.0)"
VERSION_ID="8.0"
HOME_URL="https://trisquel.info/";
SUPPORT_URL="https://trisquel.info/wiki";
BUG_REPORT_URL="https://trisquel.info/project/issues";

I am using the following commands to configure:

# disable NetworkManager
systemctl disable NetworkManager

#kill existing wpa_supp
ps -ef | grep wpa
pid=`ps -ef | grep wpa | grep -v grep | awk '{print $2}'`
kill -s SIGQUIT "${pid}"

#check interfaces and find wireles device name
$ iw dev | grep Interface
        Interface wlp2s0

#check device is up
$ ip link show wlp2s0 | grep UP

#if not bring it up
$ ip link set wlp2s0 up

# backup config file
$ cp /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf.bu

# check ssid can be scanned
$ iw wlp2s0 scan | grep lcwire
        SSID: lcwire

# create wpa_supplicant.conf
wpa_passphrase lcwire [passphrase] > /etc/wpa_supplicant.conf

# check driver
$ lsmod | grep 9k
ath9k                 151552  0
ath9k_common           36864  1 ath9k
ath9k_hw              479232  2 ath9k_common,ath9k
ath                    32768  3 ath9k_common,ath9k,ath9k_hw
mac80211              798720  1 ath9k
cfg80211              659456  4 ath9k_common,ath9k,ath,mac80211

$ wpa_supplicant
....
drivers:
  nl80211 = Linux nl80211/cfg80211
  wext = Linux wireless extensions (generic)
  wired = Wired Ethernet driver
  none = no driver (RADIUS server/WPS ER)
....

# run wpa_supplicant
wpa_supplicant -B -D nl80211 -i wlp2s0 -c /etc/wpa_supplicant.conf -d

After doing this the syslog seem to indicate theat the conneciton is contiually being deauthenticated.

I have attached files with output from journalctl (syslog.txt) and the debug output from wpa_supplicant.

I have a machine with fedora on it where I do a similar set of commands (different driver - use-D ext) and it connects fine.

If I use NetworkManager (which came enabled when I got the system) it also connects fine, though for some reason I have to reboot after powerup for it to work.

Other Notes:
1./
ifconfig gives me the following:
wlp2s0    Link encap:Ethernet  HWaddr c0:cb:38:61:98:59
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:2460 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1046 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:421705 (421.7 KB)  TX bytes:162400 (162.4 KB)

wlp2s0:avahi Link encap:Ethernet  HWaddr c0:cb:38:61:98:59
          inet addr:169.254.7.124  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1


Not sure where wlp2s0:avahi comes from - I do not see this on my fedora machine or when I use NetworkManager to bring it up, only the interface with the locally configured ipaddress received from the router.


hen the interface is working after rebooting with NetworkManager enabled ifcoinfi shows:
wlp2s0    Link encap:Ethernet  HWaddr c0:cb:38:61:98:59
          inet addr:192.168.2.26  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: 2002:5201:e7e1:1234:2e5d:3fc9:79d5:2799/64 Scope:Global
          inet6 addr: fe80::d195:9bc6:b6d:ad17/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:47 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7586 (7.5 KB)  TX bytes:9256 (9.2 KB)


2./
$ rfkill list
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
3: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

Has anyone any idea why I am seeing the deauthentication ?
Does anyone know what the wlp2s0:avahi interface is ? - It seems to have a random (external?) ip addess assigned.

hen the interface is working after rebooting with NetworkManager enabled ifcoinfi shows:
wlp2s0    Link encap:Ethernet  HWaddr c0:cb:38:61:98:59
          inet addr:192.168.2.26  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: 2002:5201:e7e1:1234:2e5d:3fc9:79d5:2799/64 Scope:Global
          inet6 addr: fe80::d195:9bc6:b6d:ad17/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:47 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7586 (7.5 KB)  TX bytes:9256 (9.2 KB)


2./
$ rfkill list
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
3: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

Has anyone any idea why I am seeing the deauthentication ?
Does anyone know what the wlp2s0:avahi interface is ? - It seems to have a random (external?) ip addess assigned.

When the interface is working after rebooting with NetworkManager enabled ifcoinfi shows:
wlp2s0    Link encap:Ethernet  HWaddr c0:cb:38:61:98:59
          inet addr:192.168.2.26  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: 2002:5201:e7e1:1234:2e5d:3fc9:79d5:2799/64 Scope:Global
          inet6 addr: fe80::d195:9bc6:b6d:ad17/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:47 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7586 (7.5 KB)  TX bytes:9256 (9.2 KB)


2./
$ rfkill list
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
3: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

Can anyone see/is able to guess what might be wrong with the configuration ?

Has anyone any idea why I am seeing the deauthentication ?

Does anyone know how I can get information from NetworkManager - config files, logs etc. to see if I can tell what it is doing differently ?

Does anyone know what the wlp2s0:avahi interface is and why it is generated ? - It seems to have a random (external?) ip addess assigned.



root@technoethical-t400s-b9d0:/root# wpa_supplicant -B -D nl80211 -i wlp2s0 -c 
/etc/wpa_supplicant.conf -d
wpa_supplicant v2.4
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlp2s0' conf '/etc/wpa_supplicant.conf' driver 
'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 0
   id=0 ssid='lcwire'
rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
nl80211: TDLS supported
nl80211: TDLS external setup
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supported cipher 00-0f-ac:13
nl80211: Supported cipher 00-0f-ac:11
nl80211: Supported cipher 00-0f-ac:12
nl80211: Using driver-based off-channel TX
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: interface wlp2s0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x56461cc07270
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=040a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 04 0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=040b
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 04 0b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=040c
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 04 0c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=040d
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 04 0d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=090a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 09 0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=090b
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 09 0b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=090c
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 09 0c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=090d
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 09 0d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=0409506f9a09
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=6): 04 09 50 6f 9a 09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=7f506f9a09
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=5): 7f 50 6f 9a 09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=0801
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 08 01
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=040e
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 04 0e
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=06
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=1): 06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=0a07
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 0a 07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=0a11
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 0a 11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=1101
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 11 01
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=1102
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 11 02
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) 
nl_handle=0x56461cc07270 match=0505
nl80211: Register frame command failed (type=208): ret=-114 (Operation already 
in progress)
nl80211: Register frame match - hexdump(len=2): 05 05
nl80211: Failed to register Action frame processing - ignore for now
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 
(IF_OPER_DORMANT)
nl80211: driver param='(null)'
Add interface wlp2s0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 40 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
wlp2s0: Own MAC address: c0:cb:38:61:98:59
wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=0 
set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=1 
set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=2 
set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=3 
set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=4 
set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=5 
set_tx=0 seq_len=0 key_len=0
wlp2s0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlp2s0: Setting scan request: 0.100000 sec
TDLS: TDLS operation supported by driver
TDLS: Driver uses external link setup
TDLS: Driver does not support TDLS channel switching
wlp2s0: WPS: UUID based on MAC address: 143241ed-dad6-500a-b219-10bda730a4d3
ENGINE: Loading dynamic engine
ENGINE: Loading dynamic engine
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
P2P: Add operating class 81
P2P: Channels - hexdump(len=11): 01 02 03 04 05 06 07 08 09 0a 0b
P2P: Own listen channel: 81:1
P2P: Random operating channel: 81:11
P2P: initialized
P2P: channels: 81:1,2,3,4,5,6,7,8,9,10,11
P2P: cli_channels:
wlp2s0: Added interface wlp2s0
wlp2s0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlp2s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 
(IF_OPER_DORMANT)
Daemonize..

Feb 01 09:17:01 technoethical-t400s-b9d0 CRON[6297]: pam_unix(cron:session): 
session opened for user root by (uid=0)
Feb 01 09:17:01 technoethical-t400s-b9d0 CRON[6298]: (root) CMD (   cd / && 
run-parts --report /etc/cron.hourly)
Feb 01 09:17:01 technoethical-t400s-b9d0 CRON[6297]: pam_unix(cron:session): 
session closed for user root
Feb 01 09:38:03 technoethical-t400s-b9d0 kernel: wlp2s0: authenticate with 
00:22:75:62:d4:e8
Feb 01 09:38:03 technoethical-t400s-b9d0 kernel: wlp2s0: send auth to 
00:22:75:62:d4:e8 (try 1/3)
Feb 01 09:38:03 technoethical-t400s-b9d0 kernel: wlp2s0: authenticated
Feb 01 09:38:03 technoethical-t400s-b9d0 kernel: wlp2s0: associate with 
00:22:75:62:d4:e8 (try 1/3)
Feb 01 09:38:03 technoethical-t400s-b9d0 kernel: wlp2s0: RX AssocResp from 
00:22:75:62:d4:e8 (capab=0x411 status=0 aid=10)
Feb 01 09:38:03 technoethical-t400s-b9d0 kernel: wlp2s0: associated
Feb 01 09:38:03 technoethical-t400s-b9d0 kernel: wlp2s0: deauthenticating from 
00:22:75:62:d4:e8 by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 01 09:45:58 technoethical-t400s-b9d0 kernel: wlp2s0: authenticate with 
00:22:75:62:d4:e8
Feb 01 09:45:58 technoethical-t400s-b9d0 kernel: wlp2s0: send auth to 
00:22:75:62:d4:e8 (try 1/3)
Feb 01 09:45:58 technoethical-t400s-b9d0 kernel: wlp2s0: authenticated
Feb 01 09:45:58 technoethical-t400s-b9d0 kernel: wlp2s0: associate with 
00:22:75:62:d4:e8 (try 1/3)
Feb 01 09:45:58 technoethical-t400s-b9d0 kernel: wlp2s0: RX AssocResp from 
00:22:75:62:d4:e8 (capab=0x411 status=0 aid=10)
Feb 01 09:45:58 technoethical-t400s-b9d0 kernel: wlp2s0: associated
Feb 01 09:45:58 technoethical-t400s-b9d0 kernel: wlp2s0: deauthenticating from 
00:22:75:62:d4:e8 by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 01 09:53:17 technoethical-t400s-b9d0 kernel: wlp2s0: authenticate with 
00:22:75:62:d4:e8
Feb 01 09:53:17 technoethical-t400s-b9d0 kernel: wlp2s0: send auth to 
00:22:75:62:d4:e8 (try 1/3)
Feb 01 09:53:17 technoethical-t400s-b9d0 kernel: wlp2s0: authenticated
Feb 01 09:53:17 technoethical-t400s-b9d0 kernel: wlp2s0: associate with 
00:22:75:62:d4:e8 (try 1/3)
Feb 01 09:53:17 technoethical-t400s-b9d0 kernel: wlp2s0: RX AssocResp from 
00:22:75:62:d4:e8 (capab=0x411 status=0 aid=11)
Feb 01 09:53:17 technoethical-t400s-b9d0 kernel: wlp2s0: associated
Feb 01 09:53:17 technoethical-t400s-b9d0 kernel: wlp2s0: deauthenticating from 
00:22:75:62:d4:e8 by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 01 10:06:17 technoethical-t400s-b9d0 mate-screensaver-dialog[6318]: PAM 
unable to dlopen(pam_gnome_keyring.so): /lib/security/pam_gnome_keyring.so: 
cannot open shared object file: No such file or directory
Feb 01 10:06:17 technoethical-t400s-b9d0 mate-screensaver-dialog[6318]: PAM 
adding faulty module: pam_gnome_keyring.so
Feb 01 10:06:26 technoethical-t400s-b9d0 mate-screensaver-dialog[6318]: 
pam_ecryptfs: seteuid error
Feb 01 10:06:41 technoethical-t400s-b9d0 kernel: wlp2s0: authenticate with 
00:22:75:62:d4:e8
Feb 01 10:06:41 technoethical-t400s-b9d0 kernel: wlp2s0: send auth to 
00:22:75:62:d4:e8 (try 1/3)
Feb 01 10:06:41 technoethical-t400s-b9d0 kernel: wlp2s0: authenticated
Feb 01 10:06:41 technoethical-t400s-b9d0 kernel: wlp2s0: associate with 
00:22:75:62:d4:e8 (try 1/3)
Feb 01 10:06:41 technoethical-t400s-b9d0 kernel: wlp2s0: RX AssocResp from 
00:22:75:62:d4:e8 (capab=0x411 status=0 aid=15)
Feb 01 10:06:41 technoethical-t400s-b9d0 kernel: wlp2s0: associated
Feb 01 10:06:41 technoethical-t400s-b9d0 kernel: wlp2s0: deauthenticating from 
00:22:75:62:d4:e8 by local choice (Reason: 3=DEAUTH_LEAVING)

Reply via email to