Lines Matching refs:iter_data

479 	struct ath5k_vif_iter_data *iter_data = data;  in ath5k_vif_iter()  local
483 if (iter_data->hw_macaddr) in ath5k_vif_iter()
485 iter_data->mask[i] &= in ath5k_vif_iter()
486 ~(iter_data->hw_macaddr[i] ^ mac[i]); in ath5k_vif_iter()
488 if (!iter_data->found_active) { in ath5k_vif_iter()
489 iter_data->found_active = true; in ath5k_vif_iter()
490 memcpy(iter_data->active_mac, mac, ETH_ALEN); in ath5k_vif_iter()
493 if (iter_data->need_set_hw_addr && iter_data->hw_macaddr) in ath5k_vif_iter()
494 if (ether_addr_equal(iter_data->hw_macaddr, mac)) in ath5k_vif_iter()
495 iter_data->need_set_hw_addr = false; in ath5k_vif_iter()
497 if (!iter_data->any_assoc) { in ath5k_vif_iter()
499 iter_data->any_assoc = true; in ath5k_vif_iter()
508 iter_data->opmode = NL80211_IFTYPE_AP; in ath5k_vif_iter()
511 iter_data->n_stas++; in ath5k_vif_iter()
512 if (iter_data->opmode == NL80211_IFTYPE_UNSPECIFIED) in ath5k_vif_iter()
513 iter_data->opmode = avf->opmode; in ath5k_vif_iter()
522 struct ath5k_vif_iter_data iter_data; in ath5k_update_bssid_mask_and_opmode() local
529 iter_data.hw_macaddr = common->macaddr; in ath5k_update_bssid_mask_and_opmode()
530 eth_broadcast_addr(iter_data.mask); in ath5k_update_bssid_mask_and_opmode()
531 iter_data.found_active = false; in ath5k_update_bssid_mask_and_opmode()
532 iter_data.need_set_hw_addr = true; in ath5k_update_bssid_mask_and_opmode()
533 iter_data.opmode = NL80211_IFTYPE_UNSPECIFIED; in ath5k_update_bssid_mask_and_opmode()
534 iter_data.n_stas = 0; in ath5k_update_bssid_mask_and_opmode()
537 ath5k_vif_iter(&iter_data, vif->addr, vif); in ath5k_update_bssid_mask_and_opmode()
542 ath5k_vif_iter, &iter_data); in ath5k_update_bssid_mask_and_opmode()
543 memcpy(ah->bssidmask, iter_data.mask, ETH_ALEN); in ath5k_update_bssid_mask_and_opmode()
545 ah->opmode = iter_data.opmode; in ath5k_update_bssid_mask_and_opmode()
554 if (iter_data.need_set_hw_addr && iter_data.found_active) in ath5k_update_bssid_mask_and_opmode()
555 ath5k_hw_set_lladdr(ah, iter_data.active_mac); in ath5k_update_bssid_mask_and_opmode()
561 if (iter_data.n_stas > 1) { in ath5k_update_bssid_mask_and_opmode()
3204 struct ath5k_vif_iter_data iter_data; in ath5k_any_vif_assoc() local
3205 iter_data.hw_macaddr = NULL; in ath5k_any_vif_assoc()
3206 iter_data.any_assoc = false; in ath5k_any_vif_assoc()
3207 iter_data.need_set_hw_addr = false; in ath5k_any_vif_assoc()
3208 iter_data.found_active = true; in ath5k_any_vif_assoc()
3212 ath5k_vif_iter, &iter_data); in ath5k_any_vif_assoc()
3213 return iter_data.any_assoc; in ath5k_any_vif_assoc()