@@ -108,6 +108,10 @@ struct btd_advmon_opts {
uint8_t rssi_sampling_period;
};
+struct btd_bcast_opts {
+ uint8_t nb_bises;
+};
+
struct btd_opts {
char *name;
uint32_t class;
@@ -151,6 +155,8 @@ struct btd_opts {
struct btd_advmon_opts advmon;
struct btd_csis csis;
+
+ struct btd_bcast_opts bcast;
};
extern struct btd_opts btd_opts;
@@ -1137,6 +1137,13 @@ static void parse_advmon(GKeyFile *config)
0, UINT8_MAX);
}
+static void parse_bcast(GKeyFile *config)
+{
+ parse_config_u8(config, "Bcast", "NumberOfBISes",
+ &btd_opts.bcast.nb_bises,
+ 0, UINT8_MAX);
+}
+
static void parse_config(GKeyFile *config)
{
if (!config)
@@ -1154,6 +1161,7 @@ static void parse_config(GKeyFile *config)
parse_csis(config);
parse_avdtp(config);
parse_advmon(config);
+ parse_bcast(config);
}
static void init_defaults(void)
@@ -1195,6 +1203,8 @@ static void init_defaults(void)
btd_opts.avdtp.stream_mode = BT_IO_MODE_BASIC;
btd_opts.advmon.rssi_sampling_period = 0xFF;
+
+ btd_opts.bcast.nb_bises = 0x01;
btd_opts.csis.encrypt = true;
}
@@ -337,3 +337,11 @@
# 0xFF Report only one advertisement per device during monitoring period
# Default: 0xFF
#RSSISamplingPeriod=0xFF
+
+[Bcast]
+# The number of BISes. This is used, when an application registers a
+# broadcast source endpoint, as the number of BISes in a BIG.
+# Possible values:
+# N = 0xXX Number of BISes (range: 0x01 to nb of maximum Controller supported BISes)
+# Default: 0x01
+#NumberOfBISes=0x01