gengyuchao
5ca0f50231
Fix two bugs:
...
1.Fix supervision timeout in LLC DISC busy statue can not disconnect issue.
2.Solve the problem that the ble terminate ack packet may lose with a high probability in coex mode.
2020-11-10 03:00:43 +00:00
wangcheng
ffb4ff0e4b
components/bt: fix hci timeout, add timer to monitor scan evt
2020-11-06 14:17:11 +08:00
liqigan
640083c8cb
replace list and ringbuffer with fixed queue
...
use eventgroup to sync spp_vfs_write
each connection has a switch_delay_timer not sharing a one
revert functions like spp_find_slot_by_xxx
fix vfs read bug when peer close
2020-11-06 03:38:52 +00:00
liqigan
94093debab
move flow control to btc layer
...
defer free slot in btc layer when receive BTA_JV_RFCOMM_CLOSE_EVT
2020-11-06 03:38:52 +00:00
liqigan
76f41cc5e0
add event when calling spp API failed
2020-11-06 03:38:52 +00:00
Jiang Jiang Jian
778fe654aa
Merge branch 'bugfix/fix_ag_outging_callback_not_triggered_v4.2' into 'release/v4.2'
...
Bugfix/Fix Ag Example Outgoing Callback Not Triggered [backport v4.2]
See merge request espressif/esp-idf!11020
2020-11-06 11:08:26 +08:00
lly
b2bd4d1cb7
ble_mesh: test: Fix node test function not update role flag
2020-10-29 15:50:00 +08:00
weitianhua
000a533eaa
Fix controller dead when clkn overflow
2020-10-29 14:54:20 +08:00
liqigan
783c5ecee2
fix ag example outgoing callback not triggered
...
Closes https://github.com/espressif/esp-idf/issues/4967
2020-10-28 20:25:43 +08:00
wangcheng
138e1319b1
components/bt: fixed memory damage caused by bluetooth memory release
2020-10-28 19:05:22 +08:00
wangcheng
44e40500da
components/bt: fix assert(10, 9), when the AFPM happens. fix tx_prog insert error.
2020-10-28 19:05:12 +08:00
Jiang Jiang Jian
3d8f16e05d
Merge branch 'bugfix/btdm_bluedroid_enable_takes_long_time_v4.2' into 'release/v4.2'
...
Bugfix/btdm bluedroid enable takes long time v4.2
See merge request espressif/esp-idf!10701
2020-10-28 13:38:51 +08:00
Jiang Jiang Jian
e8cee449ea
Merge branch 'bugfix/nimble_host_rcv_pkt_length_check_v4.2' into 'release/v4.2'
...
NimBLE: host_rcv_pkt event buf size check. (v4.2)
See merge request espressif/esp-idf!10758
2020-10-27 18:49:43 +08:00
Jiang Jiang Jian
e40d3bb05d
Merge branch 'optimize/ble_mesh_make_buf_config_invisible_v4.2' into 'release/v4.2'
...
ble_mesh: stack: Make mesh buf debug option invisible (v4.2)
See merge request espressif/esp-idf!10794
2020-10-27 18:48:37 +08:00
Jiang Jiang Jian
22f49e0fa9
Merge branch 'bugfix/ble_mesh_settings_fix_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh settings fix (v4.2)
See merge request espressif/esp-idf!10784
2020-10-27 18:48:06 +08:00
Jiang Jiang Jian
dd3f1e346a
Merge branch 'feat/ble_mesh_device_properties_v2_v4.2' into 'release/v4.2'
...
Feat/ble mesh device properties v2 (v4.2)
See merge request espressif/esp-idf!10787
2020-10-27 18:47:34 +08:00
liqigan
e4e46b8384
1. fix read rssi delta bug in bredr
...
2. modify read rssi related function names
Closes https://github.com/espressif/esp-idf/issues/5660
2020-10-27 06:57:20 +00:00
andreachiara
882e924629
esp_ble_mesh: api: fixed comment about autoresp
2020-10-19 11:00:55 +08:00
lly
2724e02faf
ble_mesh: stack: Add mesh device properties v2 definitions
...
Also fixes wrong characteristic value length of some device
properties.
2020-10-15 12:17:54 +00:00
lly
3c1922864d
ble_mesh: stack: Move device property to model common part
2020-10-15 12:17:54 +00:00
lly
86af10c529
ble_mesh: stack: Make mesh buf debug option invisible
2020-10-15 11:48:59 +00:00
lly
c0678d65da
ble_mesh: stack: Use settings_core_erase when deinit
2020-10-15 11:48:14 +00:00
lly
2c8fc5f5d6
ble_mesh: stack: Fix storing next net_idx and app_idx
2020-10-15 11:48:14 +00:00
lly
5708d4a4e1
ble_mesh: stack: Continue restore even if failure happens
...
Previously we have used this solution for node info
restore. Here use the same solution for other mesh
information restore.
2020-10-15 11:48:14 +00:00
lly
094eeaf346
ble_mesh: stack: Split model settings store and clear
2020-10-15 11:48:14 +00:00
lly
c06ce57687
ble_mesh: stack: Erase netkey and appkey with key index
2020-10-15 11:48:14 +00:00
lly
ea0ff4e6d1
ble_mesh: stack: Add clear hb_pub in settings
2020-10-15 11:48:14 +00:00
lly
365c17614b
ble_mesh: stack: Transport rx reset settings update
...
When reset the rx info of transport layer, the
rpl list will always cleared, and rpl stored
in the nvs will only be erased when erase flag
is true and BLE_MESH_SETTINGS is enabled.
Compared with the previous solution, it should
be more clear.
2020-10-15 11:48:14 +00:00
lly
3b9057311b
ble_mesh: stack: Use erase settings functions
2020-10-15 11:48:14 +00:00
lly
2459b625f1
ble_mesh: stack: Use mutex for settings operation
...
Also expose the settings functions with the parameter
bt_mesh_nvs_handle_t, which will be used for further
updates.
2020-10-15 11:48:14 +00:00
lly
a47e89c4e4
ble_mesh: stack: Add role check before enabling device
2020-10-15 11:48:14 +00:00
lly
4b70056966
ble_mesh: stack: Define a type for mesh nvs handle
2020-10-15 11:48:14 +00:00
baohongde
9fe1469c70
components/bt: Fix waking up fail while sleeping
2020-10-15 09:13:22 +00:00
baohongde
f64d0ec873
components/bt: Make sleep avaliable in hli(for future use)
2020-10-15 09:13:22 +00:00
Chinmay Chhajed
d67e284c8d
NimBLE: host_rcv_pkt event buf size check.
...
Check if the size of HCI event buffer is greater than the received HCI
packet. If not then abort with the error message.
2020-10-09 09:28:51 +05:30
Jiang Jiang Jian
8223278050
Merge branch 'bugfix/ble_mesh_check_stack_init_v4.2' into 'release/v4.2'
...
ble_mesh: stack: Check if mesh stack initialized before init vendor client (v4.2)
See merge request espressif/esp-idf!10481
2020-09-30 10:53:56 +08:00
Jiang Jiang Jian
8e62a6992e
Merge branch 'optimize/ble_mesh_provisioner_delete_dev_v4.2' into 'release/v4.2'
...
ble_mesh: stack: Optimize Provisioner delete device function (v4.2)
See merge request espressif/esp-idf!10603
2020-09-30 10:52:48 +08:00
baohongde
d101b15942
components/coex: Some bugfix about ble dynamic prio
...
Rewrite ble dynamic prio to fix ble disconn in conn_param_update/channel_map_update
Rewrite ble dynamic prio in connection establishment
Fix ble dynamic prio with latency
Fix status bit set error when conn fail
2020-09-29 14:12:39 +08:00
lly
11108393f1
ble_mesh: stack: Optimize Provisioner delete device function
...
Since we have provided separate functions for deleting node
information with node's unicast address, device uuid, etc.
So we update the behavior of this function, which will only
be used to delete device information which is not provisioned
or just under provisioning.
2020-09-29 03:41:29 +00:00
lly
d312651c5c
ble_mesh: stack: Check if mesh stack initialized before init vendor client
2020-09-29 03:41:19 +00:00
Jiang Jiang Jian
17fca6235b
Merge branch 'bugfix/add_clear_bond_complete_evt_4_2' into 'release/v4.2'
...
componenet_bt/bugfix: add remove bond device complete event 4.2
See merge request espressif/esp-idf!10651
2020-09-29 11:15:55 +08:00
Jiang Jiang Jian
61e6e718e4
Merge branch 'bugfix/bredr_bugfix_release_for_qa_dummy_disconnect_4_2' into 'release/v4.2'
...
Bugfix/bredr bugfix release for qa dummy disconnect 4.2
See merge request espressif/esp-idf!10645
2020-09-29 11:15:30 +08:00
Island
d7317eaae1
Merge branch 'bugfix/channel_map_send_time_v4.2' into 'release/v4.2'
...
component/bt: Insert the llcp packet to the top of the tx_preg linked list.(backport 4.2)
See merge request espressif/esp-idf!10178
2020-09-29 10:40:26 +08:00
baohongde
2d90885e09
components/bt: Replace task post with btc_inter_profile_call, when post message from btc_dm to btc_gap
2020-09-28 15:09:37 +08:00
baohongde
2b4fae912c
components/bt: Fix clear bond fail when connected without ble included
2020-09-28 14:57:27 +08:00
xiongweichao
fba62f5e2e
add remove bond device complete event
2020-09-28 14:56:42 +08:00
xiongweichao
7f8c121791
1.revert dummy command
...
2.fix send MEDIA_CTRL command in disconnect
2020-09-28 10:42:02 +08:00
xiongweichao
a6cdf4ed1e
1.fix test case dummy
...
2.fix sink send media control ESP_A2D_MEDIA_CHECK_SRC_RDY
2020-09-28 10:41:53 +08:00
Jiang Jiang Jian
2db55a3b90
Merge branch 'bugfix/add_disconn_req_action_when_no_link_4.2' into 'release/v4.2'
...
Bugfix/add disconn req action when no link 4.2
See merge request espressif/esp-idf!10508
2020-09-27 11:17:43 +08:00
wangcheng
df301b89ec
component/bt: Fix assert(9, 10), Insert the llcp packet to the top of the tx_preg linked list
2020-09-25 18:43:14 +08:00
weitianhua
b7d4868a70
Confirmed bugfix from Baidu project
2020-09-22 11:44:09 +08:00
weitianhua
84cda60478
Redesign separating AVRC & A2DP
...
1. Add g_av_with_rc to avrc_tg_init function
2. Remove g_av_open_fail
3. Add comment in API files
4. Add a2dp init & deinit state variable to inidcate a2dp statement
2020-09-18 14:09:27 +08:00
weitianhua
e940e1d72a
Add global header and change declaration position
2020-09-18 14:09:19 +08:00
weitianhua
b16deb4473
Remove uneccessary macro
...
Separate AVRC from A2DP when AVRC not Initialized
2020-09-18 14:09:10 +08:00
weitianhua
306c978195
Rewrite a2dp clean_up function
2020-09-18 14:09:02 +08:00
weitianhua
59234501dd
Add bda_addr for esp_bt_a2dp_disconn_req API
...
1. Add reaction for a2dp snk & src disconn req when no link up
2. Change state machine set before EVT upto APP layer in some cases
3. Add bool open_fail to choose whether post disconnection evt to app layer
2020-09-18 14:08:53 +08:00
Jiang Jiang Jian
dddcc2ede8
Merge branch 'bugfix/add_protection_for_spp_api_4.2' into 'release/v4.2'
...
Bugfix/add protection for spp api 4.2
See merge request espressif/esp-idf!10281
2020-09-16 14:06:28 +08:00
lly
0fff4d46ec
ble_mesh: stack: Using the latest iv_index for provisioning
...
Provisioner should always uses the latest IV Index for provisioning.
For example, if the current IV Index is 0x00000001, but prov->iv_index
is still initialized with 0x00000000, and if Provisioner uses prov->
iv_index for provisioning, this will cause the Provisioner failing to
control the node.
So here bt_mesh.iv_index is used instead of prov->iv_index.
2020-09-11 10:55:47 +08:00
Jiang Jiang Jian
073e855c73
Merge branch 'bugfix/btdm_spp_null_ptr_with_dynamic_memory_v4.2' into 'release/v4.2'
...
components/bt: Fix SPP using NULL point with dynamic memory
See merge request espressif/esp-idf!10322
2020-09-10 17:39:14 +08:00
Island
c81b139479
Merge branch 'feat/ble_mesh_use_model_c_v4.2' into 'release/v4.2'
...
ble_mesh: stack: Use model callback for operations [Zephyr] (v4.2)
See merge request espressif/esp-idf!10362
2020-09-10 10:39:33 +08:00
Island
fa33addb4a
Merge branch 'bugfix/ble_mesh_remove_assert_v4.2' into 'release/v4.2'
...
ble_mesh: stack: Avoid using assert in mesh stack (v4.2)
See merge request espressif/esp-idf!10358
2020-09-10 10:38:47 +08:00
lly
61bb586244
ble_mesh: stack: Use model callback for operations [Zephyr]
...
- Previously when a model is initialized or deinitialized, in the
access layer, we need to check the model id with the ids in the
table in order to find the proper model operation function.
- Currently all the operation functions of each model will be set
during the mesh initialization. When the model is found, we can
directly use the corresponding callback for different operations.
- Currently only init/deinit operations are registered, later we
will add more operations.
2020-09-09 13:59:32 +08:00
lly
1f9d289ee0
ble_mesh: stack: Avoid using assert in mesh stack
2020-09-09 10:57:07 +08:00
lly
4eec2c64ee
ble_mesh: nimble: Fix updating ccc handle with wrong value
2020-09-08 21:01:32 +08:00
baohongde
ad8b3e4274
components/bt: Fix SPP using NULL point with dynamic memory
2020-09-07 15:44:28 +08:00
wangcheng
a7d52dafa6
component/bt: Fixed the watchdog timeout of btu task during multi-connection
2020-09-04 16:27:03 +08:00
weitianhua
a7ddc9c125
Add protection for rfcomm close API in SPP
2020-09-04 14:40:27 +08:00
weitianhua
07e2d3ab0f
Add some debug log for bt:
...
1. Add logs for SPP not enabled successfully
2. Add information to Applicatioin layer that the A2DP is connecting to peer device
Regular BTC and BTU Task name & Add BTC Init protection
1. Regular the BTC Task Name to Close a Github issue
Closes https://github.com/espressif/esp-idf/issues/4966
2. Add BTC Init failure protection
3. Regular BTU Task Name with BTC
4. Correct the comment of
a. SDP_ServiceSearchRequest and SDP_ServiceSearchRequest2
b. l2cu_create_conn_after_switch
5. Correct comment of esp_bt_hf_vra();
6. Fix cpp compilier region
2020-09-04 14:40:19 +08:00
wangcheng
12633717f7
components/bt: Fixed the state not synchronized between controller and host when disconnected.
2020-09-02 21:43:57 +08:00
Island
9cd0e2fd1a
Merge branch 'bugfix/btdm_blufi_data_sequence_not_reset_after_disconnect_v4.2' into 'release/v4.2'
...
component/bt: fix Blufi sends data after disconnect the seq still increase(backport v4.2)
See merge request espressif/esp-idf!10241
2020-09-02 14:20:49 +08:00
XieWenxiang
82deea84eb
component/bt: fix Blufi sends data after disconnect the seq still increase(backport v4.2)
2020-09-02 11:18:25 +08:00
Island
7d79d9f312
Merge branch 'bugfix/btdm_blufi_send_longer_custom_data_will_congested_v4.2' into 'release/v4.2'
...
component/bt: fix Blufi sends longer customer data will will lead congested(backport v4.2)
See merge request espressif/esp-idf!9948
2020-08-28 13:55:46 +08:00
XieWenxiang
51ff44d96e
component/bt: fix Blufi sends longer customer data will will lead congested(backport v4.2)
2020-08-28 10:20:19 +08:00
Jiang Jiang Jian
b498f0aebe
Merge branch 'bugfix/buff_semaphore_not_free_v4.2' into 'release/v4.2'
...
component/bt: Fixed ble memory leak issue, buff_semaphore was not released.
See merge request espressif/esp-idf!9983
2020-08-24 17:30:54 +08:00
Jiang Jiang Jian
98d5b5dfd9
Merge branch 'feature/esp_spp_stop_srv_v4.2' into 'release/v4.2'
...
bugfix/Add API esp_spp_stop_srv and fix collection of SPP [backport v4.2]
See merge request espressif/esp-idf!9993
2020-08-15 15:46:54 +08:00
wangcheng
a557746cdd
component/bt: Fixed ble memory leak issue, buff_semaphore was not released.
2020-08-14 17:16:23 +08:00
liqigan
6e94f6f9f4
add API esp_spp_stop_srv(), fix the error parameter in esp-idf/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/example_spp_initiator_demo.c and fix collection of SPP
...
Closes https://github.com/espressif/esp-idf/issues/5409
Closes https://github.com/espressif/esp-idf/pull/5408
See merge request espressif/esp-idf!9114
2020-08-13 12:08:28 +08:00
lly
c24de8dc10
ble_mesh: stack: Client model related code clean
2020-08-07 21:11:34 +08:00
lly
59a590fb25
ble_mesh: stack: Rename cfg & health client status recv func
2020-08-07 21:11:34 +08:00
lly
f0b89688c9
ble_mesh: stack: Check client msg result in common func
2020-08-07 21:11:34 +08:00
lly
41aea8e528
ble_mesh: stack: Fix no events for some error conditions
2020-08-07 21:11:34 +08:00
lly
bc19eb2506
ble_mesh: stack: Move client role set to the msg function
2020-08-07 21:11:33 +08:00
lly
964f372d58
ble_mesh: stack: Remove some not used client parameters
2020-08-07 21:11:33 +08:00
lly
29749b9dae
ble_mesh: stack: Remove some not used variables & functions
2020-08-07 21:11:33 +08:00
lly
c058f3594f
ble_mesh: stack: Update client model msg send
2020-08-07 21:11:33 +08:00
Jiang Jiang Jian
7162964776
Merge branch 'feature/enable_pcm_config_v4.2' into 'release/v4.2'
...
Feature/enable pcm config v4.2
See merge request espressif/esp-idf!9652
2020-08-07 14:19:03 +08:00
weitianhua
8de78c2b3b
Seperate BTA_JV_L2CAP for less bin size
2020-08-01 16:40:43 +08:00
weitianhua
64eab16847
Enable PCM config in controller
2020-08-01 16:37:34 +08:00
weitianhua
0952b9de8a
Enable PCM Config in Host
2020-08-01 16:36:36 +08:00
Jiang Jiang Jian
e7179db204
Merge branch 'nimble/nrpa_support_v4.2' into 'release/v4.2'
...
NimBLE: Add Non-Resolvable private address support and misc bug fixes (Backport v4.2)
See merge request espressif/esp-idf!9741
2020-07-29 19:05:01 +08:00
Chinmay Chhajed
9cf4dd20e0
Bluedroid: Fixes cases having fallback to link up event.
...
Signed-off-by: Chinmay Chhajed <chinmay.chhajed@espressif.com>
2020-07-27 13:52:58 +05:30
Prasad Alatkar
a4e8e56288
NimBLE: Add Non-Resolvable private address support and misc bug fixes (Backport v4.2)
...
- Merges https://github.com/espressif/esp-nimble/pull/12
- Fixes repeated pairing failure in RPA feature
Closes https://github.com/espressif/esp-idf/issues/5530
2020-07-24 06:55:22 +00:00
Jiang Jiang Jian
0bcd26a610
Merge branch 'bugfix/fix_hci_max_page_num_v4.2' into 'release/v4.2'
...
bugfix/Support for more Bluetooth HID devices [backport v4.2]
See merge request espressif/esp-idf!9660
2020-07-21 12:10:59 +08:00
Jiang Jiang Jian
15e40f909f
Merge branch 'bugfix/fix_get_bond_device_list_v4.2' into 'release/v4.2'
...
bugfix/fix esp_bt_gap_get_bond_device_list bug [backport v4.2]
See merge request espressif/esp-idf!9666
2020-07-21 12:10:24 +08:00
boblane
e14906f073
fix esp_bt_gap_get_bond_device_list bug
...
Closes https://github.com/espressif/esp-idf/issues/5395
2020-07-17 15:06:39 +08:00
lly
b39eaf61b5
ble_mesh: stack: Fix recv health current status incorrectly
2020-07-17 14:05:18 +08:00
DerfJagged
d1506fdae0
Support for more Bluetooth HID devices
...
Some Bluetooth devices - such as an Xbox One S controller (model 1708) - report more than two external features pages and are rejected immediately. Pages 1 and 2 are marked as unhandled in btm_devctl.c anyway, so there is no reason to block devices with more pages.
(IDFGH-3515)
Signed-off-by: liqigan <liqigan@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/5481
Closes https://github.com/espressif/esp-idf/issues/5470
2020-07-17 10:07:41 +08:00
lly
2e01297603
ble_mesh: stack: Only keep func pointer for very common log
...
Currently only keep func pointer for the followings:
- Invalid parameter (mesh btc & mesh stack)
- Out of memory (mesh btc & mesh stack)
- Unknown act (mesh btc)
- Invalid model user data (mesh stack)
- BT_DBG("%s", __func__) (mesh btc & mesh stack)
- A few other specific situations (buf ref debug, send status check)
2020-07-16 11:02:24 +08:00
lly
5fceac92ee
ble_mesh: stack: Make proxy server & client functions clear
2020-07-16 11:02:24 +08:00
lly
fc99963376
ble_mesh: stack: Add proxy cfg pdu length check
2020-07-15 16:10:48 +08:00
lly
1846def7ac
ble_mesh: stack: Rework using dev flag to check scan status
...
Different bluetooth host has different behaviors, so it's better
to maintain a scan check mechanism of BLE Mesh itself.
Fixes an issue when only PB-GATT is enabled for node, which will
output a scan error log when the device is provisioned.
2020-07-15 16:10:48 +08:00
lly
37322ce93f
ble_mesh: stack: Add more checks about input prov bearers
2020-07-15 16:10:48 +08:00
lly
a6dcfb4a5a
ble_mesh: stack: Rename mesh adv queue and relay queue
2020-07-14 21:19:32 +08:00
lly
efcd9ee4a8
ble_mesh: stack: Use macros for adv task name & prio
2020-07-14 21:19:32 +08:00
lly
6abfc2a8f7
ble_mesh: stack: Make freertos static allocation visible
2020-07-14 21:19:32 +08:00
lly
c0db196464
ble_mesh: stack: Add a option of using IRAM for memory allocation
2020-07-14 21:19:32 +08:00
weitianhua
b716800000
Fix error of AG API return line
...
Closes https://github.com/espressif/esp-idf/issues/5554
2020-07-14 14:43:15 +08:00
Jiang Jiang Jian
1f8c5b2b64
Merge branch 'docs/fix_event_typo_backport_v4.2' into 'release/v4.2'
...
docs/fix event typo backport v4.2
See merge request espressif/esp-idf!9382
2020-07-12 21:24:03 +08:00
lly
615d64b6f9
ble_mesh: stack: Add two application macros for TTL
2020-07-10 09:13:53 +08:00
lly
1ec2f98691
ble_mesh: stack: Update send_ttl in btc when recv a msg
...
Update send_ttl mainly for server models. When a server model
receives a message, and the status is required to be replied
by the application, we need to set send_ttl to the msg context.
If send_ttl is not updated in btc, and the applcation does not
set the TTL either, then the status will be replied with TTL=0,
which may cause the client side (e.g. the phone App) failed to
receive the status.
Closes https://github.com/espressif/esp-idf/issues/5300
2020-07-10 09:13:53 +08:00
lly
dd6de08bea
ble_mesh: stack: Update some fast prov functions
2020-07-03 08:53:16 +08:00
lly
661e1f2500
ble_mesh: stack: Move fast prov functions to a single file
2020-07-03 08:53:16 +08:00
lly
76baeba6b7
ble_mesh: ci: Fix failing to compile when using make
2020-07-02 03:53:50 +00:00
lly
7e7d2ae401
ble_mesh: Mark platform related default RNG as 0
2020-07-02 03:53:50 +00:00
lly
d9e8508981
ble_mesh: Remove the previously added redundant aes files
2020-07-02 03:53:50 +00:00
lly
11406d7ee8
ble_mesh: Update CMake and make files for tinycrypt
2020-07-02 03:53:50 +00:00
lly
80837bd936
ble_mesh: Update tinycrypt header file include guards
...
Add BLE_MESH in the macro to make it specific for BLE Mesh.
2020-07-02 03:53:50 +00:00
lly
3c0584f013
ble_mesh: Format source and header files of tinycrypt
2020-07-02 03:53:50 +00:00
lly
f1f3c7afd6
ble_mesh: Port full implementation of tinycrypt [Zephyr]
...
- Original code is here: https://github.com/zephyrproject-rtos/tinycrypt
- Also this fixes the compile error when NimBLE and ESP BLE Mesh
both uses the tinycrypt.
2020-07-02 03:53:50 +00:00
Island
fcef568c70
Merge branch 'bugfix/ble_mesh_compile_error_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh compile error (v4.2)
See merge request espressif/esp-idf!9430
2020-07-02 11:28:55 +08:00
Jiang Jiang Jian
655772ec23
Merge branch 'feature/bt_secure_conn_downgrade_check_v4.2' into 'release/v4.2'
...
Bluedroid: Authentication fixes in Legacy and Secure Connection.
See merge request espressif/esp-idf!9336
2020-07-01 13:48:46 +08:00
lly
b239677c97
ble_mesh: stack: Fix compile error when only proxy enabled
...
Also remove some redundant CONFIG_BLE_MESH_PROXY checks, because
when the following options are satisfied, the CONFIG_BLE_MESH_PROXY
option will be selected mandatorily.
2020-07-01 11:54:32 +08:00
Island
f1642bfaaf
Merge branch 'bugfix/ble_mesh_set_recv_rssi_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh set recv rssi (v4.2)
See merge request espressif/esp-idf!9390
2020-07-01 11:31:47 +08:00
Island
e9f21b096f
Merge branch 'bugfix/ble_mesh_check_subnet_before_update_beacon_sent_v4.2' into 'release/v4.2'
...
ble_mesh: Check if subnet exists before updating beacon_sent (v4.2)
See merge request espressif/esp-idf!9395
2020-07-01 11:16:16 +08:00
Chinmay Chhajed
ec043aac06
Bluedroid: Authentication fixes in Legacy and Secure Connection.
...
Prevent a remote device from doing a Bluetooth Impersonation Attack
(BIAS) by:
- Preventing remote device to downgrade secure connection
feature mask. Secure connection feature mask should remain same or
increase to enabled in link key generation and authentication.
- Doing a mutual authentication during Legacy Authentication.
Signed-off-by: Chinmay Chhajed <chinmay.chhajed@espressif.com>
2020-06-30 14:41:46 +05:30
Jiang Jiang Jian
6938c615d8
Merge branch 'bugfix/connect_param_check_and_channel_map_bugs_v4.2' into 'release/v4.2'
...
components/bt:Fix channel map instant reverse and add ble connect paramter check.(backport 4.2)
See merge request espressif/esp-idf!9236
2020-06-30 15:11:56 +08:00
lly
6f715c4472
ble_mesh: Check if subnet exists before updating beacon_sent
...
- Before updating the "beacon_sent" of a subnet, we need to check
if the subnet still exists, especially for a Provisioner.
- Fix a bug which will cause Provisioner failed to send Secure
Network Beacon if no device is provisioned
2020-06-30 09:22:21 +08:00
lly
3fa5daf0ba
ble_mesh: stack: Copy recv_rssi for other received messages
...
Follow the commit: 2b80cb6883
,
copy the recv_rssi for other mesh messages.
2020-06-30 09:05:23 +08:00
mbroek
4b3bb6c8fd
When a generic mesh model message is received "bt_mesh_generic_server_cb_evt_to_btc" copies the
...
ctx values to cb_params for the mesh stack.
recv_rssi was not copied.
This means the rssi could not be read when receiving generic server messages using ble_mesh.
2020-06-30 09:05:23 +08:00
liminyang
5bf8bb6d3a
docs:fix event typo
...
1.In the description of the ESP_API header file, it should be the event that the application layer needs to handle, not the BTA layer.
2.Fix name typo of BTA_GATTS_CREATE_SRVC_EVT event
Closes https://github.com/espressif/esp-idf/issues/5446
2020-06-29 20:48:48 +08:00
Island
00148cd0c6
Merge branch 'bugfix/ble_mesh_get_node_with_name_v4.2' into 'release/v4.2'
...
ble_mesh: Get node info with pre-configured node name (v4.2)
See merge request espressif/esp-idf!9302
2020-06-28 20:25:32 +08:00
Island
3c92395170
Merge branch 'bugfix/ble_mesh_bt_hex_v4.2' into 'release/v4.2'
...
ble_mesh: Fix wrong log output with bt_hex (v4.2)
See merge request espressif/esp-idf!9309
2020-06-28 20:24:31 +08:00
Island
257384ea75
Merge branch 'bugfix/ble_mesh_not_define_bool_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh not define bool (v4.2)
See merge request espressif/esp-idf!9316
2020-06-28 20:23:21 +08:00
lly
698fe7dd99
ble_mesh: stack: Check model status with variable length
2020-06-24 14:12:53 +08:00
lly
bd5ef62253
ble_mesh: Remove boolean type definitions
2020-06-24 14:05:58 +08:00
Nikolaos Strikos
5bacf6b23d
ble_mesh: Do not #define bool when compiling in C++
2020-06-24 14:05:58 +08:00
lly
55f48877a4
ble_mesh: Fix wrong log output with bt_hex
...
- This issue was introduced in the commit: a788e7cd3d
which updated the bt_hex() function incorrectly.
- And in bt_hex(), we use 2 for the two-dimensional array, because currently
at most two bt_hex() will be used at the same time. Also this will save
some DRAM compared with using 4.
2020-06-24 12:29:33 +08:00
lly
b4b2cd19f7
ble_mesh: Get node info with pre-configured node name
...
Also add a function to get the entry of the nodes table.
Closes https://github.com/espressif/esp-idf/issues/5397
2020-06-24 10:58:36 +08:00
Island
aaeb2ba733
Merge branch 'bugfix/att_buffer_count_fixed_v4.2' into 'release/v4.2'
...
Bugfix/att buffer count fixed v4.2
See merge request espressif/esp-idf!9161
2020-06-22 11:44:54 +08:00
wangcheng
12d39f9faa
components/bt:Fix instant reverse and add ble connect paramter check.
2020-06-18 15:54:53 +08:00
Island
710249c86a
Merge branch 'bugfix/blufi_buffer_overflow_report_v4.2' into 'release/v4.2'
...
blufi: When the format of the received data packet is wrong, reply with an error response(backport 4.2)
See merge request espressif/esp-idf!9201
2020-06-18 13:44:52 +08:00
baohongde
783cd1bb08
components/bt: Fix ble disconnect due to instant of channel map update is too small
2020-06-17 07:15:46 +00:00
baohongde
d4b232590a
Set AFH in time(075dd35)
...
Send LMP_channelClassification immediately
Fix first LMP_set_AFH not using host value
2020-06-17 07:15:46 +00:00
baohongde
ef92a22b0c
components/coex: Fix ble connecting fail in coexist
2020-06-17 07:15:46 +00:00
Wang Cheng
21ff2f84ce
components/bt: Add a detailed description for the user to distinguish the function of the query buffer api.
2020-06-17 12:52:28 +08:00
Geng Yu Chao
02cd178115
Update the limited of function esp_ble_get_sendable_packets_num.
2020-06-17 12:52:18 +08:00
wangcheng
17609cbb02
blufi: When the format of the received data packet is wrong, reply with an error response
2020-06-17 12:19:00 +08:00
liqigan
4dd29dac94
components/bt: Adjust the description of esp_bt_gap_start_discovery
and esp_bt_gap_cancel_discovery
.
...
Add some comments to explain why `ESP_BT_GAP_DISC_STATE_CHANGED_EVT` is not reported.
2020-06-16 22:18:21 +08:00
wangcheng
7f299d9d60
components/bt: Consider link_xmit_data_q in congest events to prevent excessive memory usage
2020-06-13 15:10:30 +08:00
wangcheng
d53a2719b9
components/bt: Fixed the problem of incomplete data packets caused by disordered acl data packets
2020-06-13 15:09:45 +08:00
wangcheng
f9b0cd1847
components/bt: Add api to query the number of available buffers for the current connection
2020-06-13 15:09:36 +08:00
Island
a8f40b7095
Merge branch 'bugfix/ble_mesh_remove_relay_dependency_v4.2' into 'release/v4.2'
...
ble_mesh: Remove relay option dependency (v4.2)
See merge request espressif/esp-idf!9025
2020-06-03 15:20:35 +08:00
Island
9bdaa64d80
Merge branch 'bugfix/ble_mesh_example_nvs_store_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh example nvs store (v4.2)
See merge request espressif/esp-idf!9015
2020-06-03 15:11:54 +08:00
Island
55cd09578f
Merge branch 'bugfix/ble_mesh_model_recv_fix_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh model recv fix (v4.2)
See merge request espressif/esp-idf!9006
2020-06-03 15:11:15 +08:00
Island
118b69ce0d
Merge branch 'bugfix/ble_mesh_rework_prov_pdu_len_check_v4.2' into 'release/v4.2'
...
ble_mesh: Rework prov pdu length check (v4.2)
See merge request espressif/esp-idf!9002
2020-06-03 15:10:33 +08:00
lly
eeb44e7dd6
ble_mesh: Remove relay option dependency
...
When the relay functionality of a node is not enabled, this
issue will cause the node failing to send messages to fixed
group.
2020-06-02 19:18:18 +08:00
lly
adf785a1b0
ble_mesh: Config and health client btc fixes
...
Fix an issue which may cause no error code is returned
when sending config client or health client messages
with invalid parameters.
2020-06-02 14:02:54 +08:00
lly
b25cffd4d5
ble_mesh: Add more checks of net_idx & app_idx
2020-06-02 14:02:54 +08:00
lly
4919d17ad1
ble_mesh: Optimize some send & recv logs
2020-06-02 14:02:53 +08:00
lly
1a3c315d2f
ble_mesh: correct the return type [Zephyr]
2020-06-02 10:31:08 +08:00
lly
8271ae4a1e
ble_mesh: Add net_buf_simple_init_with_data [Zephyr]
2020-06-02 10:31:08 +08:00
lly
d6a247f7e4
ble_mesh: Optimize model recv operations [Zephyr]
...
Previously the model recv operation is a littl fuzzy.
With the changes, the model recv operation is splitted into:
- find op
- check app_idx
- check dst
- check length
- update info & handle message
2020-06-02 10:31:07 +08:00
lly
4fbc29616c
ble_mesh: Rework prov pdu length check
2020-06-02 10:13:21 +08:00
lly
067d94e88f
ble_mesh: Local model (un)subscribes group address
2020-06-01 09:10:17 +08:00
lly
6bc4f5802d
ble_mesh: Define a macro for invalid company id
2020-06-01 09:10:17 +08:00
Jiang Jiang Jian
8f2d1e7f92
Merge branch 'bugfix/collection_of_confirmed_fixes_from_baidu_project' into 'master'
...
Bugfix/collection of confirmed fixes from baidu project
Closes BT-826, BT-542, BCI-31, BCI-34, BT-840, and AUD-1857
See merge request espressif/esp-idf!8675
2020-05-28 12:23:58 +08:00
lly
6768c2b7a1
ble_mesh: Check the result of creating timer
2020-05-27 09:30:34 +00:00
Island
3b85d4ef24
Merge branch 'bugfix/ble_mesh_sync_zephyr_fixes' into 'master'
...
Bugfix/ble mesh sync zephyr fixes
Closes BLEMESH-215
See merge request espressif/esp-idf!8912
2020-05-27 17:26:00 +08:00
Island
d82f3372a0
Merge branch 'bugfix/ble_mesh_not_use_same_private_key' into 'master'
...
ble_mesh: Not using pre-initialized private key
Closes BLEMESH-214
See merge request espressif/esp-idf!8905
2020-05-27 17:25:39 +08:00
Island
02376b97d4
Merge branch 'bugfix/ble_mesh_uses_deprecated_config' into 'master'
...
ble_mesh: Fix using old config for duplicate scan
Closes BLEMESH-213
See merge request espressif/esp-idf!8898
2020-05-27 17:23:55 +08:00
Island
7b12d96169
Merge branch 'bugfix/ble_mesh_comp_data_store_restore' into 'master'
...
ble_mesh: Same func for storing/restoring comp data
See merge request espressif/esp-idf!8882
2020-05-27 17:23:21 +08:00
lly
0cfb6c138b
ble_mesh: Transport tx fields overflow [Zephyr]
...
The transport segmented TX nack and seg_pending fields must be at least
6 bits to avoid overflow for 32 segment messages. This change rearranges
the seg_tx fields to gather all state flag fields in one byte, while
making the counter fields whole bytes.
2020-05-26 11:42:31 +08:00
lly
f863a1b328
ble_mesh: Friend with unknown appkey [Zephyr]
...
Ensures that friend messages are enqueued, even if the packet is
received with an appkey is unknown to the friend. Previously, sdu_recv
would return EINVAL if the appkey was unknown, which would prevent the
lower transport layer from adding the packet to the friend queue. This
is irrelevant for the logic in lower transport, and should not be
returned as an error.
2020-05-26 11:16:01 +08:00
lly
05c287e05c
ble_mesh: Not using pre-initialized private key
2020-05-26 10:46:22 +08:00
lly
3c1487be0e
ble_mesh: Fix using old config for duplicate scan
2020-05-25 16:48:15 +08:00
Angus Gratton
084e170a8f
Merge branch 'refactor/esp_ipc' into 'master'
...
Split esp_ipc to a seaparate component
Closes IDF-1295
See merge request espressif/esp-idf!8520
2020-05-25 15:03:04 +08:00
lly
bbbdbb8699
ble_mesh: Same func for storing/restoring comp data
2020-05-25 13:27:08 +08:00
lly
af37aee5bf
ble_mesh: Fix Provisioner failed to publish
2020-05-22 15:32:12 +08:00
lly
b1f3843ed6
ble_mesh: Clear two more vars during proxy server deinit
2020-05-20 11:35:26 +00:00
lly
d5b126667a
ble_mesh: Add missing sdkconfig.h
2020-05-20 11:35:26 +00:00
lly
4e60919a66
ble_mesh: Init device name during proxy server init
...
Device name will be reset when deinit mesh stack. If not
initializing device name during the next mesh stack init,
it will fail to set the device name when using bluedroid.
2020-05-20 11:35:26 +00:00
lly
a0ce8c64b0
ble_mesh: Add init flag for friend init/deinit
...
Since bt_mesh_friend_init() will only be invoked when
a device is provisioned or Provisioner is enabled, so
we add a flag to indicate if the friend functionality
is initialized in case deinit before initialization.
2020-05-20 11:35:26 +00:00
Jiang Jiang Jian
05f4668ad0
Merge branch 'nimble/update_nimble_submodule' into 'master'
...
NimBLE: Include upstream fixes and use macros for log level filtering
See merge request espressif/esp-idf!8448
2020-05-20 11:23:46 +08:00
Darian Leung
11d96b39d0
esp_ipc: Move to new component
...
This commit moves esp_ipc into a separate component.
2020-05-18 16:51:45 +08:00
weitianhua
8fc05d0665
Fix ASSERT for RXDESC and save the log for debug
2020-05-18 06:51:51 +00:00
weitianhua
8d1032ccac
Fix ASSERT in ld_acl at line 302 forclkoff1 and localval
2020-05-18 06:51:51 +00:00
weitianhua
77cc105c72
Fix ld_acl schedule bug to parity shift
2020-05-18 06:51:51 +00:00
weitianhua
55877684a0
Fix ASSERT(64,0) in rwble.c
2020-05-18 06:51:51 +00:00
weitianhua
0811851378
Fix ASSERT in ld_pscan.c at line 1032
2020-05-18 06:51:51 +00:00
weitianhua
b20f254483
Free lmp tx buf in EM in the procedure of handling LMP_detach_Req when not received the last acknowledge from peer device and seperate them by ACL State
2020-05-18 06:51:51 +00:00
weitianhua
190ff3ae37
Fix that when slave initiate unsniff procedure and meet transaction collision, no mode change event is repoerted
2020-05-18 06:51:51 +00:00
weitianhua
70fa5b4ac5
Fix int_wdt due to disable interrupt too long time
2020-05-18 06:51:51 +00:00
weitianhua
c18ed5cbee
Fix Connection fail in loop
2020-05-18 06:51:51 +00:00
weitianhua
7aeb3d329a
Set AFH in BTDM Task when WiFi changes channel
2020-05-18 06:51:51 +00:00
weitianhua
e0e1154b62
Fix ASSERT(25,0) in lc_task.c
2020-05-18 06:51:51 +00:00
weitianhua
899e49b90e
Disable frequent warning log in ld_acl
2020-05-18 06:51:51 +00:00
weitianhua
b45f2d3913
Move default log level to WARNING instead ERROR in BT Controller
2020-05-18 06:51:51 +00:00
Jiang Jiang Jian
bef57a8ddc
Merge branch 'bugfix/V3.1.7_ble_bug_mr' into 'master'
...
component/bt: fix notify malloc failed , fix no BLE_AUTH_CMPL_EVT and fix bluedroid btc deinit crash
See merge request espressif/esp-idf!8729
2020-05-16 19:52:34 +08:00
zhiweijian
ec6c7558ef
add congest direct callback and fix malloc failed when multi_connection notify performance test
2020-05-15 15:35:39 +08:00
lly
25a6ea9600
ble_mesh: Remove patch for the bug of an App
2020-05-14 10:24:15 +08:00