Commit c28d2bf
committed
Bluetooth: L2CAP: Fix result of L2CAP_ECRED_CONN_RSP when MTU is too short
Test L2CAP/ECFC/BV-26-C expect the response to L2CAP_ECRED_CONN_REQ with
and MTU value < L2CAP_ECRED_MIN_MTU (64) to be L2CAP_CR_LE_INVALID_PARAMS
rather than L2CAP_CR_LE_UNACCEPT_PARAMS.
Also fix not including the correct number of CIDs in the response since
the spec requires all CIDs being rejected to be included in the
response.
Link: bluez/bluez#1868
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 7accb1c commit c28d2bf
2 files changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5051 | 5051 | | |
5052 | 5052 | | |
5053 | 5053 | | |
5054 | | - | |
| 5054 | + | |
5055 | 5055 | | |
5056 | 5056 | | |
5057 | 5057 | | |
5058 | 5058 | | |
5059 | 5059 | | |
5060 | 5060 | | |
| 5061 | + | |
| 5062 | + | |
5061 | 5063 | | |
5062 | 5064 | | |
5063 | 5065 | | |
| |||
5066 | 5068 | | |
5067 | 5069 | | |
5068 | 5070 | | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
5069 | 5074 | | |
5070 | 5075 | | |
5071 | 5076 | | |
| |||
5075 | 5080 | | |
5076 | 5081 | | |
5077 | 5082 | | |
5078 | | - | |
| 5083 | + | |
5079 | 5084 | | |
5080 | 5085 | | |
5081 | 5086 | | |
| |||
5095 | 5100 | | |
5096 | 5101 | | |
5097 | 5102 | | |
5098 | | - | |
5099 | | - | |
5100 | 5103 | | |
5101 | 5104 | | |
5102 | 5105 | | |
| |||
5121 | 5124 | | |
5122 | 5125 | | |
5123 | 5126 | | |
5124 | | - | |
5125 | 5127 | | |
5126 | 5128 | | |
5127 | 5129 | | |
| |||
5188 | 5190 | | |
5189 | 5191 | | |
5190 | 5192 | | |
5191 | | - | |
| 5193 | + | |
5192 | 5194 | | |
5193 | 5195 | | |
5194 | 5196 | | |
| |||
0 commit comments