Searched refs:mac_restrictions (Results 1 – 4 of 4) sorted by relevance
63 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);
379 int ap_control_add_mac(struct mac_restrictions *mac_restrictions, u8 *mac) in ap_control_add_mac() argument389 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() argument403 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() argument430 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() argument451 if (mac_restrictions->entries == 0) in ap_control_flush_macs()[all …]
143 struct mac_restrictions { struct191 struct mac_restrictions mac_restrictions; /* MAC-based auth */ member
3028 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()