lkml.org 
[lkml]   [2003]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 2.5] : Secondary nack fixes
From
ir254_secondary_rr.diff :
-----------------------
o [CORRECT] fix the secondary function to send RR and frames without
the poll bit when it detect packet losses


diff -u -p linux/net/irda/irlap_event.d8.c linux/net/irda/irlap_event.c
--- linux/net/irda/irlap_event.d8.c Fri Nov 8 18:52:27 2002
+++ linux/net/irda/irlap_event.c Fri Nov 8 18:56:31 2002
@@ -1870,7 +1870,7 @@ static int irlap_state_nrm_s(struct irla
irlap_update_nr_received(self, info->nr);

irlap_wait_min_turn_around(self, &self->qos_tx);
- irlap_send_rr_frame(self, CMD_FRAME);
+ irlap_send_rr_frame(self, RSP_FRAME);

irlap_start_wd_timer(self, self->wd_timeout);
}
@@ -2035,18 +2035,18 @@ static int irlap_state_nrm_s(struct irla
irlap_update_nr_received(self, info->nr);
if (self->remote_busy) {
irlap_wait_min_turn_around(self, &self->qos_tx);
- irlap_send_rr_frame(self, CMD_FRAME);
+ irlap_send_rr_frame(self, RSP_FRAME);
} else
- irlap_resend_rejected_frames(self, CMD_FRAME);
+ irlap_resend_rejected_frames(self, RSP_FRAME);
irlap_start_wd_timer(self, self->wd_timeout);
break;
case RECV_SREJ_CMD:
irlap_update_nr_received(self, info->nr);
if (self->remote_busy) {
irlap_wait_min_turn_around(self, &self->qos_tx);
- irlap_send_rr_frame(self, CMD_FRAME);
+ irlap_send_rr_frame(self, RSP_FRAME);
} else
- irlap_resend_rejected_frame(self, CMD_FRAME);
+ irlap_resend_rejected_frame(self, RSP_FRAME);
irlap_start_wd_timer(self, self->wd_timeout);
break;
case WD_TIMER_EXPIRED:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.027 / U:2.516 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site