Set drv_max_acl_mac_addrs in wpa_supplicant AP mode

hostapd code will need this for offloading ACL to the driver.

Signed-off-by: Chaoli Zhou <quic_zchaoli@quicinc.com>
This commit is contained in:
Chaoli Zhou 2022-03-24 15:19:25 +08:00 committed by Jouni Malinen
parent 9828aba16e
commit 077bce96f3
3 changed files with 3 additions and 0 deletions

View file

@ -1028,6 +1028,7 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
hapd_iface->extended_capa = wpa_s->extended_capa; hapd_iface->extended_capa = wpa_s->extended_capa;
hapd_iface->extended_capa_mask = wpa_s->extended_capa_mask; hapd_iface->extended_capa_mask = wpa_s->extended_capa_mask;
hapd_iface->extended_capa_len = wpa_s->extended_capa_len; hapd_iface->extended_capa_len = wpa_s->extended_capa_len;
hapd_iface->drv_max_acl_mac_addrs = wpa_s->drv_max_acl_mac_addrs;
wpa_s->ap_iface->conf = conf = hostapd_config_defaults(); wpa_s->ap_iface->conf = conf = hostapd_config_defaults();
if (conf == NULL) { if (conf == NULL) {

View file

@ -6704,6 +6704,7 @@ static int wpa_supplicant_init_iface(struct wpa_supplicant *wpa_s,
wpa_s->drv_flags2 = capa.flags2; wpa_s->drv_flags2 = capa.flags2;
wpa_s->drv_enc = capa.enc; wpa_s->drv_enc = capa.enc;
wpa_s->drv_rrm_flags = capa.rrm_flags; wpa_s->drv_rrm_flags = capa.rrm_flags;
wpa_s->drv_max_acl_mac_addrs = capa.max_acl_mac_addrs;
wpa_s->probe_resp_offloads = capa.probe_resp_offloads; wpa_s->probe_resp_offloads = capa.probe_resp_offloads;
wpa_s->max_scan_ssids = capa.max_scan_ssids; wpa_s->max_scan_ssids = capa.max_scan_ssids;
wpa_s->max_sched_scan_ssids = capa.max_sched_scan_ssids; wpa_s->max_sched_scan_ssids = capa.max_sched_scan_ssids;

View file

@ -912,6 +912,7 @@ struct wpa_supplicant {
u64 drv_flags2; u64 drv_flags2;
unsigned int drv_enc; unsigned int drv_enc;
unsigned int drv_rrm_flags; unsigned int drv_rrm_flags;
unsigned int drv_max_acl_mac_addrs;
/* /*
* A bitmap of supported protocols for probe response offload. See * A bitmap of supported protocols for probe response offload. See