|
From: Olov H. <ol...@us...> - 2001-07-10 13:01:02
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_if.c 1.21 1.22=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added support for max number of BT connections
The diff of the modified file(s):
--- bt_if.c 2001/06/19 10:36:45 1.21
+++ bt_if.c 2001/07/10 13:01:02 1.22
@@ -542,6 +542,22 @@
return ret_val;
}
=20
+int bt_set_max_conections(int bt_cfd, int connections)
+{
+ int ret_val;
+
+ syslog(LOG_INFO, __FUNCTION__ ": %d", connections);
+#ifndef BT_USERSTACK=20
+ if ((ret_val =3D ioctl(bt_cfd, BTSETMAXCONNECTIONS, &connections)) < 0)
+ {
+ fprintf(stderr, __FUNCTION__ ": %s\n", error_msg(ret_val));
+ }
+#else
+ printf(__FUNCTION__": not implemented in userstack mode!\n"
+#endif
+ return ret_val;
+}
+
/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D */
/* HCI functions */
=20
|