bluetooth modules

This forum is for all other ARMv5 devices

bluetooth modules

Postby tritron » Tue Jun 21, 2011 2:22 am

I wonder if any one had ever compiled bluetooth modules?
tritron
 
Posts: 83
Joined: Thu Jun 16, 2011 7:16 pm

Re: bluetooth modules

Postby tritron » Tue Jun 21, 2011 4:28 pm

I am trying to compile my own and I get this errors
net/bluetooth/hci_sock.c: In function âhci_sock_dev_eventâ:
net/bluetooth/hci_sock.c:672:4: error: implicit declaration of function âbh_lock_sock_nestedâ [net/bluetooth/hci_sock.c:681:4: error: implicit declaration of function âbh_unlock_sockâcc1: some warnings being treated as errors
There is source
/* Detach sockets from device */
read_lock(&hci_sk_list.lock);
sk_for_each(sk, node, &hci_sk_list.head) {
local_bh_disable();
bh_lock_sock_nested(sk);
if (hci_pi(sk)->hdev == hdev) {
hci_pi(sk)->hdev = NULL;
sk->sk_err = EPIPE;
sk->sk_state = BT_OPEN;
sk->sk_state_change(sk);

hci_dev_put(hdev);
}
bh_unlock_sock(sk);
local_bh_enable();
}
tritron
 
Posts: 83
Joined: Thu Jun 16, 2011 7:16 pm

Re: bluetooth modules

Postby kleiner » Tue Jun 21, 2011 9:37 pm

i guess the problem is the missing definition in net/sock.h, there is just the definition for bh_lock_wsock_nested instead of bh_lock_sock_nested.

You should check if bh_lock_wsock_nested is fine too and then replace it.
kleiner
 
Posts: 11
Joined: Thu Jun 02, 2011 8:05 pm

Re: bluetooth modules

Postby tritron » Tue Jun 21, 2011 10:14 pm

you are right I added to socket.h in include/linux/socket.h
#define bh_lock_sock(__sk) spin_lock(&((__sk)->sk_lock.slock))
#define bh_lock_sock_nested(__sk) \
spin_lock_nested(&((__sk)->sk_lock.slock), \
SINGLE_DEPTH_NESTING)
#define bh_unlock_sock(__sk) spin_unlock(&((__sk)->sk_lock.slock))
It compiled fine but btusb.ko and bfusb.ko will not load.
tritron
 
Posts: 83
Joined: Thu Jun 16, 2011 7:16 pm


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 6 guests