Home
last modified time | relevance | path

Searched refs:sta_info (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/samples/net/wifi/apsta_mode/src/
Dmain.c60 struct wifi_ap_sta_info *sta_info = (struct wifi_ap_sta_info *)cb->info; in wifi_event_handler() local
62 LOG_INF("station: " MACSTR " joined ", sta_info->mac[0], sta_info->mac[1], in wifi_event_handler()
63 sta_info->mac[2], sta_info->mac[3], sta_info->mac[4], sta_info->mac[5]); in wifi_event_handler()
67 struct wifi_ap_sta_info *sta_info = (struct wifi_ap_sta_info *)cb->info; in wifi_event_handler() local
69 LOG_INF("station: " MACSTR " leave ", sta_info->mac[0], sta_info->mac[1], in wifi_event_handler()
70 sta_info->mac[2], sta_info->mac[3], sta_info->mac[4], sta_info->mac[5]); in wifi_event_handler()
/Zephyr-latest/modules/hostap/src/
Dsupp_events.c256 static enum wifi_link_mode get_sta_link_mode(struct hostapd_iface *iface, struct sta_info *sta) in get_sta_link_mode()
258 static enum wifi_link_mode get_sta_link_mode(struct wpa_supplicant *wpa_s, struct sta_info *sta) in get_sta_link_mode()
289 static bool is_twt_capable(struct hostapd_iface *iface, struct sta_info *sta) in is_twt_capable()
298 static bool is_twt_capable(struct wpa_supplicant *wpa_s, struct sta_info *sta) in is_twt_capable()
331 struct sta_info *sta = data; in supplicant_send_wifi_mgmt_ap_sta_event()
339 struct wifi_ap_sta_info sta_info = { 0 }; in supplicant_send_wifi_mgmt_ap_sta_event() local
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()
354 (void *)&sta_info, in supplicant_send_wifi_mgmt_ap_sta_event()
[all …]
/Zephyr-latest/drivers/wifi/esp32/src/
Desp_wifi_drv.c358 struct wifi_ap_sta_info sta_info; in esp_wifi_handle_ap_connect_event() local
360 sta_info.link_mode = WIFI_LINK_MODE_UNKNOWN; in esp_wifi_handle_ap_connect_event()
361 sta_info.twt_capable = false; /* Only support in 802.11ax */ in esp_wifi_handle_ap_connect_event()
362 sta_info.mac_length = WIFI_MAC_ADDR_LEN; in esp_wifi_handle_ap_connect_event()
363 memcpy(sta_info.mac, event->mac, WIFI_MAC_ADDR_LEN); in esp_wifi_handle_ap_connect_event()
374 sta_info.link_mode = WIFI_4; in esp_wifi_handle_ap_connect_event()
376 sta_info.link_mode = WIFI_3; in esp_wifi_handle_ap_connect_event()
378 sta_info.link_mode = WIFI_1; in esp_wifi_handle_ap_connect_event()
380 sta_info.link_mode = WIFI_LINK_MODE_UNKNOWN; in esp_wifi_handle_ap_connect_event()
386 wifi_mgmt_raise_ap_sta_connected_event(iface, &sta_info); in esp_wifi_handle_ap_connect_event()
[all …]
/Zephyr-latest/drivers/wifi/nrf_wifi/src/
Dwpa_supp_if.c1235 vif_ctx_zep->inactive_time_sec = info->sta_info.inactive_time; in nrf_wifi_wpa_supp_event_proc_get_sta()
1244 if (info->sta_info.valid_fields & NRF_WIFI_STA_INFO_SIGNAL_VALID) { in nrf_wifi_wpa_supp_event_proc_get_sta()
1245 signal_info->data.signal = info->sta_info.signal; in nrf_wifi_wpa_supp_event_proc_get_sta()
1250 if (info->sta_info.valid_fields & NRF_WIFI_STA_INFO_SIGNAL_AVG_VALID) { in nrf_wifi_wpa_supp_event_proc_get_sta()
1251 signal_info->data.avg_signal = info->sta_info.signal_avg; in nrf_wifi_wpa_supp_event_proc_get_sta()
1256 if (info->sta_info.valid_fields & NRF_WIFI_STA_INFO_RX_BEACON_SIGNAL_AVG_VALID) { in nrf_wifi_wpa_supp_event_proc_get_sta()
1257 signal_info->data.avg_beacon_signal = info->sta_info.rx_beacon_signal_avg; in nrf_wifi_wpa_supp_event_proc_get_sta()
1264 if (info->sta_info.valid_fields & NRF_WIFI_STA_INFO_TX_BITRATE_VALID) { in nrf_wifi_wpa_supp_event_proc_get_sta()
1265 if (info->sta_info.tx_bitrate.valid_fields & NRF_WIFI_RATE_INFO_BITRATE_VALID) { in nrf_wifi_wpa_supp_event_proc_get_sta()
1266 signal_info->data.current_tx_rate = info->sta_info.tx_bitrate.bitrate * 100; in nrf_wifi_wpa_supp_event_proc_get_sta()
[all …]
/Zephyr-latest/subsys/net/l2/wifi/
Dwifi_shell.c113 struct wifi_ap_sta_info sta_info; member
431 const struct wifi_ap_sta_info *sta_info = in handle_wifi_ap_sta_connected() local
438 net_sprint_ll_addr_buf(sta_info->mac, WIFI_MAC_ADDR_LEN, in handle_wifi_ap_sta_connected()
444 sta_list[i].sta_info = *sta_info; in handle_wifi_ap_sta_connected()
458 const struct wifi_ap_sta_info *sta_info = in handle_wifi_ap_sta_disconnected() local
464 net_sprint_ll_addr_buf(sta_info->mac, WIFI_MAC_ADDR_LEN, in handle_wifi_ap_sta_disconnected()
473 if (!memcmp(sta_list[i].sta_info.mac, sta_info->mac, in handle_wifi_ap_sta_disconnected()
1983 sta = &sta_list[i].sta_info; in cmd_wifi_ap_stations()
Dwifi_mgmt.c1286 struct wifi_ap_sta_info *sta_info) in wifi_mgmt_raise_ap_sta_connected_event() argument
1289 iface, sta_info, in wifi_mgmt_raise_ap_sta_connected_event()
1294 struct wifi_ap_sta_info *sta_info) in wifi_mgmt_raise_ap_sta_disconnected_event() argument
1297 iface, sta_info, in wifi_mgmt_raise_ap_sta_disconnected_event()
/Zephyr-latest/include/zephyr/net/
Dwifi_mgmt.h1710 struct wifi_ap_sta_info *sta_info);
1717 struct wifi_ap_sta_info *sta_info);
/Zephyr-latest/modules/hostap/
DCMakeLists.txt200 ${HOSTAP_SRC_BASE}/ap/sta_info.c