| 114 | [=#wireless-ap] |
| 115 | === Access Point (AP) === |
| 116 | These instructions below are for creating a wireless Access Point (AP) that will allow nearby client connections. |
| 117 | |
| 118 | 1. Install required packages |
| 119 | {{{#!bash |
| 120 | apt-get update |
| 121 | apt-get install iw hostapd linux-firmware |
| 122 | }}} |
| 123 | 1. 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 |
| 125 | wget https://raw.githubusercontent.com/Gateworks/meta-gateworks/master/recipes-support/hostapd-conf/hostapd-conf/hostapd-conf |
| 126 | chmod +x ./hostapd-conf |
| 127 | }}} |
| 128 | 1. 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 | }}} |
| 139 | 1. Run {{{hostapd}}} with your configuration file |
| 140 | {{{#!bash |
| 141 | hostapd -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 | |
| 145 | Note 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 | |