Open apaikan opened 3 years ago
This should not be a problem of hostp2pd, but related to the wpa_supplicant interaction with the Android device. After hostp2pd creates a persistent group (p2p-wlan0-0 in your example), it just manages the enrolment to this group (P2P-GO events, which are unrelated to the P2P-GO-NEG-REQUEST event of the P2P-Device).
On the Android device, please try touching your item stuck in the Invited status, then removing it through the related popup; redo the enrolment operation more times on Android, to verify whether this problem is always occurring.
From wpa_supplicant / hostapd, P2P-GO-NEG-REQUEST describes the following:
P2P_EVENT_GO_NEG_REQUEST: A P2P device requested GO negotiation, but we were not ready to start the negotiation.
It looks like your Android device does not realize that a persistent group is already available on the Raspberry Pi system (wpa_supplicant should be beaconing this to the Wi-Fi network) and opts for the group formation technique, trying to negotiate the GO instead of joining the already existent persistent group.
If you always happen to verify the problem, please share the hostp2pd logs with loglevel 10
. You should also check the events of sudo wpa_cli -i p2p-wlan0-0
.
Try also the Negotiated on demand group formation technique.
@Ircama first of all thanks a lot for providing such a in deep description for hostp2pd. I may be doing something wrong with some configuration but i cannot manage to get hostp2pd working with persistent connection. I am trying to connect an Android tablet to RPI from Android WIFI Direct setting panel. When i click on my DIRECT-xx from android, it asks me for the pin but after entering the pin, its status on Android remain 'invited'.
Here is the error message shows up on my hostp2pd when is I run it from command line:
Some information of my test bed:
Lunching hostp2pd:
wpa_cli output I ran the
sudo wpa_cli -i p2p-dev-wlan0
in another window to see the events. here are what i see while running my scenario:/etc/wpa_supplicant/wpa_supplicant.conf
hostp2pd.yaml (removed commented line)
ifconfig