raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.06k stars 4.97k forks source link

[Rpi3] Wifi issue creating p2p group (go mode) #2740

Open marius-meissner opened 5 years ago

marius-meissner commented 5 years ago

Creating of p2p channel fails, as the driver/kernel is is unable to create the interface.

Creating a p2p group using wpa_cli

> p2p_group_add
OK
<3>P2P-GROUP-STARTED p2p-wlan0-3 GO ssid="DIRECT-WD" freq=2412 passphrase="mhOZMLlC" go_dev_addr=7a:9b:6d:fa:36:a4
<3>P2P-GROUP-REMOVED p2p-wlan0-3 GO reason=UNAVAILABLE

Syslog:

Oct 31 21:35:03 raspberrypi kernel: [  843.186194] IPv6: ADDRCONF(NETDEV_UP): p2p-wlan0-4: link is not ready
Oct 31 21:35:04 raspberrypi dhcpcd-run-hooks[929]: p2p-wlan0-4: starting wpa_supplicant
Oct 31 21:35:04 raspberrypi kernel: [  843.815010] IPv6: ADDRCONF(NETDEV_UP): p2p-wlan0-4: link is not ready
Oct 31 21:35:05 raspberrypi kernel: [  844.338547] IPv6: ADDRCONF(NETDEV_UP): p2p-wlan0-4: link is not ready
Oct 31 21:35:05 raspberrypi kernel: [  844.494337] IPv6: ADDRCONF(NETDEV_CHANGE): p2p-wlan0-4: link becomes ready
Oct 31 21:35:05 raspberrypi dhcpcd-run-hooks[931]: p2p-wlan0-4: failed to start wpa_supplicant
Oct 31 21:35:05 raspberrypi dhcpcd-run-hooks[932]: p2p-wlan0-4: Successfully initialized wpa_supplicant#012nl80211: Could not configure driver mode#012nl80211: deinit ifname=p2p-wlan0-4 disabled_11b_rates=0#012ioctl[SIOCSIWPMKSA]: Invalid argument#012ioctl[SIOCSIWMODE]: Operation not supported#012ioctl[SIOCSIWENCODEEXT]: Operation not supported#012ioctl[SIOCSIWENCODE]: Operation not supported#012ioctl[SIOCSIWENCODEEXT]: Operation not supported#012ioctl[SIOCSIWENCODE]: Operation not supported#012ioctl[SIOCSIWENCODEEXT]: Operation not supported#012ioctl[SIOCSIWENCODE]: Operation not supported#012ioctl[SIOCSIWENCODEEXT]: Operation not supported#012ioctl[SIOCSIWENCODE]: Operation not supported#012ioctl[SIOCSIWENCODEEXT]: Operation not supported#012ioctl[SIOCSIWENCODE]: Operation not supported#012ioctl[SIOCSIWENCODEEXT]: Operation not supported#012ioctl[SIOCSIWENCODE]: Operation not supported#012ioctl[SIOCSIWPMKSA]: Invalid argument#012ctrl_iface exists and seems to be in use - cannot override it#012Delete '/var/run/wpa_supplicant/p2p-wlan0-4' manually if it is not used anymore#012Failed to initialize control interface 'DI
Oct 31 21:35:05 raspberrypi dhcpcd[486]: p2p-wlan0-4: waiting for carrier
Oct 31 21:35:05 raspberrypi dhcpcd[486]: p2p-wlan0-4: carrier acquired
Oct 31 21:35:05 raspberrypi kernel: [  845.165117] IPv6: ADDRCONF(NETDEV_UP): p2p-wlan0-4: link is not ready
Oct 31 21:35:05 raspberrypi dhcpcd[486]: p2p-wlan0-4: IAID 6d:fa:b6:a4
Oct 31 21:35:05 raspberrypi dhcpcd[486]: p2p-wlan0-4: adding address fe80::c31c:8ef8:164c:33b7
Oct 31 21:35:05 raspberrypi dhcpcd[486]: p2p-wlan0-4: carrier lost
Oct 31 21:35:06 raspberrypi dhcpcd[486]: p2p-wlan0-4: deleting address fe80::c31c:8ef8:164c:33b7
Oct 31 21:35:06 raspberrypi dhcpcd[486]: p2p-wlan0-4: carrier acquired
Oct 31 21:35:06 raspberrypi kernel: [  845.831494] IPv6: ADDRCONF(NETDEV_UP): p2p-wlan0-4: link is not ready
Oct 31 21:35:07 raspberrypi kernel: [  846.358386] brcmfmac: brcmf_cfg80211_get_channel: chanspec failed (-1)
Oct 31 21:35:07 raspberrypi dhcpcd[486]: p2p-wlan0-4: IAID 6d:fa:b6:a4
Oct 31 21:35:07 raspberrypi dhcpcd[486]: p2p-wlan0-4: adding address fe80::c31c:8ef8:164c:33b7
Oct 31 21:35:07 raspberrypi dhcpcd[486]: if_addaddress6: No such device
Oct 31 21:35:07 raspberrypi dhcpcd[486]: p2p-wlan0-4: carrier lost
Oct 31 21:35:07 raspberrypi dhcpcd[486]: p2p-wlan0-4: removing interfac

Kernel:

Linux raspberrypi 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l GNU/Linux

Tested on: Raspberry Pi 3

I´m creating this issue with the tough of reporting a firmeware/kernel problem, not asking for support.

Thanks a lot for your effort!

devilbats commented 5 years ago

Hi, i got the same problem, but after u keep run the p2p_group_add, the network will be created successfully, I got the problem on how to set own password because it will keep generated the random password every time it created.

Can some one help, how to set the desired password for the P2P GO/AP mode.