From 480e82a645421e5318cf30f84b39d24e3e32a726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Mon, 5 Jan 2026 10:14:40 +0100 Subject: [PATCH] hostapd: Remove insane logic that some MAC addresses are not allowed This is described on the internet as: "If you are unlucky and have a device with wrong MAC address, too bad" For us: We set mac addresses static, and do not use hostapds, insane MAC address allocation (radio MAC + n). --- .../hostapd/0001-no-limit-bssid-mask.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 patches/hostapd/0001-no-limit-bssid-mask.patch diff --git a/patches/hostapd/0001-no-limit-bssid-mask.patch b/patches/hostapd/0001-no-limit-bssid-mask.patch new file mode 100644 index 00000000..9301eff4 --- /dev/null +++ b/patches/hostapd/0001-no-limit-bssid-mask.patch @@ -0,0 +1,23 @@ +diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c +index 2406658da..23edf0349 100644 +--- a/src/ap/hostapd.c ++++ b/src/ap/hostapd.c +@@ -949,18 +949,6 @@ skip_mask_ext: + if (!auto_addr) + return 0; + +- for (i = 0; i < ETH_ALEN; i++) { +- if ((hapd->own_addr[i] & mask[i]) != hapd->own_addr[i]) { +- wpa_printf(MSG_ERROR, "Invalid BSSID mask " MACSTR +- " for start address " MACSTR ".", +- MAC2STR(mask), MAC2STR(hapd->own_addr)); +- wpa_printf(MSG_ERROR, "Start address must be the " +- "first address in the block (i.e., addr " +- "AND mask == addr)."); +- return -1; +- } +- } +- + return 0; + } +