• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

system/bt


コミットメタ情報

リビジョン6613e8524dfbbc2fb98b4c0ba822cc42a9afee33 (tree)
日時2019-11-14 13:21:27
作者anitha3x <anithax.h.chandrasekar@inte...>
コミッターChih-Wei Huang

ログメッセージ

A work around fix for incorrect controller response.

Reason: The controller did not send correct response
for read remote extended features for "page 1" request.
Since lmp extended features ssp was not true, the sm4
was not enabled. Therefore host did not initiate
authentication request. When L2CAP AVDTP connection
was established, the controller returned disconnect
complete with authentication failed reason.

Fix: Provided a retry of read remote extended features
request from host, when response for 'page 1' was
incorrect. This enabled authentication from host and
hence L2CAP AVDTP connection was successful.
Revert the changes, once contoller fix is available

Tracked-On: OAM-69566

Signed-off-by: anitha3x <anithax.h.chandrasekar@intel.com>

変更サマリ

差分

--- a/stack/btm/btm_acl.cc
+++ b/stack/btm/btm_acl.cc
@@ -936,9 +936,16 @@ void btm_process_remote_ext_features(tACL_CONN* p_acl_cb,
936936 BTM_TRACE_ERROR("%s: page=%d unexpected", __func__, page_idx);
937937 break;
938938 }
939- memcpy(p_dev_rec->feature_pages[page_idx],
940- p_acl_cb->peer_lmp_feature_pages[page_idx],
941- HCI_FEATURE_BYTES_PER_PAGE);
939+ if ((page_idx == 1) && !HCI_SSP_HOST_SUPPORTED(
940+ p_acl_cb->peer_lmp_feature_pages[page_idx])) {
941+ BTM_TRACE_ERROR("Not received response for Page 1, retry");
942+ btm_read_remote_ext_features(handle, page_idx);
943+ return;
944+ } else {
945+ memcpy(p_dev_rec->feature_pages[page_idx],
946+ p_acl_cb->peer_lmp_feature_pages[page_idx],
947+ HCI_FEATURE_BYTES_PER_PAGE);
948+ }
942949 }
943950
944951 if (!(p_dev_rec->sec_flags & BTM_SEC_NAME_KNOWN) ||