Message ID | 20250317174143.530997-1-luiz.dentz@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v1] Bluetooth: L2CAP: Fix missing options not using most recent value | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/SubjectPrefix | success | Gitlint PASS |
tedd_an/BuildKernel | success | BuildKernel PASS |
tedd_an/CheckAllWarning | success | CheckAllWarning PASS |
tedd_an/CheckSparse | success | CheckSparse PASS |
tedd_an/BuildKernel32 | success | BuildKernel32 PASS |
tedd_an/TestRunnerSetup | success | TestRunnerSetup PASS |
tedd_an/TestRunner_l2cap-tester | success | TestRunner PASS |
tedd_an/TestRunner_iso-tester | success | TestRunner PASS |
tedd_an/TestRunner_bnep-tester | success | TestRunner PASS |
tedd_an/TestRunner_mgmt-tester | fail | TestRunner_mgmt-tester: Total: 490, Passed: 484 (98.8%), Failed: 2, Not Run: 4 |
tedd_an/TestRunner_rfcomm-tester | success | TestRunner PASS |
tedd_an/TestRunner_sco-tester | success | TestRunner PASS |
tedd_an/TestRunner_ioctl-tester | success | TestRunner PASS |
tedd_an/TestRunner_mesh-tester | success | TestRunner PASS |
tedd_an/TestRunner_smp-tester | success | TestRunner PASS |
tedd_an/TestRunner_userchan-tester | success | TestRunner PASS |
This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=944804 ---Test result--- Test Summary: CheckPatch PENDING 0.28 seconds GitLint PENDING 0.30 seconds SubjectPrefix PASS 0.12 seconds BuildKernel PASS 24.64 seconds CheckAllWarning PASS 27.31 seconds CheckSparse PASS 30.69 seconds BuildKernel32 PASS 24.30 seconds TestRunnerSetup PASS 436.96 seconds TestRunner_l2cap-tester PASS 21.63 seconds TestRunner_iso-tester PASS 37.29 seconds TestRunner_bnep-tester PASS 5.10 seconds TestRunner_mgmt-tester FAIL 135.73 seconds TestRunner_rfcomm-tester PASS 8.08 seconds TestRunner_sco-tester PASS 12.30 seconds TestRunner_ioctl-tester PASS 8.48 seconds TestRunner_mesh-tester PASS 8.82 seconds TestRunner_smp-tester PASS 7.55 seconds TestRunner_userchan-tester PASS 5.02 seconds IncrementalBuild PENDING 0.76 seconds Details ############################## Test: CheckPatch - PENDING Desc: Run checkpatch.pl script Output: ############################## Test: GitLint - PENDING Desc: Run gitlint Output: ############################## Test: TestRunner_mgmt-tester - FAIL Desc: Run mgmt-tester with test-runner Output: Total: 490, Passed: 484 (98.8%), Failed: 2, Not Run: 4 Failed Test Cases LL Privacy - Set Flags 1 (Add to RL) Failed 0.144 seconds LL Privacy - Start Discovery 1 (Disable RL) Failed 0.170 seconds ############################## Test: IncrementalBuild - PENDING Desc: Incremental build with the patches in the series Output: --- Regards, Linux Bluetooth
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 7b4adab353cf..7719f263f5c4 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -3385,6 +3385,20 @@ static int l2cap_parse_conf_req(struct l2cap_chan *chan, void *data, size_t data BT_DBG("chan %p", chan); + /* 4.4. L2CAP_CONFIGURATION_REQ (code 0x04): + * ... + * Any missing configuration parameters are assumed to have their most + * recently explicitly or implicitly accepted values. + */ + + /* If MTU has been previously set, use it instead of default. */ + if (test_bit(CONF_MTU_DONE, &chan->conf_state)) + mtu = chan->omtu; + + /* If Mode has been previously set, use it instead of default. */ + if (test_bit(CONF_MODE_DONE, &chan->conf_state)) + rfc.mode = chan->mode; + while (len >= L2CAP_CONF_OPT_SIZE) { len -= l2cap_get_conf_opt(&req, &type, &olen, &val); if (len < 0)