On my own computer when I call “p2p_group_add” in the wpa_cli a new interface “p2p-wlp2s0-0” is created. This is just to show what I mean. I intend to use p2p_find and p2p_connect when I have the Toradex card setup as group owner.
root@fodo-Lenovo-YOGA-720-15IKB:/etc/wpa_supplicant# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 44:03:2c:be:ec:77 brd ff:ff:ff:ff:ff:ff
inet 10.105.114.172/24 brd 10.105.114.255 scope global dynamic noprefixroute wlp2s0
valid_lft 86366sec preferred_lft 86366sec
inet6 fe80::b112:6e2:51a8:9257/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: p2p-wlp2s0-0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 44:03:2c:be:ec:79 brd ff:ff:ff:ff:ff:ff
When I do the same on the Toradex system I get no new interface:
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq qlen 1000
link/ether 00:14:2d:6f:d5:7e brd ff:ff:ff:ff:ff:ff
inet 192.168.10.2/24 brd 192.168.10.255 scope global dynamic end0
valid_lft 81279sec preferred_lft 81279sec
inet6 fe80::214:2dff:fe6f:d57e/64 scope link
valid_lft forever preferred_lft forever
3: can0: <NOARP40000> mtu 16 qdisc noop qlen 10
link/[280]
4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 38:d5:47:0b:04:fb brd ff:ff:ff:ff:ff:ff
5: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq qlen 1000
link/ether ea:fb:1c:aa:a5:d7 brd ff:ff:ff:ff:ff:ff
inet6 fe80::e8fb:1cff:feaa:a5d7/64 scope link
valid_lft forever preferred_lft forever
6: uap0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether e8:fb:1c:aa:a7:d7 brd ff:ff:ff:ff:ff:ff
7: p2p0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether ea:fb:1c:aa:a5:d7 brd ff:ff:ff:ff:ff:ff
I have been following this text https://www.ti.com/lit/ug/swru576/swru576.pdf?ts=1702289219555#P2P_commands on page 13 to setup a group owner on the toradex and my own computer as a client.
However since the Toradex module is not creating a new interface I cannot follow the instructions to ifconfig an IP number on the interface. I cannot follow step 7 either where they switch over to the new interface since it does not exist.
I have tried setting the ip number on both the “p2p0” and “wlp1s0” interface but that does not seem to work.
This is my wpa_supplicant configuration:
ctrl_interface=/var/run/wpa_supplicant
update_config=1
device_name=mint
device_type=2-0050F204-1
p2p_disabled=0
p2p_listen_reg_class=81
p2p_listen_channel=1
p2p_oper_reg_class=81
p2p_oper_channel=1
p2p_go_intent=1
p2p_no_group_iface=1
config_methods=virtual_push_button
/Regards
Mikael