Trouble setting up multiple SSIDs on raspberry pi 4b

January 4, 2024, 01:04

shortcirkuitz

Ok, so I am having trouble setting up a second SSID for my raspberry pi 4. The first ssid was setup using the raspberry pi imager so I am not sure if that is where the problem lies. I can add things to wpa conf however when I try to save any config changes I recieve a "FAIL" message. I am not sure what's going on but having acces to that second SSID is crucial to the project that I am working on. Any help would be appreciated. Thank you in advance.

shortcirkuitz

I should probably note that on my old pi 3 I had no issues with this.

_krazy.

How are you trying to save the changes?

_krazy.

I remember you need certain privileges to edit some files (sudo).

shortcirkuitz

I am using sudo

shortcirkuitz

I use
 sudo wpa_cli

shortcirkuitz

I just tried reconfiguring the supplicant file
sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wlan0: CTRL-EVENT-DSCP-POLICY clear_all
nl80211: deinit ifname=wlan0 disabled_11b_rates=0

shortcirkuitz

Here's the current cofig contents
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

shortcirkuitz

In case you're wondering I am currently using it via wlan since a lot of the time I do not have access to my home's router.

shortcirkuitz

So I was able to change the default wifi to the correct one now I want to add another network for when I am home

shortcirkuitz

Nevermind I will just use tailscale