AnneCreek
Posts: 35
Joined: Thu Oct 04, 2018 4:51 pm

p2p-dev-wlan0 or wlan0 - what is the difference ?

Thu Oct 11, 2018 6:30 pm

Using plain "wpa_cli" I get "selected interface " p2p-dev-wlan0 or wlan0.
What is the difference?
And why ?

Code: Select all


wpa_cli v2.4
Copyright (c) 2004-2015, Jouni Malinen <[email protected]> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.


Selected interface 'p2p-dev-wlan0'

Interactive mode

Could not connect to wpa_supplicant: p2p-dev-wlan0 - re-trying



ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5343
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: p2p-dev-wlan0 or wlan0 - what is the difference ?

Mon Oct 15, 2018 8:44 am


AnneCreek
Posts: 35
Joined: Thu Oct 04, 2018 4:51 pm

Re: p2p-dev-wlan0 or wlan0 - what is the difference ?

Mon Oct 15, 2018 2:34 pm

Thanks for providing the links.
It is very useful, yet another addition to my collection of info about WiFi, however it does not answer my question.
The "device" is selected by running "wpa_cli" , without any options, which by definition ( as stated in doc you have referenced ) finds "first" WiFi device.
I as a user have no choice to "select" which one.

In not so technical description - I am connecting RPi WiFi device to a router / modem WiFi device ( part of the modem/ router).
The "p2p" connection says in essence "direct connection - without intermediate router" so if should be "p2p" - one device is RPi(WiFi) and the other is a router (WiFi)
If I want t to connect Rpi (WiFi) to an internet then it would no longer be "direct" connection - RPi (WiFi) -> router/modem(WiFi)-> Internet service (wired connection) - hence "wlan0".

And same if the connection is RPi(WiFi) -> router (WiFi) -> local PC (wired -SSH).

Return to “Networking and servers”