Changes between Version 1 and Version 2 of ubuntu


Ignore:
Timestamp:
02/01/2018 12:03:10 AM (6 years ago)
Author:
Tim Harvey
Comment:

merged AP details from ventana/ubuntu/wireless

Legend:

Unmodified
Added
Removed
Modified
  • ubuntu

    v1 v2  
    112112== Wireless ==
    113113
     114[=#wireless-ap]
     115=== Access Point (AP) ===
     116These instructions below are for creating a wireless Access Point (AP) that will allow nearby client connections.
     117
     1181. Install required packages
     119{{{#!bash
     120apt-get update
     121apt-get install iw hostapd linux-firmware
     122}}}
     1231. Download the Gateworks {{{hostapd-conf}}} script from our Yocto BSP, this script will produce a 'basic' configuration file to set up your AP:
     124{{{#!bash
     125wget https://raw.githubusercontent.com/Gateworks/meta-gateworks/master/recipes-support/hostapd-conf/hostapd-conf/hostapd-conf
     126chmod +x ./hostapd-conf
     127}}}
     1281. Run the script with your parameters
     129{{{#!bash
     130# See usage
     131./hostapd-conf
     132
     133# See available channel information for device
     134./hostapd-conf wlan0 ssid-name # parses information from 'iw list' command
     135
     136# Enter full AP configuration
     137./hostapd-conf wlan0 test-ssid 161 VHT80
     138}}}
     1391. Run {{{hostapd}}} with your configuration file
     140{{{#!bash
     141hostapd -B hostapd-phy0.conf # use -dd flag for more debug output
     142# "wlan0: interface state UNINITIALIZED->HT_SCAN" shows AP has been set up
     143}}}
     144
     145Note that the {{{hostapd-phy0.conf}}} file created for you via the {{{hostapd-conf}}} script is meant to be a starting point and does not allow you to create every possible combination of configurations. For more information on the {{{hostapd.conf}}} file and its options, see the [https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf hostapd.conf documentation].
     146
    114147
    115148[=#wireless-client]
     
    120153{{{#!bash
    121154apt-get update
    122 apt-get install iw
    123 apt-get install wpasupplicant
    124 apt-get install udhcpc
     155apt-get install iw wpasupplicant udhcpc
    125156}}}
    1261571. Edit {{{/etc/network/interfaces}}} and edit/add the following to configure wlan0 on boot wpa_supplicant:
     
    148179}}}
    149180
     181
    150182Troubleshooting:
    151183 * To scan for available access points in range you can use the iw tool: