Questions tagged [wpa-cli]
The wpa-cli tag has no usage guidance.
38
questions
0
votes
1
answer
428
views
Wifi P2P - Same Commands Different Results
I'm trying to get Wifi P2P (also known as "Wifi Direct") working on some devices. My goal is for them to be a "Group Owner" (i.e., acting like an access point). However, I'm ...
0
votes
1
answer
791
views
wlan0 interface disabled at startup on raspberry / debian
At boot of my Raspbian (Debian 10) I have this:
$ sudo wpa_cli
wpa_cli v2.8-devel
Copyright (c) 2004-2019, Jouni Malinen <[email protected]> and contributors
This software may be distributed under the ...
1
vote
1
answer
10k
views
How to connect to open wifi networks using wpa_cli?
I am failing to connect to open wifi networks using wpa_cli. I am trying to connect to the open wifi networks in the following way:
$ sudo wpa_cli -i wlp3s0
> add_network
0
> set_network 0 ssid &...
0
votes
1
answer
166
views
Deactivate wpa_cli notifications
Is it possible to deactivate wpa_cli notifications/messages like <3>WPS_AP_AVAILABLE? Because it spams it, and in a VT where you have to slowly type MACs@ and bssIDs, it's really hard with those ...
1
vote
1
answer
439
views
wpa_cli: interactive shell works, single commands fail?
I'm trying to connect to wifi using the wpa_cli. I've run $ wpa_cli add_network, got 0 back, ran $ wpa_cli set_network 0 ssid "my ssid". But this failed. Then I tried the interactive shell, ...
-1
votes
1
answer
900
views
wpa_cli action script example
I have been googling since morning about any wpa_cli actionscript example and the commands but can't any decent one. can someone help me with some info or link please?
Thanks
1
vote
0
answers
290
views
wpa_cli store hash password
Using wpa_passphrase I can get a config with the password stored as a hash but when saving a new network with wpa_cli it gets saved as plain text. Is there a way to save passwords as a hash from ...
8
votes
2
answers
6k
views
wpa_cli connection to hidden ssid
I have a raspberrypi ZeroW that I am trying to connect to a network with a hidden ssid. I know that I could add this line "scan_ssid=1" to my wpa_supplicant.conf file for setup that way, however I ...
0
votes
1
answer
180
views
bash script environment/result ambiguity
I'm running Arch Linux with i3wm.
$ uname -a
Linux lappie 5.3.1-arch1-1-ARCH #1 SMP PREEMPT Sat Sep 21 11:33:49 UTC 2019 x86_64 GNU/Linux
$ i3 --version
i3 version 4.17.1 (2019-08-30) © 2009 Michael ...
3
votes
0
answers
92
views
Getting Debian style wpa_supplicant in Buildroot
Currently it seems like the Buildroot package for wpa_supplicant does not include the Roaming Mode functionality that is available in the Debian package. How would I manually include this in my ...
1
vote
0
answers
960
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 "...
1
vote
2
answers
2k
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 ...
2
votes
1
answer
1k
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)
...
2
votes
1
answer
3k
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
2
answers
12k
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 ...
4
votes
2
answers
834
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
1
answer
9k
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
0
answers
1k
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 ...
7
votes
2
answers
36k
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
...
16
votes
1
answer
2k
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
1
answer
713
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
1
answer
1k
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 ...
3
votes
3
answers
4k
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 ...
8
votes
1
answer
10k
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 ...
2
votes
0
answers
1k
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 ...
1
vote
1
answer
3k
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-...
6
votes
1
answer
3k
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
0
answers
580
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
1
answer
2k
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)....
2
votes
1
answer
928
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
1
answer
4k
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
...
4
votes
1
answer
3k
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 ...
6
votes
1
answer
11k
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
>...
4
votes
2
answers
11k
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 ...
4
votes
2
answers
13k
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 ...
9
votes
1
answer
6k
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
1
answer
7k
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 ...
13
votes
2
answers
7k
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 ...