linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
To: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Cc: affix-devel@lists.sourceforge.net,
	Affix support <affix-support@lists.sourceforge.net>,
	Bluetooth-Drivers-for-Linux 
	<Bluetooth-Drivers-for-Linux@research.nokia.com>,
	NRC-WALLET DL <DL.NRC-WALLET@nokia.com>,
	linux-net <linux-net@vger.kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: New Affix Release: Affix-0_9
Date: Mon, 04 Feb 2002 10:42:57 +0200	[thread overview]
Message-ID: <3C5E4991.6010707@nokia.com> (raw)
In-Reply-To: <3C500D09.4080206@nokia.com> <3C5AB093.5050405@nokia.com>

[-- Attachment #1: Type: text/plain, Size: 949 bytes --]

Hi,

Here is small patch. Apply it for Affix-0_9
Otherwise RFCOMM will not work.

br, Dmitry

Dmitry Kasatkin wrote:

> Hi,
>
> Find new affix release Affix-0_9pre10 on
> http://affix.sourceforge.net
>
> Version 0.9 [01.02.2002]
>
> !!! NOTES
>    Do not patch the kernel with this version.
>    Patch will be available soon
>
> - btctl shows all available devices in the system
>  btctl -i bt0
>  "-i" this options is used to handle certain devices
> - btuarto changed by btuart.o & btuart_cs.o
>  btctl open_uart /dev/ttyS0
>  btctl close_uart /dev/ttyS0
>  commands are use to open Bluetooth adapters having UART interface
> - Added HCI socket (internally used only now)
>  BTPROTO_HCI
> - Added some object locks
> - Added btsdp_browse
>  Use
>  btsdp_browse <bda | local>
>  to browse SDP server data base
>
>
> br, Dmitry
>


-- 
 Dmitry Kasatkin
 Nokia Research Center / Helsinki
 Mobile: +358 50 4836365
 E-Mail: dmitry.kasatkin@nokia.com



[-- Attachment #2: patch-Affix-0_9fix1 --]
[-- Type: text/plain, Size: 3415 bytes --]

diff -ur Affix-0_9/kernel/btcore/af_hci.c affix/kernel/btcore/af_hci.c
--- Affix-0_9/kernel/btcore/af_hci.c	Fri Feb  1 14:56:59 2002
+++ affix/kernel/btcore/af_hci.c	Mon Feb  4 09:46:07 2002
@@ -19,7 +19,7 @@
 */
 
 /* 
-   $Id: af_hci.c,v 2.15 2002/02/01 12:56:59 kds Exp $
+   $Id: af_hci.c,v 2.17 2002/02/04 07:46:07 kds Exp $
 
    AF_AFFIX - HCI Protocol Address family for socket interface
 
@@ -499,6 +499,7 @@
 	}
 
 	hsk->hci = hci;
+	hsk->evl->hci = hci;
 
 	DBFEXIT;
 	return err;
diff -ur Affix-0_9/kernel/btcore/l2cap.c affix/kernel/btcore/l2cap.c
--- Affix-0_9/kernel/btcore/l2cap.c	Fri Feb  1 16:16:26 2002
+++ affix/kernel/btcore/l2cap.c	Mon Feb  4 09:50:40 2002
@@ -19,7 +19,7 @@
 */
 
 /* 
-   $Id: l2cap.c,v 2.38 2002/02/01 14:16:26 kds Exp $
+   $Id: l2cap.c,v 2.40 2002/02/04 07:50:40 kds Exp $
 
    Link Layer Control and Adaptation Protocol
 
@@ -1248,6 +1248,8 @@
 	if( !hcc_linkup(ch->con) )
 		return 0;
 
+	ch->hdrlen = con->hdrlen + L2CAP_HDR_LEN;
+
 	if( STATE(ch) == CHN_CLOSED ) {
 		ENTERSTATE(ch, CHN_W4_L2CAP_CRSP);
 		l2cap_connect_req(ch->con, get_id(ch), ch->psm, ch->lcid);
@@ -1364,7 +1366,7 @@
 		err = -ENOTCONN;
 		goto exit;
 	}
-
+	DBPRT(DBXMITE, "Headroom is: %d\n", skb_headroom(skb));
 	send_data(ch, skb);
 
  exit:
diff -ur Affix-0_9/kernel/btcore/rfcomm.c affix/kernel/btcore/rfcomm.c
--- Affix-0_9/kernel/btcore/rfcomm.c	Fri Jan 25 15:17:13 2002
+++ affix/kernel/btcore/rfcomm.c	Mon Feb  4 10:33:22 2002
@@ -19,7 +19,7 @@
 */
 
 /* 
-   $Id: rfcomm.c,v 2.53 2002/01/25 13:17:13 kds Exp $
+   $Id: rfcomm.c,v 2.54 2002/02/04 08:33:22 kds Exp $
 
    RFCOMM - RFCOMM protocol for Bluetooth
 
@@ -330,6 +330,8 @@
 	if( !rfcomm_connected(sn) )
 		return 0;
 
+	con->hdrlen = sn->hdrlen + LONG_HDR_SIZE + 1;
+
 	if( STATE(con) == RFCON_CLOSED ) {
 		ENTERSTATE(con, RFCON_W4_CONRSP);
 		con->dlci |= (!sn->initiator & 0x01);	/* set session bit */
@@ -610,6 +612,8 @@
 		while( con && IS_DEAD(con) )
 			con = BTL_NEXT(con);
 		if( con ) {
+			con->hdrlen = sn->hdrlen + LONG_HDR_SIZE + 1;
+
 			/* FIXME: check state here */
 			con->credit_based = 1;
 			con->pops->control_ind(con, TYPE_REQUEST, NULL);/* FIXME: ?? */
@@ -620,6 +624,8 @@
 		rfcomm_con	*next;
 		btl_for_each_next(con, sn->cons, next)
 			if( status == 0 ) {
+				con->hdrlen = sn->hdrlen + LONG_HDR_SIZE + 1;
+
 				if( STATE(con) == RFCON_CLOSED ) {
 					ENTERSTATE(con, RFCON_W4_CONRSP);
 					con->dlci |= (!sn->initiator & 0x01);/* session bit */
diff -ur Affix-0_9/kernel/include/affix/rfcomm.h affix/kernel/include/affix/rfcomm.h
--- Affix-0_9/kernel/include/affix/rfcomm.h	Fri Jan 25 16:25:58 2002
+++ affix/kernel/include/affix/rfcomm.h	Mon Feb  4 10:33:22 2002
@@ -19,7 +19,7 @@
 */
 
 /* 
-   $Id: rfcomm.h,v 1.21 2002/01/25 14:25:58 kds Exp $
+   $Id: rfcomm.h,v 1.24 2002/02/04 08:33:22 kds Exp $
 
    RFCOMM - RFCOMM protocol for Bluetooth
 
@@ -169,10 +169,10 @@
 	u8		value[0];
 }__PACK__ mcc_frame;
 
-typedef struct cmd_msg {
+typedef struct cmd_frame {
 	short_frame 	short_pkt;
 	mcc_frame 	mcc_pkt;
-}__PACK__ cmd_msg;
+}__PACK__ cmd_frame;
 
 
 /* Multiplexer Control Channel Commands */
@@ -720,7 +720,7 @@
 extern inline struct sk_buff *rfcomm_alloc_cmd_skb(rfcomm_sn *sn, int cmdlen)
 {
 	struct sk_buff	*skb;
-	int		hdrlen = sn->hdrlen + sizeof(cmd_msg);
+	int		hdrlen = sn->hdrlen + sizeof(cmd_frame);
 
 	if( cmdlen+sizeof(mcc_frame) > SHORT_PAYLOAD_SIZE )
 		hdrlen++;

  reply	other threads:[~2002-02-04  8:43 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-24 13:32 New Affix Release: Affix-0_9pre10 Dmitry Kasatkin
2002-02-01 15:13 ` New Affix Release: Affix-0_9 Dmitry Kasatkin
2002-02-04  8:42   ` Dmitry Kasatkin [this message]
2002-02-07 14:21     ` New Affix Release: Affix-0_91 -> PAN support Dmitry Kasatkin
2002-02-07 14:23       ` Dmitry Kasatkin
2002-02-15 15:15         ` New Affix Release: Affix-0_92 Dmitry Kasatkin
2002-02-22 15:34           ` New Affix Release: Affix-0_93 Dmitry Kasatkin
2002-03-01 11:54             ` New Affix Release: Affix-0_94 Dmitry Kasatkin
2002-03-07 14:35               ` New Affix Release: Affix-0_95 --- Bluetooth Protocol Stack Dmitry Kasatkin
2002-03-15 15:19                 ` New Affix Release: Affix-0_96 --- Bluetooth Protocol Stack. GUI available now Dmitry Kasatkin
2002-03-28 23:03                   ` New Affix Release: Affix-0_97 --- Bluetooth Protocol Stack. OBEX and " Dmitry Kasatkin
2002-04-05 22:26                     ` New Affix Release: Affix-0_98 " Dmitry Kasatkin
2002-04-14 14:47                       ` [new release] Affix-0_99 " Dmitry Kasatkin
2002-05-24 22:44                         ` [new release] Affix-1_00pre1 --- Bluetooth Protocol Stack. + initial Audio Support Dmitry Kasatkin
2002-06-01  1:21                           ` [new release] Affix-1_00pre2 --- Bluetooth Protocol Stack. + new drivers for Anycom and 3COM Dmitry Kasatkin
2002-06-03 10:52                             ` [new release] Affix-1_00pre2 --- Bluetooth Protocol Stack. + newdrivers " Dmitry Kasatkin
2002-06-03 12:21                               ` [recall] for patch Dmitry Kasatkin
2002-06-06 13:19                           ` [new release] Affix-1_00pre3 --- The most powerfull Bluetooth Protocol Stack Dmitry Kasatkin
2002-06-14 22:57                             ` [new release - stable] Affix-1_00pre4 " Dmitry Kasatkin
2002-06-20 16:29                               ` [news] Affix on iPAQ Dmitry Kasatkin
2002-06-20 16:53                                 ` [patch] " Dmitry Kasatkin
2002-06-25 13:14                               ` [new release - stable] Affix-1_00pre5 --- The most powerfull Bluetooth Protocol Stack Dmitry Kasatkin
2002-07-06 17:51                                 ` [new release] Affix-1_00pre6 " Dmitry Kasatkin
2002-07-16 10:23                                   ` [new release] Affix-1.0.0pre7 " Dmitry Kasatkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C5E4991.6010707@nokia.com \
    --to=dmitry.kasatkin@nokia.com \
    --cc=Bluetooth-Drivers-for-Linux@research.nokia.com \
    --cc=DL.NRC-WALLET@nokia.com \
    --cc=affix-devel@lists.sourceforge.net \
    --cc=affix-support@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).