Questions tagged [wpa-cli]

38 questions
16
votes
1 answer

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[SIOCSIWENCODEEXT]: Invalid argument wlan3: Trying to…
Philip Kirkbride
  • 9,816
  • 25
  • 95
  • 167
12
votes
2 answers

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 thorough evaluation of these tools, or of similar tools.…
modulitos
  • 3,097
  • 8
  • 29
  • 44
9
votes
1 answer

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 => FAIL And interactive mode: wpa_cli wpa_cli…
MSB
  • 233
  • 2
  • 5
8
votes
1 answer

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 did for wifi-direct. 1.Compiled rtl8288au driver,…
GTKoo
  • 191
  • 1
  • 9
7
votes
2 answers

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 Selected interface 'wlan0' bssid / frequency /…
vik
  • 79
  • 1
  • 1
  • 3
6
votes
2 answers

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 would like to do all of the network configuration…
mechpilotace
  • 83
  • 1
  • 7
6
votes
1 answer

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 derivative on one of my machines and configured…
Akito
  • 548
  • 1
  • 7
  • 17
6
votes
1 answer

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). nmcli con add type wifi con-name
user123456
  • 4,758
  • 11
  • 52
  • 78
6
votes
1 answer

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 >reconnect How to export this network to a wpa_supplicant configuration…
4
votes
2 answers

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 sudo ip addr flush wlan0 sudo ip link set dev…
4
votes
2 answers

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 a script that will disconnect from the network…
CAPGuy
  • 83
  • 2
  • 2
  • 4
4
votes
2 answers

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 the customer's router in a way that wouldn't…
CAPGuy
  • 83
  • 2
  • 2
  • 4
4
votes
1 answer

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 something like this: # wpa_cli status Selected…
zeus_masta_funk
  • 245
  • 2
  • 10
3
votes
0 answers

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 Buildroot OS?
Jeremiah Rose
  • 243
  • 2
  • 7
3
votes
3 answers

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 into the same behavior on all of them. Suppose you're…
user45878
  • 51
  • 1
  • 5
1
2 3