mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-01 21:35:55 +02:00
bluetooth fixes from Tomas Vanek
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1571 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
83e7893f56
commit
6df7acff9a
@ -67,6 +67,7 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
|
|||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
all install
|
all install
|
||||||
|
rm -f $(PKG_INSTALL_DIR)/usr/bin/bluepin
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(IPKG_BLUEZ_UTILS):
|
$(IPKG_BLUEZ_UTILS):
|
||||||
@ -75,8 +76,9 @@ $(IPKG_BLUEZ_UTILS):
|
|||||||
install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/sbin
|
install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/sbin
|
||||||
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_BLUEZ_UTILS)/usr/sbin/
|
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_BLUEZ_UTILS)/usr/sbin/
|
||||||
install -d -m0755 $(IDIR_BLUEZ_UTILS)/etc/bluetooth
|
install -d -m0755 $(IDIR_BLUEZ_UTILS)/etc/bluetooth
|
||||||
cp -fp $(PKG_INSTALL_DIR)/../hcid/hcid.conf* $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
|
cp -fp $(PKG_INSTALL_DIR)/../hcid/hcid.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
|
||||||
cp -fp $(PKG_INSTALL_DIR)/../rfcomm/rfcomm.conf* $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
|
cp -fp $(PKG_INSTALL_DIR)/../rfcomm/rfcomm.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
|
||||||
|
install -m0700 ./files/givepin $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
|
||||||
|
|
||||||
$(RSTRIP) $(IDIR_BLUEZ_UTILS)
|
$(RSTRIP) $(IDIR_BLUEZ_UTILS)
|
||||||
$(IPKG_BUILD) $(IDIR_BLUEZ_UTILS) $(PACKAGE_DIR)
|
$(IPKG_BUILD) $(IDIR_BLUEZ_UTILS) $(PACKAGE_DIR)
|
||||||
|
@ -3,5 +3,5 @@ Priority: optional
|
|||||||
Section: net
|
Section: net
|
||||||
Maintainer: Markus Becker <mab@comnets.uni-bremen.de>
|
Maintainer: Markus Becker <mab@comnets.uni-bremen.de>
|
||||||
Source: http://bluez.org
|
Source: http://bluez.org
|
||||||
Description: Bluez libs
|
Description: Bluez utils
|
||||||
Depends: kmod-bluetooth, bluez-libs
|
Depends: kmod-bluetooth, bluez-libs
|
||||||
|
22
openwrt/package/bluez-utils/patches/001-include_limits.patch
Normal file
22
openwrt/package/bluez-utils/patches/001-include_limits.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
diff -ur bluez-utils-2.17.orig/hidd/sdp.c bluez-utils-2.17/hidd/sdp.c
|
||||||
|
--- bluez-utils-2.17.orig/hidd/sdp.c 2005-05-09 20:33:24.000000000 +0200
|
||||||
|
+++ bluez-utils-2.17/hidd/sdp.c 2005-07-26 14:38:13.000000000 +0200
|
||||||
|
@@ -39,6 +39,7 @@
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
+#include <linux/limits.h>
|
||||||
|
|
||||||
|
#include <bluetooth/bluetooth.h>
|
||||||
|
#include <bluetooth/l2cap.h>
|
||||||
|
diff -ur bluez-utils-2.17.orig/tools/hciconfig.c bluez-utils-2.17/tools/hciconfig.c
|
||||||
|
--- bluez-utils-2.17.orig/tools/hciconfig.c 2005-05-09 20:33:24.000000000 +0200
|
||||||
|
+++ bluez-utils-2.17/tools/hciconfig.c 2005-07-26 14:34:29.000000000 +0200
|
||||||
|
@@ -40,6 +40,7 @@
|
||||||
|
#include <getopt.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
+#include <linux/limits.h>
|
||||||
|
|
||||||
|
#include <bluetooth/bluetooth.h>
|
||||||
|
#include <bluetooth/hci.h>
|
@ -0,0 +1,21 @@
|
|||||||
|
diff -ur bluez-utils-2.17.orig/hcid/hcid.conf bluez-utils-2.17/hcid/hcid.conf
|
||||||
|
--- bluez-utils-2.17.orig/hcid/hcid.conf 2004-12-25 19:06:00.000000000 +0100
|
||||||
|
+++ bluez-utils-2.17/hcid/hcid.conf 2005-07-26 14:44:23.000000000 +0200
|
||||||
|
@@ -23,7 +23,7 @@
|
||||||
|
pairing multi;
|
||||||
|
|
||||||
|
# PIN helper
|
||||||
|
- pin_helper /usr/bin/bluepin;
|
||||||
|
+ pin_helper /etc/bluetooth/givepin;
|
||||||
|
|
||||||
|
# D-Bus PIN helper
|
||||||
|
#dbus_pin_helper;
|
||||||
|
@@ -34,7 +34,7 @@
|
||||||
|
# Local device name
|
||||||
|
# %d - device id
|
||||||
|
# %h - host name
|
||||||
|
- name "BlueZ (%d)";
|
||||||
|
+ name "OpenWRT";
|
||||||
|
|
||||||
|
# Local device class
|
||||||
|
class 0x3e0100;
|
@ -78,6 +78,7 @@ $(eval $(call KMOD_template,B44,b44,\
|
|||||||
,CONFIG_B44))
|
,CONFIG_B44))
|
||||||
$(eval $(call KMOD_template,BLUETOOTH,bluetooth,\
|
$(eval $(call KMOD_template,BLUETOOTH,bluetooth,\
|
||||||
$(MODULES_DIR)/kernel/net/bluetooth/*.o \
|
$(MODULES_DIR)/kernel/net/bluetooth/*.o \
|
||||||
|
$(MODULES_DIR)/kernel/net/bluetooth/rfcomm/*.o \
|
||||||
$(MODULES_DIR)/kernel/drivers/bluetooth/*.o \
|
$(MODULES_DIR)/kernel/drivers/bluetooth/*.o \
|
||||||
,CONFIG_BLUEZ))
|
,CONFIG_BLUEZ))
|
||||||
$(eval $(call KMOD_template,ARPT,arptables,\
|
$(eval $(call KMOD_template,ARPT,arptables,\
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
--- linux-2.4.30/drivers/bluetooth/hci_usb.c 2004-08-08 01:26:04.000000000 +0200
|
||||||
|
+++ linux-2.4.30/drivers/bluetooth/hci_usb.c 2005-07-25 20:12:11.000000000 +0200
|
||||||
|
@@ -259,6 +259,9 @@
|
||||||
|
void *buf;
|
||||||
|
|
||||||
|
mtu = husb->isoc_in_ep->wMaxPacketSize;
|
||||||
|
+#ifdef CONFIG_BCM4710
|
||||||
|
+ mtu = (mtu + 1) & ~1; /* brcm: isoc buffers must be aligned on word boundary */
|
||||||
|
+#endif
|
||||||
|
size = mtu * HCI_MAX_ISOC_FRAMES;
|
||||||
|
|
||||||
|
buf = kmalloc(size, GFP_ATOMIC);
|
Loading…
Reference in New Issue
Block a user