SWRU576 January   2021 WL1801MOD , WL1805MOD , WL1807MOD , WL1831MOD , WL1835MOD , WL1837MOD

 

  1.   Trademarks
  2. Introduction
    1. 1.1 Acronyms Used in This Document
  3. Peer to Peer (P2P) Mode
    1. 2.1 P2P Device
      1. 2.1.1 Searching Phase
      2. 2.1.2 Negotiation
      3. 2.1.3 Group Formation
    2. 2.2 PSP Client
    3. 2.3 P2P GO
    4. 2.4 P2P Commands
      1. 2.4.1 P2P Commands Detailed Information
        1. 2.4.1.1 p2p_find
        2. 2.4.1.2 p2p_connect
        3. 2.4.1.3 p2p_listen
        4. 2.4.1.4 p2p_group_add
        5. 2.4.1.5 p2p_group_remove
        6. 2.4.1.6 p2p_peer
        7. 2.4.1.7 p2p_invite
      2. 2.4.2 P2P Event Details
    5. 2.5 P2P Use Cases
      1. 2.5.1 P2P Connection in PBC (Push Button Control)
      2. 2.5.2 Create Autonomous 1:2 P2P Group (Push button Control)
        1. 2.5.2.1 Assigning IP Address in P2P Mode Using DHCP Method
        2. 2.5.2.2 Create 1:2 P2P Group - Connect With PIN Code
        3. 2.5.2.3 P2P Invitation Procedure - Create Autonomous 1:2 P2P Group, (Push button Control)
  4. Access Point (AP) and Peer-to-Peer (P2P) Multirole
    1. 3.1 Errata/Limitations
  5. Multi BSSID (mBSSID)
    1. 4.1 Setup and Configuration
    2. 4.2 User Guide and Examples
  6. Access Point (AP) Enhanced Low Power (ELP) Mode
    1. 5.1 Setup and Configuration
    2. 5.2 User Guide and Examples
    3. 5.3 Errata/Limitations
  7. WiLink8 Wake on WLAN (WoWLAN) Feature
    1. 6.1 Mode of Operation
    2. 6.2 Adding "Suspend/Resume" WoW Mode to AM335x EVM
      1. 6.2.1 Patch Description
    3. 6.3 WoWLAN (Wake on WLAN) Mode Enable Procedure
      1. 6.3.1 Commands and Expected Output
      2. 6.3.2 Rx Filter Configuration
        1. 6.3.2.1 Rx Filter Configuration Examples
    4. 6.4 WoWLAN - Magic Packet
    5. 6.5 Block Acknowledgement (BA) Filter Setting
    6. 6.6 Hardware Modification Engineering Change Order (ECO) Request for AM335x EVM
  8. WiLink8 Suspend Resume Mode
    1. 7.1 Suspend Resume Example With AM437x SDK
  9. Access Point (AP) Dynamic Frequency Selection (DFS) Master Support
    1. 8.1 Setup and Configuration
    2. 8.2 User Guide & Examples
    3. 8.3 Errata/Limitations
  10. Station Mode - Alternative Method, With iw Commands, Explained
    1. 9.1 Step 1- Check if the wlan0 Interface is Already Running
    2. 9.2 Step 2- Bringup wlan0 Interface if Not Running
    3. 9.3 Step 3 - Connect Device to Available Acces Point
  11. 10References

P2P Use Cases

The following sections detail how P2P usecases can be realized with the WiLink8 devices. The demo uses hardware using AM335x EVM along with WL1837MODCOM8I module. The demo will need two such hardware for P2P connection. Typical hardware setup is as shown in Figure 2-2.

GUID-20200826-CA0I-6WWK-R9VV-KFNBD0XH5CJ3-low.png Figure 2-2 P2P Hardware Setup.
Each of the usecases uses the same scripts to start the P2P mode. These scripts are located at /usr/share/wl18xx/ on the AM335x EVM after TI WiLink8 driver is installed. The details of the scripts and typical output are provided below:
  • p2p_start.sh: Start the p2p Interface
  • p2p_stop.sh: Stop the p2p Interface
  • p2p_cli.sh: Enter into P2P command line interface (CLI) mode

The details of the steps and typical output from the scripts are provided below:

  1. Change directory to "/usr/share/wl18xx/"
    cd /usr/share/wl18xx/  
  2. Run the p2p_start script. This will start the p2p_mode.
    root@am437x-evm:/usr/share/wl18xx# ./p2p_start.sh 
    Successfully initialized wpa_supplicant
    [   76.303654] wlcore: PHY firmware version: Rev 8.2.0.0.245
    [   76.392303] wlcore: firmware booted (Rev 8.9.0.0.86)
    [   76.413164] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
    [   76.771490] wlcore: down 
    root@am437x-evm:/usr/share/wl18xx# 
  3. Run the p2p_cli script. This script will enable cli mode.
    root@am437x-evm:/usr/share/wl18xx# ./p2p_cli.sh 
    wpa_cli v2.9-R8.8+ 
    Copyright (c) 2004-2019, Jouni Malinen <j@w1.fi> and contributors  
    
    This software may be distributed under the terms of the BSD license.See README for more details.
    
    Interactive mode
    > 
    
  4. Run p2p_stop.sh script to stop p2p interface. Below is the typical output.
    root@am437x-evm:/usr/share/wl18xx# ./p2p_stop.sh
    OK
    root@am437x-evm:/usr/share/wl18xx# nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
    [  133.968657] wlcore: down
    p2p-dev-wlan0: CTRL-EVENT-TERMINATING
    nl80211: deinit ifname=wlan0 disabled_11b_rates=0
    wlan0: CTRL-EVENT-TERMINATING
Note:
  • Make sure that all the EVMS that participate in the WiFi Direct network has unique MAC Address, and that all has IP Address that is in the same Subnet.
  • P2P uses the 5G band by default. So if one of the EVMs (BeagleBone for example) does not support 5G, use the additional parameter "freq=2412" to the p2p connect commands.