Lines Matching refs:header
1541 ssid = (char *)k_malloc(creds->header.ssid_len + 1); in __stored_creds_to_params()
1548 memset(ssid, 0, creds->header.ssid_len + 1); in __stored_creds_to_params()
1549 ret = snprintf(ssid, creds->header.ssid_len + 1, "%s", creds->header.ssid); in __stored_creds_to_params()
1550 if (ret > creds->header.ssid_len) { in __stored_creds_to_params()
1557 params->ssid_length = creds->header.ssid_len; in __stored_creds_to_params()
1581 params->security = creds->header.type; in __stored_creds_to_params()
1585 if (creds->header.key_passwd_length > 0) { in __stored_creds_to_params()
1586 key_passwd = (char *)k_malloc(creds->header.key_passwd_length + 1); in __stored_creds_to_params()
1592 memset(key_passwd, 0, creds->header.key_passwd_length + 1); in __stored_creds_to_params()
1593 ret = snprintf(key_passwd, creds->header.key_passwd_length + 1, "%s", in __stored_creds_to_params()
1594 creds->header.key_passwd); in __stored_creds_to_params()
1595 if (ret > creds->header.key_passwd_length) { in __stored_creds_to_params()
1601 params->key_passwd_length = creds->header.key_passwd_length; in __stored_creds_to_params()
1607 params->channel = (creds->header.channel != 0) ? creds->header.channel : WIFI_CHANNEL_ANY; in __stored_creds_to_params()
1608 params->timeout = (creds->header.timeout != 0) in __stored_creds_to_params()
1609 ? creds->header.timeout in __stored_creds_to_params()
1613 if (creds->header.type > WIFI_SECURITY_TYPE_MAX) { in __stored_creds_to_params()
1617 if (creds->header.flags & WIFI_CREDENTIALS_FLAG_2_4GHz) { in __stored_creds_to_params()
1619 } else if (creds->header.flags & WIFI_CREDENTIALS_FLAG_5GHz) { in __stored_creds_to_params()
1626 if (creds->header.flags & WIFI_CREDENTIALS_FLAG_MFP_DISABLED) { in __stored_creds_to_params()
1628 } else if (creds->header.flags & WIFI_CREDENTIALS_FLAG_MFP_REQUIRED) { in __stored_creds_to_params()
1727 .header = { in add_static_network_config()
1743 creds.header.type = WIFI_SECURITY_TYPE_NONE; in add_static_network_config()
1745 creds.header.type = WIFI_SECURITY_TYPE_PSK; in add_static_network_config()
1747 creds.header.type = WIFI_SECURITY_TYPE_PSK_SHA256; in add_static_network_config()
1749 creds.header.type = WIFI_SECURITY_TYPE_SAE; in add_static_network_config()
1751 creds.header.type = WIFI_SECURITY_TYPE_WPA_PSK; in add_static_network_config()
1756 memcpy(creds.header.ssid, CONFIG_WIFI_CREDENTIALS_STATIC_SSID, in add_static_network_config()
1762 creds.header.ssid); in add_static_network_config()