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

Commit d7e0fb98 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

[CCID3] Initialize ccid3hctx_t_ipi to 250ms



To match more closely what is described in RFC 3448.

Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: default avatarIan McDonald <iam4@cs.waikato.ac.nz>
parent cb7b593c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -328,7 +328,7 @@ static int ccid3_hc_tx_send_packet(struct sock *sk,
		hctx->ccid3hctx_last_win_count	 = 0;
		hctx->ccid3hctx_last_win_count	 = 0;
		hctx->ccid3hctx_t_last_win_count = now;
		hctx->ccid3hctx_t_last_win_count = now;
		ccid3_hc_tx_set_state(sk, TFRC_SSTATE_NO_FBACK);
		ccid3_hc_tx_set_state(sk, TFRC_SSTATE_NO_FBACK);
		hctx->ccid3hctx_t_ipi = TFRC_INITIAL_TIMEOUT;
		hctx->ccid3hctx_t_ipi = TFRC_INITIAL_IPI;


		/* Set nominal send time for initial packet */
		/* Set nominal send time for initial packet */
		hctx->ccid3hctx_t_nom = now;
		hctx->ccid3hctx_t_nom = now;
+2 −0
Original line number Original line Diff line number Diff line
@@ -48,6 +48,8 @@
/* Two seconds as per CCID3 spec */
/* Two seconds as per CCID3 spec */
#define TFRC_INITIAL_TIMEOUT	   (2 * USEC_PER_SEC)
#define TFRC_INITIAL_TIMEOUT	   (2 * USEC_PER_SEC)


#define TFRC_INITIAL_IPI	   (USEC_PER_SEC / 4)

/* In usecs - half the scheduling granularity as per RFC3448 4.6 */
/* In usecs - half the scheduling granularity as per RFC3448 4.6 */
#define TFRC_OPSYS_HALF_TIME_GRAN  (USEC_PER_SEC / (2 * HZ))
#define TFRC_OPSYS_HALF_TIME_GRAN  (USEC_PER_SEC / (2 * HZ))