All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] mesh: acceptor: fix endianess issues
@ 2025-05-05 12:43 Christian Eggers
  2025-05-05 12:43 ` [PATCH BlueZ] mesh: agent: add hash calculation of URI Christian Eggers
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Christian Eggers @ 2025-05-05 12:43 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Christian Eggers

Members of 'struct mesh_net_prov_caps' are in Over-the-Air order and
must be converted to host order first.

Fixes: 838ddc931263 ("mesh: provisionee: Check prov start parameters")
---
 mesh/prov-acceptor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mesh/prov-acceptor.c b/mesh/prov-acceptor.c
index 241345bdd1ea..0ea9bb84cf36 100644
--- a/mesh/prov-acceptor.c
+++ b/mesh/prov-acceptor.c
@@ -408,14 +408,14 @@ static bool prov_start_check(struct prov_start *start,
 		break;
 
 	case 2: /* Output OOB */
-		if (!(caps->output_action & (1 << start->auth_action)) ||
+		if (!(L_BE16_TO_CPU(caps->output_action) & (1 << start->auth_action)) ||
 							start->auth_size == 0)
 			return false;
 
 		break;
 
 	case 3: /* Input OOB */
-		if (!(caps->input_action & (1 << start->auth_action)) ||
+		if (!(L_BE16_TO_CPU(caps->input_action) & (1 << start->auth_action)) ||
 							start->auth_size == 0)
 			return false;
 
-- 
2.44.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-05-05 14:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-05 12:43 [PATCH BlueZ] mesh: acceptor: fix endianess issues Christian Eggers
2025-05-05 12:43 ` [PATCH BlueZ] mesh: agent: add hash calculation of URI Christian Eggers
2025-05-05 14:18   ` [BlueZ] " bluez.test.bot
2025-05-05 12:43 ` [PATCH BlueZ] monitor: remove redundant hexdumps in Mesh Provisioning Christian Eggers
2025-05-05 14:16   ` [BlueZ] " bluez.test.bot
2025-05-05 12:43 ` [PATCH BlueZ] tools/mesh-cfgclient: constify Christian Eggers
2025-05-05 14:19   ` [BlueZ] " bluez.test.bot
2025-05-05 14:22 ` [BlueZ] mesh: acceptor: fix endianess issues bluez.test.bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.