Files
wlan-ap/feeds/ipq807x_v5.4/hostapd/patches/b00-029-hostapd-disable-MAC-ACL-if-WPS-enabled.patch
John Crispin 3b6582117b ipq807x: add ath12 / v5.4 support
Signed-off-by: John Crispin <john@phrozen.org>
2023-04-10 14:25:48 +02:00

19 lines
577 B
Diff

--- a/src/ap/ieee802_11_auth.c
+++ b/src/ap/ieee802_11_auth.c
@@ -174,6 +174,15 @@ static int hostapd_radius_acl_query(stru
int hostapd_check_acl(struct hostapd_data *hapd, const u8 *addr,
struct vlan_description *vlan_id)
{
+
+#ifdef CONFIG_WPS
+ /* According to WPS spec 2.0, disable MAC address filtering
+ * if WPS is enabled on the AP.
+ */
+ if (hapd->conf->wps_state)
+ return HOSTAPD_ACL_ACCEPT;
+#endif /*CONFIG_WPS */
+
if (hostapd_maclist_found(hapd->conf->accept_mac,
hapd->conf->num_accept_mac, addr, vlan_id))
return HOSTAPD_ACL_ACCEPT;