diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-03-20 14:57:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-20 22:19:45 +0100 |
commit | 06324f2f7c21e3ba3529546063a3ebf7da806ed0 (patch) | |
tree | a91e357e976b5c5a059586d039a0e22429d9bf77 /net/ieee802154 | |
parent | of_mdio: Allow the DT to specify the phy ID and avoid autoprobing (diff) | |
download | linux-06324f2f7c21e3ba3529546063a3ebf7da806ed0.tar.xz linux-06324f2f7c21e3ba3529546063a3ebf7da806ed0.zip |
af_ieee802154: fix check on broadcast address
This patch fixes an issue which was introduced by commit
b70ab2e87f17176d18f67ef331064441a032b5f3 ("ieee802154: enforce
consistent endianness in the 802.15.4 stack").
The correct behaviour should be a check on the broadcast address field
which is 0xffff.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reported-by: Jan Luebbe <jlu@pengutronix.de>
Cc: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/af_ieee802154.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/af_ieee802154.c b/net/ieee802154/af_ieee802154.c index be44a86751aa..351d9a94ec2f 100644 --- a/net/ieee802154/af_ieee802154.c +++ b/net/ieee802154/af_ieee802154.c @@ -63,7 +63,7 @@ ieee802154_get_dev(struct net *net, const struct ieee802154_addr *addr) case IEEE802154_ADDR_SHORT: if (addr->pan_id == cpu_to_le16(IEEE802154_PANID_BROADCAST) || addr->short_addr == cpu_to_le16(IEEE802154_ADDR_UNDEF) || - addr->short_addr == cpu_to_le16(IEEE802154_ADDR_UNDEF)) + addr->short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST)) break; rtnl_lock(); |