core: Update default advmon Sampling_Period to 0xFF
authorManish Mandlik <mmandlik@google.com>
Sat, 20 Nov 2021 15:29:41 +0000 (07:29 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:38 +0000 (19:08 +0530)
Update default Advertisemet Monitor Sampling_Period to 0xFF. It
indicates that controller will report only one advertisement per
monitoring period for a device. This will help reduce the power
consumption drastically.

Reviewed-by: Miao-chen Chou <mcchou@google.com>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/main.c
src/main.conf

index 27efb18..7a2fb51 100755 (executable)
@@ -983,7 +983,7 @@ static void init_defaults(void)
        btd_opts.avdtp.session_mode = BT_IO_MODE_BASIC;
        btd_opts.avdtp.stream_mode = BT_IO_MODE_BASIC;
 
-       btd_opts.advmon.rssi_sampling_period = 0;
+       btd_opts.advmon.rssi_sampling_period = 0xFF;
 #endif
 }
 
index d5c4f54..94005f1 100755 (executable)
 [AdvMon]
 # Default RSSI Sampling Period. This is used when a client registers an
 # advertisement monitor and leaves the RSSISamplingPeriod unset.
-# Default: 0
-#RSSISamplingPeriod=0
+# Possible values:
+# 0x00       Report all advertisements
+# N = 0xXX   Report advertisements every N x 100 msec (range: 0x01 to 0xFE)
+# 0xFF       Report only one advertisement per device during monitoring period
+# Default: 0xFF
+#RSSISamplingPeriod=0xFF