RE: [PATCH ] tools/l2test: Add support for l2cap config request

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

 



Hi Luiz,

> -----Original Message-----
> From: linux-bluetooth-owner@xxxxxxxxxxxxxxx [mailto:linux-bluetooth-
> owner@xxxxxxxxxxxxxxx] On Behalf Of Luiz Augusto von Dentz
> Sent: Friday, June 12, 2015 5:49 PM
> To: Bharat Bhusan Panda
> Cc: linux-bluetooth@xxxxxxxxxxxxxxx; cpgs@xxxxxxxxxxx
> Subject: Re: [PATCH ] tools/l2test: Add support for l2cap config request
> 
> Hi Bharat,
> 
> On Fri, Jun 12, 2015 at 2:44 PM, Bharat Bhusan Panda
> <bharat.panda@xxxxxxxxxxx> wrote:
> > Hi Luiz,
> >
> >> -----Original Message-----
> >> From: linux-bluetooth-owner@xxxxxxxxxxxxxxx [mailto:linux-bluetooth-
> >> owner@xxxxxxxxxxxxxxx] On Behalf Of Luiz Augusto von Dentz
> >> Sent: Friday, June 12, 2015 4:16 PM
> >> To: Bharat Panda
> >> Cc: linux-bluetooth@xxxxxxxxxxxxxxx; cpgs@xxxxxxxxxxx
> >> Subject: Re: [PATCH ] tools/l2test: Add support for l2cap config
> >> request
> >>
> >> Hi Bharat,
> >>
> >> On Thu, Jun 11, 2015 at 2:19 PM, Bharat Panda
> >> <bharat.panda@xxxxxxxxxxx> wrote:
> >> > This allows to send l2cap configuration request by providing '-o'
> >> > option to l2test along with '-f' option to add destination CID.
> >> >
> >> > e.g.,
> >> >
> >> > l2test command format:
> >> > l2test -o -X <mode> -f <destination CID> -P <psm> <bd_addr>
> >>
> >> But the kernel should handle this for us, why do you need to do it
> manually?
> > I am not sure, whether kernel is handling it, as in my setup it fails for below
> PTS test cases, with error "MTC: The IUT does not sent subsequent
> ConfigReq or DisconnectReq after Rtx Timeout. Wait for timeout...."
> >
> > L2CAP Basic Mode
> > TP/COS/CED/BV-08-C
> > TP/COS/CFD/BV-02-C
> >
> > L2CAP ERTM mode
> > TP/CMC/BV-01-C
> > TP/CMC/BV-02-C
> > TP/CMC/BV-03-C
> > TP/CMC/BV-07-C
> > TP/CMC/BV-14-C
> >
> > Anything needs to be configured in kernel, to handle it?
> 
> Have you checked the android documentation?
> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/android/pts-l2cap.txt
Thanks, I have gone through the pts report of l2cap, and it passes for all the test cases I mentioned above, but by skipping intermediate steps for configuration negotiation.

Please correct me if I am wrong at any point. As in the PTS log I mentioned, PTS expects subsequent ConfigReq for negotiation (optional)or a DisconnectReq. As IUT dint send subsequent ConfigReq in desired time, after timeout it waits for more 65 secs to receive the ConfigReq. Still after, when it doesn't get a config request from IUT, it PASSes the TC assuming no further configuration negotiation. 
So this patch will allow to test if you have further negotiation on configuration. As per the PTS test case description it says so but it is an optional feature. If it is so necessary test case, then we can add this to tree.

Test case : TC_COS_CED_BV_08_C started
	- MTC: PTS successfully established an ACL connection.
	- The IUT sent an extended feature L2CAP Information Request.
	- The IUT sent an L2CAP Information Request.
	- MTC: The IUT correctly responded with correctly formatted L2CAP CONNECT RSP.
	- MTC: The IUT successfully sent a L2CAP_ConfigReq.
	- Tester holding config response for 65 seconds. IUT can optionally send subsequent configReq or disconnectReq during 65 seconds...
	- MTC: The IUT does not sent subsequent ConfigReq or DisconnectReq after Rtx Timeout. Wait for timeout...
	- MTC: Send config request after 65 seconds.
	- MTC: Do not receive ConfigRsp after 5 seconds.
	- CM_EXIT
	- CM_EXIT
	- CM_EXIT
	- MTC: Test case ended
	 -Final Verdict: PASS
TC_COS_CED_BV_08_C finished
> 
> 
> --
> Luiz Augusto von Dentz
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo
> info at  http://vger.kernel.org/majordomo-info.html

Best Regards,
Bharat


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux