Lines Matching +full:no +full:- +full:disconnect
4 * SPDX-License-Identifier: Apache-2.0
42 const struct wifi_scan_result *entry = (const struct wifi_scan_result *)cb->info; in wifi_scan_result()
49 printk("\n%-4s | %-32s %-5s | %-13s | %-4s | %-15s | %-17s | %-8s\n", "Num", "SSID", in wifi_scan_result()
53 strncpy(ssid_print, entry->ssid, sizeof(ssid_print) - 1); in wifi_scan_result()
54 ssid_print[sizeof(ssid_print) - 1] = '\0'; in wifi_scan_result()
56 printk("%-4d | %-32s %-5u | %-4u (%-6s) | %-4d | %-15s | %-17s | %-8s\n", in wifi_scan_result()
57 wifi_ctx.scan_result, ssid_print, entry->ssid_length, entry->channel, in wifi_scan_result()
58 wifi_band_txt(entry->band), entry->rssi, wifi_security_txt(entry->security), in wifi_scan_result()
59 ((entry->mac_length) ? net_sprint_ll_addr_buf(entry->mac, WIFI_MAC_ADDR_LEN, in wifi_scan_result()
62 wifi_mfp_txt(entry->mfp)); in wifi_scan_result()
67 const struct wifi_status *status = (const struct wifi_status *)cb->info; in wifi_connect_result()
69 wifi_ctx.result = status->status; in wifi_connect_result()
80 const struct wifi_status *status = (const struct wifi_status *)cb->info; in wifi_disconnect_result()
82 wifi_ctx.result = status->status; in wifi_disconnect_result()
86 LOG_INF("Disconnect failed (%d)", wifi_ctx.result); in wifi_disconnect_result()
91 /* Disconnect event while connecting is a failed attempt */ in wifi_disconnect_result()
122 struct net_ipv4_hdr *ip_hdr = hdr->ipv4; in icmp_event()
125 size_t data_len = net_pkt_get_len(pkt) - hdr_offset; in icmp_event()
130 wifi_ctx.result = -EIO; in icmp_event()
138 LOG_INF("Received ICMP reply from %s", net_sprint_ipv4_addr(&ip_hdr->src)); in icmp_event()
209 LOG_INF("Disconnect request failed with error: %d", ret); in wifi_disconnect()
244 /* Manage connect retry as disconnect event may happen */ in ZTEST()
255 zassert(--retry, "Connect failed"); in ZTEST()
256 LOG_INF("Failed attempt, retry %d", CONFIG_WIFI_CONNECT_ATTEMPTS - retry); in ZTEST()
308 zassert(--retry, "Gateway ping (ICMP) timed out on all attempts"); in ZTEST()
309 LOG_INF("No reply, retry %d", CONFIG_WIFI_PING_ATTEMPTS - retry); in ZTEST()
329 "Wifi disconnect timed out"); in ZTEST()
331 zassert_equal(wifi_ctx.result, 0, "Disconnect failed"); in ZTEST()