Lines Matching refs:aid

145 	if (sta->aid > 0)  in ap_free_sta()
146 ap->sta_aid[sta->aid - 1] = NULL; in ap_free_sta()
157 static void hostap_set_tim(local_info_t *local, int aid, int set) in hostap_set_tim() argument
160 local->func->set_tim(local->dev, aid, set); in hostap_set_tim()
241 if (sta->timeout_next == STA_DEAUTH && sta->aid > 0 && in ap_handle_timer()
243 hostap_set_tim(local, sta->aid, 0); in ap_handle_timer()
1055 sta->addr, atomic_read(&sta->users), sta->aid, in prism2_sta_proc_show()
1670 if (sta->aid > 0) in handle_assoc()
1674 for (sta->aid = 1; sta->aid <= MAX_AID_TABLE_SIZE; sta->aid++) in handle_assoc()
1675 if (local->ap->sta_aid[sta->aid - 1] == NULL) in handle_assoc()
1677 if (sta->aid > MAX_AID_TABLE_SIZE) { in handle_assoc()
1678 sta->aid = 0; in handle_assoc()
1683 local->ap->sta_aid[sta->aid - 1] = sta; in handle_assoc()
1707 *pos = cpu_to_le16((sta && sta->aid > 0 ? sta->aid : 0) | in handle_assoc()
1932 u16 aid; in handle_pspoll() local
1945 aid = le16_to_cpu(hdr->duration_id); in handle_pspoll()
1946 if ((aid & (BIT(15) | BIT(14))) != (BIT(15) | BIT(14))) { in handle_pspoll()
1950 aid &= ~(BIT(15) | BIT(14)); in handle_pspoll()
1951 if (aid == 0 || aid > MAX_AID_TABLE_SIZE) { in handle_pspoll()
1952 PDEBUG(DEBUG_PS, " invalid aid=%d\n", aid); in handle_pspoll()
1955 PDEBUG(DEBUG_PS2, " aid=%d\n", aid); in handle_pspoll()
1967 if (sta->aid != aid) { in handle_pspoll()
1969 "assoc.aid=%d\n", aid, sta->aid); in handle_pspoll()
2002 aid); in handle_pspoll()
2003 hostap_set_tim(local, aid, 0); in handle_pspoll()
2374 hdr->duration_id = cpu_to_le16(sta->aid | BIT(15) | BIT(14)); in schedule_packet_send()
2566 sta->aid = param->u.add_sta.aid; in prism2_hostapd_add_sta()
2831 hostap_set_tim(local, sta->aid, 1); in hostap_handle_sta_tx()
2846 sta->aid); in hostap_handle_sta_tx()
2847 hostap_set_tim(local, sta->aid, 1); in hostap_handle_sta_tx()