Wi-Fi HotSpot, PineA64; DietPi 10.7, Debian 13, Can’t find AP

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version

  • G_DIETPI_VERSION_CORE=10

    G_DIETPI_VERSION_SUB=7

    G_DIETPI_VERSION_RC=2

    G_GITBRANCH=‘master’

    G_GITOWNER=‘MichaIng’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN

  • trixie

  • Kernel version | uname --all

  • Linux PineA64 6.18.54-current-sunxi64 #1 SMP PREEMPT Fri Sep 25 14:35:54 UTC 2026 aarch64 GNU/Linux

  • Architecture | dpkg --print-architecture

  • Arm64

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

  • PINE A64

  • Power supply used | (EG: 5V 1A RAVpower)

  • SD card used | (EG: SanDisk ultra)

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)

  • 60 WiFi Hotspot

  • Was the software title installed freshly or updated/migrated?

  • Fresh, several times.

  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a “dietpi-bugreport”, please paste the ID here →

  • Bug report ID | echo $G_HW_UUID

    41ac21a0-0a4a-47e9-9fc7-758181889c17

Steps to reproduce

  1. …
  2. …

Expected behaviour

  • …

Actual behaviour

  • …

Extra details

  • …
paste lines of logs or code into such code fences here

Hello, can you pls edit your posting and provide some info?!

On a new install of DietPi, I’m having problems getting HotSpot mode to work. In reviewing various troubleshooting articles, I’ve gotten to the point where I don’t have anymore error messages to chase down. From the OS side it looks likes like everything is working.

None of my devices see the hotspot as an available network to connect to. I’ve tried to connect to it with the default SSID/password and the devices report network not found. I can connect to my home wlan with the WiFi adapter, an RTL8723bs so it seems to be working.

DietPi Bug report:

- Reference code: 41ac21a0-0a4a-47e9-9fc7-758181889c17

Any suggestions on additional troubleshooting?

Thanks

CVBruce

you use an extrnal adapter to setup the hotspot?

Please check back SSID and WPA key in dietpi-network. There is currently a bug due to which they cannot be changed in the tool, but you will see the effective values: Cannot change hotspot SSID or Key through dietpi-network · Issue #8335 · MichaIng/DietPi · GitHub

Also check service logs:

journalctl -u hostapd

Yes, kind of. The Pine A64 was sold with an optional WiFi card that plugged into the motherboard. Not USB. The WiFi card does work as a client on wlan.

Default SSID, DietPi-HotSpot

eA64 systemd\[1\]: Starting hostapd.service - Access point and authentication server for Wi-Fi and Ethernet...

Oct 02 14:59:17 PineA64 (hostapd)\[595\]: **hostapd.service: Referenced but unset environment variable evaluates to an empty string: DAEMON_OPTS**

Oct 02 14:59:18 PineA64 hostapd\[595\]: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE

Oct 02 14:59:18 PineA64 hostapd\[595\]: wlan0: interface state COUNTRY_UPDATE->ENABLED

Oct 02 14:59:18 PineA64 hostapd\[595\]: wlan0: AP-ENABLED

Oct 02 14:59:18 PineA64 systemd\[1\]: Started hostapd.service - Access point and authentication server for Wi-Fi and Ethernet.

Oct 02 15:22:44 PineA64 systemd\[1\]: Stopping hostapd.service - Access point and authentication server for Wi-Fi and Ethernet...

Oct 02 15:22:44 PineA64 systemd\[1\]: hostapd.service: Deactivated successfully.

Oct 02 15:22:44 PineA64 systemd\[1\]: Stopped hostapd.service - Access point and authentication server for Wi-Fi and Ethernet.

Oct 02 15:22:45 PineA64 systemd\[1\]: Starting hostapd.service - Access point and authentication server for Wi-Fi and Ethernet...

Oct 02 15:22:45 PineA64 (hostapd)\[1998\]: **hostapd.service: Referenced but unset environment variable evaluates to an empty string: DAEMON_OPTS**

Oct 02 15:22:45 PineA64 hostapd\[1998\]: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE

Oct 02 15:22:45 PineA64 hostapd\[1998\]: wlan0: interface state COUNTRY_UPDATE->ENABLED

Oct 02 15:22:45 PineA64 hostapd\[1998\]: wlan0: AP-ENABLED

Oct 02 15:22:45 PineA64 systemd\[1\]: Started hostapd.service - Access point and authentication server for Wi-Fi and Ethernet.

/etc/hostapd/hostapd.conf

interface=wlan0

driver=nl80211

ssid=DietPi-HotSpot

country_code=US

hw_mode=g

channel=3

ieee80211n=0

ieee80211ac=0

ieee80211ax=0

wmm_enabled=0

macaddr_acl=0

auth_algs=1

ignore_broadcast_ssid=0

wpa=2

wpa_passphrase=dietpihotspot

wpa_key_mgmt=WPA-PSK

wpa_pairwise=TKIP

rsn_pairwise=CCMP

I have an available RTL8188CUS on a USB dongle. Should I try plugin and configure that as the hotspot to rule out the current adapter?

So you tried SSID DietPi-HotSpot with key dietpihotspot?

At least worth to try with the USB WiFi adapter. There are indeed some which simple do not support AP mode.

To verify another thing:

lsmod | grep 8723bs

It seems we explicitly load a wrong kernel module 8723bs vs r8723bs. The correct one should load automatically, but we’d still want to fix this in our script.

You are sure this Wifi card is supporting AP mode? Can you check

iw list

look for Supported interface modes

lsmod yields

r8723bs 417792 0

cfg80211 823296 1 r8723bs

iw list

Supported interface modes:

	\* IBSS

	\* managed

	\* AP

	\* monitor

After starting the AP, can you check

systemctl status hostapd
journalctl -u hostapd -b --no-pager
iw dev wlan0 info

Ok, I think I found the problem. The “iw dev wlan0 info” command output had my OG, non-hotspot SSID name in it. This was the name of my home WiFi network, that I coded into the /boot/dietpi-wifi.txt file when I first installed DietPi, and before I installed and configured hosted (60).

I commented out the configuration in /etc/wpa_supplicant/wpa_supplicant.conf and rebooted

It took several tries to convince my Mac to connect to the hotspot network, but it finally did and everything seems to be working well.

Thank-you for all your help.

stuff.txt (3.0 KB)

Ah wait a second. I see this is our code in dietpi-network:

	if [[ $CURRENT_IFACE_TYPE == 'wifi' ]]
	then
		content+=$'\n''wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf'

		# Disable power savings mode if supported
		if iw dev "$iface" set power_save on 2> /dev/null && iw dev "$iface" set power_save off 2> /dev/null
		then
			content+=$'\n'"pre-up iw dev $iface set power_save off || true"
			content+=$'\n'"post-down iw dev $iface set power_save on || true"
		fi

		# WiFi Hotspot
		if (( $CURRENT_IFACE_HOTSPOT ))
		then
			content+=$'\n''up iptables-restore < /etc/iptables.ipv4.nat'
			content+=$'\n''up ip6tables-restore < /etc/iptables.ipv6.nat'
			[[ -f '/etc/hostapd/hostapd.conf' ]] && G_CONFIG_INJECT 'interface=' "interface=$iface" /etc/hostapd/hostapd.conf
			[[ -f '/etc/default/isc-dhcp-server' ]] && G_CONFIG_INJECT 'INTERFACESv4=' "INTERFACESv4=\"$iface\"" /etc/default/isc-dhcp-server
		fi
	fi

So it unnecessarily starts wpa_supplicant via wpa-conf config key, even when the interface is configured as hotspot. When it succeeds to connect to another network, I guess it disables AP mode, hence breaks the hotspot.

Fixed with: dietpi-network: do not add wpa-conf in hotspot mode · MichaIng/DietPi@21c07f8 · GitHub

Looking through things, I recognized that it is also possible to add hostapd /etc/hostapd/hostapd.conf to the /etc/network/interfaces.d config, to let ifupdown start hostapd when the interface is configured, which renders the hostapd.service obsolete. So this works very similar to wpa-conf vs wpa_supplicant.service.

But the DHCP server at least is still needed as dedicated service, and there might be also some benefit to be able to restart hostapd separately. … and /etc/hostapd/hostapd.conf still needs to contain the interface setting, since this cannot be set via hostapd CLI. So it is not exactly well made to be invoked by ifupdown for a particular interface.