From 65c74f544490403dbdde1e4d7ba318b4703fc99e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 5 Nov 2018 15:17:05 -0600 Subject: [PATCH] net/mld: Fix report repitition counter. One send one less reported than required. --- net/mld/mld.h | 2 +- net/mld/mld_timer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mld/mld.h b/net/mld/mld.h index a3be0327a4..ffbb6cc4f5 100644 --- a/net/mld/mld.h +++ b/net/mld/mld.h @@ -189,7 +189,7 @@ struct mld_group_s uint8_t ifindex; /* Interface index */ uint8_t flags; /* See MLD_ flags definitions */ uint8_t msgtype; /* Pending message type to send (if non-zero) */ - uint8_t count; /* Report repetition count */ + uint8_t count; /* Reports remaining in repetition count */ }; /**************************************************************************** diff --git a/net/mld/mld_timer.c b/net/mld/mld_timer.c index 6298eb34eb..db613d31e9 100644 --- a/net/mld/mld_timer.c +++ b/net/mld/mld_timer.c @@ -149,7 +149,7 @@ static void mld_polldog_work(FAR void *arg) * then terminate the start-up sequence. */ - if (group->count > 1) + if (group->count > 0) { /* Decrement the count and restart the timer */