Diff between 37d78e9ab325148d01659e06598574d8775f2384 and 0ccb57314680918e70394d530123c9eb2c1e5cad
Changed Files
| File | Additions | Deletions | Status |
| tools/oobtest.c | +7 | -0 | modified |
Full Patch
diff --git a/tools/oobtest.c b/tools/oobtest.c
index 7ee38b4..9cc6c16 100644
--- a/tools/oobtest.c
+++ b/tools/oobtest.c
@@ -555,6 +555,13 @@ static void read_info(uint8_t status, uint16_t len, const void *param,
bacpy(&bdaddr1, &bdaddr);
else if (index == index2)
bacpy(&bdaddr2, &bdaddr);
+ } else {
+ bdaddr_t bdaddr;
+
+ bacpy(&bdaddr, BDADDR_ANY);
+
+ mgmt_send(mgmt, MGMT_OP_SET_STATIC_ADDRESS, index,
+ 6, &bdaddr, NULL, NULL, NULL);
}
if (use_sc) {