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)
commitfb3c19bc9687d972b83faf366b38ac807eca8f25
tree0426abe754c359684ca5d0e567395015934a717a
parenta8fe32937e4e55c9ed73c79800198d137a1b968a
mwifiex: adding check for enough space before padding

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>
drivers/net/wireless/mwifiex/11n_aggr.c