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-cli]

The tag has no usage guidance.

1
vote
0answers
17 views

wpa_supplicant: try connecting to wifi without password

when using wpa_supplicant and trying to connect to a wifi having a proper password the common approach would look somehow like that add_network set_network 0 ssid "myssid" set_network 0 psk "...
2
votes
1answer
27 views

wpa_supplicant: How to switch between different networks without disabling all others

I'd like to know if it's possible -- I hope and guess it is -- to switch between different networks in wpa_cli without using select_network, as this disables all other networks. Thing is, say I have ...
1
vote
1answer
50 views

wpa_action script: How to run wpa_cli in daemon mode?

I was trying to build a script that runs when wifi is connected or disconnected. After a lot of searches, I got wpa_cli -a command to work with my script. test.sh case "$1" in wlan0) ...
1
vote
1answer
202 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 ...
-1
votes
2answers
1k 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 ...
3
votes
2answers
247 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 ...
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
320 views

Can wpa_cli scan results show signal quality (e.g. as n/N) instead of signal level (in dBm)?

On my laptop wpa_cli scan results are expressed in very low dBm values, i.e. all less than -50dBm, the strongest (57/70) of which is -53dBm, which I find weird, by the way. Is there a way to have scan ...
1
vote
1answer
8k views

I am trying to connect to wifi using wpa_cli set_network command,but it always returns FAIL

krishna@krishna-PC:~/Downloads/wificonnect1$ sudo wpa_cli scan [sudo] password for krishna: Selected interface 'wlan0' OK krishna@krishna-PC:~/Downloads/wificonnect1$ sudo wpa_cli scan_results ...
9
votes
0answers
662 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[...
2
votes
1answer
218 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:"...
0
votes
1answer
370 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
1k 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 ...
6
votes
1answer
5k views

wpa_supplicant wifi-direct connection between Linux and Android

I'm trying to make wifi-direct connection between Android and Linux. I'm using rtl8188au. I found some tips about wifi direct by using wpa_supplicant, so I get wpa_supplicant v2.0. and this is what I ...
1
vote
0answers
370 views

Unable to get psk from network using wpa_cli

I've build a embedded system using a raspberry pi and a custom linux using buildroot, i'm using wpa_supplicant to manage the Wi-Fi network. Everything works well but i'm having problems to get the ...
0
votes
1answer
742 views

How to format the output of “wpa_cli scan result” command in a well aligned column?

How would you suggest to align all SSID in one single column in the wpa_cli scan_result command? To be clear, I want to transform this output # wpa_cli scan_results d8:fb:5e:a5:38:20 [WPA2-PSK-...
4
votes
1answer
1k views

wpa_supplicant doesn't auto-change AP

(I was trying and trying for hours to find a workaround, which proved much harder than initially expected.) The problem itself is easy to understand, though. I recently installed a GUI-less Debian ...
1
vote
0answers
224 views

I can not see a specific AP at `scan`(Expire BSS 1 due to no match in scan)

I am using wpa_supplicant and wpa_cli. I have two "A2008-2.4G" APs. These two APs created two APs with the same name to use WiFi Roaming. At one moment, however, one of the two APs is not output to ...
6
votes
1answer
981 views

Can I connect to a hidden wifi without knowing the ESSID?

Is it theorically possible to connect to a hidden wifi without giving the ESSID? The way I connect to a hidden wifi requires to give an SSID (nmcli refuses to have a blank 802-11-wireless.ssid field)....
3
votes
1answer
331 views

I want to disconnect automatically when the signal of wpa_supplicant is weak

I'm using wpa_supplicant and wpa_cli. I want to automatically disconnect when the signal sensitivity of the currently connected AP is low or bad. I hope the action is as follows. 1) I am ...
0
votes
1answer
794 views

Wpa_supplicant configuration file for open hidden network [duplicate]

I am unable to connect to a open hidden network (without password) The network is the following (from iwlist wlan0 scan) Cell 0 - Address: 11:22:33:44:55:66 Channel:5 ...
0
votes
1answer
1k views

How to add an IE field for my wifi hotspot?

Is it possible to attach a IE field to my wifi hotspot so that it appear in the iwlist output of other machine scanning it? Example: I choose 1234567891011121314151617181920 to be the additional ...
4
votes
1answer
5k views

How to export the current wpa_cli network to a file?

Say I have connected with wpa_cli to a network mynetwork: # wpa_cli >add_network >set_network 0 ssid "mynetwork" >set_network 0 psk "SupahSecretPassphrase" >enable_network 0 >...
1
vote
2answers
4k views

How to disconnect from network via wpa_cli?

Is there a way to disconnect from a network via wpa_cli? I'm reading the man page and I've been able to use wpa_cli to connect to my router via push-button connect (WPS); however I'm trying to write ...
2
votes
2answers
6k views

How do I configure wpa_supplicant.conf for WPS push-button?

I'm building an IOT device, powered by headless Debain on a CHIP (https://getchip.com/), and will have connectivity to a customer's wifi. I'm trying to build in functionality for wifi connectivity to ...
4
votes
1answer
4k views

wpa_cli level command always fails

I'm trying to set the debug level of wpa_cli using the level command. It doesn't matter if I use interactive mode or direct commands the level command always fails. wpa_cli -i wlan0 level 1 => ...
4
votes
1answer
3k views

WPA_CLI showing access point as connected when it shouldn't

I'm using linux kernel 3.3 and am trying to use the wpa_cli utility to monitor the status of my WiFi connection. I'm using an Edimax WiFi dongle to connect to a wireless access point. Normally I see ...
8
votes
2answers
2k views

What are the most reliable wifi commandline tools? iw vs wpa_cli vs nmcli

I am exploring a few low-level tools for connecting to wireless networks, and I found the following tools (with useful documentation/tutorial links): iw wpa_cli nmcli I cannot seem to find a ...