Revert "Bluetooth: btqca: use le32_to_cpu for ver.soc_id"

This reverts commit 29059d0f3b which is
commit 8153b738bc upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: I8399038f8d89a402d22d1071e4a503eab05d6174
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2024-05-14 12:45:48 +00:00
parent b904eebfd4
commit d9340ec8dd

View File

@@ -637,7 +637,7 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
snprintf(config.fwname, sizeof(config.fwname), snprintf(config.fwname, sizeof(config.fwname),
"qca/%s", firmware_name); "qca/%s", firmware_name);
else if (qca_is_wcn399x(soc_type)) { else if (qca_is_wcn399x(soc_type)) {
if (le32_to_cpu(ver.soc_id) == QCA_WCN3991_SOC_ID) { if (ver.soc_id == QCA_WCN3991_SOC_ID) {
snprintf(config.fwname, sizeof(config.fwname), snprintf(config.fwname, sizeof(config.fwname),
"qca/crnv%02xu.bin", rom_ver); "qca/crnv%02xu.bin", rom_ver);
} else { } else {