Properties types are verified on daemon side and proper error is returned on wrong type. No need to double check that on HAL side. --- android/hal-bluetooth.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index b8ffce6..68f1bd5 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -508,15 +508,6 @@ static int set_adapter_property(const bt_property_t *property) if (!interface_ready()) return BT_STATUS_NOT_READY; - switch (property->type) { - case BT_PROPERTY_BDNAME: - case BT_PROPERTY_ADAPTER_SCAN_MODE: - case BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT: - break; - default: - return BT_STATUS_PARM_INVALID; - } - /* type match IPC type */ cmd->type = property->type; cmd->len = property->len; -- 1.8.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html