lly
fc27117299
ble_mesh: stack: Enable updating lighting hsl state
2021-02-07 11:39:53 +08:00
lly
eb52b1da96
ble_mesh: stack: Fix using wrong | for OR between macros
2021-02-07 11:36:45 +08:00
lly
4e8a53aec2
ble_mesh: stack: Fix compile warning with BIT macro
2021-02-07 11:33:00 +08:00
lly
938530b193
ble_mesh: stack: Update mesh max conn macro when using bluedroid
2021-02-07 11:32:55 +08:00
lly
bdf6d3e8cb
ble_mesh: stack: Support reporting normal ble adv packets
2021-02-05 21:22:52 +08:00
lly
e06a5587c7
ble_mesh: stack: Add a btc file for ble coex functions
...
Previously if starting/stopping BLE advertising when BLE Mesh
is enabled, the corresponding events will be notified through
the callback registered by esp_ble_mesh_register_prov_callback().
With this commit, the func esp_ble_mesh_register_ble_callback()
needs to be invoked for resgitering the callback used for BLE
coexistence related functionalities (i.e. ADV/SCAN).
2021-02-05 21:22:52 +08:00
lly
228ab398b9
ble_mesh: stack: Move ble scan funcitons to a single file
2021-02-05 21:22:52 +08:00
lly
9cff5797a1
ble_mesh: stack: Optimize handling received mesh adv packets
2021-02-05 21:22:52 +08:00
lly
1cdd2b0609
ble_mesh: stack: Move bt_mesh_rand to mesh_common.c
2021-02-05 14:55:38 +08:00
lly
a0da80fe89
ble_mesh: stack: Remove useless BT_DBG_ENABLED in a few files
2021-02-05 14:55:33 +08:00
lly
f3ff34d818
ble_mesh: Replace zephyr integer types with C99 types [Zephyr]
2021-02-05 14:55:11 +08:00
lly
392fb4b916
ble_mesh: stack: Update ARRAY_SIZE definition
2021-02-05 14:54:17 +08:00
lly
c1f3b20273
ble_mesh: stack: Provisioner supports multiple nvs namespaces
...
Now Provisioner can use different NVS namespaces to store
different instances of mesh information, for example, for
different user accounts.
2021-02-05 03:10:47 +00:00
weitianhua
e2dd35e6f6
Fix A2DP Underrun Issue
2021-02-04 19:33:50 +08:00
lly
ad718c53cd
ble_mesh: stack: Provisioner supports receiving heartbeat
2021-02-04 03:33:45 +00:00
lly
ecf8427b1e
ble_mesh: stack: Need uuid when adding device for provisioning
2021-02-03 08:45:18 +00:00
Island
d6a07efed5
Merge branch 'bugfix/ble_mesh_node_id_adv_v4.1' into 'release/v4.1'
...
ble_mesh: stack: Fix Node ID adv with wrong timeout (v4.1)
See merge request espressif/esp-idf!11878
2021-02-03 10:48:35 +08:00
weitianhua
432b4c8863
Add init & deinit event for a2dp
2021-01-26 10:52:39 +08:00
liaowenhao
c4c18c79a0
bugfix:unhandle event when tg receive set_player_app_value cmd
2021-01-21 21:37:14 +08:00
Jiang Jiang Jian
faa740028c
Merge branch 'bugfix/bt_bluedroid_same_public_key_attack_v4.1' into 'release/v4.1'
...
Bluedroid: Fixes for some Bluetooth vulnerabilities. (v4.1)
See merge request espressif/esp-idf!11764
2021-01-19 20:49:25 +08:00
Chinmay Chhajed
53e93c0a10
Bluedroid: Do not connect if peer BD_ADDR is same as own BD_ADDR.
2021-01-14 12:22:47 +05:30
lly
5c4d7e61c2
ble_mesh: stack: Fix Node ID adv with wrong timeout
2021-01-05 20:14:57 +08:00
baohongde
b7e6c18f8c
components/bt: Add API to config QoS
2021-01-04 11:56:00 +08:00
XieWenxiang
ddfc19d531
component/bt: fix Blufi sends customer data will congested when connection is broken
2020-12-31 15:44:38 +08:00
Chinmay Chhajed
5dd8bf4fe5
Bluedroid: Fixes for some vulnerabilities.
...
This commit fixes 'Impersonation in Passkey entry protocol'
(CVE-2020-26558) and suggests fixes for other vulnerabilites like
'Impersonation in the Pin Pairing Protocol' (CVE-2020-26555) and
'Authentication of the LE Legacy Pairing Protocol'
CVE-2020-26558 can be easily implemented if the peer device can
impersonate our public key. This commit adds a check by comparing our
and received public key and returns failed pairing if keys are same.
This commit also adds comments suggesting to use secure connection when
supported by all devices.
2020-12-25 16:01:30 +05:30
baohongde
edb2a4af41
components/bt: Add QOS for SPP, to decrease the delay from slave to master
2020-12-25 14:56:35 +08:00
liqigan
bf7435d80d
fix spp vfs demo crash when use dynamic memory
2020-12-23 15:13:37 +08:00
Jiang Jiang Jian
64c2f8605a
Merge branch 'nimble/fix_misc_coverity_issue_v4.1' into 'release/v4.1'
...
Nimble: Fix misc issues in NimBLE NVS, `ble_eddystone`, recursive call and L2CAP CoC (v4.1)
See merge request espressif/esp-idf!11391
2020-12-21 12:07:37 +08:00
Jiang Jiang Jian
6710148748
Merge branch 'bugfix/fix_crash_caused_by_calling_deinit_directly_4_1' into 'release/v4.1'
...
Fix crash cause by calling a2dp deinit when connected [backport v4.1]
See merge request espressif/esp-idf!11690
2020-12-21 12:05:40 +08:00
Jiang Jiang Jian
be2d72b660
Merge branch 'bugfix/blufi_config_potential_double_free_v4.1' into 'release/v4.1'
...
Bugfix/blufi config potential double free v4.1
See merge request espressif/esp-idf!11164
2020-12-21 12:05:33 +08:00
weitianhua
aee941a087
Fix crash cause by calling a2dp deinit when connected
2020-12-21 10:23:46 +08:00
wangcheng
b5e93053e5
components/bt:fix exl200, add btdm_disable_adv_delay, fix RPA addr update error.
2020-12-18 12:25:19 +00:00
wangcheng
c6d2c43661
components/bt: Fixed the problem of early release of pointer(p_ccb) in funcion
2020-12-18 12:25:19 +00:00
Artem Godlevskyi
a582fbdfdc
Added missing MYNEWT_VAL_BLE_L2CAP_COC_MPS definition
...
Signed-off-by: Prasad Alatkar <prasad.alatkar@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/5825
2020-12-17 07:20:35 +00:00
Prasad Alatkar
30c89dc11d
NimBLE: Fix misc coverity issues in NimBLE host
...
- NimBLE NVS : Additional check to account for NVS operation failure
- NimBLE host: Fix minor bug in ble_eddystone_set_adv_data_gen
- NimBLE host: remove recursive call, upstream PR: https://github.com/apache/mynewt-nimble/pull/857
2020-12-17 07:20:35 +00:00
Xia Xiaotian
649d834c16
esp_wifi: decouple Wi-Fi and bluetooth with coexist to reduce binary file size
...
close https://github.com/espressif/esp-idf/issues/5970
2020-12-10 17:07:49 +08:00
Jiang Jiang Jian
369222f811
Merge branch 'feature/btdm_support_some_ble_new_features_v4.1' into 'release/v4.1'
...
components/bt: backport some new features for Bluedroid BLE(release v4.1)
See merge request espressif/esp-idf!11441
2020-12-03 14:38:53 +08:00
xiewenxiang
1273982045
component/bt: support BLE Read Attribute value by UUID
2020-12-02 20:20:03 +08:00
xiewenxiang
5da4c0f125
component/bt: refactor ble random address setting
2020-12-02 20:19:54 +08:00
XieWenxiang
8e08156141
component/bt: support BLE Application Layer Encryption key size check
2020-12-02 20:19:45 +08:00
XieWenxiang
a6ea010898
component/bt: support BLE Authorization
2020-12-02 20:19:35 +08:00
xiewenxiang
217e90ec5c
component/bt: fix incorrect encryption flag setting
2020-12-02 20:19:21 +08:00
wangcheng
ee4fb9b182
components/bt: backport requires commit to release v4.1
2020-12-01 19:36:39 +08:00
wangcheng
87669b23da
component/bt: Add a macro to control the compilation of blufi.
2020-11-24 10:45:36 +08:00
wangcheng
f7e870e45d
component/bt: Fix a potential double free error.
2020-11-24 10:45:36 +08:00
wangcheng
7765b07898
blufi: fix an error caused by incorrect conn_id parameters.
2020-11-24 10:45:36 +08:00
wangcheng
6956d43f29
components/bt: Point the btlib to the latest branch.
2020-11-22 23:26:22 +08:00
baohongde
9b274cc989
components/bt: Fix waking up fail while sleeping
2020-11-22 20:37:10 +08:00
baohongde
a64acef06f
components/bt: Make sleep avaliable in hli(for future use)
2020-11-22 20:37:10 +08:00
wangcheng
c33dc7afd1
components/bt: Fix BT controller dead issue caused by clk overflow
...
components/bt: Fix assert(10, 9), when the AFPM happens
2020-11-22 20:37:10 +08:00
wangcheng
2b19bc9efa
components/bt: fixed memory damage caused by bluetooth memory release
2020-11-22 20:37:10 +08:00
Island
be7b859198
Merge branch 'feat/ble_mesh_node_local_data_func_v4.1' into 'release/v4.1'
...
ble_mesh: stack: Add node local netkey/appkey func (v4.1)
See merge request espressif/esp-idf!11281
2020-11-19 11:22:55 +08:00
lly
3873c9e260
ble_mesh: stack: Update connection interval to 15ms
2020-11-18 20:24:22 +08:00
lly
1fb0861b9c
ble_mesh: stack: Update connection parameters used by Central
2020-11-18 20:24:22 +08:00
lly
e989d59a4e
ble_mesh: stack: Fix wrong declaration of node bind AppKey func
2020-11-18 20:15:12 +08:00
lly
7b9c04b773
ble_mesh: stack: Add node local netkey/appkey func
2020-11-18 20:14:56 +08:00
Island
9798f2c9b0
Merge branch 'optimize/ble_mesh_reduce_code_size_v4.1' into 'release/v4.1'
...
ble_mesh: stack: Optimization introduced to reduce code size (v4.1)
See merge request espressif/esp-idf!11249
2020-11-18 20:08:29 +08:00
Jiang Jiang Jian
ae202d81ec
Merge branch 'bugfix/fix_ag_outging_callback_not_triggered_v4.1' into 'release/v4.1'
...
Bugfix/Fix Ag Example Outgoing Callback Not Triggered [backport v4.1]
See merge request espressif/esp-idf!11019
2020-11-18 11:40:07 +08:00
lly
230e8f5c92
ble_mesh: stack: Add a Kconfig option to make Health Server model optional
2020-11-17 11:06:34 +08:00
lly
c94d7fe982
ble_mesh: stack: Split model Kconfig menu into foundation and others
2020-11-17 11:06:34 +08:00
lly
dad5cc4aeb
ble_mesh: stack: Add Kconfig options to make server models optional
2020-11-17 11:06:33 +08:00
lly
e44307504a
ble_mesh: stack: Use Kconfig option to make client models optional
2020-11-17 11:06:33 +08:00
lly
a67d205468
ble_mesh: stack: Make some internal static functions inline
2020-11-17 11:06:33 +08:00
lly
bc5ba60ceb
ble_mesh: stack: Add a Kconfig option to make deinit optional
2020-11-17 11:06:33 +08:00
lly
73733396cd
ble_mesh: stack: Introduce a new header file mesh_config.h
2020-11-17 11:06:32 +08:00
liqigan
caee4c24a9
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-02 10:33:19 +08:00
liqigan
c3171252ec
move flow control to btc layer
...
defer free slot in btc layer when receive BTA_JV_RFCOMM_CLOSE_EVT
2020-11-02 10:33:19 +08:00
liqigan
8171702293
add event when calling spp API failed
2020-11-02 10:33:19 +08:00
lly
02c3881b7e
ble_mesh: test: Fix node test function not update role flag
2020-10-29 15:49:35 +08:00
liqigan
c89640103f
fix ag example outgoing callback not triggered
...
Closes https://github.com/espressif/esp-idf/issues/4967
2020-10-28 20:13:40 +08:00
Jiang Jiang Jian
77eb201241
Merge branch 'bugfix/add_clear_bond_complete_evt_4_1' into 'release/v4.1'
...
componenet_bt/bugfix: add remove bond device complete event 4.1
See merge request espressif/esp-idf!10653
2020-10-28 16:03:35 +08:00
Jiang Jiang Jian
447708ef05
Merge branch 'bugfix/bredr_bugfix_release_for_qa_dummy_disconnect_4_1' into 'release/v4.1'
...
Bugfix/bredr bugfix release for qa dummy disconnect 4.1
See merge request espressif/esp-idf!10646
2020-10-28 16:03:21 +08:00
Jiang Jiang Jian
634a5e9355
Merge branch 'bugfix/add_disconn_req_action_when_no_link_4.1' into 'release/v4.1'
...
Bugfix/add disconn req action when no link 4.1
See merge request espressif/esp-idf!10509
2020-10-28 14:27:10 +08:00
Jiang Jiang Jian
1e0bb9c4d3
Merge branch 'bugfix/fix_bredr_read_rssi_delta_v4.1' into 'release/v4.1'
...
Bugfix/Fix Read Rssi Delta Bug in Bredr [backport v4.1]
See merge request espressif/esp-idf!10802
2020-10-26 11:47:45 +08:00
andreachiara
dcde5626ad
esp_ble_mesh: api: fixed comment about autoresp
2020-10-19 11:00:30 +08:00
Island
e810e4f036
Merge branch 'optimize/ble_mesh_make_buf_config_invisible_v4.1' into 'release/v4.1'
...
ble_mesh: stack: Make mesh buf debug option invisible (v4.1)
See merge request espressif/esp-idf!10795
2020-10-13 19:51:38 +08:00
lly
18c753ba67
ble_mesh: stack: Make mesh buf debug option invisible
2020-10-13 09:31:32 +00:00
lly
1b1139ed55
ble_mesh: stack: Add mesh device properties v2 definitions
...
Also fixes wrong characteristic value length of some device
properties.
2020-10-13 09:29:50 +00:00
lly
10a618e7b2
ble_mesh: stack: Move device property to model common part
2020-10-13 09:29:50 +00:00
lly
6dadc60c8e
ble_mesh: stack: Store kr phase after value changed [Zephyr]
2020-10-13 14:28:44 +08:00
lly
79d7cb2751
ble_mesh: stack: Fix rpl not check by proxy cfg [Zephyr]
2020-10-13 14:28:44 +08:00
lly
0c136620d9
ble_mesh: stack: Persistent storage misc fixes
...
* Fix the issue that deinit node with "erase_flash"
set to true, but info is not erased from nvs
* Reuse bt_mesh_cfg_reset() when deinit node
* Optimize Provisioner related erase operations
* No store pending timeout will be used when Node
is not provisioned OR Provisioner is disabled
and erase operation is performed
* Change the default timeout for settings operation
to 0, and rpl store rate to 0
2020-10-13 10:54:18 +08:00
liqigan
ca42c8ec5c
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-12 17:55:53 +08:00
lly
d48b719e66
ble_mesh: stack: Use settings_core_erase when deinit
2020-10-12 08:47:49 +08:00
lly
cf500b3f47
ble_mesh: stack: Fix storing next net_idx and app_idx
2020-10-12 08:47:49 +08:00
lly
ff88343a10
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-12 08:47:49 +08:00
lly
66a798dbf2
ble_mesh: stack: Split model settings store and clear
2020-10-12 08:47:49 +08:00
lly
2598844423
ble_mesh: stack: Erase netkey and appkey with key index
2020-10-12 08:47:49 +08:00
lly
402fe837c1
ble_mesh: stack: Add clear hb_pub in settings
2020-10-12 08:47:49 +08:00
lly
e05d42d910
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-12 08:47:48 +08:00
lly
895dd44f8e
ble_mesh: stack: Use erase settings functions
2020-10-12 08:47:47 +08:00
lly
ecf065e2a6
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-12 08:47:46 +08:00
lly
5444c8a462
ble_mesh: stack: Add role check before enabling device
2020-10-12 08:47:45 +08:00
lly
4b27c84095
ble_mesh: stack: Define a type for mesh nvs handle
2020-10-12 08:47:45 +08:00
Chinmay Chhajed
0d25a9cff8
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:29:57 +05:30
baohongde
684ffdfe70
components/bt: Replace task post with btc_inter_profile_call, when post message from btc_dm to btc_gap
2020-09-28 15:27:24 +08:00
baohongde
98e7bc3375
components/bt: Fix clear bond fail when connected without ble included
2020-09-28 15:26:56 +08:00
xiongweichao
9c4e79dafa
add remove bond device complete event
2020-09-28 15:26:48 +08:00
xiongweichao
09e48edd87
1.revert dummy command
...
2.fix send MEDIA_CTRL command in disconnect
2020-09-28 11:11:12 +08:00
xiongweichao
3db75c4e9d
1.fix test case dummy
...
2.fix sink send media control ESP_A2D_MEDIA_CHECK_SRC_RDY
2020-09-28 11:10:54 +08:00