Lines Matching defs:sta

239 	struct sta_info *sta;
291 sta = ap_get_sta(hapd, mgmt->sa);
292 if (!sta || !(sta->flags & WLAN_STA_ASSOC)) {
379 u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta,
387 if (!ht_capab || !(sta->flags & WLAN_STA_WMM) ||
389 sta->flags &= ~WLAN_STA_HT;
390 os_free(sta->ht_capabilities);
391 sta->ht_capabilities = NULL;
395 if (sta->ht_capabilities == NULL) {
396 sta->ht_capabilities =
398 if (sta->ht_capabilities == NULL)
402 sta->flags |= WLAN_STA_HT;
403 os_memcpy(sta->ht_capabilities, ht_capab,
410 void ht40_intolerant_add(struct hostapd_iface *iface, struct sta_info *sta)
416 " in Association Request", MAC2STR(sta->addr));
418 if (sta->ht40_intolerant_set)
421 sta->ht40_intolerant_set = 1;
433 void ht40_intolerant_remove(struct hostapd_iface *iface, struct sta_info *sta)
435 if (!sta->ht40_intolerant_set)
438 sta->ht40_intolerant_set = 0;
456 static void update_sta_ht(struct hostapd_data *hapd, struct sta_info *sta)
460 ht_capab = le_to_host16(sta->ht_capabilities->ht_capabilities_info);
462 "0x%04x", MAC2STR(sta->addr), ht_capab);
464 if (!sta->no_ht_gf_set) {
465 sta->no_ht_gf_set = 1;
470 __func__, MAC2STR(sta->addr),
474 if (!sta->ht_20mhz_set) {
475 sta->ht_20mhz_set = 1;
480 __func__, MAC2STR(sta->addr),
485 ht40_intolerant_add(hapd->iface, sta);
489 static void update_sta_no_ht(struct hostapd_data *hapd, struct sta_info *sta)
491 if (!sta->no_ht_set) {
492 sta->no_ht_set = 1;
498 __func__, MAC2STR(sta->addr),
504 void update_ht_state(struct hostapd_data *hapd, struct sta_info *sta)
506 if ((sta->flags & WLAN_STA_HT) && sta->ht_capabilities)
507 update_sta_ht(hapd, sta);
509 update_sta_no_ht(hapd, sta);