Lines Matching refs:sta
256 static enum wifi_link_mode get_sta_link_mode(struct hostapd_iface *iface, struct sta_info *sta) in get_sta_link_mode() argument
258 static enum wifi_link_mode get_sta_link_mode(struct wpa_supplicant *wpa_s, struct sta_info *sta) in get_sta_link_mode()
261 if (sta->flags & WLAN_STA_HE) { in get_sta_link_mode()
263 } else if (sta->flags & WLAN_STA_VHT) { in get_sta_link_mode()
265 } else if (sta->flags & WLAN_STA_HT) { in get_sta_link_mode()
268 } else if (sta->flags & WLAN_STA_NONERP) { in get_sta_link_mode()
275 } else if ((sta->flags & WLAN_STA_NONERP) || in get_sta_link_mode()
289 static bool is_twt_capable(struct hostapd_iface *iface, struct sta_info *sta) in is_twt_capable() argument
298 static bool is_twt_capable(struct wpa_supplicant *wpa_s, struct sta_info *sta) in is_twt_capable() argument
331 struct sta_info *sta = data; in supplicant_send_wifi_mgmt_ap_sta_event() local
341 if (!ap_ctx || !sta) { in supplicant_send_wifi_mgmt_ap_sta_event()
345 memcpy(sta_info.mac, sta->addr, sizeof(sta_info.mac)); in supplicant_send_wifi_mgmt_ap_sta_event()
348 sta_info.link_mode = get_sta_link_mode(ap_ctx, sta); in supplicant_send_wifi_mgmt_ap_sta_event()
349 sta_info.twt_capable = is_twt_capable(ap_ctx, sta); in supplicant_send_wifi_mgmt_ap_sta_event()