I was using wpa_supplicant with 2.1 earlier and wifi and p2p interface were workimg fine. Now I have upgraded to wpa_supplicant 2.5 as part of R8.6 release from TI.
As part of TI R8.6 release notes,
P2P usage
p2p0 interface is not longer required to be added manually,
going forward we will use p2p-dev-wlan0 which is started automatically by the wpa_supplicant process when loaded.
When I start the wpa_supplicant as,
wpa_supplicant -B -u -iwlan0 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
Could not read interface p2p-dev-wlan0 flags: No such device
If i give, ip addr only wlan0 interface is displayed.
Earlier with 2.1, I was using p2p0 with dbus API GetInterface to get the object path. If I give p2p-dev-wlan0 as input to GetInterface my wpa_supplicant gets stopped.
The below command stops the wpa_supplicant with 2.5.
dbus-send --system --print-reply --dest=fi.w1.wpa_supplicant1 /fi/w1/wpa_supplicant1 org.freedesktop.DBus.Properties.Get string:fi.w1.wpa_supplicant1 string:Interfaces
With 2.5 what interface should I use with dbus API's for p2p?
Regards,
Johncy.