From 87737ff23ab27cbcf9ea54e39d0735899b09840d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Mon, 26 Jan 2026 08:40:30 +0100 Subject: [PATCH 1/2] confd: Wi-Fi: Set safe defaults Learned one thing, a setting not set, is a safe setting. bss_color made a lot of iPhones failed to connect. Remove some more options with unknown impact. --- src/confd/src/hardware.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/confd/src/hardware.c b/src/confd/src/hardware.c index 2b6f13d54..0ea34f7b4 100644 --- a/src/confd/src/hardware.c +++ b/src/confd/src/hardware.c @@ -272,21 +272,9 @@ static void wifi_gen_ssid_config(FILE *hostapd, struct lyd_node *cif, struct lyd /* Allow UTF-8 characters in SSID for international network names */ fprintf(hostapd, "utf8_ssid=1\n"); - /* Use short preamble for better throughput on modern clients */ - fprintf(hostapd, "preamble=1\n"); - - /* Disconnect clients with poor link quality to free up airtime */ - fprintf(hostapd, "disassoc_low_ack=1\n"); - /* Poll inactive clients before disconnecting to detect sleepy devices */ fprintf(hostapd, "skip_inactivity_poll=0\n"); - /* Disable opportunistic key caching, reduces roaming attack surface */ - fprintf(hostapd, "okc=0\n"); - - /* Disable PMKSA caching, forces fresh authentication for better security */ - fprintf(hostapd, "disable_pmksa_caching=1\n"); - security = lydx_get_child(ap, "security"); security_mode = lydx_get_cattr(security, "mode"); @@ -369,6 +357,9 @@ static void wifi_gen_radio_config(FILE *hostapd, struct lyd_node *radio_node) fprintf(hostapd, "beacon_int=100\n"); + /* Use short preamble for better throughput on modern clients */ + fprintf(hostapd, "preamble=1\n"); + if (band) { if (!strcmp(band, "2.4GHz")) { /* hw_mode=g: 2.4GHz with 802.11g (OFDM) as baseline */ @@ -440,8 +431,7 @@ static void wifi_gen_radio_config(FILE *hostapd, struct lyd_node *radio_node) } /* 802.11ax (WiFi 6) always enabled for better performance */ fprintf(hostapd, "ieee80211ax=1\n"); - /* BSS coloring reduces interference in dense deployments */ - fprintf(hostapd, "he_bss_color=1\n"); + /* Beamforming improves signal quality and range */ fprintf(hostapd, "he_su_beamformer=1\n"); fprintf(hostapd, "he_su_beamformee=1\n"); From 262b60c5cbf9d11d5e67d4a1b7f69eecd37349f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Mon, 26 Jan 2026 09:21:57 +0100 Subject: [PATCH 2/2] workflow: build-image: Fix typo in bpi bootloader --- .github/workflows/build-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index b5a6ef3d8..b9e8a8a4c 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -56,7 +56,7 @@ jobs: ;; bananapi-bpi-r3) echo "BOOTLOADER_SD=bpi-r3-sd-boot" >> $GITHUB_ENV - echo "BOOTLOADER_EMMC=bpi-r3-emmc_boot" >> $GITHUB_ENV + echo "BOOTLOADER_EMMC=bpi-r3-emmc-boot" >> $GITHUB_ENV echo "ARCH=aarch64" >> $GITHUB_ENV echo "BUILD_EMMC=true" >> $GITHUB_ENV ;;