• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

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

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


コミットメタ情報

リビジョンcbe04cc58cbf7f9aaf20d7b0ff423e87a3e00595 (tree)
日時2019-08-08 00:09:23
作者Jakub Pawlowski <jpawlowski@goog...>
コミッターVasyl Gello

ログメッセージ

DO NOT MERGE Send HCI Read Encryption Key properly

This patch fixes bad HCI command being send instead of Read Encryption
Key Size.

Bug: 124301137
Test: pair and connect with Bluetooth headset
Change-Id: If325ef2771ca1546ae58df7c684f66ae537b8573
(cherry picked from commit a3cc7575f9ce644a3dfceee61ab7b4b206a3982e)

変更サマリ

差分

--- a/stack/hcic/hcicmds.c
+++ b/stack/hcic/hcicmds.c
@@ -1375,9 +1375,12 @@ BOOLEAN btsnd_hcic_read_encryption_key_size(UINT16 handle) {
13751375 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE);
13761376 UINT8 *pp = (UINT8 *)(p + 1);
13771377
1378- p->len = HCIC_PREAMBLE_SIZE + 2;
1378+ p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE;
13791379 p->offset = 0;
13801380
1381+ UINT16_TO_STREAM (pp, HCI_READ_ENCR_KEY_SIZE);
1382+ UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE);
1383+
13811384 UINT16_TO_STREAM (pp, handle);
13821385
13831386 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p);