FROMLIST: Bluetooth: Tolerate valid pre 4.2 conn params

This patch tolerates connection parameters that were valid before
ESR08_v1.0.0 which was also incoporated into the 4.2 core specification.

In particular, this addresses compatibility issues with the Lenovo Yoga
Mouse that sees its connection parameters rejected by the max_latency
computation in hci_conn_check_params, but was perfectly valid at the
time this mouse was qualified.

Before the patch, the mouse was extremely laggy, after the patch, the
mouse worked as expected.

Signed-off-by: Alain Michaud <alainm@chromium.org>
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Tested-by: Harry Cutts <hcutts@chromium.org>
(am from https://patchwork.kernel.org/patch/12091711/)
(also found at https://lore.kernel.org/r/20210217142511.3221605-1-alainm@chromium.org)

BUG=b:179420794
TEST=Validated against the specific Lenovo Yoga Mouse

Change-Id: Id3b6d29418036424ea695561f03751612590a141
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2706006
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Daniel Winkler <danielwinkler@google.com>
Tested-by: Alain Michaud <alainm@chromium.org>
Commit-Queue: Alain Michaud <alainm@chromium.org>
2 files changed