15#ifndef NETWORK_PROVISIONING_TEST_FAKE_WIFI_H_
16#define NETWORK_PROVISIONING_TEST_FAKE_WIFI_H_
20#include <zephyr/net/wifi.h>
21#include <zephyr/net/wifi_mgmt.h>
25 char ssid[WIFI_SSID_MAX_LEN + 1];
27 uint8_t
bssid[WIFI_MAC_ADDR_LEN];
void fake_wifi_set_scan_aps(const struct fake_wifi_ap *aps, size_t count)
Replace the canned AP list returned by subsequent NET_REQUEST_WIFI_SCAN requests.
void fake_wifi_set_next_connect_sync_error(int errnum)
Make the next NET_REQUEST_WIFI_CONNECT fail synchronously with -errnum (e.g.
void fake_wifi_set_expected_credentials(const char *ssid, const char *pass)
Switch the backend to credential-matching mode: the outcome of each connect is derived from the reque...
void fake_wifi_set_next_connect_result(enum wifi_conn_status status)
Program the conn_status reported for the next NET_REQUEST_WIFI_CONNECT.
void fake_wifi_reset(void)
Reset all programmed state: empty scan list, connect succeeds, no sync error.
A canned access point the fake backend reports from a scan.
enum wifi_security_type security
char ssid[WIFI_SSID_MAX_LEN+1]
uint8_t bssid[WIFI_MAC_ADDR_LEN]