Lines Matching refs:ssid

29 static inline ssize_t lookup_idx(const uint8_t *ssid, size_t ssid_len)  in lookup_idx()  argument
36 if (strncmp(ssid, ssid_cache[i], ssid_len) == 0) { in lookup_idx()
90 memcpy(ssid_cache[idx], buf->ssid, buf->ssid_len); in wifi_credentials_cache_ssid()
104 int wifi_credentials_get_by_ssid_personal_struct(const char *ssid, size_t ssid_len, in wifi_credentials_get_by_ssid_personal_struct() argument
110 if (ssid == NULL || ssid_len > WIFI_SSID_MAX_LEN || ssid_len == 0) { in wifi_credentials_get_by_ssid_personal_struct()
122 idx = lookup_idx(ssid, ssid_len); in wifi_credentials_get_by_ssid_personal_struct()
168 idx = lookup_idx(creds->header.ssid, creds->header.ssid_len); in wifi_credentials_set_personal_struct()
192 int wifi_credentials_set_personal(const char *ssid, size_t ssid_len, enum wifi_security_type type, in wifi_credentials_set_personal() argument
201 if (ssid == NULL || ssid_len > WIFI_SSID_MAX_LEN || ssid_len == 0) { in wifi_credentials_set_personal()
224 memcpy(header->ssid, ssid, ssid_len); in wifi_credentials_set_personal()
260 int wifi_credentials_get_by_ssid_personal(const char *ssid, size_t ssid_len, in wifi_credentials_get_by_ssid_personal() argument
270 if (ssid == NULL || ssid_len > WIFI_SSID_MAX_LEN || ssid_len == 0) { in wifi_credentials_get_by_ssid_personal()
287 ret = wifi_credentials_get_by_ssid_personal_struct(ssid, ssid_len, in wifi_credentials_get_by_ssid_personal()
327 int wifi_credentials_delete_by_ssid(const char *ssid, size_t ssid_len) in wifi_credentials_delete_by_ssid() argument
332 if (ssid == NULL || ssid_len > WIFI_SSID_MAX_LEN || ssid_len == 0) { in wifi_credentials_delete_by_ssid()
339 idx = lookup_idx(ssid, ssid_len); in wifi_credentials_delete_by_ssid()