summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/wl12xx/wl1251_tx.c
diff options
context:
space:
mode:
authorKalle Valo <kalle.valo@nokia.com>2009-11-30 11:18:40 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-12-22 02:56:00 +0300
commit46cb35f5e761306b031029af2061ea263359a764 (patch)
tree7a564f04858db8e01a38a282fd26660eeb71f69f /drivers/net/wireless/wl12xx/wl1251_tx.c
parent49e1b9faed736b20ad9a785638919341b567a595 (diff)
downloadlinux-46cb35f5e761306b031029af2061ea263359a764.tar.xz
wl1251: update tx_hdr when aliging skb in tx
Before transmission when aligning the buffer to 4-byte bounday, tx_hdr needs to be updated. Otherwise debug logs print false data. Signed-off-by: Kalle Valo <kalle.valo@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251_tx.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_tx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_tx.c b/drivers/net/wireless/wl12xx/wl1251_tx.c
index faa23efd05a1..c8223185efd2 100644
--- a/drivers/net/wireless/wl12xx/wl1251_tx.c
+++ b/drivers/net/wireless/wl12xx/wl1251_tx.c
@@ -219,6 +219,7 @@ static int wl1251_tx_send_packet(struct wl1251 *wl, struct sk_buff *skb,
/* align the buffer on a 4-byte boundary */
skb_reserve(skb, offset);
memmove(skb->data, src, skb->len);
+ tx_hdr = (struct tx_double_buffer_desc *) skb->data;
} else {
wl1251_info("No handler, fixme!");
return -EINVAL;