]> git.baikalelectronics.ru Git - kernel.git/commit
mac802154: account for all header parts during wpan header creationg
authorPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Wed, 14 May 2014 15:43:07 +0000 (17:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 May 2014 19:51:42 +0000 (15:51 -0400)
commitd1d149e305b28620a0b6447bbba4949d6ef72d0a
treec258f1be2848e07f75979202bce494acb610cfe0
parentcf0ff73faccb70ae747ac200400781a87725693d
mac802154: account for all header parts during wpan header creationg

The current WPAN header creation code checks for EMSGSIZE conditions,
but does not account for the MIC field that link layer security may add
at the end of the frame. Now that we can accurately calculate the
maximum payload size of packets, use that to check for EMSGSIZE
conditions.

Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac802154/wpan.c