• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

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

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

system/bt


コミットメタ情報

リビジョン1eb8157cc78577d8559a2f477ab515896cd3ac55 (tree)
日時2019-11-14 13:21:27
作者Chih-Wei Huang <cwhuang@linu...>
コミッターChih-Wei Huang

ログメッセージ

Avoid annoying crashing on VMware

変更サマリ

差分

--- a/device/src/controller.cc
+++ b/device/src/controller.cc
@@ -322,13 +322,11 @@ static uint8_t* get_local_supported_codecs(uint8_t* number_of_codecs) {
322322
323323 static const bt_device_features_t* get_features_ble(void) {
324324 CHECK(readable);
325- CHECK(ble_supported);
326325 return &features_ble;
327326 }
328327
329328 static const uint8_t* get_ble_supported_states(void) {
330329 CHECK(readable);
331- CHECK(ble_supported);
332330 return ble_supported_states;
333331 }
334332
@@ -389,50 +387,42 @@ static bool supports_ble(void) {
389387
390388 static bool supports_ble_privacy(void) {
391389 CHECK(readable);
392- CHECK(ble_supported);
393390 return HCI_LE_ENHANCED_PRIVACY_SUPPORTED(features_ble.as_array);
394391 }
395392
396393 static bool supports_ble_set_privacy_mode() {
397394 CHECK(readable);
398- CHECK(ble_supported);
399395 return HCI_LE_ENHANCED_PRIVACY_SUPPORTED(features_ble.as_array) &&
400396 HCI_LE_SET_PRIVACY_MODE_SUPPORTED(supported_commands);
401397 }
402398
403399 static bool supports_ble_packet_extension(void) {
404400 CHECK(readable);
405- CHECK(ble_supported);
406401 return HCI_LE_DATA_LEN_EXT_SUPPORTED(features_ble.as_array);
407402 }
408403
409404 static bool supports_ble_connection_parameters_request(void) {
410405 CHECK(readable);
411- CHECK(ble_supported);
412406 return HCI_LE_CONN_PARAM_REQ_SUPPORTED(features_ble.as_array);
413407 }
414408
415409 static bool supports_ble_2m_phy(void) {
416410 CHECK(readable);
417- CHECK(ble_supported);
418411 return HCI_LE_2M_PHY_SUPPORTED(features_ble.as_array);
419412 }
420413
421414 static bool supports_ble_coded_phy(void) {
422415 CHECK(readable);
423- CHECK(ble_supported);
424416 return HCI_LE_CODED_PHY_SUPPORTED(features_ble.as_array);
425417 }
426418
427419 static bool supports_ble_extended_advertising(void) {
428420 CHECK(readable);
429- CHECK(ble_supported);
430421 return HCI_LE_EXTENDED_ADVERTISING_SUPPORTED(features_ble.as_array);
431422 }
432423
433424 static bool supports_ble_periodic_advertising(void) {
434425 CHECK(readable);
435- CHECK(ble_supported);
436426 return HCI_LE_PERIODIC_ADVERTISING_SUPPORTED(features_ble.as_array);
437427 }
438428
@@ -443,7 +433,6 @@ static uint16_t get_acl_data_size_classic(void) {
443433
444434 static uint16_t get_acl_data_size_ble(void) {
445435 CHECK(readable);
446- CHECK(ble_supported);
447436 return acl_data_size_ble;
448437 }
449438
@@ -459,7 +448,6 @@ static uint16_t get_acl_packet_size_ble(void) {
459448
460449 static uint16_t get_ble_suggested_default_data_length(void) {
461450 CHECK(readable);
462- CHECK(ble_supported);
463451 return ble_suggested_default_data_length;
464452 }
465453
@@ -471,13 +459,11 @@ static uint16_t get_ble_maximum_tx_data_length(void) {
471459
472460 static uint16_t get_ble_maxium_advertising_data_length(void) {
473461 CHECK(readable);
474- CHECK(ble_supported);
475462 return ble_maxium_advertising_data_length;
476463 }
477464
478465 static uint8_t get_ble_number_of_supported_advertising_sets(void) {
479466 CHECK(readable);
480- CHECK(ble_supported);
481467 return ble_number_of_supported_advertising_sets;
482468 }
483469
@@ -488,19 +474,16 @@ static uint16_t get_acl_buffer_count_classic(void) {
488474
489475 static uint8_t get_acl_buffer_count_ble(void) {
490476 CHECK(readable);
491- CHECK(ble_supported);
492477 return acl_buffer_count_ble;
493478 }
494479
495480 static uint8_t get_ble_white_list_size(void) {
496481 CHECK(readable);
497- CHECK(ble_supported);
498482 return ble_white_list_size;
499483 }
500484
501485 static uint8_t get_ble_resolving_list_max_size(void) {
502486 CHECK(readable);
503- CHECK(ble_supported);
504487 return ble_resolving_list_max_size;
505488 }
506489
@@ -510,7 +493,6 @@ static void set_ble_resolving_list_max_size(int resolving_list_max_size) {
510493 if (resolving_list_max_size != 0) {
511494 CHECK(readable);
512495 }
513- CHECK(ble_supported);
514496 ble_resolving_list_max_size = resolving_list_max_size;
515497 }
516498