diff --git a/dom/bluetooth/bluedroid/BluetoothHALHelpers.h b/dom/bluetooth/bluedroid/BluetoothHALHelpers.h index 4827f7f3c735..085112856a2b 100644 --- a/dom/bluetooth/bluedroid/BluetoothHALHelpers.h +++ b/dom/bluetooth/bluedroid/BluetoothHALHelpers.h @@ -197,8 +197,11 @@ Convert(bt_property_type_t aIn, BluetoothPropertyType& aOut) CONVERT(BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT, PROPERTY_ADAPTER_DISCOVERY_TIMEOUT), CONVERT(BT_PROPERTY_REMOTE_FRIENDLY_NAME, PROPERTY_REMOTE_FRIENDLY_NAME), - CONVERT(BT_PROPERTY_REMOTE_RSSI, PROPERTY_REMOTE_RSSI), + CONVERT(BT_PROPERTY_REMOTE_RSSI, PROPERTY_REMOTE_RSSI) +#if ANDROID_VERSION >= 18 + , CONVERT(BT_PROPERTY_REMOTE_VERSION_INFO,PROPERTY_REMOTE_VERSION_INFO) +#endif }; if (aIn == BT_PROPERTY_REMOTE_DEVICE_TIMESTAMP) { /* This case is handled separately to not populate diff --git a/dom/bluetooth2/bluedroid/BluetoothHALHelpers.h b/dom/bluetooth2/bluedroid/BluetoothHALHelpers.h index 444636e92de5..90aaf2bf8bc8 100644 --- a/dom/bluetooth2/bluedroid/BluetoothHALHelpers.h +++ b/dom/bluetooth2/bluedroid/BluetoothHALHelpers.h @@ -195,8 +195,11 @@ Convert(bt_property_type_t aIn, BluetoothPropertyType& aOut) CONVERT(BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT, PROPERTY_ADAPTER_DISCOVERY_TIMEOUT), CONVERT(BT_PROPERTY_REMOTE_FRIENDLY_NAME, PROPERTY_REMOTE_FRIENDLY_NAME), - CONVERT(BT_PROPERTY_REMOTE_RSSI, PROPERTY_REMOTE_RSSI), + CONVERT(BT_PROPERTY_REMOTE_RSSI, PROPERTY_REMOTE_RSSI) +#if ANDROID_VERSION >= 18 + , CONVERT(BT_PROPERTY_REMOTE_VERSION_INFO,PROPERTY_REMOTE_VERSION_INFO) +#endif }; if (aIn == BT_PROPERTY_REMOTE_DEVICE_TIMESTAMP) { /* This case is handled separately to not populate