Skip to content

Commit ef87e71

Browse files
Added logs and refactored it
1 parent a447634 commit ef87e71

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

examples/platform/silabs/SiWx917/SiWx917/rsi_if.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -559,13 +559,18 @@ void wfx_rsi_task(void * arg)
559559
hasNotifiedIPV4 = false;
560560
}
561561
#endif /* CHIP_DEVICE_CONFIG_ENABLE_IPV4 */
562-
/* Checks if the assigned IPv6 address is preferred by evaluating
563-
* the first block of IPv6 address ( block 0)
562+
/*
563+
* Checks if the IPv6 event has been notified, if not invoke the nd6_tmr,
564+
* which starts the duplicate address detectation.
564565
*/
565566
if (!hasNotifiedIPV6)
566567
{
567568
nd6_tmr();
568569
}
570+
/*
571+
* Checks if the assigned IPv6 address is preferred by evaluating
572+
* the first block of IPv6 address ( block 0)
573+
*/
569574
if ((ip6_addr_ispreferred(netif_ip6_addr_state(sta_netif, 0))) && !hasNotifiedIPV6)
570575
{
571576
wfx_ipv6_notify(GET_IPV6_SUCCESS);

examples/platform/silabs/efr32/rs911x/rsi_if.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,18 @@ void wfx_rsi_task(void * arg)
625625
hasNotifiedIPV4 = false;
626626
}
627627
#endif /* CHIP_DEVICE_CONFIG_ENABLE_IPV4 */
628-
/* Checks if the assigned IPv6 address is preferred by evaluating
629-
* the first block of IPv6 address ( block 0)
628+
/*
629+
* Checks if the IPv6 event has been notified, if not invoke the nd6_tmr,
630+
* which starts the duplicate address detectation.
630631
*/
631632
if (!hasNotifiedIPV6)
632633
{
633634
nd6_tmr();
634635
}
636+
/*
637+
* Checks if the assigned IPv6 address is preferred by evaluating
638+
* the first block of IPv6 address ( block 0)
639+
*/
635640
if ((ip6_addr_ispreferred(netif_ip6_addr_state(sta_netif, 0))) && !hasNotifiedIPV6)
636641
{
637642
wfx_ipv6_notify(GET_IPV6_SUCCESS);

0 commit comments

Comments
 (0)