diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index c898f3439d1c..5129b88c8e5b 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -54,6 +54,7 @@ | |||
54 | #define VERSION "2.14" | 54 | #define VERSION "2.14" |
55 | 55 | ||
56 | static int enable_ertm = 0; | 56 | static int enable_ertm = 0; |
57 | static int max_transmit = L2CAP_DEFAULT_MAX_TX; | ||
57 | 58 | ||
58 | static u32 l2cap_feat_mask = L2CAP_FEAT_FIXED_CHAN; | 59 | static u32 l2cap_feat_mask = L2CAP_FEAT_FIXED_CHAN; |
59 | static u8 l2cap_fixed_chan[8] = { 0x02, }; | 60 | static u8 l2cap_fixed_chan[8] = { 0x02, }; |
@@ -2253,7 +2254,7 @@ done: | |||
2253 | case L2CAP_MODE_ERTM: | 2254 | case L2CAP_MODE_ERTM: |
2254 | rfc.mode = L2CAP_MODE_ERTM; | 2255 | rfc.mode = L2CAP_MODE_ERTM; |
2255 | rfc.txwin_size = L2CAP_DEFAULT_TX_WINDOW; | 2256 | rfc.txwin_size = L2CAP_DEFAULT_TX_WINDOW; |
2256 | rfc.max_transmit = L2CAP_DEFAULT_MAX_TX; | 2257 | rfc.max_transmit = max_transmit; |
2257 | rfc.retrans_timeout = 0; | 2258 | rfc.retrans_timeout = 0; |
2258 | rfc.monitor_timeout = 0; | 2259 | rfc.monitor_timeout = 0; |
2259 | rfc.max_pdu_size = cpu_to_le16(L2CAP_DEFAULT_MAX_PDU_SIZE); | 2260 | rfc.max_pdu_size = cpu_to_le16(L2CAP_DEFAULT_MAX_PDU_SIZE); |
@@ -4060,6 +4061,9 @@ module_exit(l2cap_exit); | |||
4060 | module_param(enable_ertm, bool, 0644); | 4061 | module_param(enable_ertm, bool, 0644); |
4061 | MODULE_PARM_DESC(enable_ertm, "Enable enhanced retransmission mode"); | 4062 | MODULE_PARM_DESC(enable_ertm, "Enable enhanced retransmission mode"); |
4062 | 4063 | ||
4064 | module_param(max_transmit, uint, 0644); | ||
4065 | MODULE_PARM_DESC(max_transmit, "Max transmit value (default = 3)"); | ||
4066 | |||
4063 | MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>"); | 4067 | MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>"); |
4064 | MODULE_DESCRIPTION("Bluetooth L2CAP ver " VERSION); | 4068 | MODULE_DESCRIPTION("Bluetooth L2CAP ver " VERSION); |
4065 | MODULE_VERSION(VERSION); | 4069 | MODULE_VERSION(VERSION); |