[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221107094348.72223dc8@xps-13>
Date: Mon, 7 Nov 2022 09:43:48 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Alexander Aring <aahringo@...hat.com>
Cc: Alexander Aring <alex.aring@...il.com>,
Stefan Schmidt <stefan@...enfreihafen.org>,
linux-wpan@...r.kernel.org,
David Girault <david.girault@...vo.com>,
Romuald Despres <romuald.despres@...vo.com>,
Frederic Blain <frederic.blain@...vo.com>,
Nicolas Schodet <nico@...fr.eu.org>,
Guilhem Imberton <guilhem.imberton@...vo.com>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Eric Dumazet <edumazet@...gle.com>, netdev@...r.kernel.org
Subject: Re: [PATCH wpan-next 2/3] ieee802154: Handle coordinators discovery
Hi Alexander,
> > +static bool
> > +cfg802154_is_same_coordinator(struct ieee802154_coord_desc *a,
> > + struct ieee802154_coord_desc *b)
> > +{
> > + if (a->addr->pan_id != b->addr->pan_id)
> > + return false;
> > +
> > + if (a->addr->mode != b->addr->mode)
> > + return false;
> > +
> > + if (a->addr->mode == IEEE802154_ADDR_SHORT &&
> > + a->addr->short_addr == b->addr->short_addr)
> > + return true;
> > + else if (a->addr->mode == IEEE802154_ADDR_LONG &&
> > + a->addr->extended_addr == b->addr->extended_addr)
> > + return true;
> > +
> > + return false;
>
> semantic is a little bit different, can we use "ieee802154_addr_equal()" here?
No problem, I will.
Thanks,
Miquèl
Powered by blists - more mailing lists