From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Alexander Aring <aahringo@redhat.com>
Cc: Alexander Aring <alex.aring@gmail.com>,
Stefan Schmidt <stefan@datenfreihafen.org>,
linux-wpan@vger.kernel.org,
David Girault <david.girault@qorvo.com>,
Romuald Despres <romuald.despres@qorvo.com>,
Frederic Blain <frederic.blain@qorvo.com>,
Nicolas Schodet <nico@ni.fr.eu.org>,
Guilhem Imberton <guilhem.imberton@qorvo.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Eric Dumazet <edumazet@google.com>,
netdev@vger.kernel.org
Subject: Re: [PATCH wpan-next 2/3] ieee802154: Handle coordinators discovery
Date: Mon, 7 Nov 2022 09:43:48 +0100 [thread overview]
Message-ID: <20221107094348.72223dc8@xps-13> (raw)
In-Reply-To: <CAK-6q+hh4Ny7zV-MbdjrGQq-Dtb783A8m3G5GMcXSdhSwicuiw@mail.gmail.com>
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
next prev parent reply other threads:[~2022-11-07 8:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-02 15:19 [PATCH wpan-next 0/3] IEEE 802.15.4 PAN discovery handling Miquel Raynal
2022-11-02 15:19 ` [PATCH wpan-next 1/3] ieee802154: Advertize coordinators discovery Miquel Raynal
2022-11-07 2:01 ` Alexander Aring
2022-11-18 22:04 ` Miquel Raynal
2022-11-21 0:57 ` Alexander Aring
2022-11-21 1:01 ` Alexander Aring
2022-11-21 9:05 ` Miquel Raynal
2022-11-21 23:54 ` Alexander Aring
2022-11-23 17:07 ` Miquel Raynal
2022-11-24 1:49 ` Alexander Aring
2022-11-02 15:19 ` [PATCH wpan-next 2/3] ieee802154: Handle " Miquel Raynal
2022-11-07 2:03 ` Alexander Aring
2022-11-07 8:43 ` Miquel Raynal [this message]
2022-11-02 15:19 ` [PATCH wpan-next 3/3] ieee802154: Trace the registration of new PANs Miquel Raynal
2022-11-07 1:36 ` Alexander Aring
2022-11-07 8:49 ` Miquel Raynal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221107094348.72223dc8@xps-13 \
--to=miquel.raynal@bootlin.com \
--cc=aahringo@redhat.com \
--cc=alex.aring@gmail.com \
--cc=davem@davemloft.net \
--cc=david.girault@qorvo.com \
--cc=edumazet@google.com \
--cc=frederic.blain@qorvo.com \
--cc=guilhem.imberton@qorvo.com \
--cc=kuba@kernel.org \
--cc=linux-wpan@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nico@ni.fr.eu.org \
--cc=pabeni@redhat.com \
--cc=romuald.despres@qorvo.com \
--cc=stefan@datenfreihafen.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).