hfp_hf: return error when indicator is not supported

This commit is contained in:
Milanka Ringwald 2024-12-05 11:00:05 +01:00
parent 892de2076e
commit fd8c009856

View File

@ -2312,10 +2312,14 @@ uint8_t hfp_hf_set_hf_indicator(hci_con_handle_t acl_handle, int assigned_number
hfp_connection->generic_status_update_bitmap |= (1 << i);
// send update
hfp_hf_run_for_context(hfp_connection);
break;
}
}
}
}
if (i == hfp_hf_indicators_nr){
return ERROR_CODE_COMMAND_DISALLOWED;
}
return ERROR_CODE_SUCCESS;
}