Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46cb35f5 authored by Kalle Valo's avatar Kalle Valo Committed by John W. Linville
Browse files

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: default avatarKalle Valo <kalle.valo@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 49e1b9fa
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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 */
			/* align the buffer on a 4-byte boundary */
			skb_reserve(skb, offset);
			skb_reserve(skb, offset);
			memmove(skb->data, src, skb->len);
			memmove(skb->data, src, skb->len);
			tx_hdr = (struct tx_double_buffer_desc *) skb->data;
		} else {
		} else {
			wl1251_info("No handler, fixme!");
			wl1251_info("No handler, fixme!");
			return -EINVAL;
			return -EINVAL;