mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
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).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user