[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bluetooth-dev] SDP problem...



This is from sdp.c line 906

#ifdef USE_NEW_PROC
ssize_t sdp_database_read(struct file *f, char *buf, 
			  size_t count, loff_t *offset)
#else
s32 sdp_database_read(struct inode *inode, struct file * file,
		      char * buf, s32 count)
#endif
{
	s32 len;
	
	D_PROC(__FUNCTION__ " Someone is trying to read %d bytes from sdp 
proc-file\n",
	       count);
	cli();
	if (database_query.count <= 0) {
		D_PROC(__FUNCTION__ " No bytes available, going to sleep\n");
		interruptible_sleep_on(&database_wq);
	}
	sti();

So when sdp_server tries to read the sdp_proc file, all interrupts are 
disabled, and then it goes to sleep right ? So, no more interrupts can 
happen. I don't understand this piece of code (I'm sorry).


Le Jeudi 21 Juin 2001 13:12, david LIBAULT a écrit :
> Here is the problem :
>
> ---------> This is a ServiceSearchReq with TransId 0x7777 with service
> search pattern 0x1109 (cordless telephony).
>
> sdp_receive_data (13):
> 0x02 0x77 0x77 0x00 0x08 0x35 0x03 0x19 0x11 0x09 0x01 0x00 0x00
> wake_up process 0 (swapper) awakening
> wake_up process 0 (swapper) woke up
> HCI: hci_clear_buffer
> HCI: get_inbuffer: Found inbuffer for hci_hdl 1 c20487c4
> -------> The request is sent to the server
> sdp_database_read Returning 21 bytes
> -------> The server probably answers 15 bytes
> sdp_database_write Someone wrote 8 bytes to sdp proc-file
> sdp_database_write Someone wrote 7 bytes to sdp proc-file
>           SDP sdp_database_write preparing to send 7 bytes data to
> sdp_con[0] -------> a 7 bytes (instead of 15 ?) SDP packet is sent...
> Data to be sent to client: (7):
> 0x01 0x40 0x00 0x00 0x00 0x00 0xf4
>     L2CAP l2cap_send_data: hdl : 1, rcid : 64, len:7
>
> l2cap_send_data:  (11):
> 0x07 0x00 0x40 0x00 0x01 0x00 0x08 0x00 0x02 0x00 0x04
>
> I don't recognise the "Data to be sent to client" in the l2cap message.
>
> Le Jeudi 21 Juin 2001 11:42, Peter Kjellerstedt a écrit :
> > > -----Original Message-----
> > > From: david LIBAULT [mailto:david.libault@xxxxxxx.fr]
> > > Sent: 21 June 2001 11:21
> > > To: bluetooth-dev@xxxxxxx.com
> > > Subject: [bluetooth-dev] L2CAP RTX timer...
> >
> > [snip]
> >
> > > SDP still not working...
> >
> > What's the problem with SDP?
> >
> > //Peter
> > -
> > To unsubscribe from this list: send the line "unsubscribe bluetooth-dev"
> > in the body of a message to majordomo@xxxxxxx.com
>
> -
> To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
> the body of a message to majordomo@xxxxxxx.com
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com