Hi Jose,
On Wed, 2017-08-23 at 21:18 +0200, Jose Blanquicet wrote:
Hi Carl,
On Wed, Aug 23, 2017 at 7:37 PM, Carl D. Blake
<carl.blake(a)pointmaker.com> wrote:
> I'm using a Raspberry Pi 3 with the stretch distribution. Connman is at
> V1.33 and wpa_supplicant is at V2.4. connmanctl technologies does not
> show p2p. However iw list shows p2p go and p2p client support and I can
> run wpa_cli and do a p2p_find command which shows p2p available devices.
Well, that's strange.
> Does anybody know what's going on here? Why won't connmanctl
> technologies show p2p?
Let's start from the very first checks. First of all, make sure wifi
technology is enabled, if it is disabled then any WiFi activity is
denied on your system and P2P is part of them. Therefore, ConnMan will
not even show you P2P as technology.
The command:
connmanctl technologies
gives the following result:
/net/connman/technology/bluetooth
Name = Bluetooth
Type = bluetooth
Powered = False
Connected = False
Tethering = False
/net/connman/technology/wifi
Name = WiFi
Type = wifi
Powered = True
Connected = False
Tethering = False
Now, if that was not the reason, let's check if wpa_supplicant is
correctly notifying ConnMan about the capabilities supported by your
system:
1. Check wpa_supplicant global capabilities by executing D-Bus call:
dbus-send --system --print-reply --dest=fi.w1.wpa_supplicant1
/fi/w1/wpa_supplicant1 org.freedesktop.DBus.Properties.GetAll
string:"fi.w1.wpa_supplicant1"
You should see something like:
[...]
dict entry(
string "Capabilities"
variant array [
[...]
string "p2p"
]
)
[...]
This command shows string "p2p" in the "Capabilities" just as you
showed.
2. Check per interface capabilities. Change X with the value(s) you
got in (1) into "Interfaces" property.
dbus-send --system --print-reply --dest=fi.w1.wpa_supplicant1
/fi/w1/wpa_supplicant1/Interfaces/{X}
org.freedesktop.DBus.Properties.GetAll
string:"fi.w1.wpa_supplicant1.Interface"
Here, look for "Modes" property, you should see something like:
[...]
dict entry(
string "Modes"
variant array [
[...]
string "p2p"
]
)
[...]
I assume with this command that you want me to run this on each
interface as listed in the dict entry( string "Interfaces".
Unfortunately, there are no interfaces listed in this dict entry. It
shows:
dict entry(
string "Interfaces"
variant array [
]
)
Thoughts? Thank you for your detailed help.
For me those are the very first checks you should do, nothing else
comes to my mind for now. If everything is on point, we will probably
ask you to send us your ConnMan's logs with CONNMAN_SUPPLICANT_DEBUG
enabled to try to understand what is going on.
I hope this help you.
Best regards,
Jose Blanquicet