ep_entry = ep_entry->Next) {
ep = container_of(ep_entry, struct acmp_ep, entry);
- if (ep->state != ACM_READY)
- continue;
-
if ((data->type == ACM_EP_INFO_PATH) &&
(!data->info.path.pkey || (ntohs(data->info.path.pkey) == ep->pkey)))
return ep;
struct acmp_ep *ep = endpoint->prov_context;
uint8_t status;
+ if (ep->state != ACM_READY) {
+ status = ACM_STATUS_ENODATA;
+ goto resp;
+ }
+
req = acmp_alloc_req(id, msg);
if (!req) {
status = ACM_STATUS_ENOMEM;
{
struct acmp_ep *ep = endpoint->prov_context;
+ if (ep->state != ACM_READY)
+ return acm_resolve_response(id, msg, NULL, ACM_STATUS_ENODATA);
+
if (msg->resolve_data[0].type == ACM_EP_INFO_PATH)
return acmp_resolve_path(ep, msg, id);
else