Sara Sharon 166ac9d55b mac80211: avoid kernel panic when building AMSDU from non-linear SKB
When building building AMSDU from non-linear SKB, we hit a
kernel panic when trying to push the padding to the tail.
Instead, put the padding at the head of the next subframe.
This also fixes the A-MSDU subframes to not have the padding
accounted in the length field and not have pad at all for
the last subframe, both required by the spec.

Fixes: 6e0456b54545 ("mac80211: add A-MSDU tx support")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Reviewed-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-08-29 12:17:55 +02:00
..
2018-06-12 16:19:22 -07:00
2017-02-10 14:31:51 -05:00
2018-05-18 11:14:36 +02:00
2018-02-22 21:13:03 +01:00
2014-04-09 14:49:43 +02:00
2018-06-12 16:19:22 -07:00
2012-03-13 14:54:16 -04:00
2018-02-22 21:13:03 +01:00