patch-2.3.19 linux/net/irda/ircomm/ircomm_ttp.c

Next file: linux/net/irda/ircomm/ircomm_tty.c
Previous file: linux/net/irda/ircomm/ircomm_param.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.18/linux/net/irda/ircomm/ircomm_ttp.c linux/net/irda/ircomm/ircomm_ttp.c
@@ -6,7 +6,7 @@
  * Status:        Experimental.
  * Author:        Dag Brattli <dagb@cs.uit.no>
  * Created at:    Sun Jun  6 20:48:27 1999
- * Modified at:   Tue Aug 17 10:28:26 1999
+ * Modified at:   Mon Sep 27 11:17:23 1999
  * Modified by:   Dag Brattli <dagb@cs.uit.no>
  * 
  *     Copyright (c) 1999 Dag Brattli, All Rights Reserved.
@@ -196,7 +196,7 @@
 		return;
 	}
 
-	info.max_data_size = qos->data_size.value - max_header_size
+	info.max_data_size = irttp_get_max_seq_size(self->tsap)
 		- IRCOMM_HEADER_SIZE;
 	info.max_header_size = max_header_size + IRCOMM_HEADER_SIZE;
 	info.qos = qos;
@@ -206,7 +206,7 @@
 
 /*
  * Function ircomm_ttp_connect_indication (instance, sap, qos, max_sdu_size,
- *                                            max_header_size, skb)
+ *                                         max_header_size, skb)
  *
  *    
  *
@@ -232,7 +232,7 @@
 		return;
 	}
 
-	info.max_data_size = qos->data_size.value - max_header_size
+	info.max_data_size = irttp_get_max_seq_size(self->tsap)
 		- IRCOMM_HEADER_SIZE;
 	info.max_header_size = max_header_size + IRCOMM_HEADER_SIZE;
 	info.qos = qos;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)