Questions tagged [wpa-supplicant]

wpa_supplicant is a software implementation of IEEE 802.11i supplicant for almost all the major Operating Systems including Windows, Linux, FreeBSD, Solaris etc. It is compliant with WPA2, WPA and older Wireless LAN protocols

Filter by
Sorted by
Tagged with
1 vote
1 answer
143 views

How to update wifi and static ip settings on existing Raspberry Pi via the SD card?

I'm trying to add an additional network to a Raspberry Pi 4 running Buster that I use on my home network that I am travelling with. The location I am staying in appears to have Wifi delivered via a ...
  • 119
0 votes
2 answers
231 views

Why does adding a 2nd network in wpa_supplicant.conf break my wifi connection to Raspberry Pi Zero 2 W?

Following this answer I added a 2nd WiFi network to wpa_supplicant on my bullseye installation. There must be something wrong with the configuration as when I reboot the router I am unable to connect ...
1 vote
1 answer
50 views

RPI not connecting the wifi

As written I am unable to connect my RPI to the internet. What happened is I took the RPI from the office (where it was working) and took it home (to a new wifi). To save myself the headache, before I ...
0 votes
1 answer
438 views

Connecting to my WiFi using BSSID and password in wpa_supplicant.conf always fails. Why?

I have a WiFi network consisting of multiple WiFi APs exposing the name SSIDs, a mesh. Now I have a Raspberry Pi which should connect to one specific AP only. This can usually be achieved by ...
-2 votes
1 answer
178 views

Not connecting to Wi-Fi on first boot only, after editing wpa_supplicant

Raspberry Pi 4. So I have a python script (run at startup) with a GUI where it is possible to select a wifi network form a list and enter its password; such infos are saved to a file which will later (...
0 votes
2 answers
131 views

switch from hostapd AP to wifi client Raspberry Pi OS (Raspberry Pi4 64bit)

After meticulously following the instructions in this thread. I have a problem with my Raspberry Pi 4 on Raspberry Pi OS. Indeed, when I use this script: #!/bin/bash # This script will stop Hotspot (...
  • 1
-1 votes
1 answer
155 views

Raspberry Pi 4B connect to WPA2-Enterprise Wifi Network but loss Ethernet cable connection

I'm trying to connect to the university wifi (WPA2-Enterprise). I do the following modifications on files and successfully connect to the network. However, the Ethernet cable connection is disabled ...
0 votes
0 answers
30 views

core-image-base with wpa_supplicant how to switch between static and dynamic IP address

WPA supplicant has an option to fallback from STA to AP mode in case connection to a WIFI network fails. However in STA mode I use DHCP for wlan0 and in AP mode I need to assign a static IP address to ...
  • 111
0 votes
1 answer
229 views

Which way to go for RPI0W (Yocto) and WLAN fallback to AP mode when no network available

My intention is to start an (headless) RPI in AP mode when it is not able to connect to the configured WIFI network(s). I have seen several solutions, many of them related to Debian, but so far I was ...
  • 111
1 vote
1 answer
95 views

WPA2 Enterprise Connection Drops on Raspberry Pi 3B when Set-Up is Transitioned to Headless

After a significant amount of struggle I managed to connect my Raspberry Pi 3B to my university's WPA2 Enterprise network, UCR-SECURE, in the traditional set-up with a monitor, keyboard, and mouse; ...
  • 19
1 vote
2 answers
227 views

No wpa_supplicant executable

I'm running Rasbpian 10 (buster) on raspberry pi 3 b+. Where can I find the wpa_supplicant binary? $ sudo apt install wpa_supplicant E: Unable to locate package wpa_supplicant # Same for wpa and ...
1 vote
2 answers
127 views

Configure RasPi 4 for headless operation [closed]

I'm trying to run a Pi 4 headless as I don't have the microusb cord available. In /boot, I ran touch ssh then created wpa_supplicant.conf and with the modified contents: country=US ctrl_interface=DIR=/...
  • 119
2 votes
1 answer
1k views

WiFi access point fails with brcmf_cfg80211_change_iface: iface validation failed: err=-16

I was trying to set-up an access point at the same time as I have a station (client) connection and I kept hitting a brcmf_cfg80211_change_iface: iface validation failed: err=-16 error seen in syslog ...
  • 121
0 votes
1 answer
377 views

[wpa_supplicant.conf ]Stop RPi from automatically setting disable=1 to wifi networks

My raspberry pi automatically sets disable=1 to all the wifi networks that are not currently connected. So when I take the Pi to other places, it won't connect it to the network automatically even ...
  • 1
1 vote
1 answer
354 views

confusing wpa_supplicant processes while trying to use dbus api

I am trying to write some code that is to use dbus api to access wpa_supplicant. My understanding from reading various posts that wpa_supplicant must be started with -u flag to fully expose it's apis ...
0 votes
1 answer
813 views

Rapsberry pi cannot connect to internet or ping any device on network when connected to specific router

I have a Raspberry Pi on my network, that serves as ssh and vnc server. I can ping it's ip address from any device on network and access it via SSH or VNC without any issues. Problem appears when pi ...
1 vote
1 answer
71 views

Create Pi image from wireless headless Pi for distribution - remove SSID and password

I want to create a Pi image that I can distribute to others. I have the basics down for doing this for myself, and it works. But for my own use, that fact that my WiFi SSID and password are included ...
0 votes
2 answers
826 views

Could not connect to Wi-Fi after editing 'wpa_supplicant.conf' with Python script

I'm trying a solution that can change or connect to a new Wi-Fi network with a Python script. After executing the code below that changes the content of 'wpa_supplicant.conf', the change of the file ...
0 votes
2 answers
1k views

Connect to WiFi with CLI without rebooting

I want to connect my Raspberry Pi 4B to my Wifi network via CLI (technically, by node.js/python scripts) without rebooting it. For the moment I am modifying the /etc/wpa_supplicant/wpa_supplicant.conf ...
-1 votes
1 answer
85 views

Raspbia, after a reboot, wifi is only working if a ethernet cable is attached

my problem is that my wifi is only getting an IP address if ethernet cable is also plugged in. I have checked many sides, but the solution below is not working. (funny thing, I have reinstalled this ...
  • 1
0 votes
1 answer
644 views

wpa_supplicant.conf, two networks, equal priority, switching back and forth shortly after boot

I'm using a 3B running Raspian Buster, 5.10.17-v7+. It is running in a specialty device that goes with a telescope setup to track weather. On the telescope is a router with one SSID, let's call it &...
  • 109
0 votes
1 answer
303 views

Connecting Raspberry Pi 3b+ to Eduroam network

I am trying to connect a raspberry pi to my college network and I'm having trouble finding the right settings to put into wpa_supplican.conf. The only thing the IT department was able to tell was that ...
  • 9
0 votes
1 answer
93 views

Create additional wifi credentials on headless Pi 0

I have been accessing this Pi over SSH on a wifi per the initial install via burning a raspbian image to an SD card. I tried unsuccessfully to add another wifi network by editing the wpa_supplicant....
  • 105
0 votes
0 answers
24 views

WiFi Problems , including priority and not being able to connect to certain networks

So I am trying to setup my RPI4 wpa_supplicant.conf file with priority for my different networks , but the file just keeps reverting back to what it was before i edited it , and it also disable the ...
2 votes
4 answers
2k views

How to connect raspberry pi to separate wifi's

I have a headless pi setup and I want it to connect to two different wifi's at two separate houses. This is how my wpa_supplicant.conf is setup: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev ...
  • 31
0 votes
2 answers
286 views

Prevent automatic connection to open wifi

I am using a Raspberry Pi 2 with a USB wifi adapter (headless setup). The wpa_supplicant.conf file contains authentication information only for my wifi access point, and the pi connects to it as ...
1 vote
3 answers
249 views

networkd & resolved acces point custom dns and dns forwarding

Edit: I'm not looking for a full guide/answer necessarily, a nudge in the right direction (like what tool to use) would be of great help already! thanks :) I am trying to create an accesspoint with a ...
1 vote
2 answers
3k views

Raspberry Pi Zero W can't connect to wifi

I have been trying to setup a raspberry pi 0w to connect to my access point but I can't get it to connect. The first thing I did was to enable USB ethernet and make the ssh file so I can connect to it ...
  • 88
3 votes
2 answers
3k views

RPI4B Ubnutu Server 20.10 wifi setup

I recently installed Ubuntu Server 20.10 on my RPI 4B and cannot get wifi to work. I followed the instructions here, here, and here. When I attempt to setup wifi via wpa_supplicant (the last link) ...
0 votes
2 answers
2k views

Raspberry Pi 4 Rasbian two different wireless networks wlan0 wlan1

Is it possible to have a Raspberry Pi connect to two different WiFi networks? I want the built-in wlan0 to connect to a LAN, and wlan1 (using a USB wifi dongle I have) to connect to the internet. ...
  • 1
-1 votes
1 answer
811 views

Raspberry Pi wpa_supplicant changes not getting saved

Network in wpa_supplicant.conf keep coming back after I delete it. Below is my wpa_supplicant.conf file ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=IN network={ ...
0 votes
1 answer
875 views

Create new secure ad-hoc network

I am trying to create a secure ad-hoc network generated from a pi 3b+ running Buster. I would like to have a password prompt to show up when I try to connect to the network on various devices. Here is ...
0 votes
2 answers
41 views

Roboust Network connectivity

I want to run a headless (no monitor and keyboard) Pi 3a in the somewhat fluent environment (at home, in an Artist’s studio, on the attic of an cathedral). The Pi is controlling some Christmas ...
  • 101
0 votes
0 answers
198 views

Connect to wifi on book

I have a relatively fresh install of RetroPie that won't connect to wifi on boot. (I'm copying these configs by hand) /etc/wpa_supplicant/wpa_supplicant.conf country=US ctrl_interface=DIR=/var/run/...
0 votes
1 answer
150 views

Detect captive portal without connecting to it

Is it possible to scan for networks and discern which ones are captive portals WITHOUT connecting to it? I'm currently using wpa_cli -i wlan1 scan wpa_cli -i wlan1 scan_result To get a list of ...
0 votes
1 answer
44 views

Multiple Issues connecting pi to new network (ssh)

I have a rpi 4b that up until this point has worked fine on my old wifi network. I've had to switch ISP from Telstra to Optus and am on a new network (old network yet to be shut off). I only access it ...
0 votes
1 answer
542 views

Problems when changing the wifi-direct password

I would like to create a Wifi-Direct access point where the board needs to act as the GO. I am using the following configuration file for wpa_supplicant (wpa_supplicant.conf): ctrl_interface=/var/run/...
0 votes
1 answer
292 views

Configure back to normal wifi station after access point mode (hostapd)

I have set up access point according to the manual https://www.raspberrypi.org/documentation/configuration/wireless/access-point-routed.md on respberry pi 4b. It works fine. Now I need to disable AP ...
  • 103
0 votes
2 answers
1k views

How to connect an Android phone and a raspberry pi through wifi direct programmatically

so I have been working on the task of connecting a pi to an android via wifi direct for a while, and I was able to get it to work, using the information given in this question: Issue connecting ...
  • 119
2 votes
1 answer
179 views

Raspberry pi zero W not connected to WPA enterprise school network

I have been trying to connect my Raspberry pi Zero W to the school network. So far, it seems like I have it connected since the wifi icon is in blue, and the school network has a checkmark, although ...
2 votes
2 answers
12k views

Raspberry Pi 3b+ WiFi hotspot with hostapd Failed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator

I have this: /etc/default/hostapd DAEMON_CONF="/etc/hostapd/hostapd.conf" /etc/hostapd/hostapd.conf interface=wlan0 driver=nl80211 ssid=HOTSPOT hw_mode=g channel=6 ieee80211n=1 wmm_enabled=...
1 vote
1 answer
524 views

Issue connecting raspberry pi to android via Wifi p2p

I'm working on connecting a Raspberry Pi Zero W to an android device and having some issues. I think I am very close to getting it to work, but perhaps there is some small error. So I followed the ...
  • 119
1 vote
1 answer
898 views

How to invoke the existing persistent p2p Go on restart of device (to create auto connect)

I am able to connect successfully with the android device with the following wpa_supplicant.conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=root update_config=1 device_name=DIRECT-Pi ...
  • 11
1 vote
1 answer
869 views

Unable to Connect Raspbian Lite to Enterprise Wifi

for the last few days I have been trying to connect my raspberry pi 3B to an enterprise wifi network with little success. My wpa_supplicant.conf looks like: network={ ssid="(My Network ...
2 votes
1 answer
2k views

Raspberry Pi Zero W not connecting to WiFi

Context: I'm trying to set up pihole as per these two tutorials. I'm using a Raspberry Pi Zero W. I created an SSH file which I added to the sd card. I also created a wpa_supplicant.conf file as per ...
5 votes
2 answers
9k views

Choose a specific WiFi AP or Frequency

My router (Google WiFi) have 2 access points with the same ssid: a 2.4GHz and a 5GHz. It seems that multicasting between these networks is unstable, so I want my raspberry (buster) to force a ...
1 vote
2 answers
1k views

Is there a better way to fix messed up wpa_supplicant and interfaces files on Windows?

Hello I am very new to Raspberry pi having got a Raspi 0 only a few days ago. The only way I know to access any of the code is by ssh-ing from my laptop into the pi, but it worked and I was very happy ...
  • 11
0 votes
1 answer
713 views

In remote setup, how can I accurately put an apostrophe in the SSID name for wpa_supplicant.conf file?

I'm trying to setup a raspberry 3 B+ headless by writing a wpa_supplicant.conf and adding to the boot directory of pi. However, my pi keeps not connecting to my internet, and I believe its because my ...
2 votes
2 answers
2k views

Raspberry Pi w/Buster dynamic AP and Wi-fi client

I have managed to setup my Raspberry Pi Zero W to work in both AP and Client mode simultaneously using this great guide. Using wpa_cli -iwlan0 (no sudo), I am able to scan, connect and save networks ...
0 votes
1 answer
93 views

Certain WiFi connections are greyed out and not accessible

Certain WiFi connections are greyed out and not accessible on Raspbian. I did try to modify the wpa_supplicant.conf but the changes don't seem to work. Does anybody know the correct way to add a WiFi ...