Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sporadic p2p scan limits connection to peer #365

Open
ghost opened this issue Jan 23, 2020 · 3 comments
Open

Sporadic p2p scan limits connection to peer #365

ghost opened this issue Jan 23, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 23, 2020

Hello, I've been trying to debug an issue regarding sudo miracle-wifid --log-level trace
and sudo miracle-wifictl. Here are some logs

CE: wpa: raw message: IFNAME=wlan0 <3>CTRL-EVENT-SCAN-STARTED 
DEBUG: supplicant: connect to 46:65:0d:29:64:73 via pbc/(null) (supplicant_peer_
connect() in wifid-supplicant.c:739)
TRACE: wpa: raw message: <3>P2P-FIND-STOPPED 
DEBUG: supplicant: p2p-scanning stopped on wlan0 (supplicant_event_p2p_find_stop
ped() in wifid-supplicant.c:904)
TRACE: wpa: raw message: OK
TRACE: wpa: raw message: <3>P2P-GO-NEG-FAILURE status=-1
DEBUG: supplicant: peer Fire TV stick group owner negotiation f
ailed (supplicant_event_p2p_go_neg_failure() in wifid-supplicant.c:1301)
TRACE: wpa: raw message: <3>P2P-DEVICE-LOST p2p_dev_addr=46:65:0d:29:64:73
DEBUG: supplicant: lost peer 46:65:0d:29:64:73 (supplicant_event_p2p_device_lost
() in wifid-supplicant.c:986)
DEBUG: peer: peer 46:65:0d:29:64:73 @ wlan0 stopped (peer_supplicant_stopped() i
n wifid-peer.c:172)
DEBUG: peer: free peer: 46:65:0d:29:64:73 @ wlan0 (peer_free() in wifid-peer.c:9
0)

I start with sudo wpa_supplicant and network_manager stop then sudo miracle-wifid & (I later just used sudo miracle-wifid --log-level trace as referenced from Q & D setup)

It seems to recognize the direct wifi (miracast peer) when I select, p2p-scan and list in sudo miracle-wifictl but doesn't seem to properly stop scanning in order to begin the runtime for GO negotiation.

Is the firestick airplay only? It seems to support miracast.
Also important is that ./network-test succeeds and run or bind the peer in sinkctl seems to work fine, but I'd like to connect my desktop pc as source
My network card is Realtek Semiconductor Co., Ltd. RTL8188CE running on Manjaro. I installed connman(I disable wpa_supplicant of course) and miraclecast from AUR and WDS from source (as Intel's WDS package also doesn't work I thought I'd mention it.

@albfan
Copy link
Owner

albfan commented Jan 24, 2020

miracle-wifictl is not fully implemented. If you're trying o see your screen in other miracast device I suggest to look into https://github.com/benzea/gnome-network-displays. At some point it will be integrated in GNOME Desktop. It partially was implemented with the lesson learned from miraclecast, so it is the next step for this miracast implementation.

@ghost
Copy link
Author

ghost commented Jan 25, 2020

Understood but can you get miracle-wifid to run at the kernel level alongside dbus? The reason I ask is because network manager and connman at system start try to make their own instances of wpa_supplicant, so if there is all this sharing of the supplicant between daemons, maybe what's needed is a daemon manager for wpa_supplicant instances, like a semaphor?

@albfan
Copy link
Owner

albfan commented Jan 27, 2020

That's a simplification for miraclecast. The mentioned proyect use the existing connection (from network manager) to work with WiFi and WiDi at same time.

Miraclecast is not integrated with conman, there're other proyect that works with Miracast and conman, made by intel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant