mirror of https://github.com/ARMmbed/mbed-os.git
BLE : Replace calls to Gap::setAddress with HCIDriver::set_random_static_address
parent
c66dd7fd1f
commit
1970761880
|
|
@ -341,10 +341,7 @@ void ble::vendor::odin_w2::HCIDriver::handle_reset_sequence(uint8_t *pMsg)
|
|||
memcpy(addr, pMsg, sizeof(addr));
|
||||
DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC);
|
||||
// note: will invoke set rand address
|
||||
cordio::BLE::deviceInstance().getGap().setAddress(
|
||||
BLEProtocol::AddressType::RANDOM_STATIC,
|
||||
addr
|
||||
);
|
||||
set_random_static_address(addr);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -301,10 +301,7 @@ public:
|
|||
memcpy(addr, pMsg, sizeof(addr));
|
||||
DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC);
|
||||
// note: will invoke set rand address
|
||||
cordio::BLE::deviceInstance().getGap().setAddress(
|
||||
BLEProtocol::AddressType::RANDOM_STATIC,
|
||||
addr
|
||||
);
|
||||
set_random_static_address(addr);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -265,10 +265,7 @@ public:
|
|||
memcpy(addr, pMsg, sizeof(addr));
|
||||
DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC);
|
||||
// note: will invoke set rand address
|
||||
cordio::BLE::deviceInstance().getGap().setAddress(
|
||||
BLEProtocol::AddressType::RANDOM_STATIC,
|
||||
addr
|
||||
);
|
||||
set_random_static_address(addr);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -313,10 +313,7 @@ public:
|
|||
memcpy(addr, pMsg, sizeof(addr));
|
||||
DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC);
|
||||
// note: will invoke set rand address
|
||||
cordio::BLE::deviceInstance().getGap().setAddress(
|
||||
BLEProtocol::AddressType::RANDOM_STATIC,
|
||||
addr
|
||||
);
|
||||
set_random_static_address(addr);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue