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

Commit 4dbde7ca authored by Maya Erez's avatar Maya Erez
Browse files

wil6210: set L2 translation mode to eth mode



ETH mode is a new flavor in OFUL2 to fix vlan/snap insertion.
Enable ETH mode by setting L2 translation type to 0x3.

Change-Id: I7f01c13400f7f66d3bc1fb1419ac5e0bd57909d4
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent 4fe478d5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1100,9 +1100,11 @@ static int wil_tx_desc_map_edma(union wil_tx_desc *desc,
	/* 0..6: mac_length; 7:ip_version 0-IP6 1-IP4*/
	d->dma.length = cpu_to_le16((u16)len);
	d->mac.d[0] = (ring_index << WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS);
	/* translation type:  0 - bypass; 1 - 802.3; 2 - native wifi */
	/* translation type:  0 - bypass; 1 - 802.3; 2 - native wifi;
	 * 3 - eth mode
	 */
	d->mac.d[2] = BIT(MAC_CFG_DESC_TX_2_SNAP_HDR_INSERTION_EN_POS) |
		      (1 << MAC_CFG_DESC_TX_2_L2_TRANSLATION_TYPE_POS);
		      (0x3 << MAC_CFG_DESC_TX_2_L2_TRANSLATION_TYPE_POS);

	return 0;
}