mac80211: Fix headroom allocation when forwarding mesh pkt
authorCedric Izoard <Cedric.Izoard@ceva-dsp.com>
Wed, 11 Jan 2017 14:39:07 +0000 (14:39 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 11 Jan 2017 15:07:29 +0000 (16:07 +0100)
commitc38c39bf7cc04d688291f382469e84ec2a8548a4
tree3fbaccdab39ea70409c0d480d68db2a5f47be0ed
parenteeb0d56fab4cd7848cf2be6704fa48900dbc1381
mac80211: Fix headroom allocation when forwarding mesh pkt

This patch fix issue introduced by my previous commit that
tried to ensure enough headroom was present, and instead
broke it.

When forwarding mesh pkt, mac80211 may also add security header,
and it must therefore be taken into account in the needed headroom.

Fixes: d8da0b5d64d5 ("mac80211: Ensure enough headroom when forwarding mesh pkt")
Signed-off-by: Cedric Izoard <cedric.izoard@ceva-dsp.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c