/* Called whenever a link setup request timer associated with a bearer expires.  */
static void disc_timeout(struct link_req *req)
/* Called whenever a link setup request timer associated with a bearer expires.  */
static void disc_timeout(struct link_req *req)
{
	spin_lock_bh(&req->bearer->publ.lock);
	req->bearer->media->send_msg(req->buf, &req->bearer->publ, &req->dest);
	if ((req->timer_intv == TIPC_LINK_REQ_SLOW) ||
	    (req->timer_intv == TIPC_LINK_REQ_FAST)) {
	} else {
		req->timer_intv *= 2;
		if (req->timer_intv > TIPC_LINK_REQ_FAST)
			req->timer_intv = TIPC_LINK_REQ_FAST;
		if ((req->timer_intv == TIPC_LINK_REQ_FAST) &&
		    (req->bearer->nodes.count))
			req->timer_intv = TIPC_LINK_REQ_SLOW;
	}
	k_start_timer(&req->timer, req->timer_intv);
	spin_unlock_bh(&req->bearer->publ.lock);
}