Diff between 57df14b8f8b15e7936568694bba1f1083c7e69b1 and 269f04cd264bda0353514ab2b39de33dcbf2a77a

Changed Files

File Additions Deletions Status
mesh/prov-acceptor.c +6 -4 modified

Full Patch

diff --git a/mesh/prov-acceptor.c b/mesh/prov-acceptor.c
index 241345b..27d4964 100644
--- a/mesh/prov-acceptor.c
+++ b/mesh/prov-acceptor.c
@@ -408,15 +408,17 @@ static bool prov_start_check(struct prov_start *start,
 		break;
 
 	case 2: /* Output OOB */
-		if (!(caps->output_action & (1 << start->auth_action)) ||
-							start->auth_size == 0)
+		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)) ||
-							start->auth_size == 0)
+		if (!(L_BE16_TO_CPU(caps->input_action) &
+				(1 << start->auth_action)) ||
+				start->auth_size == 0)
 			return false;
 
 		break;