Problems to get hostapd up and running with external wifi adapter

sudo journalctl -u ifup@wlan0 (did NOT succeed) :unamused:

[sudo] wachtwoord voor wim: 
jul 19 15:04:08 rasp3b systemd[1]: Starting ifup@wlan0.service - ifup for wlan0...
jul 19 15:04:08 rasp3b ifup[517]: command failed: Operation not supported (-95)
jul 19 15:04:08 rasp3b ifup[511]: ifup: failed to bring up wlan0
jul 19 15:04:08 rasp3b systemd[1]: ifup@wlan0.service: Main process exited, code=exited, status=1/FAILURE
jul 19 15:04:08 rasp3b systemd[1]: ifup@wlan0.service: Failed with result 'exit-code'.
jul 19 15:04:08 rasp3b systemd[1]: Failed to start ifup@wlan0.service - ifup for wlan0.

I have fitted another wifi adapter into the raspberry 3B and will do the ifup@wlan0 and the following again and report the results back to you.

These are the results with a Linksys adapter (it WORKS, but is not long range)

wim@rasp3b:~$ sudo journalctl -u ifup@wlan0
[sudo] wachtwoord voor wim: 
jul 19 15:25:42 rasp3b systemd[1]: Starting ifup@wlan0.service - ifup for wlan0...
jul 19 15:25:42 rasp3b systemd[1]: Finished ifup@wlan0.service - ifup for wlan0.
wim@rasp3b:~$ sudo systemctl enable hostapd isc-dhcp-server
Synchronizing state of hostapd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable hostapd
isc-dhcp-server.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable isc-dhcp-server
Created symlink /etc/systemd/system/multi-user.target.wants/hostapd.service → /lib/systemd/system/hostapd.service.

So the swap from wlan1 to wlan0 with the hotspot works, but not with the Alfa long range adapter.

According to the “RPI USB WiFi adapter” guide (RPi USB Wi-Fi Adapters - eLinux.org) my Alfa adapter should work. To make sure if it is the adapter or not I will install hostapd on a raspberry with the org. OS and see what is happening there and share the results with you. :raising_hand_man: wimduk

what we could try as well, to migrate to the new RPI kernel architecture. Actually DietPi is still on 6.1 while plain RPi OS is on 6.6 already. We have a migration script but this would be a one-way-tip as you are not able to restore an old backup once migrated.

Good morning Joulinar,
Thank you very much for your offer to upgrade to the last version of the RPI kernel architecture. I’ll take it into account as a last resource.

I have setup a wifi access point on my raspberry 4 with the original OS. (see below). Despite Ala says my Alfa AWUS036NHR, chipset RTL8188RU, should work out of the box, it does not work on my Rasp. 4B. So, my Alfa is the bottleneck in the raspberry/Dietpi environment.

My requirements for the long range adaper are:

  1. dBi gain 7 or higher, 2. WiFi adapter with USB and rp-sma connection,
  2. Chipset supported by Linux in-kernel drivers (USB-WiFi/home/USB_WiFi_Adapters_that_are_supported_with_Linux_in-kernel_drivers.md at fe2729c5e9782bae22cf5d423faa958637f65c54 · morrownr/USB-WiFi · GitHub)

Then I start to test that new adapter on my raspberry 3B with Dietpi, and keep you informed.
Regards wim

wim@rasp-4GB:~ $ nmcli device
DEVICE         TYPE      STATE                   CONNECTION             
eth0           ethernet  connected               Bekabelde verbinding 1 
lo             loopback  connected (externally)  lo                     
wlan0          wifi      connected               Gastnetwerk            
wlan1          wifi      not connected           --                     
                   
wim@rasp-4GB:~ $ sudo nmcli device wifi hotspot ssid linksys password 12345678 ifname wlan1
Device 'wlan1' successfully activated with '99deac09-807d-48a5-86a5-0804eb98b4c4'.

wim@rasp-4GB:~ $ nmcli device
DEVICE         TYPE      STATE                   CONNECTION             
wlan1          wifi      connected               Hotspot-2              
eth0           ethernet  connected               Bekabelde verbinding 1 
lo             loopback  connected (externally)  lo                     
wlan0          wifi      connected               Gastnetwerk

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.