/* Update only state field of an address mapping */
int wlp_eda_update_node_state(struct wlp_eda *eda, const struct uwb_dev_addr *dev_addr, const enum wlp_wss_connect state)
/* Update only state field of an address mapping */
int wlp_eda_update_node_state(struct wlp_eda *eda, const struct uwb_dev_addr *dev_addr, const enum wlp_wss_connect state)
{
	int result = -ENOENT;
	struct wlp_eda_node *itr;
	unsigned long flags;
	spin_lock_irqsave(&eda->lock, flags);
	list_for_each_entry(itr, &eda->cache, list_node) {
		if (!memcmp(&itr->dev_addr, dev_addr, sizeof(itr->dev_addr))) {
			itr->state = state;
			result = 0;
			goto out_unlock;
		}
	}
out_unlock:
	spin_unlock_irqrestore(&eda->lock, flags);
	return result;
}