• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/net/wireless/hostap/

Lines Matching refs:mac_restrictions

337 	switch (ap->mac_restrictions.policy) {
352 p += sprintf(p, "MAC entries: %u\n", ap->mac_restrictions.entries);
354 spin_lock_bh(&ap->mac_restrictions.lock);
355 for (ptr = ap->mac_restrictions.mac_list.next;
356 ptr != &ap->mac_restrictions.mac_list; ptr = ptr->next) {
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,
420 if (mac_restrictions->policy == MAC_POLICY_OPEN)
423 spin_lock_bh(&mac_restrictions->lock);
424 for (ptr = mac_restrictions->mac_list.next;
425 ptr != &mac_restrictions->mac_list; ptr = ptr->next) {
433 spin_unlock_bh(&mac_restrictions->lock);
435 if (mac_restrictions->policy == MAC_POLICY_ALLOW)
442 void ap_control_flush_macs(struct mac_restrictions *mac_restrictions)
447 if (mac_restrictions->entries == 0)
450 spin_lock_bh(&mac_restrictions->lock);
451 for (ptr = mac_restrictions->mac_list.next, n = ptr->next;
452 ptr != &mac_restrictions->mac_list;
458 mac_restrictions->entries = 0;
459 spin_unlock_bh(&mac_restrictions->lock);
831 spin_lock_init(&ap->mac_restrictions.lock);
832 INIT_LIST_HEAD(&ap->mac_restrictions.mac_list);
898 ap_control_flush_macs(&ap->mac_restrictions);
1340 ap_control_mac_deny(&ap->mac_restrictions, hdr->addr2)) {