We are trying to port qca9377.lea_.1.0_qdn_r1000015.2.tgz driver to an ARM based board.
Since the only document available for compiling the driver is for x86 platform, we are trying to cross-compile the package component wise.
We got bluez5.19 patched and built. We also have the linux kernel 4.4 also patched with the available patches and built.
But when we try
hciattach /dev/ttymxc0 qca
it loads the firmware and rampatch with lot of prints. And at the end after setting N_HCI line discipline it fails.
It says "Can't set device: Protocol not supported"
log : https://pastebin.com/raw/NcHBqdqb
And when we looked into the code we found that in hciattach code it is trying to set HCI_UART_IBS protocol when "qca" type is specified in the command line invocation.
But in the kernel driver there is no mention of this protocol and thus the ioctl call fails.
We could not find a patch that would add this protocol to the kernel driver.
The file backports.sh is trying to download some patch files to build the kernel driver with the In Band Sleep feature. But those files are getting downloaded as 0KB files. For example,
wget https://source.codeaurora.org/external/thundersoft/kernel/msm-3.10/patch... -O 0007-Bluetooth-add-Qualcomm-In-Band-Sleep-support-to-hci_.patch
is downloading a 0KB file.
How can we get this to work? Do you have any other set of patches for the kernel driver? Is there any document for cross compiling the qca9377.lea_.1.0_qdn_r1000015.2.tgz driver package?