mwifiex: adding check for enough space before padding
authorYogesh Ashok Powar <yogeshp@marvell.com>
Mon, 6 Jun 2011 09:23:02 +0000 (14:53 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 7 Jun 2011 18:44:03 +0000 (14:44 -0400)
All MSDUs, except the last one in an AMSDU, should end up at 4
bytes boundary. There is need to check if enough skb_tailroom
space exists before padding the skb.

Also re-arranging code for better readablity.

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found