@@ -405,7 +405,7 @@ static void cmd_complete_cb(enum hfp_result result, enum hfp_error cme_err,
case HFP_RESULT_DELAYED:
ev.type = HAL_HF_CLIENT_CMD_COMP_ERR_DELAYED;
break;
- case HFP_RESULT_BLACKLISTED:
+ case HFP_RESULT_REJECTED:
ev.type = HAL_HF_CLIENT_CMD_COMP_ERR_BACKLISTED;
break;
case HFP_RESULT_CME_ERROR:
@@ -721,7 +721,7 @@ bool hfp_gw_send_result(struct hfp_gw *hfp, enum hfp_result result)
case HFP_RESULT_BUSY:
case HFP_RESULT_NO_ANSWER:
case HFP_RESULT_DELAYED:
- case HFP_RESULT_BLACKLISTED:
+ case HFP_RESULT_REJECTED:
case HFP_RESULT_CME_ERROR:
case HFP_RESULT_NO_DIALTONE:
case HFP_RESULT_CONNECT:
@@ -1018,7 +1018,7 @@ static bool is_response(const char *prefix, enum hfp_result *result,
}
if (strcmp(prefix, "BLACKLISTED") == 0) {
- *result = HFP_RESULT_BLACKLISTED;
+ *result = HFP_RESULT_REJECTED;
*cme_err = 0;
return true;
}
@@ -20,7 +20,7 @@ enum hfp_result {
HFP_RESULT_BUSY = 7,
HFP_RESULT_NO_ANSWER = 8,
HFP_RESULT_DELAYED = 9,
- HFP_RESULT_BLACKLISTED = 10,
+ HFP_RESULT_REJECTED = 10,
HFP_RESULT_CME_ERROR = 11,
};
From: Archie Pusaka <apusaka@chromium.org> Prefer to use "rejected", as reflected in https://specificationrefs.bluetooth.com/language-mapping/Appropriate_Language_Mapping_Table.pdf --- android/handsfree-client.c | 2 +- src/shared/hfp.c | 4 ++-- src/shared/hfp.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)