• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/wireless/hostap/

Lines Matching refs:aid

136 	if (sta->aid > 0)
137 ap->sta_aid[sta->aid - 1] = NULL;
148 static void hostap_set_tim(local_info_t *local, int aid, int set)
151 local->func->set_tim(local->dev, aid, set);
232 if (sta->timeout_next == STA_DEAUTH && sta->aid > 0 &&
234 hostap_set_tim(local, sta->aid, 0);
1012 MAC2STR(sta->addr), atomic_read(&sta->users), sta->aid,
1614 if (sta->aid > 0)
1618 for (sta->aid = 1; sta->aid <= MAX_AID_TABLE_SIZE; sta->aid++)
1619 if (local->ap->sta_aid[sta->aid - 1] == NULL)
1621 if (sta->aid > MAX_AID_TABLE_SIZE) {
1622 sta->aid = 0;
1627 local->ap->sta_aid[sta->aid - 1] = sta;
1652 *pos = __cpu_to_le16((sta && sta->aid > 0 ? sta->aid : 0) |
1867 u16 aid;
1881 aid = __le16_to_cpu(hdr->duration_id);
1882 if ((aid & (BIT(15) | BIT(14))) != (BIT(15) | BIT(14))) {
1886 aid &= ~BIT(15) & ~BIT(14);
1887 if (aid == 0 || aid > MAX_AID_TABLE_SIZE) {
1888 PDEBUG(DEBUG_PS, " invalid aid=%d\n", aid);
1891 PDEBUG(DEBUG_PS2, " aid=%d\n", aid);
1903 if (sta->aid != aid) {
1904 PDEBUG(DEBUG_PS, " received aid=%i does not match with "
1905 "assoc.aid=%d\n", aid, sta->aid);
1910 * - add timeout for buffering (clear aid in TIM vector if buffer timed
1914 * sta; store buffer for later use and leave TIM aid bit set? use
1935 /* try to clear aid from TIM */
1937 PDEBUG(DEBUG_PS2, "Re-unsetting TIM for aid %d\n",
1938 aid);
1939 hostap_set_tim(local, aid, 0);
2313 hdr->duration_id = cpu_to_le16(sta->aid | BIT(15) | BIT(14));
2504 sta->aid = param->u.add_sta.aid;
2756 hostap_set_tim(local, sta->aid, 1);
2770 PDEBUG(DEBUG_PS2, "Re-setting TIM for aid %d\n",
2771 sta->aid);
2772 hostap_set_tim(local, sta->aid, 1);