File tree Expand file tree Collapse file tree 5 files changed +5
-20
lines changed
features/FEATURE_BLE/targets
TARGET_Cypress/COMPONENT_CYW43XXX Expand file tree Collapse file tree 5 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,7 @@ void CordioHCIDriver::handle_reset_sequence(uint8_t *pMsg)
148
148
149
149
if (get_random_static_address (static_address)) {
150
150
// note: will send the HCI command to send the random address
151
- cordio::BLE::deviceInstance ().getGap ().setAddress (
152
- BLEProtocol::AddressType::RANDOM_STATIC,
153
- static_address.data ()
154
- );
151
+ cordio::BLE::deviceInstance ().getGap ().enablePrivacy (true );
155
152
} else {
156
153
/* send next command in sequence */
157
154
HciLeReadBufSizeCmd ();
Original file line number Diff line number Diff line change @@ -341,10 +341,7 @@ void ble::vendor::odin_w2::HCIDriver::handle_reset_sequence(uint8_t *pMsg)
341
341
memcpy (addr, pMsg, sizeof (addr));
342
342
DM_RAND_ADDR_SET (addr, DM_RAND_ADDR_STATIC);
343
343
// note: will invoke set rand address
344
- cordio::BLE::deviceInstance ().getGap ().setAddress (
345
- BLEProtocol::AddressType::RANDOM_STATIC,
346
- addr
347
- );
344
+ cordio::BLE::deviceInstance ().getGap ().enablePrivacy (true );
348
345
}
349
346
break ;
350
347
Original file line number Diff line number Diff line change @@ -301,10 +301,7 @@ class HCIDriver : public cordio::CordioHCIDriver {
301
301
memcpy (addr, pMsg, sizeof (addr));
302
302
DM_RAND_ADDR_SET (addr, DM_RAND_ADDR_STATIC);
303
303
// note: will invoke set rand address
304
- cordio::BLE::deviceInstance ().getGap ().setAddress (
305
- BLEProtocol::AddressType::RANDOM_STATIC,
306
- addr
307
- );
304
+ cordio::BLE::deviceInstance ().getGap ().enablePrivacy (true );
308
305
}
309
306
break ;
310
307
Original file line number Diff line number Diff line change @@ -265,10 +265,7 @@ class HCIDriver : public cordio::CordioHCIDriver {
265
265
memcpy (addr, pMsg, sizeof (addr));
266
266
DM_RAND_ADDR_SET (addr, DM_RAND_ADDR_STATIC);
267
267
// note: will invoke set rand address
268
- cordio::BLE::deviceInstance ().getGap ().setAddress (
269
- BLEProtocol::AddressType::RANDOM_STATIC,
270
- addr
271
- );
268
+ cordio::BLE::deviceInstance ().getGap ().enablePrivacy (true );
272
269
}
273
270
break ;
274
271
Original file line number Diff line number Diff line change @@ -311,10 +311,7 @@ class HCIDriver : public cordio::CordioHCIDriver
311
311
memcpy (addr, pMsg, sizeof (addr));
312
312
DM_RAND_ADDR_SET (addr, DM_RAND_ADDR_STATIC);
313
313
// note: will invoke set rand address
314
- cordio::BLE::deviceInstance ().getGap ().setAddress (
315
- BLEProtocol::AddressType::RANDOM_STATIC,
316
- addr
317
- );
314
+ cordio::BLE::deviceInstance ().getGap ().enablePrivacy (true );
318
315
}
319
316
break ;
320
317
You can’t perform that action at this time.
0 commit comments