mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 16:24:28 +08:00
mesh: Fix structure memeber initialization
This fixes incorrectly reversed assignment of "friend" value in convert_node_to_storage()
This commit is contained in:
parent
ecf001daa1
commit
1e5e98c3b3
@ -1297,7 +1297,7 @@ static void convert_node_to_storage(struct mesh_node *node,
|
||||
|
||||
memcpy(db_node->uuid, node->dev_uuid, 16);
|
||||
|
||||
node->friend = db_node->modes.friend;
|
||||
db_node->modes.friend = node->friend;
|
||||
db_node->modes.relay.state = node->relay.mode;
|
||||
db_node->modes.relay.cnt = node->relay.cnt;
|
||||
db_node->modes.relay.interval = node->relay.interval;
|
||||
|
Loading…
Reference in New Issue
Block a user