Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [wpa-supplicant]

wpa_supplicant, a free software implementation of an IEEE 802.11i supplicant for Linux, FreeBSD, NetBSD, QNX, AROS, Microsoft Windows, Solaris, OS/2 (including eComStation) and Haiku.

1
vote
1answer
21 views

Starting wpa_supplicant via script in systemd not working properly

I've written a script to manually start the wpa_supplicant function on a Fedora/Centos7 machine with a wireless NIC. Due to static routing issues, I cannot use NetworkManager (nor do I want do with ...
1
vote
0answers
20 views

Debug log for WiFi processing

I am trying to integrate WPA2 into open network in AP side, and I managed through quite good so far, I am now able to encrypt and decrypt live traffic. However, stations are ignoring my messages, ...
0
votes
1answer
34 views

Find out if the connection to Wi-Fi was successful

I need to do some script, which find out if the connection to the Wi-Fi was successful or not. I have Wi-Fi configuration in /etc/wpa_supplicant.conf. I know how to add SSID and PSK to this file and ...
-2
votes
1answer
53 views

How to allow non-roots to connect to WiFi?

/etc/os-release says Debian GNU/Linux 9 (stretch) /proc/version says Linux version 4.4.132+ (jenkins@fdc-06) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) ) #1 SMP sudo /sbin/...
0
votes
1answer
37 views

Can't connect wpa_supplicant to wifi. SSID is not found even though it is listed in scan results

I'm using a script to add a network to my wpa_supplicant.conf and reload wpa_supplicant to connect a new network. Something like this: cat << EOF >> /etc/wpa_supplicant/wpa_supplicant....
2
votes
0answers
36 views

WIFI Hostapd router serves only several internet sites

I have built a server on Debian Stretch. It has three ethernet cards and one wifi card Gemtek WPIA-116G. When a cable is connected it works well. But without the cable, by wifi, a client computer ...
1
vote
1answer
125 views

Using and escaping wpa_cli set_network command in a bash script

One can connect to a wifi network through wpa_supplicant's command line interface, wpa_cli. wpa_cli has 2 modes of operation : interactive, and normal. In normal mode, one must pass the desired ...
0
votes
0answers
10 views

D-BUS wpa supplicant dhclient integration

I have a system that doesn't use NetworkManager. I use wpa_supplicant to connect to an access point and dhclient to obtain a lease for an IP4 address. When I lose the access point and wpa_supplicant ...
0
votes
0answers
29 views

wpa_supplicant - Why BSSID is coming as 00:00:00:00:00:00 after failed Roaming attempt, Is it a Bug or expected behavious in wpa-supplicant?

[wpa_supplicant] Why BSSID is coming as 00:00:00:00:00:00 after failed Roaming attempt, Is it a Bug or expected behavious in wpa-supplicant? After triggering ROAM operation (wpa_cli ROAM ) to a ...
0
votes
0answers
20 views

Who are known Wireless Networks Stored, and how does auto connect work?

I'm trying to build a script that auto connects to a given network (providing ESSID and Passphrase) and I want to store them, so when ever it's not connected, It searches for the given network, ...
-1
votes
1answer
104 views

wpa_supplicant doesn't connect using IEEE8021X

I'm working on a Raspberry Pi 3B+ and I'm trying to connect to a WPA-EAP network. I managed to successfully connected using PEAP with the following configuration: network={ ssid="whatever" ...
2
votes
2answers
180 views

Skip scanning in wpa_supplicant

When we execute command wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf for connecting to AP, wpa_supplicant follows following steps: 1. wpa_supplicant requests the kernel driver to scan ...
0
votes
0answers
167 views

PEAP authentication failure using wpa_supplicant

I have an embedded Linux system, kernel 4.1.18, running wpa_supplicant v2.5, trying to connect to a PEAP network. My PC can connect fine but the Linux system cannot and I'm stuck figuring out what I'm ...
0
votes
1answer
101 views

How to check if wpa_supplicant.conf has any syntax errors?

I would like to know if there is a tool that allows me to check if I made any syntax errors in wpa_supplicant.conf(5). I am looking for a utility for wpa_supplicant(8) that would server the same ...
0
votes
1answer
36 views

chkconfig modification dosen't takes effect

I use CentOS release 6.5 (Final) and I would like that wpa_supplicant service start after network service. When I go to /etc/rc5.d and I type ls command, I can see : K84wpa_supplicant -> ../init.d/...
-2
votes
1answer
73 views

Network Manager doesnt find wireless network

I'm using Debian 9 Stretch, i provided my wifi ssid and pass on the installing process, and it works, but NetworkManager doesn't work properly finding another wifi. This is my /etc/NetworkManager/...
1
vote
1answer
453 views

debian - connect to wifi automatically when in range

I have a LeMaker Guitar with Lemuntu installed. My wpa_supplicant.conf file looks like this: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="MySSID" psk=...
1
vote
1answer
66 views

How do you connect directly to wifi access point without scanning? (wpa_supplicant)

How do I connect to an Access Point using its BSSID, SSID, and channel without scanning the network. I always connect to my home ADSL-wifi-modem and don't need to scan. Instead what I'm seeing is ...
2
votes
1answer
510 views

wpa_supplicant not connecting, because SSL3 is unsupported

I've a laptop running Debian GNU/Linux Unstable with Network Manager. Since an update of OpenSSL (1.1.1 I think), I can't connect to a Wi-Fi network using WPA2 Enterprise with PEAP (MSCHAPv2). In /var/...
1
vote
2answers
201 views

Multiple same SSID in wpa_supplicant.conf

There are two network settings in /etc/wpa_supplicant.conf. Both of them have the same ssid but with different id_str and psk. After connecting to AP, how can I check which network configuration I am ...
1
vote
1answer
390 views

Missing wireless tools (wpa-supplicant) in fresh NixOS install

Following the NixOS Manual, I i) made a live USB drive, and ii) installed NixOS on my system. Now I'm trying to set up my wireless network, and "Wireless Networks" instructions aren't working for my ...
5
votes
1answer
461 views

Connecting to WPA2 from command line, without editing a configuration file

I am attempting to connect to a WPA2 network with a bash script. The usual approach is something along these lines: wpa_passphrase SSID PASSWORD > CONFIG_FILE wpa_supplicant -B -iwlan0 -...
2
votes
1answer
373 views

wpa_supplicant says network is disabled

When trying to connect to a network (specifically a WPA2 enterprise network for a university) with wpa_supplicant on Gentoo Linux, the network is shown as disabled when the flag is not set. My ...
0
votes
2answers
351 views

wpa_supplicant doesn't get new IP when re-associate?

I am struggling to setup my wlan so it can re-associate to another hotspot and renew its IP automatically. I have found a similar question but nobody responded. I am using Debian stretch. The first ...
0
votes
0answers
252 views

Prevent Network Manager from starting wpa_supplicant

I am using a Debian distribution (based on stretch) and I am trying to prevent NetworkManager (NM) from starting the wpa_supplicant service. The reason I want to do that is that I want dhcpcd to ...
1
vote
0answers
840 views

Cannot connect to my work's WPA2 Enterprise on Linux but Android works fine

I'm looking for help trying to connect to my work's wifi. I'm currently on Kubuntu 18.04 and cannot connect to my work's WPA2 enterprise wifi on my laptop but my android phone works just fine. The ...
0
votes
1answer
31 views

Querry wpa_supplicant with which AP is it associated

I call wpa_supplicant -c"$CONF" -i"$IFACE" -B where $CONF is a file with many network={} definitions. wpa_supplicant does connect to any one of those in range. How can I query with which AP is ...
-1
votes
2answers
966 views

Where is my `/etc/wpa_supplicant.conf` on systemd?

Before systemd, I could just simply edit /etc/wpa_supplicant.conf file to add my desired network with pre-shared key: $ cat /etc/wpa_supplicant.conf network={ ssid="TPLINK" psk="My secret ...
2
votes
1answer
505 views

Unable to connect to wlan0 via wpa_supplicant

I am unable to connect to a wireless network in Debian Linux. I begin by typing the following command: iwconfig This is my output: wlan0 IEEE 802.11abgn ESSID:off/any Mode:...
4
votes
1answer
505 views

TU Berlin eduroam - How to get Wireless LAN working with wpa_supplicant.conf and hashed password

I was struggling for awhile searching for a good wpa_supplicant.conf to get access to the "eduroam" Wireless LAN network at the TU Berlin. Since I know for sure, that it is not trivial and that the ...
0
votes
1answer
306 views

Problem connecting WPA2 PEAP MSCHAPV2. Handshake failure on client hello

I am having terrible trouble connecting to my school WPA2 PEAP MSCHAPV2 wifi. I've tried Network Manager, wicd and connman and most recently I am connecting via wpa_supplicant. The school does not ...
3
votes
2answers
237 views

Testing WiFi existence/credentials before dhclient called?

I have the following script that disconnects from the current WiFi network and reconnects based on the content of wpa_supplicant.conf: #!/bin/bash if iwgetid; then sudo wpa_cli terminate ...
1
vote
0answers
749 views

can I manually assign DNS server name with wpa_supplicant?

I am trying to run a Raspberrypi as a routing machine. It will be connected to wifi with wpa_supplicant. My PC ----> Raspberry Pi ----> Wifi Router The thing is I noticed, the RPi got from the wifi ...
0
votes
0answers
67 views

Interactive control of which stations are allowed to connect to hostapd softAP

Setup: I have two devices working in IEEE802.11 infrastructure mode. I have the station using wpa_supplicant to establish connections and the access point on the other device provided via hostapd. ...
0
votes
1answer
1k views

Command for wpa_cli to scan a particular network SSID

Is there a command supported by wpa_cli to make wpa_supplicant scan and yield the results of my desired network using the SSID instead of making supplicant scan all the nearby networks ?
0
votes
0answers
309 views

Can I use WPA_Supplicant to hardcode a specific MAC address?

I'm trying to use a raspberry pi as an HTTP server from my home network. I have to do this via a USB wireless adapter instead of CAT5 for a number of reasons that I won't get into. Problem is, I can'...
2
votes
1answer
312 views

systemctl fails to start a service and journalctl fails to report is correctly, how to deal with it?

I simply do: systemctl start wpa_supplicant No errors --- I get a new prompt. Ok, so far, so good. I check journalctl. wpa_supplicant[622]: Successfully initialized wpa_supplicant Nothing more, ...
9
votes
0answers
640 views

wpa_supplicant end process if wrong password detected

Normally when I run wpa_supplicant I'll get some output like this: Successfully initialized wpa_supplicant ioctl[SIOCSIWAP]: Operation not permitted ioctl[SIOCSIWENCODEEXT]: Invalid argument ioctl[...
4
votes
1answer
1k views

Can't connect to eduroam via `wpa_supplicant`:

I'm on my new Debian Stretch system and I'd like to connect to my university eduroam network. I'm not using GNOME or any DM, so I manage my connections via nmcli. However, from what I gather, it ...
3
votes
1answer
545 views

Creating multiple WiFi clients with a single wireless interface

I am currently working on a project where I would like to be using a single TP-link wireless adapter and split it into multiple clients. What I've done so far; I was able to create multiple virtual ...
2
votes
1answer
208 views

Remove SSIDs without name in iwlist wlan scan

In Raspbian when I'm running command iwlist wlan0 scan | grep ESSID i'm getting results without SSID on it like below ESSID:"OpenWrt" ESSID:"dlink" ESSID:"...
1
vote
1answer
382 views

Prevent wpa_supplicant from using WPA-TKIP or GCMP encryption protocols

Upon reading about the KRACK attack against WPA2, I see this: If the victim uses either the WPA-TKIP or GCMP encryption protocol, instead of AES-CCMP, the impact is especially catastrophic. Against ...
0
votes
1answer
936 views

wpa_supplicant doesn't work from systemd

I have a strange behavior I cannot fix by myself. I'm running a Raspbian Stretch Lite on an RPi2. As WiFi dongle I use a Realtek RTL8188EU (drivers are from staging directory). By default it creates ...
0
votes
1answer
351 views

Unable to establish connection with MLME connect failed: ret=-1 (Operation not permitted)

Straight forward wifi client to infra AP connectivity from debian by using wpa_supplicant wpa_cli -iwlan0 add_network 1 wpa_cli -iwlan0 set_network 1 ssid '"myssid"' OK wpa_cli -iwlan0 set_network 1 ...
2
votes
2answers
986 views

WiFi scans show SSID of a powered off network for several scans afterwards

I first came across this when I was trying to make a python program that used programs to scan for wireless networks. I've used the following tools: iwlist, iw, wpa_cli, nmcli, and iwconfig I run ...
4
votes
0answers
2k views

Can't connect to a network, getting 2=PREV_AUTH_NOT_VALID

Validated the network works fine with cell phone and another computer. Using Lenovo with "Centrino Advanced-N 6205 [Taylor Peak]". Not sure where to go with this. Any ideas? Yes, the wifi card in ...
1
vote
0answers
511 views

Configure wlan0 interface at boot time

I've created with Yocto a Linux image for an IMX6 device. I've modified the /etc/network/interface file in order to setup usb0 and wlan0. No problem with usb0, it's correctly setup at boot time. It ...
3
votes
1answer
4k views

How to disconnect wifi link, that was connected with wpa_supplicant

I connect with the following command: sudo wpa_supplicant -B -D nl80211 -i wlan_card -c /etc/wpa_supplicant/connection.conf It connects fine, and keeps persistent connection. If AP goes down, the ...
3
votes
1answer
5k views

Successfully initialized wpa_supplicant yet I'm not connected, and can't reach wpa_cli

i am trying to setup internet for my laptop currently running ArchLinux2017.07.01 but I ran into a big bump that I cannot seem to see anywhere else online. Mind you I am a little unfamiliar with Arch ...
0
votes
1answer
312 views

networking service preventing wpa_supplicant to connect

I have two raspberry 3B running raspbian jessie. On both, I try to connect to the same wifi network using the following commands: sudo wpa_passphrase "test" "abcd1234" > /etc/wpa_supplicant.conf ...