• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

system/bt


Commit MetaInfo

Revisionfc027b44bceda01fc4cfb1d63d19787a095d915c (tree)
Zeit2017-04-22 02:31:09
Autorandroid-build-team Robot <android-build-team-robot@goog...>
Commiterandroid-build-team Robot

Log Message

release-request-762540b1-1728-41bc-a9ce-e977f3e2683f-for-git_nyc-mr2-pixel-monthly-release-3888830 snap-temp-L22300000056915770

Change-Id: I6bcb0d7906f30abb7a42947d5f93b12a335a3e82

Ändern Zusammenfassung

Diff

--- a/stack/btm/btm_ble_gap.c
+++ b/stack/btm/btm_ble_gap.c
@@ -28,8 +28,6 @@
2828 #include <stdio.h>
2929 #include <stddef.h>
3030
31-#include <log/log.h>
32-
3331 #include "bt_types.h"
3432 #include "bt_utils.h"
3533 #include "btm_ble_api.h"
@@ -2287,7 +2285,7 @@ static void btm_ble_parse_adv_data(tBTM_INQ_INFO *p_info, UINT8 *p_data,
22872285 ** Returns void
22882286 **
22892287 *******************************************************************************/
2290-BOOLEAN btm_ble_cache_adv_data(tBTM_INQ_RESULTS *p_cur, UINT8 data_len, UINT8 *p, UINT8 evt_type)
2288+void btm_ble_cache_adv_data(tBTM_INQ_RESULTS *p_cur, UINT8 data_len, UINT8 *p, UINT8 evt_type)
22912289 {
22922290 tBTM_BLE_INQ_CB *p_le_inq_cb = &btm_cb.ble_ctr_cb.inq_var;
22932291 UINT8 *p_cache;
@@ -2307,16 +2305,8 @@ BOOLEAN btm_ble_cache_adv_data(tBTM_INQ_RESULTS *p_cur, UINT8 data_len, UINT8 *p
23072305 STREAM_TO_UINT8(length, p);
23082306 while ( length && ((p_le_inq_cb->adv_len + length + 1) <= BTM_BLE_CACHE_ADV_DATA_MAX))
23092307 {
2310- /* adv record size must be smaller than the total adv data size */
2311- if ((length + 1) > data_len) {
2312- BTM_TRACE_ERROR("BTM - got incorrect LE advertising data");
2313- android_errorWriteLog(0x534e4554, "33899337");
2314- return FALSE;
2315- }
23162308 /* copy from the length byte & data into cache */
23172309 memcpy(p_cache, p-1, length+1);
2318- /* reduce the total data size by size of data copied */
2319- data_len -= length + 1;
23202310 /* advance the cache pointer past data */
23212311 p_cache += length+1;
23222312 /* increment cache length */
@@ -2326,7 +2316,6 @@ BOOLEAN btm_ble_cache_adv_data(tBTM_INQ_RESULTS *p_cur, UINT8 data_len, UINT8 *p
23262316 STREAM_TO_UINT8(length, p);
23272317 }
23282318 }
2329- return TRUE;
23302319
23312320 /* parse service UUID from adv packet and save it in inq db eir_uuid */
23322321 /* TODO */
@@ -2551,9 +2540,7 @@ BOOLEAN btm_ble_update_inq_result(tINQ_DB_ENT *p_i, UINT8 addr_type, UINT8 evt_t
25512540 BTM_TRACE_WARNING("EIR data too long %d. discard", data_len);
25522541 return FALSE;
25532542 }
2554- if (!btm_ble_cache_adv_data(p_cur, data_len, p, evt_type)) {
2555- return FALSE;
2556- }
2543+ btm_ble_cache_adv_data(p_cur, data_len, p, evt_type);
25572544
25582545 p1 = (p + data_len);
25592546 STREAM_TO_UINT8 (rssi, p1);