• 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

Revisionc1df74fba72308d56cd3cb5817df0f01121f83d0 (tree)
Zeit2020-04-14 23:54:21
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Avoid annoying crashing on VMware

Ändern Zusammenfassung

Diff

--- a/device/src/controller.cc
+++ b/device/src/controller.cc
@@ -329,13 +329,11 @@ static uint8_t* get_local_supported_codecs(uint8_t* number_of_codecs) {
329329
330330 static const bt_device_features_t* get_features_ble(void) {
331331 CHECK(readable);
332- CHECK(ble_supported);
333332 return &features_ble;
334333 }
335334
336335 static const uint8_t* get_ble_supported_states(void) {
337336 CHECK(readable);
338- CHECK(ble_supported);
339337 return ble_supported_states;
340338 }
341339
@@ -396,50 +394,42 @@ static bool supports_ble(void) {
396394
397395 static bool supports_ble_privacy(void) {
398396 CHECK(readable);
399- CHECK(ble_supported);
400397 return HCI_LE_ENHANCED_PRIVACY_SUPPORTED(features_ble.as_array);
401398 }
402399
403400 static bool supports_ble_set_privacy_mode() {
404401 CHECK(readable);
405- CHECK(ble_supported);
406402 return HCI_LE_ENHANCED_PRIVACY_SUPPORTED(features_ble.as_array) &&
407403 HCI_LE_SET_PRIVACY_MODE_SUPPORTED(supported_commands);
408404 }
409405
410406 static bool supports_ble_packet_extension(void) {
411407 CHECK(readable);
412- CHECK(ble_supported);
413408 return HCI_LE_DATA_LEN_EXT_SUPPORTED(features_ble.as_array);
414409 }
415410
416411 static bool supports_ble_connection_parameters_request(void) {
417412 CHECK(readable);
418- CHECK(ble_supported);
419413 return HCI_LE_CONN_PARAM_REQ_SUPPORTED(features_ble.as_array);
420414 }
421415
422416 static bool supports_ble_2m_phy(void) {
423417 CHECK(readable);
424- CHECK(ble_supported);
425418 return HCI_LE_2M_PHY_SUPPORTED(features_ble.as_array);
426419 }
427420
428421 static bool supports_ble_coded_phy(void) {
429422 CHECK(readable);
430- CHECK(ble_supported);
431423 return HCI_LE_CODED_PHY_SUPPORTED(features_ble.as_array);
432424 }
433425
434426 static bool supports_ble_extended_advertising(void) {
435427 CHECK(readable);
436- CHECK(ble_supported);
437428 return HCI_LE_EXTENDED_ADVERTISING_SUPPORTED(features_ble.as_array);
438429 }
439430
440431 static bool supports_ble_periodic_advertising(void) {
441432 CHECK(readable);
442- CHECK(ble_supported);
443433 return HCI_LE_PERIODIC_ADVERTISING_SUPPORTED(features_ble.as_array);
444434 }
445435
@@ -450,7 +440,6 @@ static uint16_t get_acl_data_size_classic(void) {
450440
451441 static uint16_t get_acl_data_size_ble(void) {
452442 CHECK(readable);
453- CHECK(ble_supported);
454443 return acl_data_size_ble;
455444 }
456445
@@ -466,7 +455,6 @@ static uint16_t get_acl_packet_size_ble(void) {
466455
467456 static uint16_t get_ble_suggested_default_data_length(void) {
468457 CHECK(readable);
469- CHECK(ble_supported);
470458 return ble_suggested_default_data_length;
471459 }
472460
@@ -478,13 +466,11 @@ static uint16_t get_ble_maximum_tx_data_length(void) {
478466
479467 static uint16_t get_ble_maxium_advertising_data_length(void) {
480468 CHECK(readable);
481- CHECK(ble_supported);
482469 return ble_maxium_advertising_data_length;
483470 }
484471
485472 static uint8_t get_ble_number_of_supported_advertising_sets(void) {
486473 CHECK(readable);
487- CHECK(ble_supported);
488474 return ble_number_of_supported_advertising_sets;
489475 }
490476
@@ -495,19 +481,16 @@ static uint16_t get_acl_buffer_count_classic(void) {
495481
496482 static uint8_t get_acl_buffer_count_ble(void) {
497483 CHECK(readable);
498- CHECK(ble_supported);
499484 return acl_buffer_count_ble;
500485 }
501486
502487 static uint8_t get_ble_white_list_size(void) {
503488 CHECK(readable);
504- CHECK(ble_supported);
505489 return ble_white_list_size;
506490 }
507491
508492 static uint8_t get_ble_resolving_list_max_size(void) {
509493 CHECK(readable);
510- CHECK(ble_supported);
511494 return ble_resolving_list_max_size;
512495 }
513496
@@ -517,7 +500,6 @@ static void set_ble_resolving_list_max_size(int resolving_list_max_size) {
517500 if (resolving_list_max_size != 0) {
518501 CHECK(readable);
519502 }
520- CHECK(ble_supported);
521503 ble_resolving_list_max_size = resolving_list_max_size;
522504 }
523505