Skip to content

Commit 4ffba1f

Browse files
Thomasdjbrzr
authored andcommitted
libs2: SWPROT-9272: Correct NLS Support advertising
(cherry picked from commit 0118850059796a045285e5702a2d713c6f19352f) Relate-to: SiliconLabsSoftware#50 Forwarded: SiliconLabsSoftware#51 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 8ada5ac commit 4ffba1f

File tree

1 file changed

+1
-1
lines changed
  • applications/zpc/components/zwave/zwave_transports/s2/libs/zw-libs2/protocol

1 file changed

+1
-1
lines changed

applications/zpc/components/zwave/zwave_transports/s2/libs/zw-libs2/protocol/S2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ static void S2_send_nls_state_report(struct S2* p_context, s2_connection_t* con)
19111911

19121912
uint8_t plain_text[SECURITY_2_V2_NLS_STATE_REPORT_LENGTH] = { 0 };
19131913
uint8_t nls_bitfield;
1914-
nls_bitfield = ctxt->nls_state ? SECURITY_2_V2_NLS_STATE_REPORT_STATE_FIELD | SECURITY_2_V2_NLS_STATE_REPORT_CAPABILITY_FIELD : 0; // A node sending this frame will always support NLS
1914+
nls_bitfield = SECURITY_2_V2_NLS_STATE_REPORT_CAPABILITY_FIELD | (ctxt->nls_state ? SECURITY_2_V2_NLS_STATE_REPORT_STATE_FIELD : 0); // A node sending this frame will always support NLS
19151915
plain_text[SECURITY_2_COMMAND_CLASS_POS] = COMMAND_CLASS_SECURITY_2_V2;
19161916
plain_text[SECURITY_2_COMMAND_POS] = NLS_STATE_REPORT_V2;
19171917
plain_text[SECURITY_2_V2_NLS_STATE_REPORT_BITFIELD_POS] = nls_bitfield;

0 commit comments

Comments
 (0)