I want to set up a wifi direct connection between my phone and my pi3. I followed this post Connect to Raspberry PI 3 over Wi-Fi direct hoping i would be at least able to see my phones open wifi direct connection, but the wpa_supplicant wont start, reporting either
Could not read interface p2p-dev-wlan0 flags: No such device
or
Failed to create interface p2p-dev-wlan0: -16 (Device or resource busy)
iw list tells me
* P2P-client
* P2P-GO
* P2P-device
are all available, which is of no suprise since most tech spec descriptions of the pi3 list wifi direct capabilities...
in my search for answers I stumbled across some people saying "it's a wpa_supplicant 2.5 bug, downgrade your wpa_supplicant" but im no able to find a arm version of the wpa_supplicant 2.3 anywhere. I did find some 2.3 packages in the Archlinux Rollback Machine, but pacman dismissed those as "wrong architecture".
Anyone got any ideas how to solve this?
ps: i got raspbian installed on another sd-card, almost the same problem
edit: Raspbian got wpa_supplicant 2.3, I started the wpa_supplicant with these configs
ctrl_interface=/var/run/wpa_supplicant
device_name=PI
update_config=1
(just like Van Coding in his post) The wpa_supplicant started, but p2p_find and p2p_listen wouldn't produce any results at all. Extended debug informations revealed
nl80211: Do not indicate P2P_DEVICE support (p2p_device=1 driver param not specified)
so I added
driver_param=p2p_device=1
to the params, which, in turn, lead to
Failed to create interface p2p-dev-wlan0: -16 (Device or resource busy)
nl80211: Failed to create a P2P Device interface p2p-dev-wlan0
P2P: Failed to create P2P Device interface
again, Indicating some other problem than a faulty wpa_supplicant release
systemctl restart wpa_supplicant.service
, then run thewpa_supplicant
command again. It worked after that. – Carcigenicate Aug 04 '20 at 19:42