The following file was modified in apps/bluetooth/experimental:
Name Old version New version Tag Comment
---- ----------- ----------- --- -------
btd.c 1.42 1.43=20=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added NAS-Port-Type, Calling-Station-Id and Called-Station-Id.
The diff of the modified file(s):
--- btd.c 13 Jan 2003 19:48:16 -0000 1.42
+++ btd.c 13 Mar 2003 17:51:26 -0000 1.43
@@ -497,6 +497,8 @@
static unsigned char ms_wins2[35];
static unsigned char netmask[35];
static char remote_bd_addr[18];
+ static char calling_str[37];
+ static char called_str[36];
static char remote_bd_str[36];
static char local_bd_str[32];
static char remote_class_of_dev[27];
@@ -558,7 +560,32 @@
opts[i++] =3D "remote-bd-addr";
opts[i++] =3D remote_bd_addr;
=20
+ opts[i++] =3D "avpair";
+ opts[i++] =3D "NAS-Port-Type=3D18"; /* Wireless -Other */
+
read_local_bd(bt_cfd, local_bd);
+ sprintf(called_str, "Called-Station-Id=3D%02x:%02x:%02x:%02x:%02x:%0=
2x",
+ local_bd[0],
+ local_bd[1],
+ local_bd[2],
+ local_bd[3],
+ local_bd[4],
+ local_bd[5]);
+
+ opts[i++] =3D "avpair";
+ opts[i++] =3D called_str;
+
+ sprintf(calling_str, "Calling-Station-Id=3D%02x:%02x:%02x:%02x:%02x:=
%02x",
+ PEER(line).remote_bd[0],
+ PEER(line).remote_bd[1],
+ PEER(line).remote_bd[2],
+ PEER(line).remote_bd[3],
+ PEER(line).remote_bd[4],
+ PEER(line).remote_bd[5]);
+
+ opts[i++] =3D "avpair";
+ opts[i++] =3D calling_str;
+
sprintf(local_bd_str, "Axis-BT-AP-ID=3D%02x:%02x:%02x:%02x:%02x:%02x=
",
local_bd[0],
local_bd[1],
|