Changes between Version 55 and Version 56 of wireless/wifi


Ignore:
Timestamp:
05/12/2020 11:25:14 PM (3 years ago)
Author:
Tim Harvey
Comment:

added wpa_supplicant example

Legend:

Unmodified
Added
Removed
Modified
  • wireless/wifi

    v55 v56  
    154154 * [wiki:Yocto/Wireless Yocto Wireless Configuration]
    155155
    156 === iw ===
     156[=#iw]
     157=== iw (generic configuratoin)
    157158The 'iw' tool is the modern tool (which replaces the older set of WIRELESS_EXTENSION tools such as iwconfig, iwpriv, iwlist, etc) for configuration of wireless drivers.
    158159
     
    225226  - git http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git (tagged per kernel release)
    226227
    227 === hostapd ===
     228
     229[=#hostapd]
     230=== hostapd (Access Point)
    228231The hostapd application is the userspace application that configures and manages wireless drivers in Access Point (AP) mode.
    229232
     
    278281Below are some usage cases for this script. In these examples, a WLE900VX radio was used. Note, any information that isn't apparent in the below script may be found via the {{{iw phy phy<n> info}}} command.
    279282
    280 ===== Step 0 : Scan Available Options =====
     283===== Step 1 : Scan Available Options =====
    281284
    282285To view all channels/frequencies and HT modes that can emit radiation on a specified interface, indicate just the interface:
     
    315318165      5825  HT20 HT40 HT40+ VHT20 VHT40 VHT80
    316319}}}
    317 ===== Step 1 : Configure Access Point =====
     320===== Step 2 : Configure Access Point =====
    318321
    319322'''2.4GHz 802.11g'''
     
    441444vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC1][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7]
    442445}}}
    443 ===== Step 2 : Copy Access Point Configuration =====
     446===== Step 3 : Copy Access Point Configuration =====
    444447
    445448After the {{{hostapd-<phy>.conf}}} file has been created and any edits have been made (if any), you may either:
     
    517520echo 1 > /proc/sys/net/ipv4/ip_forward
    518521}}}
     522
     523
    519524==== Bridged Access Point ====
    520525
     
    568573 * if DNS resolution is not occurring first make sure you can ping the nameserver by IP
    569574
    570 === wpa-supplicant ===
     575
     576[=#wpa-supplicant]
     577=== wpa-supplicant (Client)
    571578The wpa-supplicant application is the userspace application that configures and manages wireless drivers in Station (STA) mode.
    572579
     
    577584  - stable release tarballs: http://w1.fi/hostapd/
    578585  - git git://w1.fi/srv/git/hostap.git (cgit: http://hostap.epitest.fi/cgit/hostap/)
     586
     587You generate a {{{wpa_supplicant.conf}}} file using a tool called wpa_passphrase:
     588{{{#!bash
     589~# wpa_passphrase MYSSID MYWPAPASSCODE
     590network={
     591        ssid="MYSSID"
     592        #psk="MYWPAPASSCODE"
     593        psk=82207641ae13124ee6dc8fd2642605ac52a17405263b0b3203ee5cdb826d700d
     594}
     595}}}
     596
     597The following steps below can be used to connect to a WPA access point. You will likely need to alter this depending on your OS and distribution.
     598
     599===== Step 1: Create wpa_supplicant.conf
     600For the following example we will use an SSID of 'MYSSID' and a WPA passcode of 'MYWPAPASSCODE' (replace with values your AP is configured with):
     601{{{#!bash
     602root@ventana:~# wpa_passphrase MYSSID MYWPAPASSCODE > /etc/wpa_supplicant.conf
     603}}}
     604
     605===== Step 2: Start wpa_supplicant
     606To start wpa_supplicant manually:
     607{{{#!bash
     608killall wpa_supplicant # make sure its not already running
     609wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B
     610}}}
     611
     612===== Step 3: HDCP
     613To obtain DHCP network configuratnoi:
     614{{{#!bash
     615dhclient wlan0
     616}}}
     617 
    579618
    580619== Mesh Point ==