Tool/software:
Hi team,
My customer added code to disable the 2Mb PHY referencing the related thread as a guide.
They run CSTAT on their code and CSTAT is flagging the memcpy above as an issue. CSTAT is complaining that &pMsg->pReturnParam[1] only points to 1 byte. The code works as expected so I assume pMsg->pReturnParam[1] points to at least 8 bytes. They will probably ignore this CSTAT issue, but I was wondering if there is something they can reference in our documentation when/if someone questions if there is an issue with this line. It could be something as simple as ‘the data returned in the HCI_LE_READ_LOCAL_SUPPORTED_FEATURES event is 8 bytes’.
I know the BLE5-Stack API Documentation contains some information on the return values but when digging through it, the remote features shows the feature array as 8 bytes:
But we are not able to find the equivalent for the read local features. Given what we see in the read remote features event structure, can they assume for reading the local features, that pReturnParams points to an 8 byte array?
Thanks,
Luke