Re: [PATCH BlueZ v1 1/1] Autoconnecttimeout max value increased to 20000 msecs from 16384 msecs

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

 



Dear Mahesh,


Thank you for you patch.

Am 29.03.24 um 07:35 schrieb Mahesh Talewad:
  - In implementation Autoconnecttimeout max value is 16384 msecs.
    Increased this Autoconnecttimeout max value to 20000 msecs.

Please do *not* format it as a list item. I’d also rewrite the commit message summary/title to use imperative mood:

Increase autoconnect timeout max from 16.384 s to 20 s

Please also add, why this change is necessary.

Signed-off-by: Mahesh Talewad <mahesh.talewad@xxxxxxx>
---
  src/main.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c
index b1339c230..8ce72badc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -656,7 +656,7 @@ static void parse_le_config(GKeyFile *config)
  		  &btd_opts.defaults.le.autoconnect_timeout,
  		  sizeof(btd_opts.defaults.le.autoconnect_timeout),
  		  0x0001,
-		  0x4000},
+		  0x4E20},

Please add a comment with the decimal value. (Or why not use a decimal value?)

Also, isn’t

2 * 16 + 15 * 256 + 4 * 16^3 = 20256

Why not just use 0x5000 (= 20480) to make it easier to calculate?

  		{ "AdvMonAllowlistScanDuration",
  		  &btd_opts.defaults.le.advmon_allowlist_scan_duration,
  		  sizeof(btd_opts.defaults.le.advmon_allowlist_scan_duration),




[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