]> git.baikalelectronics.ru Git - kernel.git/commit
af_ieee802154: fix check on broadcast address
authorAlexander Aring <alex.aring@gmail.com>
Thu, 20 Mar 2014 13:57:02 +0000 (14:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 21:19:45 +0000 (17:19 -0400)
commit366c353eea43c1d2edb70f2443198d82bfdf838a
treea91e357e976b5c5a059586d039a0e22429d9bf77
parent3f15094694e8d5554db4e258ffe75247111459ef
af_ieee802154: fix check on broadcast address

This patch fixes an issue which was introduced by commit
4a51bc05f7366053790486f2b4fe096392181c2a ("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>
net/ieee802154/af_ieee802154.c