default state for legeacy pairing alllowed, removed obsolete code

pull/6188/head
paul-szczepanek-arm 2018-01-17 10:49:35 +00:00
parent 9c6f57a733
commit d6a3347443
1 changed files with 3 additions and 8 deletions
features/FEATURE_BLE/source/generic

View File

@ -187,6 +187,7 @@ public:
mitm = initMITM;
iocaps = initIocaps;
passkey = PasskeyAsci(initPasskey);
legacyPairingAllowed = true;
return BLE_ERROR_NONE;
}
@ -199,12 +200,6 @@ public:
return BLE_ERROR_NONE;
}
void saveState() {
}
void loadState() {
}
ble_error_t preserveBondingStateOnReset(bool enabled) {
db.setRestore(enabled);
return BLE_ERROR_NONE;
@ -228,8 +223,8 @@ public:
return BLE_ERROR_NONE;
}
ble_error_t getSecureConnectionsSupport(bool *enabled, bool *secure_connections_only) {
return pal.get_secure_connections_support(*enabled, *secure_connections_only);
ble_error_t getSecureConnectionsSupport(bool *enabled) {
return pal.get_secure_connections_support(*enabled);
}
////////////////////////////////////////////////////////////////////////////