From: Lennert Buytenhek Date: Mon, 30 Nov 2009 17:12:20 +0000 (+0100) Subject: mwl8k: fix addr4 zeroing and payload overwrite on DMA header creation X-Git-Tag: v2.6.33-rc1~299^2~44^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca00930153c14b323c31b97623ac5c4f7855ed6a;p=pandora-kernel.git mwl8k: fix addr4 zeroing and payload overwrite on DMA header creation When inserting a DMA header into a packet for transmission, mwl8k_add_dma_header() would blindly zero the addr4 field, which is not a good idea if the packet being transmitted is actually a 4-address packet. Also, if the transmitted packet was a 4-address with QoS packet, the memmove() to do the needed header reshuffling would inadvertently overwrite the first two bytes of the packet payload with the QoS field. This fixes both of these issues. Signed-off-by: Lennert Buytenhek Signed-off-by: John W. Linville --- Reading git-diff-tree failed