[PATCH 2.5] : Secondary nack fixes

From: Jean Tourrilhes (jt@bougret.hpl.hp.com)
Date: Wed Jan 08 2003 - 21:54:33 EST


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/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:26 EST