You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2022/02/24 15:26:38 UTC
[mynewt-nimble] branch master updated: nimble/hs: fix the LE Supported feature mask
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new c3fee3a nimble/hs: fix the LE Supported feature mask
c3fee3a is described below
commit c3fee3ad34639557c4121b376231b163fcbff365
Author: supperthomas <78...@qq.com>
AuthorDate: Thu Feb 24 21:10:12 2022 +0800
nimble/hs: fix the LE Supported feature mask
when set the features we set the htole64 in
ble_ll_hci.c.It will match the value about it
---
nimble/host/src/ble_hs_startup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/host/src/ble_hs_startup.c b/nimble/host/src/ble_hs_startup.c
index 6044182..96e4e65 100644
--- a/nimble/host/src/ble_hs_startup.c
+++ b/nimble/host/src/ble_hs_startup.c
@@ -40,7 +40,7 @@ ble_hs_startup_read_sup_f_tx(void)
/* for now we don't use it outside of init sequence so check this here
* LE Supported (Controller) byte 4, bit 6
*/
- if (!(rsp.features & 0x0000006000000000)) {
+ if (!(le64toh(rsp.features) & 0x0000006000000000)) {
BLE_HS_LOG(ERROR, "Controller doesn't support LE\n");
return BLE_HS_ECONTROLLER;
}