Lines Matching full: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()
1607 /* get a unique AID */ in handle_assoc()
1608 if (sta->aid > 0) in handle_assoc()
1609 txt = "OK, old AID"; 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()
1623 txt = "OK, new AID"; in handle_assoc()
1645 *pos = cpu_to_le16((sta && sta->aid > 0 ? sta->aid : 0) | in handle_assoc()
1646 BIT(14) | BIT(15)); /* AID */ 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()
1885 PDEBUG(DEBUG_PS, " PSPOLL and AID[15:14] not set\n"); 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()
1906 PDEBUG(DEBUG_PS, " received aid=%i does not match with " in handle_pspoll()
1907 "assoc.aid=%d\n", aid, sta->aid); in handle_pspoll()
1912 * - add timeout for buffering (clear aid in TIM vector if buffer timed in handle_pspoll()
1916 * sta; store buffer for later use and leave TIM aid bit set? use in handle_pspoll()
1937 /* try to clear aid from TIM */ in handle_pspoll()
1939 PDEBUG(DEBUG_PS2, "Re-unsetting TIM for aid %d\n", 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()
2783 PDEBUG(DEBUG_PS2, "Re-setting TIM for aid %d\n", 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()