Home
last modified time | relevance | path

Searched refs:mac_restrictions (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/wireless/intersil/hostap/
H A 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);
H A 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 in ap_control_add_mac()
398 ap_control_del_mac(struct mac_restrictions *mac_restrictions, u8 *mac) ap_control_del_mac() argument
421 ap_control_mac_deny(struct mac_restrictions *mac_restrictions, u8 *mac) ap_control_mac_deny() argument
446 ap_control_flush_macs(struct mac_restrictions *mac_restrictions) ap_control_flush_macs() argument
[all...]
H A Dhostap_ap.h143 struct mac_restrictions { struct
191 struct mac_restrictions mac_restrictions; /* MAC-based auth */ member
H A Dhostap_ioctl.c3009 local->ap->mac_restrictions.policy = MAC_POLICY_OPEN; in ap_mac_cmd_ioctl()
3012 local->ap->mac_restrictions.policy = MAC_POLICY_ALLOW; in ap_mac_cmd_ioctl()
3015 local->ap->mac_restrictions.policy = MAC_POLICY_DENY; in ap_mac_cmd_ioctl()
3018 ap_control_flush_macs(&local->ap->mac_restrictions); in ap_mac_cmd_ioctl()
4009 else ret = ap_control_add_mac(&local->ap->mac_restrictions, in hostap_ioctl()
4014 else ret = ap_control_del_mac(&local->ap->mac_restrictions, in hostap_ioctl()
/kernel/linux/linux-6.6/drivers/net/wireless/intersil/hostap/
H A 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);
H A 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 in ap_control_add_mac()
398 ap_control_del_mac(struct mac_restrictions *mac_restrictions, u8 *mac) ap_control_del_mac() argument
421 ap_control_mac_deny(struct mac_restrictions *mac_restrictions, u8 *mac) ap_control_mac_deny() argument
446 ap_control_flush_macs(struct mac_restrictions *mac_restrictions) ap_control_flush_macs() argument
[all...]
H A Dhostap_ap.h143 struct mac_restrictions { struct
191 struct mac_restrictions mac_restrictions; /* MAC-based auth */ member
H A Dhostap_ioctl.c3028 local->ap->mac_restrictions.policy = MAC_POLICY_OPEN; in ap_mac_cmd_ioctl()
3031 local->ap->mac_restrictions.policy = MAC_POLICY_ALLOW; in ap_mac_cmd_ioctl()
3034 local->ap->mac_restrictions.policy = MAC_POLICY_DENY; in ap_mac_cmd_ioctl()
3037 ap_control_flush_macs(&local->ap->mac_restrictions); in ap_mac_cmd_ioctl()
4018 else ret = ap_control_add_mac(&local->ap->mac_restrictions, in hostap_ioctl()
4023 else ret = ap_control_del_mac(&local->ap->mac_restrictions, in hostap_ioctl()

Completed in 15 milliseconds