Commit 9aa9d94
committed
Bluetooth: L2CAP: Fix responding with wrong PDU type
L2CAP_ECRED_CONN_REQ shall be responded with L2CAP_ECRED_CONN_RSP not
L2CAP_LE_CONN_RSP:
L2CAP LE EATT Server - Reject - run
Listening for connections
New client connection with handle 0x002a
Sending L2CAP Request from client
Client received response code 0x15
Unexpected L2CAP response code (expected 0x18)
L2CAP LE EATT Server - Reject - test failed
> ACL Data RX: Handle 42 flags 0x02 dlen 26
LE L2CAP: Enhanced Credit Connection Request (0x17) ident 1 len 18
PSM: 39 (0x0027)
MTU: 64
MPS: 64
Credits: 5
Source CID: 65
Source CID: 66
Source CID: 67
Source CID: 68
Source CID: 69
< ACL Data TX: Handle 42 flags 0x00 dlen 16
LE L2CAP: LE Connection Response (0x15) ident 1 len 8
invalid size
00 00 00 00 00 00 06 00
L2CAP LE EATT Server - Reject - run
Listening for connections
New client connection with handle 0x002a
Sending L2CAP Request from client
Client received response code 0x18
L2CAP LE EATT Server - Reject - test passed
Fixes: 15f02b9 ("Bluetooth: L2CAP: Add initial code for Enhanced Credit Based Mode")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>1 parent 5d44ab9 commit 9aa9d94
1 file changed
Lines changed: 79 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
711 | 722 | | |
712 | 723 | | |
713 | 724 | | |
| |||
775 | 786 | | |
776 | 787 | | |
777 | 788 | | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | 789 | | |
788 | 790 | | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
| 791 | + | |
795 | 792 | | |
796 | 793 | | |
797 | 794 | | |
| |||
846 | 843 | | |
847 | 844 | | |
848 | 845 | | |
849 | | - | |
| 846 | + | |
850 | 847 | | |
851 | 848 | | |
852 | 849 | | |
| |||
3938 | 3935 | | |
3939 | 3936 | | |
3940 | 3937 | | |
3941 | | - | |
| 3938 | + | |
3942 | 3939 | | |
| 3940 | + | |
| 3941 | + | |
| 3942 | + | |
| 3943 | + | |
| 3944 | + | |
| 3945 | + | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
| 3955 | + | |
| 3956 | + | |
| 3957 | + | |
| 3958 | + | |
| 3959 | + | |
3943 | 3960 | | |
3944 | 3961 | | |
3945 | | - | |
| 3962 | + | |
3946 | 3963 | | |
| 3964 | + | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
3947 | 3986 | | |
3948 | | - | |
3949 | | - | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
3950 | 3990 | | |
3951 | | - | |
| 3991 | + | |
3952 | 3992 | | |
3953 | 3993 | | |
3954 | | - | |
| 3994 | + | |
3955 | 3995 | | |
3956 | | - | |
3957 | | - | |
3958 | | - | |
3959 | | - | |
| 3996 | + | |
3960 | 3997 | | |
3961 | | - | |
| 3998 | + | |
| 3999 | + | |
| 4000 | + | |
| 4001 | + | |
3962 | 4002 | | |
3963 | | - | |
3964 | | - | |
3965 | | - | |
| 4003 | + | |
| 4004 | + | |
3966 | 4005 | | |
3967 | | - | |
3968 | | - | |
| 4006 | + | |
| 4007 | + | |
3969 | 4008 | | |
3970 | | - | |
3971 | | - | |
3972 | | - | |
| 4009 | + | |
| 4010 | + | |
3973 | 4011 | | |
3974 | | - | |
| 4012 | + | |
| 4013 | + | |
3975 | 4014 | | |
3976 | | - | |
3977 | | - | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
3978 | 4018 | | |
3979 | 4019 | | |
3980 | 4020 | | |
| |||
6078 | 6118 | | |
6079 | 6119 | | |
6080 | 6120 | | |
| 6121 | + | |
6081 | 6122 | | |
6082 | 6123 | | |
6083 | 6124 | | |
| |||
0 commit comments