Commit 137ebbc4 authored by François Delawarde's avatar François Delawarde Committed by Johan Hedberg
Browse files

bluetooth: host: fix wrong bt/cf settings loading



This commits fixes the loading of bt/cf settings into memory. Only data
was loaded and not the address.

Signed-off-by: default avatarFrançois Delawarde <fnde@demant.com>
parent a5205060
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4303,8 +4303,11 @@ static int cf_set(const char *name, size_t len_rd, settings_read_cb read_cb,
		cfg = find_cf_cfg(NULL);
		if (!cfg) {
			BT_ERR("Unable to restore CF: no cfg left");
			return 0;
			return -ENOMEM;
		}

		cfg->id = id;
		bt_addr_le_copy(&cfg->peer, &addr);
	}

	if (len_rd) {