diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-07 23:28:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-07 23:28:46 -0400 |
commit | c1c6c11a6860c8135fd0d923c3d49fb368889b10 (patch) | |
tree | 7d58008c7cf943b7b6d07f5a26d59ca9e0bdab6d /net | |
parent | 2aaab9a0ccfd2ccf1c957cc2120da8d5593955c5 (diff) | |
parent | cfeb414537b1d7c23ba202f198fa4154cd5a4856 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/bnep/core.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index 021172c0e666..12bba6207a8d 100644 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c | |||
@@ -57,7 +57,10 @@ | |||
57 | #define BT_DBG(D...) | 57 | #define BT_DBG(D...) |
58 | #endif | 58 | #endif |
59 | 59 | ||
60 | #define VERSION "1.2" | 60 | #define VERSION "1.3" |
61 | |||
62 | static int compress_src = 1; | ||
63 | static int compress_dst = 1; | ||
61 | 64 | ||
62 | static LIST_HEAD(bnep_session_list); | 65 | static LIST_HEAD(bnep_session_list); |
63 | static DECLARE_RWSEM(bnep_session_sem); | 66 | static DECLARE_RWSEM(bnep_session_sem); |
@@ -418,10 +421,10 @@ static inline int bnep_tx_frame(struct bnep_session *s, struct sk_buff *skb) | |||
418 | iv[il++] = (struct kvec) { &type, 1 }; | 421 | iv[il++] = (struct kvec) { &type, 1 }; |
419 | len++; | 422 | len++; |
420 | 423 | ||
421 | if (!compare_ether_addr(eh->h_dest, s->eh.h_source)) | 424 | if (compress_src && !compare_ether_addr(eh->h_dest, s->eh.h_source)) |
422 | type |= 0x01; | 425 | type |= 0x01; |
423 | 426 | ||
424 | if (!compare_ether_addr(eh->h_source, s->eh.h_dest)) | 427 | if (compress_dst && !compare_ether_addr(eh->h_source, s->eh.h_dest)) |
425 | type |= 0x02; | 428 | type |= 0x02; |
426 | 429 | ||
427 | if (type) | 430 | if (type) |
@@ -727,6 +730,12 @@ static void __exit bnep_exit(void) | |||
727 | module_init(bnep_init); | 730 | module_init(bnep_init); |
728 | module_exit(bnep_exit); | 731 | module_exit(bnep_exit); |
729 | 732 | ||
733 | module_param(compress_src, bool, 0644); | ||
734 | MODULE_PARM_DESC(compress_src, "Compress sources headers"); | ||
735 | |||
736 | module_param(compress_dst, bool, 0644); | ||
737 | MODULE_PARM_DESC(compress_dst, "Compress destination headers"); | ||
738 | |||
730 | MODULE_AUTHOR("David Libault <david.libault@inventel.fr>, Maxim Krasnyansky <maxk@qualcomm.com>"); | 739 | MODULE_AUTHOR("David Libault <david.libault@inventel.fr>, Maxim Krasnyansky <maxk@qualcomm.com>"); |
731 | MODULE_DESCRIPTION("Bluetooth BNEP ver " VERSION); | 740 | MODULE_DESCRIPTION("Bluetooth BNEP ver " VERSION); |
732 | MODULE_VERSION(VERSION); | 741 | MODULE_VERSION(VERSION); |