summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil DI FOLCO <neil.difolco@qorvo.com>2023-04-18 12:32:22 +0300
committerNeil DI FOLCO <neil.difolco@qorvo.com>2023-05-05 17:03:55 +0200
commit974f92664a786f9c6cd7fbb0075c331cb111466a (patch)
treee7dc58e2f6506b2f2a8f1d12d190684a74a721bb
parent0d6a32e2f13f6f9008b9a29d2ea0dc2c10dc8aca (diff)
downloaduwb-974f92664a786f9c6cd7fbb0075c331cb111466a.tar.gz
[R-6.3.0] uwb: update qm35 driver to release R-6.3.0
Bug: 280829357 Change-Id: Id7f710c2f3bc02ca52686a514793ed7a39d4d520 Signed-off-by: Mihai Pop <mihai.pop@qorvo.com> Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
-rw-r--r--hsspi_uci.c3
-rw-r--r--qm35.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/hsspi_uci.c b/hsspi_uci.c
index 0738e34..0d85591 100644
--- a/hsspi_uci.c
+++ b/hsspi_uci.c
@@ -108,7 +108,8 @@ static void uci_sent(struct hsspi_layer *hlayer, struct hsspi_block *blk,
static size_t get_payload_size_from_header(const u8 *header)
{
- bool is_control_packet = (header[0] >> 7) == 0;
+ bool is_data_packet = ((header[0] >> 5) & 0x07) == 0;
+ bool is_control_packet = !is_data_packet && ((header[0] >> 7) == 0);
if (is_control_packet)
return header[UCI_CONTROL_PACKET_PAYLOAD_SIZE_LOCATION];
diff --git a/qm35.h b/qm35.h
index 0cf2f71..3d19450 100644
--- a/qm35.h
+++ b/qm35.h
@@ -24,7 +24,7 @@
#define QM_BOOT_MS 450
#define QM_BEFORE_RESET_MS 450
-#define DRV_VERSION "6.2.1-rc1"
+#define DRV_VERSION "6.3.0-rc1"
struct regulator;