Bluetooth: controller: Fix handling of Read Static Addrs cmd

The status in the Command Complete event was uninitialized, leading to
incorrect contents of the event parsed by the Host. Correctly initialize
the status to success.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2017-09-14 15:11:51 +02:00 committed by Carles Cufí
commit d627ae4802

View file

@ -1707,6 +1707,7 @@ static void vs_read_static_addrs(struct net_buf *buf, struct net_buf **evt)
struct bt_hci_vs_static_addr *addr;
rp = cmd_complete(evt, sizeof(*rp) + sizeof(*addr));
rp->status = 0x00;
rp->num_addrs = 1;
addr = &rp->a[0];