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

Commit 86760088 authored by David Woodhouse's avatar David Woodhouse Committed by John W. Linville
Browse files

[PATCH] libertas: more endianness fixes, in tx.c this time



Now we finally get connectivity. For a while, before something else dies...

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent bb793e2b
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -110,7 +110,7 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb)
		/* skip the radiotap header */
		/* skip the radiotap header */
		p802x_hdr += sizeof(struct tx_radiotap_hdr);
		p802x_hdr += sizeof(struct tx_radiotap_hdr);
		plocaltxpd->tx_packet_length =
		plocaltxpd->tx_packet_length =
			cpu_to_le32(le32_to_cpu(plocaltxpd->tx_packet_length)
			cpu_to_le16(le16_to_cpu(plocaltxpd->tx_packet_length)
				    - sizeof(struct tx_radiotap_hdr));
				    - sizeof(struct tx_radiotap_hdr));


	}
	}
@@ -130,11 +130,11 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb)


	ptr += sizeof(struct txpd);
	ptr += sizeof(struct txpd);


	lbs_dbg_hex("Tx Data", (u8 *) p802x_hdr, le32_to_cpu(plocaltxpd->tx_packet_length));
	lbs_dbg_hex("Tx Data", (u8 *) p802x_hdr, le16_to_cpu(plocaltxpd->tx_packet_length));
	memcpy(ptr, p802x_hdr, le32_to_cpu(plocaltxpd->tx_packet_length));
	memcpy(ptr, p802x_hdr, le16_to_cpu(plocaltxpd->tx_packet_length));
	ret = priv->hw_host_to_card(priv, MVMS_DAT,
	ret = priv->hw_host_to_card(priv, MVMS_DAT,
				    priv->adapter->tmptxbuf,
				    priv->adapter->tmptxbuf,
				    le32_to_cpu(plocaltxpd->tx_packet_length) +
				    le16_to_cpu(plocaltxpd->tx_packet_length) +
				    sizeof(struct txpd));
				    sizeof(struct txpd));


	if (ret) {
	if (ret) {