diff options
Diffstat (limited to 'net/bluetooth/bnep')
-rw-r--r-- | net/bluetooth/bnep/bnep.h | 2 | ||||
-rw-r--r-- | net/bluetooth/bnep/core.c | 8 | ||||
-rw-r--r-- | net/bluetooth/bnep/netdev.c | 11 | ||||
-rw-r--r-- | net/bluetooth/bnep/sock.c | 5 |
4 files changed, 5 insertions, 21 deletions
diff --git a/net/bluetooth/bnep/bnep.h b/net/bluetooth/bnep/bnep.h index b69bf4e7c48b..d20f8a40f36e 100644 --- a/net/bluetooth/bnep/bnep.h +++ b/net/bluetooth/bnep/bnep.h | |||
@@ -161,7 +161,7 @@ struct bnep_session { | |||
161 | struct msghdr msg; | 161 | struct msghdr msg; |
162 | 162 | ||
163 | struct bnep_proto_filter proto_filter[BNEP_MAX_PROTO_FILTERS]; | 163 | struct bnep_proto_filter proto_filter[BNEP_MAX_PROTO_FILTERS]; |
164 | u64 mc_filter; | 164 | unsigned long long mc_filter; |
165 | 165 | ||
166 | struct socket *sock; | 166 | struct socket *sock; |
167 | struct net_device *dev; | 167 | struct net_device *dev; |
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index 80ba30cf4b68..70fea8bdb4e5 100644 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c | |||
@@ -52,11 +52,6 @@ | |||
52 | 52 | ||
53 | #include "bnep.h" | 53 | #include "bnep.h" |
54 | 54 | ||
55 | #ifndef CONFIG_BT_BNEP_DEBUG | ||
56 | #undef BT_DBG | ||
57 | #define BT_DBG(D...) | ||
58 | #endif | ||
59 | |||
60 | #define VERSION "1.3" | 55 | #define VERSION "1.3" |
61 | 56 | ||
62 | static int compress_src = 1; | 57 | static int compress_src = 1; |
@@ -311,7 +306,6 @@ static inline int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb) | |||
311 | struct sk_buff *nskb; | 306 | struct sk_buff *nskb; |
312 | u8 type; | 307 | u8 type; |
313 | 308 | ||
314 | dev->last_rx = jiffies; | ||
315 | s->stats.rx_bytes += skb->len; | 309 | s->stats.rx_bytes += skb->len; |
316 | 310 | ||
317 | type = *(u8 *) skb->data; skb_pull(skb, 1); | 311 | type = *(u8 *) skb->data; skb_pull(skb, 1); |
@@ -566,7 +560,7 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock) | |||
566 | goto failed; | 560 | goto failed; |
567 | } | 561 | } |
568 | 562 | ||
569 | s = dev->priv; | 563 | s = netdev_priv(dev); |
570 | 564 | ||
571 | /* This is rx header therefore addresses are swapped. | 565 | /* This is rx header therefore addresses are swapped. |
572 | * ie eh.h_dest is our local address. */ | 566 | * ie eh.h_dest is our local address. */ |
diff --git a/net/bluetooth/bnep/netdev.c b/net/bluetooth/bnep/netdev.c index d9fa0ab2c87f..f897da6e0444 100644 --- a/net/bluetooth/bnep/netdev.c +++ b/net/bluetooth/bnep/netdev.c | |||
@@ -41,11 +41,6 @@ | |||
41 | 41 | ||
42 | #include "bnep.h" | 42 | #include "bnep.h" |
43 | 43 | ||
44 | #ifndef CONFIG_BT_BNEP_DEBUG | ||
45 | #undef BT_DBG | ||
46 | #define BT_DBG( A... ) | ||
47 | #endif | ||
48 | |||
49 | #define BNEP_TX_QUEUE_LEN 20 | 44 | #define BNEP_TX_QUEUE_LEN 20 |
50 | 45 | ||
51 | static int bnep_net_open(struct net_device *dev) | 46 | static int bnep_net_open(struct net_device *dev) |
@@ -62,14 +57,14 @@ static int bnep_net_close(struct net_device *dev) | |||
62 | 57 | ||
63 | static struct net_device_stats *bnep_net_get_stats(struct net_device *dev) | 58 | static struct net_device_stats *bnep_net_get_stats(struct net_device *dev) |
64 | { | 59 | { |
65 | struct bnep_session *s = dev->priv; | 60 | struct bnep_session *s = netdev_priv(dev); |
66 | return &s->stats; | 61 | return &s->stats; |
67 | } | 62 | } |
68 | 63 | ||
69 | static void bnep_net_set_mc_list(struct net_device *dev) | 64 | static void bnep_net_set_mc_list(struct net_device *dev) |
70 | { | 65 | { |
71 | #ifdef CONFIG_BT_BNEP_MC_FILTER | 66 | #ifdef CONFIG_BT_BNEP_MC_FILTER |
72 | struct bnep_session *s = dev->priv; | 67 | struct bnep_session *s = netdev_priv(dev); |
73 | struct sock *sk = s->sock->sk; | 68 | struct sock *sk = s->sock->sk; |
74 | struct bnep_set_filter_req *r; | 69 | struct bnep_set_filter_req *r; |
75 | struct sk_buff *skb; | 70 | struct sk_buff *skb; |
@@ -183,7 +178,7 @@ static inline int bnep_net_proto_filter(struct sk_buff *skb, struct bnep_session | |||
183 | 178 | ||
184 | static int bnep_net_xmit(struct sk_buff *skb, struct net_device *dev) | 179 | static int bnep_net_xmit(struct sk_buff *skb, struct net_device *dev) |
185 | { | 180 | { |
186 | struct bnep_session *s = dev->priv; | 181 | struct bnep_session *s = netdev_priv(dev); |
187 | struct sock *sk = s->sock->sk; | 182 | struct sock *sk = s->sock->sk; |
188 | 183 | ||
189 | BT_DBG("skb %p, dev %p", skb, dev); | 184 | BT_DBG("skb %p, dev %p", skb, dev); |
diff --git a/net/bluetooth/bnep/sock.c b/net/bluetooth/bnep/sock.c index 8ffb57f2303a..e857628b0b27 100644 --- a/net/bluetooth/bnep/sock.c +++ b/net/bluetooth/bnep/sock.c | |||
@@ -46,11 +46,6 @@ | |||
46 | 46 | ||
47 | #include "bnep.h" | 47 | #include "bnep.h" |
48 | 48 | ||
49 | #ifndef CONFIG_BT_BNEP_DEBUG | ||
50 | #undef BT_DBG | ||
51 | #define BT_DBG( A... ) | ||
52 | #endif | ||
53 | |||
54 | static int bnep_sock_release(struct socket *sock) | 49 | static int bnep_sock_release(struct socket *sock) |
55 | { | 50 | { |
56 | struct sock *sk = sock->sk; | 51 | struct sock *sk = sock->sk; |