• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wireless/hostap/

Lines Matching defs:mac_restrictions

339 	switch (ap->mac_restrictions.policy) {
354 p += sprintf(p, "MAC entries: %u\n", ap->mac_restrictions.entries);
356 spin_lock_bh(&ap->mac_restrictions.lock);
357 list_for_each_entry(entry, &ap->mac_restrictions.mac_list, list) {
365 spin_unlock_bh(&ap->mac_restrictions.lock);
371 int ap_control_add_mac(struct mac_restrictions *mac_restrictions, u8 *mac)
381 spin_lock_bh(&mac_restrictions->lock);
382 list_add_tail(&entry->list, &mac_restrictions->mac_list);
383 mac_restrictions->entries++;
384 spin_unlock_bh(&mac_restrictions->lock);
390 int ap_control_del_mac(struct mac_restrictions *mac_restrictions, u8 *mac)
395 spin_lock_bh(&mac_restrictions->lock);
396 for (ptr = mac_restrictions->mac_list.next;
397 ptr != &mac_restrictions->mac_list; ptr = ptr->next) {
403 mac_restrictions->entries--;
404 spin_unlock_bh(&mac_restrictions->lock);
408 spin_unlock_bh(&mac_restrictions->lock);
413 static int ap_control_mac_deny(struct mac_restrictions *mac_restrictions,
419 if (mac_restrictions->policy == MAC_POLICY_OPEN)
422 spin_lock_bh(&mac_restrictions->lock);
423 list_for_each_entry(entry, &mac_restrictions->mac_list, list) {
429 spin_unlock_bh(&mac_restrictions->lock);
431 if (mac_restrictions->policy == MAC_POLICY_ALLOW)
438 void ap_control_flush_macs(struct mac_restrictions *mac_restrictions)
443 if (mac_restrictions->entries == 0)
446 spin_lock_bh(&mac_restrictions->lock);
447 for (ptr = mac_restrictions->mac_list.next, n = ptr->next;
448 ptr != &mac_restrictions->mac_list;
454 mac_restrictions->entries = 0;
455 spin_unlock_bh(&mac_restrictions->lock);
820 spin_lock_init(&ap->mac_restrictions.lock);
821 INIT_LIST_HEAD(&ap->mac_restrictions.mac_list);
886 ap_control_flush_macs(&ap->mac_restrictions);
1327 ap_control_mac_deny(&ap->mac_restrictions, hdr->addr2)) {