<div dir="ltr"><div>I've got a wifi dongle that I know supports AP mode. I've previously used it as an AP with hostapd and dnsmasq on an Ubuntu desktop. So I wanted to see how to go about using it with XSCE on an XO 1.75.<br>
<br>The model number printed on the thing is SMCWUSB-N2. lsusb (once I installed usbutils) reports this:<br>Bus 001 Device 004: ID 0cf3:1002 Atheros Communications, Inc. TP-Link TL-WN821N v2 802.11n [Atheros AR9170]<br><br>
The XO 1.75 needed firmware for it in /lib/firmware: <a href="http://wireless.kernel.org/en/users/Drivers/carl9170#Firmware_binary">http://wireless.kernel.org/en/users/Drivers/carl9170#Firmware_binary</a><br><br>Plugged in the dongle and made sure it was recognized:<br>
<br>-bash-4.2# ifconfig<br>wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500<br> ether 00:22:2d:c0:12:e3 txqueuelen 1000 (Ethernet)<br> RX packets 0 bytes 0 (0.0 B)<br> RX errors 0 dropped 0 overruns 0 frame 0<br>
TX packets 0 bytes 0 (0.0 B)<br> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br><br>Ensured that AP mode was listed under "Supported interface modes."<br><br>-bash-4.2# iw list<br>
...<br> Supported interface modes:<br> * IBSS<br> * managed<br> * AP<br> * AP/VLAN<br> * monitor<br> * P2P-client<br> * P2P-GO<br><br>Install hostapd:<br>yum -y install hostapd<br>
<br>Some self-explanatory required edits at the bottom of /etc/hostapd/hostapd.conf:<br><br># Customize these for your local configuration...<br>interface=wlan0<br>hw_mode=g<br>channel=6<br>ssid=xsce<br><br>Before running the XSCE install, edit vars/default_vars.yml for wlan0:<br>
#Network<br>xsce_networks:<br> wan:<br> iface: eth0<br> ip: dhcp<br> lan:<br> iface: wlan0<br> ip: 172.18.96.1<br> network: 172.18.96.0<br> netmask: 255.255.224.0<br><br>Run the install like normal. Though if your only connection to the internet is through eth0, it might drop out (some sort of NM freakout with the presence of wlan0?). I ended up redoing the install from scratch with a wired usb ethernet dongle providing the internet connection.<br>
<br>Once the install completes successfully, do:<br>systemctl enable hostapd.service<br><br>Throw this at the bottom of /etc/rc.d/rc.local:<br>ifconfig wlan0 172.18.96.1<br>systemctl restart dhcpd.service<br>systemctl restart named.service<br>
<br>Reboot. A client should be able to connect to XSCE via the wifi dongle.<br><br>I do a problem with eth0 coming up on boot with this, have to walk over to the XO 1.75 and manually connect to my wifi in the console. And this command is disturbingly inconsistent, I have to try it several times before eth0 will connect:<br>
nmcli dev wifi connect mywifi<br><br>This probably won't support many clients (I've tested with three) and I'm not sure how stable it is. And I'm not happy with eth0 not coming up on boot and then the unreliability of trying to manually connect. Though if you're doing a simple demo, using a wifi dongle as an AP might come in handy if there's no access to a power outlet to plug in an actual AP, since everything is powered by the XO's battery.<br>
<br>If you only need to serve local content (IIAB, for example), then technically you don't need eth0 to be up. Though I am curious what's going on with eth0, I'm guessing it might be Network Manager related?<br>
</div><div><br>Anna Schoolfield<br>Birmingham<br></div></div>