RTK_P2P_WFD_Programming_guide.pdf

(356 KB) Pobierz
Realtek Wi-Fi Direct/Miracast
Programming Guide
Support Linux Kernel <= 2.6.34
Date: 2013/01/29
Version: 1.2
This document is subject to change without notice. The document
contains Realtek confidential information and must not be disclosed
to any third party without appropriate NDA.
Document Version
V1.2
Note
1. Refine the P2P description
2. Added P2P commands
3. Added Miracast commands
Wi-Fi Direct ( P2P ) is the new technology developed by Wi-Fi Alliance. It is a
solution for Wi-Fi device-to-device connectivity. And it is also backward compatible
with existing Wi-Fi Certified devices.
The following picture is the overview for Wi-Fi Direct architecture of Realtek
Linux Wi-Fi Direct software. This software architecture is based on the linux standard
interface “wireless extension”. If the system platform will perform the P2P/Miracast
feature on cfg80211/Android, please refer to another document (Miracast on
Android.pdf).
Figure1: Software Architecture for Realtek Linux Wi-Fi Direct
Basically, there are two roles in the Miracast connection. One is Miracast source
device; another is Miracast display (sink) device. The TDLS & Wi-Fi Direct can be
used to establish the Miracast connection. The Wi-Fi Direct is mandatory feature for
Miracast, TDLS is optional. This document will focus on the Wi-Fi Direct technology
when creating the Miracast connection.
“User Interface App (UI)” is an application which should be designed by customer for
their product. UI should use the iwpriv application to get/set whole the P2P
information from/to the Realtek Wi-Fi driver. Iwpriv application is available in the
wpa_supplicant_hostapd folder and we also provide the porting guide under document
folder.
(Please refer to the Wireless tools porting guide.doc)
Of course, the UI can use the iwpriv application to issue the P2P information to driver
based on the Wi-Fi Direct APIs described in this document.
wpa_cli and wpa_supplicant are the standard application to handle whole the
802.11 station mode connection. Hostapd and hostapd_cli are also the standard
application to handle whole the 802.11 AP mode connections.
In usual, there are 4 stages in the Wi-Fi Direct scenario.
1. “Device Discovery”
2. “Provision Discovery”
3. “Group Formation”
4. “Provisioning”
The following picture will provide the overall concept for Wi-Fi Direct
functionality and it will also contain these 4 stages described above.
Figure2: Wi-Fi Direct Overview
The figure2 describes the basic Wi-Fi Direct scenario and this document will use
this figure to explanation the Wi-Fi Direct functionality and APIs.
1. Enable P2P
In this case, there are two Wi-Fi devices which both support the Wi-Fi Direct
functionality. We can use the iwpriv to enable the Wi-Fi Direct function of Realtek
Wi-Fi driver (enable P2P).
#> iwpriv wlan0 p2p_set enable=n
“wlan0” is the network interface for Realtek Wi-Fi device on the system.
“p2p_set” command is used to pass the settings information to the driver. “enable” is
the actual command to tell the driver which information the application is trying to set.
“n” is a number to set the P2P functionality.
Zgłoś jeśli naruszono regulamin