]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Do not set driver MAC ACL unless driver supports this
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 24 May 2013 10:37:22 +0000 (13:37 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 May 2013 10:37:22 +0000 (13:37 +0300)
This cleans up debug log by not including comments about failed
operations in case the operation is known to fail due to not being
supported by the driver.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

hostapd/main.c
src/ap/hostapd.c
src/ap/hostapd.h

index fb82a0238b981648f22a3502ae9fb4c64d5fcd26..90e59665ff37225bf6f677d3e4aefd43522453f5 100644 (file)
@@ -279,6 +279,7 @@ static int hostapd_driver_init(struct hostapd_iface *iface)
                iface->extended_capa = capa.extended_capa;
                iface->extended_capa_mask = capa.extended_capa_mask;
                iface->extended_capa_len = capa.extended_capa_len;
+               iface->drv_max_acl_mac_addrs = capa.max_acl_mac_addrs;
        }
 
        return 0;
index f1ec48a42a2af3ee3024df5cc73d0029fc777116..780b2e2ef9fc6fdbfe3696ed9c63141e8bae4c02 100644 (file)
@@ -870,6 +870,8 @@ static void hostapd_set_acl(struct hostapd_data *hapd)
        int err;
        u8 accept_acl;
 
+       if (hapd->iface->drv_max_acl_mac_addrs == 0)
+               return;
        if (!(conf->bss->num_accept_mac || conf->bss->num_deny_mac))
                return;
 
index 9a3bb6862f0b962ab40172a87aca08c913a8ead9..55f6dd84e28e9f181c1c8c7e27cf91a52e316039 100644 (file)
@@ -233,6 +233,8 @@ struct hostapd_iface {
        const u8 *extended_capa, *extended_capa_mask;
        unsigned int extended_capa_len;
 
+       unsigned int drv_max_acl_mac_addrs;
+
        struct hostapd_hw_modes *hw_features;
        int num_hw_features;
        struct hostapd_hw_modes *current_mode;