64 irlan_client_state_idle,
65 irlan_client_state_query,
66 irlan_client_state_conn,
67 irlan_client_state_info,
68 irlan_client_state_media,
69 irlan_client_state_open,
70 irlan_client_state_wait,
71 irlan_client_state_arb,
72 irlan_client_state_data,
73 irlan_client_state_close,
74 irlan_client_state_sync
83 (*
state[
self->client.state]) (
self, event, skb);
102 if (self->client.iriap) {
113 self->saddr, self->daddr,
114 "IrLAN",
"IrDA:TinyTP:LsapSel");
117 IRDA_DEBUG(2,
"%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ );
120 IRDA_DEBUG(4,
"%s(), Unknown event %d\n", __func__ , event);
146 IRDA_ASSERT(self->dtsap_sel_ctrl != 0,
return -1;);
148 self->client.open_retries = 0;
151 self->dtsap_sel_ctrl,
152 self->saddr, self->daddr,
NULL,
157 IRDA_DEBUG(2,
"%s(), IAS_PROVIDER_NOT_AVAIL\n", __func__ );
170 IRDA_DEBUG(2,
"%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ );
173 IRDA_DEBUG(2,
"%s(), Unknown event %d\n", __func__ , event);
207 IRDA_DEBUG(2,
"%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ );
210 IRDA_DEBUG(2,
"%s(), Unknown event %d\n", __func__ , event);
247 IRDA_DEBUG(2,
"%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ );
250 IRDA_DEBUG(2,
"%s(), Unknown event %d\n", __func__ , event);
284 IRDA_DEBUG(2,
"%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ );
287 IRDA_DEBUG(2,
"%s(), Unknown event %d\n", __func__ , event);
320 IRDA_ASSERT(self->dtsap_sel_data != 0,
return -1;);
323 switch (self->client.access_type) {
337 qos.link_disc_time.bits = 0x01;
340 self->dtsap_sel_data,
341 self->saddr, self->daddr, &qos,
347 IRDA_DEBUG(2,
"%s(), unknown access type!\n", __func__ );
356 IRDA_DEBUG(2,
"%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ );
359 IRDA_DEBUG(2,
"%s(), Unknown event %d\n", __func__ , event);
393 IRDA_DEBUG(2,
"%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ );
396 IRDA_DEBUG(2,
"%s(), Unknown event %d\n", __func__ , event);
416 if (self->client.recv_arb_val == self->provider.send_arb_val) {
419 }
else if (self->client.recv_arb_val <
420 self->provider.send_arb_val)
422 qos.link_disc_time.bits = 0x01;
426 self->dtsap_sel_data,
427 self->saddr, self->daddr, &qos,
429 }
else if (self->client.recv_arb_val >
430 self->provider.send_arb_val)
432 IRDA_DEBUG(2,
"%s(), lost the battle :-(\n", __func__ );
443 IRDA_DEBUG(2,
"%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ );
446 IRDA_DEBUG(2,
"%s(), Unknown event %d\n", __func__ , event);
479 IRDA_DEBUG(2,
"%s(), Unknown event %d\n", __func__ , event);