Client SDU size problem with nokia 7210

Igor Ivoilov <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi list,

Some time ago this problem was reported by Vjacheslav, but the reason was
pointed not correctly.
Actually n7210 sends SDU size, but it concatenates connect and get requests
into 1 packet.
Wsp layer made update of client_SDU_size on S-Connect.res, that happens
after get event in this case.
So here is a patch to fix the problem that works fine for me

Igor
n7210.patch (application/octet-stream, 740 B)
Index: wap/wsp_server_session_states.def
===================================================================
RCS file: /home/cvs/gateway/wap/wsp_server_session_states.def,v
retrieving revision 1.6
diff -u -b -r1.6 wsp_server_session_states.def
--- wap/wsp_server_session_states.def	27 Mar 2001 14:34:02 -0000	1.6
+++ wap/wsp_server_session_states.def	22 Nov 2002 22:27:18 -0000
@@ -38,8 +38,12 @@
 		sm->session_id = next_wsp_session_id();
 
 		if (pdu->u.Connect.capabilities_len > 0) {
+			unsigned long sdu;
 			sm->request_caps = wsp_cap_unpack_list(
 				pdu->u.Connect.capabilities);
+			if (wsp_cap_get_client_sdu(sm->request_caps,&sdu)) {
+				sm->client_SDU_size = sdu;
+			}
 		} else {
 			sm->request_caps = list_create();
 		}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.