Lines Matching full:header
135 if (buf->header.type != WIFI_SECURITY_TYPE_NONE && in wifi_credentials_get_by_ssid_personal_struct()
136 buf->header.type != WIFI_SECURITY_TYPE_PSK && in wifi_credentials_get_by_ssid_personal_struct()
137 buf->header.type != WIFI_SECURITY_TYPE_PSK_SHA256 && in wifi_credentials_get_by_ssid_personal_struct()
138 buf->header.type != WIFI_SECURITY_TYPE_SAE && in wifi_credentials_get_by_ssid_personal_struct()
139 buf->header.type != WIFI_SECURITY_TYPE_WPA_PSK) { in wifi_credentials_get_by_ssid_personal_struct()
161 if (creds->header.ssid_len > WIFI_SSID_MAX_LEN || creds->header.ssid_len == 0) { in wifi_credentials_set_personal_struct()
168 idx = lookup_idx(creds->header.ssid, creds->header.ssid_len); in wifi_credentials_set_personal_struct()
184 wifi_credentials_cache_ssid(idx, &creds->header); in wifi_credentials_set_personal_struct()
199 struct wifi_credentials_header *header; in wifi_credentials_set_personal() local
221 header = (struct wifi_credentials_header *)buf; in wifi_credentials_set_personal()
223 header->type = type; in wifi_credentials_set_personal()
224 memcpy(header->ssid, ssid, ssid_len); in wifi_credentials_set_personal()
225 header->ssid_len = ssid_len; in wifi_credentials_set_personal()
226 header->flags = flags; in wifi_credentials_set_personal()
227 header->channel = channel; in wifi_credentials_set_personal()
228 header->timeout = timeout; in wifi_credentials_set_personal()
231 memcpy(header->bssid, bssid, WIFI_MAC_ADDR_LEN); in wifi_credentials_set_personal()
268 struct wifi_credentials_header *header; in wifi_credentials_get_by_ssid_personal() local
294 header = (struct wifi_credentials_header *)buf; in wifi_credentials_get_by_ssid_personal()
296 *type = header->type; in wifi_credentials_get_by_ssid_personal()
297 *flags = header->flags; in wifi_credentials_get_by_ssid_personal()
298 *channel = header->channel; in wifi_credentials_get_by_ssid_personal()
299 *timeout = header->timeout; in wifi_credentials_get_by_ssid_personal()
301 if (header->flags & WIFI_CREDENTIALS_FLAG_BSSID) { in wifi_credentials_get_by_ssid_personal()
302 memcpy(bssid_buf, header->bssid, WIFI_MAC_ADDR_LEN); in wifi_credentials_get_by_ssid_personal()
305 switch (header->type) { in wifi_credentials_get_by_ssid_personal()