apache / mynewt-nimble

Apache mynewt
https://mynewt.apache.org/
Apache License 2.0
680 stars 392 forks source link

Fix HCI Set Event Mask Page 2 support in host and controller #1666

Closed donatieng closed 7 months ago

donatieng commented 8 months ago

This patch adds a new function, ble_hs_startup_read_sup_cmd_tx(), which reads the list of supported HCI commands from the controller, which is used on HCI startup. This is used to determine whether a HCI Set Event Mask Page 2 command should be sent to the controller.

The second commit adds HCI Set Event Mask Page 2 to the list of supported commands. This command is already implemented in the controller but was not listed as supported.

This is my first Nimble PR, so any guidance is appreciated.

donatieng commented 8 months ago

Issues (host tests and style) should now be fixed