From baef2fc88127730b26bc085bef0ebba41146663e Mon Sep 17 00:00:00 2001 From: Deokhyun Kim Date: Tue, 3 Sep 2019 13:26:58 +0900 Subject: [PATCH] Recover adapter when 'hci command disallowed' is responded vsc adv status of controller is abnormal while le connection & disconnection are repeated. Recover adapter when 'hci command disallowed' is responded. Change-Id: I1d39f3160784799ff2d7af7ded8c9ea8b7f8c579 Signed-off-by: Deokhyun Kim --- src/adapter_le_vsc_features.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/adapter_le_vsc_features.c b/src/adapter_le_vsc_features.c index f4241fc..518252e 100755 --- a/src/adapter_le_vsc_features.c +++ b/src/adapter_le_vsc_features.c @@ -283,6 +283,8 @@ gboolean adapter_le_enable_multi_adv (struct btd_adapter *adapter, if (HCI_SUCCESS != rp.status) { DBG("Fail to send VSC :: sub[%x] - status [0x%02x]", rp.subcode, rp.status); + if (HCI_COMMAND_DISALLOWED == rp.status) + adapter_send_event("HardwareError"); return FALSE; } -- 2.7.4