Skip to content

fix: HCI only Firmware not supporting ACI_GAP_INIT ACI_GATT_INIT #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: CI spell check
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
  • Loading branch information
ABOSTM committed Oct 26, 2022
commit 8f40c2f3f68f301456ecad73c39287ff1a390d56
6 changes: 4 additions & 2 deletions src/local/BLELocalDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ int BLELocalDevice::begin()
end();
return 0;
}

randomNumber[5] |= 0xC0; // Force both MSB bit to b00 in order to define Random Address
/* Random address only requires 6 bytes (48 bits)
* Force both MSB bits to b00 in order to define Static Random Address
*/
randomNumber[5] |= 0xC0;
if (HCI.leSetRandomAddress((uint8_t*)randomNumber) != 0) {
end();
return 0;
Expand Down
4 changes: 2 additions & 2 deletions src/utility/STM32Cube_FW/shci.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ extern "C" {
* - bit 2: 1: device name Read-Only 0: device name R/W
* - bit 3: 1: extended advertizing supported 0: extended advertizing not supported
* - bit 4: 1: CS Algo #2 supported 0: CS Algo #2 not supported
* - bit 7: 1: LE Power Class 1 0: LE Power Classe 2-3
* - bit 7: 1: LE Power Class 1 0: LE Power Classes 2-3
* - other bits: reserved ( shall be set to 0)
*/
uint8_t Options;
Expand Down Expand Up @@ -1173,7 +1173,7 @@ typedef struct {

/**
* SHCI_GetWirelessFwInfo
* @brief This function read back the informations relative to the wireless binary loaded.
* @brief This function read back the information relative to the wireless binary loaded.
* Refer yourself to MB_WirelessFwInfoTable_t structure to get the significance
* of the different parameters returned.
* @param pWirelessInfo : Pointer to WirelessFwInfo_t.
Expand Down