Home
last modified time | relevance | path

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

/openbmc/linux/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.c379 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()
391 mac_restrictions->entries++; in ap_control_add_mac()
398 int ap_control_del_mac(struct mac_restrictions *mac_restrictions, u8 *mac) in ap_control_del_mac() argument
403 spin_lock_bh(&mac_restrictions->lock); in ap_control_del_mac()
411 mac_restrictions->entries--; in ap_control_del_mac()
421 static int ap_control_mac_deny(struct mac_restrictions *mac_restrictions, in ap_control_mac_deny() argument
430 spin_lock_bh(&mac_restrictions->lock); in ap_control_mac_deny()
446 void ap_control_flush_macs(struct mac_restrictions *mac_restrictions) in ap_control_flush_macs() argument
451 if (mac_restrictions->entries == 0) in ap_control_flush_macs()
[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()