2 Replies Latest reply on Feb 13, 2015 2:59 AM by Luis_Bucanero

    WiFi direct on ubilinux

    Luis_Bucanero

      Hi, can we use WiFi-Direct on ubilinux??David_J_Hunt

       

      and in Yocto?? AlexT_Intel

       

      Thanks a lot.

        • 1. Re: WiFi direct on ubilinux
          David_J_Hunt

          Luis,

             I haven't used it, but from the information in the following post:

          Re: Using wifi direct on Edison

          it may be possible.

          On ubilinux, a simple

          apt-get install iw

          will get the related packages to allow you to query the capabilities with

          iw list

          Rgds,

          Dave.

          • 2. Re: WiFi direct on ubilinux
            Luis_Bucanero

            I managed WiFi Direct with a wpa_supplicant 2.3

             

            I create a script

             

            ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

            #!/bin/bash

            echo "############## Script install   WiFi Direct Edison  V.0.1   ##########################"

            echo "##############    preparando wifi direct       ##########################"

            wget http://w1.fi/releases/wpa_supplicant-2.3.tar.gz

            tar xvfz wpa_supplicant-2.3.tar.gz

            cd wpa_supplicant-2.3/wpa_supplicant

            cp defconfig .config

            apt-get install -y libssl-dev libnl-dev 

            echo "##############    agregando P2P creo      ##########################"

            echo "CONFIG_P2P=y" >> .config

            echo "CONFIG_AP=y" >> .config

            echo "CONFIG_WPS=y" >> .config

            echo "CONFIG_WPS2=y" >> .config

            make

            make instal

            echo "##############    agregando configuracion     ##########################"

            echo "ctrl_interface=/var/run/wpa_supplicant" >> /etc/p2p.conf

            echo "update_config=1" >> /etc/p2p.conf

            echo "device_name=PRIYA-P2P" >> /etc/p2p.conf

            echo "device_type=2-0050F204-1" >> /etc/p2p.conf

            echo "p2p_listen_reg_class=81" >> /etc/p2p.conf

            echo "p2p_listen_channel=1" >> /etc/p2p.conf

            echo "p2p_oper_reg_class=81" >> /etc/p2p.conf

            echo "p2p_oper_channel=1" >> /etc/p2p.conf

            echo "p2p_go_intent=1" >> /etc/p2p.conf

            echo "p2p_no_group_iface=1" >> /etc/p2p.conf

            ///////////////////////////////////////////////////////////////////////////////////////////

             

            After this script you must to kill wpa_supplicant and re run in backgorund

             

            - killall wpa_supplicant

             

            - wpa_supplicant -i wlan0 -c /etc/p2p.conf -Dnl80211

            - wpa_cli

            - p2p_find

             

            .