Searched refs:mac_restrictions (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/drivers/net/wireless/intersil/hostap/ |
D | hostap.h | 61 int ap_control_add_mac(struct mac_restrictions *mac_restrictions, u8 *mac); 62 int ap_control_del_mac(struct mac_restrictions *mac_restrictions, u8 *mac); 63 void ap_control_flush_macs(struct mac_restrictions *mac_restrictions);
|
D | hostap_ap.c | 328 switch (ap->mac_restrictions.policy) { in ap_control_proc_show() 343 seq_printf(m, "MAC entries: %u\n", ap->mac_restrictions.entries); in ap_control_proc_show() 356 spin_lock_bh(&ap->mac_restrictions.lock); in ap_control_proc_start() 357 return seq_list_start_head(&ap->mac_restrictions.mac_list, *_pos); in ap_control_proc_start() 363 return seq_list_next(v, &ap->mac_restrictions.mac_list, _pos); in ap_control_proc_next() 369 spin_unlock_bh(&ap->mac_restrictions.lock); in ap_control_proc_stop() 379 int ap_control_add_mac(struct mac_restrictions *mac_restrictions, u8 *mac) in ap_control_add_mac() argument 389 spin_lock_bh(&mac_restrictions->lock); in ap_control_add_mac() 390 list_add_tail(&entry->list, &mac_restrictions->mac_list); in ap_control_add_mac() 391 mac_restrictions->entries++; in ap_control_add_mac() [all …]
|
D | hostap_ap.h | 143 struct mac_restrictions { struct 191 struct mac_restrictions mac_restrictions; /* MAC-based auth */ member
|
D | hostap_ioctl.c | 3010 local->ap->mac_restrictions.policy = MAC_POLICY_OPEN; in ap_mac_cmd_ioctl() 3013 local->ap->mac_restrictions.policy = MAC_POLICY_ALLOW; in ap_mac_cmd_ioctl() 3016 local->ap->mac_restrictions.policy = MAC_POLICY_DENY; in ap_mac_cmd_ioctl() 3019 ap_control_flush_macs(&local->ap->mac_restrictions); in ap_mac_cmd_ioctl() 4010 else ret = ap_control_add_mac(&local->ap->mac_restrictions, in hostap_ioctl() 4015 else ret = ap_control_del_mac(&local->ap->mac_restrictions, in hostap_ioctl()
|