I followed the tutorial, Raspberry Pi Wireless Access Point, to set my Raspberry Pi Zero as an access point.
I do have an additional USB adapter connected. The pi that I’m working on will be an on board computer for a drone. The built in wifi will connect to my wifi at home to run updates browse logs and the like. The USB adapter will host the access point and will connect to a controller through a very directional antenna.
When I finished and rebooted the USB adapter connected to the same Wi-Fi network that the internal Wi-Fi connects to.
I know that I’ve got to be missing some detail somewhere but I’m not sure what steps to take first to troubleshoot this problem.
After following the tutorial listed in the comments this is returned from
wlan0 IEEE 802.11 ESSID:"Zimm_Wrls" Mode:Managed Frequency:2.462 GHz Access Point: 48:5D:36:D3:C4:7C Bit Rate=72.2 Mb/s Tx-Power=31 dBm Retry short limit:7 RTS thr:off Fragment thr:off Power Management:on Link Quality=59/70 Signal level=-51 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 lo no wireless extensions. wlan1 unassociated Nickname:"<WIFI@REALTEK>" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
I ran lsusb to see what driver I should be using in case that was part of the issue. This is what was returned:
Bus 001 Device 002: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
This is /etc/hostapd/hostapd.conf:
interface=wlan1 driver=rt1871xdrv ssid=BigBird hw_mode=g channel=6 wmm_enabled=0 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=ninarubysue wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP
and then this:
bigbird:~/rt8192cu $ sudo hostapd -B /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf Line 1: invalid line '$ cat /etc/hostapd/hostapd.conf' Line 3: invalid/unknown driver 'rt1871xdrv' 2 errors found in configuration file '/etc/hostapd/hostapd.conf' Failed to set up interface with /etc/hostapd/hostapd.conf Failed to initialize interface