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

Commit 6a3d23f9 authored by Ghanim Fodi's avatar Ghanim Fodi Committed by Gerrit - the friendly Code Review server
Browse files

msm: rndis_ipa: Adapt driver to 4.9 Linux kernel



Starting Linux kernel 4.7, network device structure
field 'trans_start' is removed. Write access to the
field done now by new API netif_trans_update(net_device).

CRs-fixed: 2016040
Change-Id: I2884245f05832ae2e11fe7731f7f35c15ed0e149
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent e6ccf71c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -121,8 +121,8 @@ enum rndis_ipa_operation {
};

#define RNDIS_IPA_STATE_DEBUG(ctx) \
	(RNDIS_IPA_DEBUG("Driver state: %s\n",\
	rndis_ipa_state_string((ctx)->state)))
	RNDIS_IPA_DEBUG("Driver state: %s\n",\
	rndis_ipa_state_string((ctx)->state))


/**
@@ -832,7 +832,7 @@ static netdev_tx_t rndis_ipa_start_xmit(struct sk_buff *skb,
	netdev_tx_t status = NETDEV_TX_BUSY;
	struct rndis_ipa_dev *rndis_ipa_ctx = netdev_priv(net);

	net->trans_start = jiffies;
	netif_trans_update(net);

	RNDIS_IPA_DEBUG
		("Tx, len=%d, skb->protocol=%d, outstanding=%d\n",