Lines Matching refs:acl
350 if ((*uwrq == IW_MODE_MASTER) && (priv->acl.policy != MAC_POLICY_OPEN)) in prism54_set_mode()
1782 prism54_acl_init(struct islpci_acl *acl) in prism54_acl_init() argument
1784 mutex_init(&acl->lock); in prism54_acl_init()
1785 INIT_LIST_HEAD(&acl->mac_list); in prism54_acl_init()
1786 acl->size = 0; in prism54_acl_init()
1787 acl->policy = MAC_POLICY_OPEN; in prism54_acl_init()
1791 prism54_clear_mac(struct islpci_acl *acl) in prism54_clear_mac() argument
1796 mutex_lock(&acl->lock); in prism54_clear_mac()
1798 if (acl->size == 0) { in prism54_clear_mac()
1799 mutex_unlock(&acl->lock); in prism54_clear_mac()
1803 for (ptr = acl->mac_list.next, next = ptr->next; in prism54_clear_mac()
1804 ptr != &acl->mac_list; ptr = next, next = ptr->next) { in prism54_clear_mac()
1809 acl->size = 0; in prism54_clear_mac()
1810 mutex_unlock(&acl->lock); in prism54_clear_mac()
1814 prism54_acl_clean(struct islpci_acl *acl) in prism54_acl_clean() argument
1816 prism54_clear_mac(acl); in prism54_acl_clean()
1824 struct islpci_acl *acl = &priv->acl; in prism54_add_mac() local
1837 if (mutex_lock_interruptible(&acl->lock)) { in prism54_add_mac()
1841 list_add_tail(&entry->_list, &acl->mac_list); in prism54_add_mac()
1842 acl->size++; in prism54_add_mac()
1843 mutex_unlock(&acl->lock); in prism54_add_mac()
1853 struct islpci_acl *acl = &priv->acl; in prism54_del_mac() local
1860 if (mutex_lock_interruptible(&acl->lock)) in prism54_del_mac()
1862 list_for_each_entry(entry, &acl->mac_list, _list) { in prism54_del_mac()
1865 acl->size--; in prism54_del_mac()
1867 mutex_unlock(&acl->lock); in prism54_del_mac()
1871 mutex_unlock(&acl->lock); in prism54_del_mac()
1880 struct islpci_acl *acl = &priv->acl; in prism54_get_mac() local
1886 if (mutex_lock_interruptible(&acl->lock)) in prism54_get_mac()
1889 list_for_each_entry(entry, &acl->mac_list, _list) { in prism54_get_mac()
1895 mutex_unlock(&acl->lock); in prism54_get_mac()
1908 struct islpci_acl *acl = &priv->acl; in prism54_set_policy() local
1911 prism54_clear_mac(acl); in prism54_set_policy()
1918 acl->policy = *uwrq; in prism54_set_policy()
1922 (acl->policy != MAC_POLICY_OPEN)) in prism54_set_policy()
1944 struct islpci_acl *acl = &priv->acl; in prism54_get_policy() local
1946 *uwrq = acl->policy; in prism54_get_policy()
1954 prism54_mac_accept(struct islpci_acl *acl, char *mac) in prism54_mac_accept() argument
1959 if (mutex_lock_interruptible(&acl->lock)) in prism54_mac_accept()
1962 if (acl->policy == MAC_POLICY_OPEN) { in prism54_mac_accept()
1963 mutex_unlock(&acl->lock); in prism54_mac_accept()
1967 list_for_each_entry(entry, &acl->mac_list, _list) { in prism54_mac_accept()
1973 res = (acl->policy == MAC_POLICY_ACCEPT) ? !res : res; in prism54_mac_accept()
1974 mutex_unlock(&acl->lock); in prism54_mac_accept()
2251 mlme->code = prism54_mac_accept(&priv->acl, in handle_request()