Lines Matching refs:aid

133 	if (sta->aid > 0)  in ap_free_sta()
134 ap->sta_aid[sta->aid - 1] = NULL; in ap_free_sta()
145 static void hostap_set_tim(local_info_t *local, int aid, int set) in hostap_set_tim() argument
148 local->func->set_tim(local->dev, aid, set); in hostap_set_tim()
229 if (sta->timeout_next == STA_DEAUTH && sta->aid > 0 && in ap_handle_timer()
231 hostap_set_tim(local, sta->aid, 0); in ap_handle_timer()
1007 sta->addr, atomic_read(&sta->users), sta->aid, in prism2_sta_proc_show()
1608 if (sta->aid > 0) in handle_assoc()
1612 for (sta->aid = 1; sta->aid <= MAX_AID_TABLE_SIZE; sta->aid++) in handle_assoc()
1613 if (local->ap->sta_aid[sta->aid - 1] == NULL) in handle_assoc()
1615 if (sta->aid > MAX_AID_TABLE_SIZE) { in handle_assoc()
1616 sta->aid = 0; in handle_assoc()
1621 local->ap->sta_aid[sta->aid - 1] = sta; in handle_assoc()
1645 *pos = cpu_to_le16((sta && sta->aid > 0 ? sta->aid : 0) | in handle_assoc()
1870 u16 aid; in handle_pspoll() local
1883 aid = le16_to_cpu(hdr->duration_id); in handle_pspoll()
1884 if ((aid & (BIT(15) | BIT(14))) != (BIT(15) | BIT(14))) { in handle_pspoll()
1888 aid &= ~(BIT(15) | BIT(14)); in handle_pspoll()
1889 if (aid == 0 || aid > MAX_AID_TABLE_SIZE) { in handle_pspoll()
1890 PDEBUG(DEBUG_PS, " invalid aid=%d\n", aid); in handle_pspoll()
1893 PDEBUG(DEBUG_PS2, " aid=%d\n", aid); in handle_pspoll()
1905 if (sta->aid != aid) { in handle_pspoll()
1907 "assoc.aid=%d\n", aid, sta->aid); in handle_pspoll()
1940 aid); in handle_pspoll()
1941 hostap_set_tim(local, aid, 0); in handle_pspoll()
2312 hdr->duration_id = cpu_to_le16(sta->aid | BIT(15) | BIT(14)); in schedule_packet_send()
2504 sta->aid = param->u.add_sta.aid; in prism2_hostapd_add_sta()
2769 hostap_set_tim(local, sta->aid, 1); in hostap_handle_sta_tx()
2784 sta->aid); in hostap_handle_sta_tx()
2785 hostap_set_tim(local, sta->aid, 1); in hostap_handle_sta_tx()