Lines Matching refs:params

482 			    struct wifi_connect_req_params *params)  in esp32_wifi_connect()  argument
525 memcpy(data->status.ssid, params->ssid, params->ssid_length); in esp32_wifi_connect()
526 data->status.ssid[params->ssid_length] = '\0'; in esp32_wifi_connect()
532 memcpy(wifi_config.sta.ssid, params->ssid, params->ssid_length); in esp32_wifi_connect()
533 wifi_config.sta.ssid[params->ssid_length] = '\0'; in esp32_wifi_connect()
534 switch (params->security) { in esp32_wifi_connect()
541 memcpy(wifi_config.sta.password, params->psk, params->psk_length); in esp32_wifi_connect()
542 wifi_config.sta.password[params->psk_length] = '\0'; in esp32_wifi_connect()
549 if (params->sae_password) { in esp32_wifi_connect()
550 memcpy(wifi_config.sta.password, params->sae_password, in esp32_wifi_connect()
551 params->sae_password_length); in esp32_wifi_connect()
552 wifi_config.sta.password[params->sae_password_length] = '\0'; in esp32_wifi_connect()
554 memcpy(wifi_config.sta.password, params->psk, params->psk_length); in esp32_wifi_connect()
555 wifi_config.sta.password[params->psk_length] = '\0'; in esp32_wifi_connect()
571 if (params->channel == WIFI_CHANNEL_ANY) { in esp32_wifi_connect()
575 wifi_config.sta.channel = params->channel; in esp32_wifi_connect()
576 data->status.channel = params->channel; in esp32_wifi_connect()
594 static int esp32_wifi_scan(const struct device *dev, struct wifi_scan_params *params, in esp32_wifi_scan() argument
609 if (params) { in esp32_wifi_scan()
611 scan_config.scan_type = params->scan_type; in esp32_wifi_scan()
648 struct wifi_connect_req_params *params) in esp32_wifi_ap_enable() argument
657 .channel = params->channel == WIFI_CHANNEL_ANY ? in esp32_wifi_ap_enable()
658 0 : params->channel, in esp32_wifi_ap_enable()
662 memcpy(data->status.ssid, params->ssid, params->ssid_length); in esp32_wifi_ap_enable()
663 data->status.ssid[params->ssid_length] = '\0'; in esp32_wifi_ap_enable()
665 strncpy((char *) wifi_config.ap.ssid, params->ssid, params->ssid_length); in esp32_wifi_ap_enable()
666 wifi_config.ap.ssid_len = params->ssid_length; in esp32_wifi_ap_enable()
668 switch (params->security) { in esp32_wifi_ap_enable()
676 strncpy((char *) wifi_config.ap.password, params->psk, params->psk_length); in esp32_wifi_ap_enable()