Searched refs:sta_config (Results 1 – 1 of 1) sorted by relevance
35 static struct wifi_connect_req_params sta_config; variable153 sta_config.ssid = (const uint8_t *)WIFI_SSID; in connect_to_wifi()154 sta_config.ssid_length = strlen(WIFI_SSID); in connect_to_wifi()155 sta_config.psk = (const uint8_t *)WIFI_PSK; in connect_to_wifi()156 sta_config.psk_length = strlen(WIFI_PSK); in connect_to_wifi()157 sta_config.security = WIFI_SECURITY_TYPE_PSK; in connect_to_wifi()158 sta_config.channel = WIFI_CHANNEL_ANY; in connect_to_wifi()159 sta_config.band = WIFI_FREQ_BAND_2_4_GHZ; in connect_to_wifi()161 LOG_INF("Connecting to SSID: %s\n", sta_config.ssid); in connect_to_wifi()163 int ret = net_mgmt(NET_REQUEST_WIFI_CONNECT, sta_iface, &sta_config, in connect_to_wifi()