I am facing issue in encrypting the data. I have used HCI_LE_EncryptCmd(uint8 *key, uint8 *plainText) function to do so.
I have checked it through debugging. It neither encrypts the data nor sets a valid return value. (the return value it says is "error/ambiguous")
Kindly let me know if I am missing anything.
Also it would be better if you can share a sample example for encrypting the plain data..