Home
last modified time | relevance | path

Searched refs:mac_restrictions (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/drivers/net/wireless/intersil/hostap/
Dhostap.h63 int ap_control_add_mac(struct mac_restrictions *mac_restrictions, u8 *mac);
64 int ap_control_del_mac(struct mac_restrictions *mac_restrictions, u8 *mac);
65 void ap_control_flush_macs(struct mac_restrictions *mac_restrictions);
Dhostap_ap.c328 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 …]
Dhostap_ap.h143 struct mac_restrictions { struct
191 struct mac_restrictions mac_restrictions; /* MAC-based auth */ member
Dhostap_ioctl.c2998 local->ap->mac_restrictions.policy = MAC_POLICY_OPEN; in ap_mac_cmd_ioctl()
3001 local->ap->mac_restrictions.policy = MAC_POLICY_ALLOW; in ap_mac_cmd_ioctl()
3004 local->ap->mac_restrictions.policy = MAC_POLICY_DENY; in ap_mac_cmd_ioctl()
3007 ap_control_flush_macs(&local->ap->mac_restrictions); in ap_mac_cmd_ioctl()
3996 else ret = ap_control_add_mac(&local->ap->mac_restrictions, in hostap_ioctl()
4001 else ret = ap_control_del_mac(&local->ap->mac_restrictions, in hostap_ioctl()