lly
50fc403018
ble_mesh: Mark platform related default RNG as 0
2020-08-27 10:57:51 +00:00
lly
0b65005ffd
ble_mesh: Remove the previously added redundant aes files
2020-08-27 10:57:51 +00:00
lly
60ba33afa9
ble_mesh: Update CMake and make files for tinycrypt
2020-08-27 10:57:51 +00:00
lly
d90f3f9119
ble_mesh: Update tinycrypt header file include guards
...
Add BLE_MESH in the macro to make it specific for BLE Mesh.
2020-08-27 10:57:51 +00:00
lly
7d40d308bb
ble_mesh: Format source and header files of tinycrypt
2020-08-27 10:57:51 +00:00
lly
0dda8869cd
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-08-27 10:57:51 +00:00
Island
8a0ae62a03
Merge branch 'bugfix/ble_mesh_compile_error_v4.1' into 'release/v4.1'
...
Bugfix/ble mesh proxy compile error (v4.1)
See merge request espressif/esp-idf!9431
2020-08-27 18:03:01 +08:00
lly
8988fb9b8d
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-08-26 08:28:12 +00:00
lly
bd187b022f
ble_mesh: Add more checks of net_idx & app_idx
2020-08-26 08:28:12 +00:00
lly
7ba69e5439
ble_mesh: Optimize some send & recv logs
2020-08-26 08:28:12 +00:00
lly
75af20e687
ble_mesh: stack: Add two application macros for TTL
2020-08-26 16:12:26 +08:00
lly
5952694160
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-08-26 16:12:26 +08:00
Island
e40e694cf9
Merge branch 'bugfix/ble_mesh_set_recv_rssi_v4.1' into 'release/v4.1'
...
Bugfix/ble mesh set recv rssi (v4.1)
See merge request espressif/esp-idf!9400
2020-08-26 15:56:02 +08:00
lly
45f7edd4f2
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-08-26 07:50:10 +00:00
weitianhua
899ef49272
Seperate BTA_JV_L2CAP for less bin size
2020-08-26 15:30:26 +08:00
Island
ade43317ca
Merge branch 'bugfix/ble_mesh_get_node_with_name_v4.1' into 'release/v4.1'
...
ble_mesh: Get node info with pre-configured node name (v4.1)
See merge request espressif/esp-idf!10145
2020-08-26 15:28:15 +08:00
Jiang Jiang Jian
a27ea5a6c8
Merge branch 'feature/bt_secure_conn_downgrade_check_v4.1' into 'release/v4.1'
...
Bluedroid: Authentication fixes in Legacy and Secure Connection.
See merge request espressif/esp-idf!9339
2020-08-26 11:33:12 +08:00
lly
292333a27c
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-08-25 09:35:34 +08:00
Island
1c8ce47465
Merge branch 'bugfix/ble_mesh_check_subnet_before_update_beacon_sent_v4.1' into 'release/v4.1'
...
ble_mesh: Check if subnet exists before updating beacon_sent (v4.1)
See merge request espressif/esp-idf!9396
2020-08-24 17:20:12 +08:00
lly
bd59c89540
ble_mesh: stack: Copy recv_rssi for other received messages
...
Follow the commit: 2b80cb6883
,
copy the recv_rssi for other mesh messages.
2020-08-24 08:52:05 +00:00
mbroek
c3fe42250c
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-08-24 08:52:05 +00:00
Chinmay Chhajed
6f22d7590e
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-08-24 10:27:04 +05:30
Jiang Jiang Jian
91903234a9
Merge branch 'bugfix/fix_event_bug_in_GAP_API_release_v4.1' into 'release/v4.1'
...
Bugfix/fix event bug in GAP API [backport v4.1]
See merge request espressif/esp-idf!9192
2020-08-24 12:34:30 +08:00
Jiang Jiang Jian
294a00c15d
Merge branch 'feature/esp_spp_stop_srv_v4.1' into 'release/v4.1'
...
bugfix/Add API esp_spp_stop_srv and fix collection of SPP [backport v4.1]
See merge request espressif/esp-idf!10011
2020-08-24 12:34:04 +08:00
Jiang Jiang Jian
c547044f28
Merge branch 'bugfix/fix_error_in_ag_api_4.1' into 'release/v4.1'
...
Fix error of AG API return line v4.1
See merge request espressif/esp-idf!9604
2020-08-24 12:32:21 +08:00
Jiang Jiang Jian
d4af9d1ce4
Merge branch 'bugfix/fix_hci_max_page_num_v4.1' into 'release/v4.1'
...
bugfix/Support for more Bluetooth HID devices [backport v4.1]
See merge request espressif/esp-idf!9661
2020-08-24 12:31:22 +08:00
Jiang Jiang Jian
84b9ce81bb
Merge branch 'bugfix/fix_get_bond_device_list_v4.1' into 'release/v4.1'
...
bugfix/fix esp_bt_gap_get_bond_device_list bug [backport v4.1]
See merge request espressif/esp-idf!9667
2020-08-24 12:30:07 +08:00
Jiang Jiang Jian
a36a020657
Merge branch 'bugfix/connect_param_check_and_channel_map_bugs_v4.1' into 'release/v4.1'
...
components/bt:Fix channel map instant reverse and add ble connect paramter check.(backport 4.1)
See merge request espressif/esp-idf!9235
2020-08-24 12:27:59 +08:00
Jiang Jiang Jian
788fe71b6b
Merge branch 'nimble/nrpa_support_v4.1' into 'release/v4.1'
...
NimBLE: Add Non-Resolvable private address support and misc fixes (Backport v4.1)
See merge request espressif/esp-idf!9740
2020-08-24 12:27:03 +08:00
lly
3d888ca777
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-08-21 12:58:34 +00:00
Island
2a5679c253
Merge branch 'bugfix/ble_mesh_model_recv_fix_v4.1' into 'release/v4.1'
...
Bugfix/ble mesh model recv fix (v4.1)
See merge request espressif/esp-idf!9007
2020-08-21 20:37:53 +08:00
lly
9ba5899206
ble_mesh: correct the return type [Zephyr]
2020-08-21 07:21:15 +00:00
lly
6b6cf151cf
ble_mesh: Add net_buf_simple_init_with_data [Zephyr]
2020-08-21 07:21:15 +00:00
lly
897acd6a1d
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-08-21 07:21:15 +00:00
lly
cc36e415c0
ble_mesh: Local model (un)subscribes group address
2020-08-21 07:18:44 +00:00
lly
a43e5feee8
ble_mesh: Define a macro for invalid company id
2020-08-21 07:18:44 +00:00
Island
ab6139b9df
Merge branch 'bugfix/ble_mesh_check_model_status_v4.1' into 'release/v4.1'
...
ble_mesh: stack: Check model status with variable length (v4.1)
See merge request espressif/esp-idf!9399
2020-08-21 14:57:03 +08:00
Island
6e42afb45b
Merge branch 'bugfix/ble_mesh_not_define_bool_v4.1' into 'release/v4.1'
...
Bugfix/ble mesh not define bool (v4.1)
See merge request espressif/esp-idf!9394
2020-08-21 14:56:46 +08:00
Island
252aaf2ab7
Merge branch 'bugfix/ble_mesh_bt_hex_v4.1' into 'release/v4.1'
...
ble_mesh: Fix wrong log output with bt_hex (v4.1)
See merge request espressif/esp-idf!9393
2020-08-21 14:56:34 +08:00
Island
9ff30e81c5
Merge branch 'bugfix/ble_mesh_remove_relay_dependency_v4.1' into 'release/v4.1'
...
ble_mesh: Remove relay option dependency (v4.1)
See merge request espressif/esp-idf!9026
2020-08-21 14:56:23 +08:00
Island
7bc32cb773
Merge branch 'bugfix/ble_mesh_rework_prov_pdu_len_check_v4.1' into 'release/v4.1'
...
ble_mesh: Rework prov pdu length check (v4.1)
See merge request espressif/esp-idf!9003
2020-08-21 14:56:07 +08:00
liqigan
40bc362809
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:15:33 +08:00
boblane
b57953efdf
fix esp_bt_gap_get_bond_device_list bug
...
Closes https://github.com/espressif/esp-idf/issues/5395
2020-08-10 10:06:42 +08:00
lly
7f7397e67f
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-07-30 03:58:27 +00:00
Prasad Alatkar
9587b53b2f
NimBLE: Add Non-Resolvable private address support and misc bug fixes (Backport v4.1)
...
- 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:48:14 +00:00
DerfJagged
16e33e3e33
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:14:34 +08:00
weitianhua
491d564f5a
Fix error of AG API return line
...
Closes https://github.com/espressif/esp-idf/issues/5554
2020-07-14 14:44:20 +08:00
liqigan
f5d37dd416
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-07-08 14:22:19 +08:00
wangcheng
9c9b64ee17
component/bt: Fixed ble memory leak issue, buff_semaphore was not released.
2020-07-07 21:02:49 +08:00
lly
bf35465658
ble_mesh: stack: Check model status with variable length
2020-06-30 09:31:27 +08:00
lly
289b8bcea7
ble_mesh: Remove boolean type definitions
2020-06-30 09:18:42 +08:00
Nikolaos Strikos
0d5eb50ce2
ble_mesh: Do not #define bool when compiling in C++
2020-06-30 09:18:42 +08:00
lly
353f893d95
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-30 09:16:29 +08:00
liminyang
a55bd7339c
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:56:08 +08:00
wangcheng
5cff7b1d55
components/bt:Fix instant reverse and add ble connect paramter check.
2020-06-18 15:52:34 +08:00
Jiang Jiang Jian
6b66850dc1
Merge branch 'bugfix/ble_conn_fail_v4.1' into 'release/v4.1'
...
Fix bugs from coex test v4.1
See merge request espressif/esp-idf!9136
2020-06-17 18:17:15 +08:00
Jiang Jiang Jian
5e52e5f6f5
Merge branch 'bugfix/blufi_buffer_overflow_report_v4.1' into 'release/v4.1'
...
Bugfix/blufi buffer overflow report v4.1
See merge request espressif/esp-idf!9178
2020-06-16 15:59:49 +08:00
wangcheng
ae64d9e738
blufi: When the format of the received data packet is wrong, reply with an error response
2020-06-15 19:37:38 +08:00
Wang Cheng
6861f7d5d8
components/bt: Add a detailed description for the user to distinguish the function of the query buffer api.
2020-06-15 19:19:14 +08:00
Geng Yu Chao
c5a6fc9c7e
Update the limited of function esp_ble_get_sendable_packets_num.
2020-06-15 19:17:27 +08:00
wangcheng
3b8b057894
components/bt: Consider link_xmit_data_q in congest events to prevent excessive memory usage
2020-06-13 15:07:28 +08:00
wangcheng
e69ee31e1a
components/bt: Fixed the problem of incomplete data packets caused by disordered acl data packets
2020-06-13 15:06:28 +08:00
wangcheng
846a2f95f4
components/bt: Add api to query the number of available buffers for the current connection
2020-06-13 15:06:14 +08:00
baohongde
1b8905e544
components/bt: Fix ble disconnect due to instant of channel map update is too small
2020-06-11 16:55:36 +08:00
baohongde
d0093c7675
Set AFH in time(075dd35)
...
Send LMP_channelClassification immediately
Fix first LMP_set_AFH not using host value
2020-06-11 16:55:26 +08:00
baohongde
de6f21936f
components/coex: Fix ble connecting fail in coexist
2020-06-11 16:55:12 +08:00
baohongde
7cdc2f2b81
Backport MR for baidu proj
2020-06-04 11:07:30 +08:00
lly
1bd7944316
ble_mesh: Rework prov pdu length check
2020-06-02 10:13:51 +08:00
Jiang Jiang Jian
5fb93a14ae
Merge branch 'bufix/fix_v4.1_bluedroid_bugs_mr' into 'release/v4.1'
...
component/bt: fix notify malloc failed , fix no BLE_AUTH_CMPL_EVT and fix bluedroid btc deinit crash(backport 4.1)
See merge request espressif/esp-idf!8756
2020-05-29 11:13:20 +08:00
Jiang Jiang Jian
63592b667c
Merge branch 'nimble/config_option_sdkconfig_rename_v4.1' into 'release/v4.1'
...
Add NimBLE config options in sdkconfig.rename (v4.1)
See merge request espressif/esp-idf!8735
2020-05-29 11:12:44 +08:00
zhiweijian
8793aab0e3
add congest direct callback and fix malloc failed when multi_connection notify performance test
2020-05-28 12:07:58 +00:00
wangcheng
d32ee233af
fix bta_dm_deinit_cb crash
2020-05-28 12:07:58 +00:00
wangcheng
049402ae8d
master missing BLE_AUTH_CMPL_EVT after restart
2020-05-28 12:07:58 +00:00
Jiang Jiang Jian
977d98cb6d
Merge branch 'bugfix/ble_mesh_check_timer_init_v4.1' into 'release/v4.1'
...
ble_mesh: Check the result of creating timer (v4.1)
See merge request espressif/esp-idf!8958
2020-05-28 15:27:42 +08:00
Jiang Jiang Jian
983a4be42e
Merge branch 'nimble/update_nimble_submodule_v4.1' into 'release/v4.1'
...
NimBLE: Include upstream fixes and use macros for log level filtering (backport v4.1)
See merge request espressif/esp-idf!8794
2020-05-28 15:25:12 +08:00
lly
0c87b1c12d
ble_mesh: Check the result of creating timer
2020-05-28 10:27:06 +08:00
Island
5ea193115b
Merge branch 'bugfix/ble_mesh_sync_zephyr_fixes_v4.1' into 'release/v4.1'
...
Bugfix/ble mesh sync zephyr fixes (v4.1)
See merge request espressif/esp-idf!8948
2020-05-28 10:15:53 +08:00
Island
6971cdbad5
Merge branch 'bugfix/ble_mesh_not_use_same_private_key_v4.1' into 'release/v4.1'
...
ble_mesh: Not using pre-initialized private key (v4.1)
See merge request espressif/esp-idf!8945
2020-05-28 10:14:21 +08:00
lly
2f73d76768
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-27 17:46:29 +08:00
lly
63c8dd2981
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-27 17:46:23 +08:00
lly
0c06be9bcd
ble_mesh: Not using pre-initialized private key
2020-05-27 17:39:50 +08:00
lly
d3921346a9
ble_mesh: Same func for storing/restoring comp data
2020-05-27 17:30:31 +08:00
lly
3b89497b39
ble_mesh: Fix using old config for duplicate scan
2020-05-25 16:53:30 +08:00
lly
eeff638c97
ble_mesh: Fix Provisioner failed to publish
2020-05-22 15:47:40 +08:00
Island
502a2aed2a
Merge branch 'bugfix/ble_mesh_friend_init_flag_v4.1' into 'release/v4.1'
...
Bugfix/ble mesh friend init flag (v4.1)
See merge request espressif/esp-idf!8848
2020-05-22 10:51:13 +08:00
Island
e789d85e69
Merge branch 'bugfix/ble_mesh_node_old_version_to_new_v4.1' into 'release/v4.1'
...
ble_mesh: Fix mesh node device role restore (v4.1)
See merge request espressif/esp-idf!8724
2020-05-21 15:10:48 +08:00
Island
eb8f6f942a
Merge branch 'bugfix/ble_mesh_fix_typos_v4.1' into 'release/v4.1'
...
ble_mesh: Fix typos (v4.1)
See merge request espressif/esp-idf!8726
2020-05-21 15:10:10 +08:00
lly
715cb64288
ble_mesh: Clear two more vars during proxy server deinit
2020-05-21 14:26:05 +08:00
lly
52fa4c7f96
ble_mesh: Add missing sdkconfig.h
2020-05-21 14:26:05 +08:00
lly
f02d095ff1
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-21 14:26:04 +08:00
lly
ab73b3fd8e
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-21 14:26:04 +08:00
Prasad Alatkar
3db186d5d1
NimBLE: Include upstream fixes and use macros for log level filtering (backport v4.1)
...
Change list:
- Reduces the size of the compiled binary, PR: https://github.com/espressif/esp-nimble/pull/6
- Null pointer check, PR: https://github.com/apache/mynewt-nimble/pull/701
- Pairing procedure abort on unexpected req: https://github.com/apache/mynewt-nimble/pull/710
- Fix conn flags after pairing: https://github.com/apache/mynewt-nimble/pull/730
- Remove notification for update process timeout (Vol 6, Part B, section 5.2 ):
https://github.com/apache/mynewt-nimble/pull/782
- CCCD fix : https://github.com/apache/mynewt-nimble/pull/790 and
https://github.com/apache/mynewt-nimble/pull/804
- Host based Privacy (RPA) fix: https://github.com/espressif/esp-nimble/pull/7
Closes https://github.com/espressif/esp-nimble/issues/10
Closes https://github.com/espressif/esp-idf/issues/4413
2020-05-20 16:09:02 +05:30
lly
9d587eb8fd
ble_mesh: Remove patch for the bug of an App
2020-05-15 20:23:48 +08:00
Hrishikesh Dhayagude
c595429db0
Add NimBLE config options in sdkconfig.rename
2020-05-14 11:30:35 +10:00
lly
b929611d5d
ble_mesh: Fix typos
2020-05-13 18:30:52 +08:00
lly
e9f64eb1c3
ble_mesh: Fix mesh node device role restore
...
Old version of BLE Mesh has no device role storage, because
previously we only support storing mesh node info.
If the binary of the node is upgraded from old version to a
new version (support storing provisioner info), the mesh info
of the node will not be restored because mesh role does not
exist in the flash.
2020-05-13 18:25:53 +08:00
Island
56c1646e2a
Merge branch 'bugfix/sync_zephyr_bt_mesh_bugfix_v4.1' into 'release/v4.1'
...
Bugfix/sync zephyr bt mesh bugfix (v4.1)
See merge request espressif/esp-idf!8688
2020-05-13 18:15:37 +08:00
lly
31b164ccb1
ble_mesh: Not ignore msg when fast prov is enabled
...
When fast provisioning is enabled, Provisioner shall not
ignore messages from the nodes whose addresses are not in
the provisioning database. Because other nodes which are
not provisioned by the Primary Provisioner will send node
address messages to the Primary Provisioner.
2020-05-13 10:09:04 +08:00
lly
295a9eea82
ble_mesh: Fix not update prov addr in fast prov
...
When using fast provisioning, the Provisioner functionality
will be enabled. Unicast addresses within the pre-allocated
range will be used for provisioning nodes. And during the
address assignment, the allocated unicast address will be
checked that if it's duplicated with other nodes addresses
and the Provisioner's own addresses.
So before starting using fast provisioning, we need to update
the Provisioner address.
2020-05-11 15:42:58 +08:00
lly
06d445759a
ble_mesh: net_key_status only pull one key idx [Zephyr]
...
Fixes bug where the config client's net_key_status handler would attempt
to pull two key indexes from a message which only holds one.
2020-05-11 15:42:57 +08:00