diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-12-05 23:20:17 +0000 | 
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-12-05 23:20:17 +0000 | 
| commit | 742eaa6a6e356a16788ce6530271de89bc4f8fb5 (patch) | |
| tree | 12fc040daab06ac796c61c1d92bfad9bb054d1c1 /net/bluetooth/l2cap_core.c | |
| parent | ba8bb18a03f8c7508565c385576a5431a4ad804a (diff) | |
| parent | ae72fd588a2b302222769b44775912b83f0785eb (diff) | |
| download | olio-linux-3.10-742eaa6a6e356a16788ce6530271de89bc4f8fb5.tar.xz olio-linux-3.10-742eaa6a6e356a16788ce6530271de89bc4f8fb5.zip  | |
Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into devel-stable
Conflicts:
	arch/arm/common/gic.c
	arch/arm/plat-omap/include/plat/common.h
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
| -rw-r--r-- | net/bluetooth/l2cap_core.c | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 8cd12917733..5ea94a1eecf 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -251,7 +251,7 @@ static void l2cap_chan_timeout(unsigned long arg)  	if (sock_owned_by_user(sk)) {  		/* sk is owned by user. Try again later */ -		__set_chan_timer(chan, HZ / 5); +		__set_chan_timer(chan, L2CAP_DISC_TIMEOUT);  		bh_unlock_sock(sk);  		chan_put(chan);  		return; @@ -2488,7 +2488,7 @@ static inline int l2cap_connect_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hd  		if (sock_owned_by_user(sk)) {  			l2cap_state_change(chan, BT_DISCONN);  			__clear_chan_timer(chan); -			__set_chan_timer(chan, HZ / 5); +			__set_chan_timer(chan, L2CAP_DISC_TIMEOUT);  			break;  		} @@ -2661,7 +2661,7 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hdr  	default:  		sk->sk_err = ECONNRESET; -		__set_chan_timer(chan, HZ * 5); +		__set_chan_timer(chan, L2CAP_DISC_REJ_TIMEOUT);  		l2cap_send_disconn_req(conn, chan, ECONNRESET);  		goto done;  	} @@ -2718,7 +2718,7 @@ static inline int l2cap_disconnect_req(struct l2cap_conn *conn, struct l2cap_cmd  	if (sock_owned_by_user(sk)) {  		l2cap_state_change(chan, BT_DISCONN);  		__clear_chan_timer(chan); -		__set_chan_timer(chan, HZ / 5); +		__set_chan_timer(chan, L2CAP_DISC_TIMEOUT);  		bh_unlock_sock(sk);  		return 0;  	} @@ -2752,7 +2752,7 @@ static inline int l2cap_disconnect_rsp(struct l2cap_conn *conn, struct l2cap_cmd  	if (sock_owned_by_user(sk)) {  		l2cap_state_change(chan,BT_DISCONN);  		__clear_chan_timer(chan); -		__set_chan_timer(chan, HZ / 5); +		__set_chan_timer(chan, L2CAP_DISC_TIMEOUT);  		bh_unlock_sock(sk);  		return 0;  	} @@ -3998,7 +3998,7 @@ static inline void l2cap_check_encryption(struct l2cap_chan *chan, u8 encrypt)  	if (encrypt == 0x00) {  		if (chan->sec_level == BT_SECURITY_MEDIUM) {  			__clear_chan_timer(chan); -			__set_chan_timer(chan, HZ * 5); +			__set_chan_timer(chan, L2CAP_ENC_TIMEOUT);  		} else if (chan->sec_level == BT_SECURITY_HIGH)  			l2cap_chan_close(chan, ECONNREFUSED);  	} else { @@ -4066,7 +4066,7 @@ static int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)  					L2CAP_CONN_REQ, sizeof(req), &req);  			} else {  				__clear_chan_timer(chan); -				__set_chan_timer(chan, HZ / 10); +				__set_chan_timer(chan, L2CAP_DISC_TIMEOUT);  			}  		} else if (chan->state == BT_CONNECT2) {  			struct l2cap_conn_rsp rsp; @@ -4086,7 +4086,7 @@ static int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)  				}  			} else {  				l2cap_state_change(chan, BT_DISCONN); -				__set_chan_timer(chan, HZ / 10); +				__set_chan_timer(chan, L2CAP_DISC_TIMEOUT);  				res = L2CAP_CR_SEC_BLOCK;  				stat = L2CAP_CS_NO_INFO;  			}  |