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 what my interfaces file looks like:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
auto wlan0
iface wlan0 inet static
address IP
netmask 255.255.255.0
wireless-channel 1
wireless-essid Network
wireless-mode ad-hoc
wireless-key KeyHere
I have also tried modifying the wpa_supplicant.conf file to add my password like so:
network={
ssid="Network"
psk="password"
key_mgmt=WPA-PSK
}
And in my interfaces file I used:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
auto wlan0
iface wlan0 inet static
address IP
netmask 255.255.255.0
wireless-channel 1
wpa_conf /etc/wpa_supplicant/wpa_supplicant.conf
But the network stopped showing up on my phone.
Update with info from a comment:
I'm using Buster. I connect to this network on my iPhone. I don't run an access point from my phone. The ad-hoc network is generated from the Pi. This is a Wifi-Direct connection.