|
From: Peter K. <pk...@us...> - 2001-04-17 17:35:07
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_vendor.c 1.7 1.8=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* Changed bt_send_raw_data() to bt_send_raw_hci().
* Removed a lot of unnecessary includes.
The diff of the modified file(s):
--- bt_vendor.c 2001/04/17 12:25:50 1.7
+++ bt_vendor.c 2001/04/17 17:35:03 1.8
@@ -40,31 +40,11 @@
*
*/
=20=20
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <sys/wait.h>
-#include <fcntl.h>
-#include <time.h>
#include <stdio.h>
-#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
-#include <stdlib.h>
-#include <string.h>
#include <syslog.h>
-#include <errno.h>
-#include <stdarg.h>
-#include <signal.h>
-#include <getopt.h>
-
-/* The following includes are required to be able to determine the local
- * address by examining eth0 */
-#include <sys/socket.h>
-#include <net/if.h>
-#include <netinet/in.h>
-#include <sys/un.h>
-#include <arpa/inet.h>
+#include <sys/ioctl.h>
=20
#include "bt_misc.h"
#include "bt_vendor.h"
@@ -148,7 +128,7 @@
printf("Test_Packet_Type : 0x%x\n", ecs_test_msg[12]);
printf("Length_Of_Test_Data : 0x%x\n", tmp[8]);
=20
- bt_send_raw_data(test_msg, 16);
+ bt_send_raw_hci(bt_cfd, test_msg, 16);
}
=20
void
@@ -165,7 +145,7 @@
=20
printf("*** Sending enter test mode (handle : 0x%x)***\n", tmp[0]);
=20
- bt_send_raw_data(ecs_test_msg, 7);
+ bt_send_raw_hci(bt_cfd, ecs_test_msg, 7);
}
=20
void
@@ -229,7 +209,7 @@
printf("Test_Packet_Type : 0x%x\n", ecs_test_msg[13]);
printf("Length_Of_Test_Data : 0x%x\n", tmp[10]);
=20=20=20
- bt_send_raw_data(bt_cfd, test_msg, 17);
+ bt_send_raw_hci(bt_cfd, test_msg, 17);
=20
printf("TX test starting.\n");
}
|