diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-12-20 07:57:28 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-12-20 14:07:16 -0500 |
commit | 030013d8585bfc9479bb367bf771d96ef8e289a4 (patch) | |
tree | 3b2f13e6850adce78d1ba6ac1b798b35954c17f4 /net | |
parent | 6c9d42a1615c6dc19c4a57a77d9c4b3d779bb741 (diff) |
Bluetooth: Rename info_work to info_timer
It makes more sense this way, since info_timer is a timer using delayed
work API.
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index d0064550d83d..a898285e3ea6 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -699,7 +699,7 @@ static void l2cap_do_start(struct l2cap_chan *chan) | |||
699 | conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_SENT; | 699 | conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_SENT; |
700 | conn->info_ident = l2cap_get_ident(conn); | 700 | conn->info_ident = l2cap_get_ident(conn); |
701 | 701 | ||
702 | schedule_delayed_work(&conn->info_work, | 702 | schedule_delayed_work(&conn->info_timer, |
703 | msecs_to_jiffies(L2CAP_INFO_TIMEOUT)); | 703 | msecs_to_jiffies(L2CAP_INFO_TIMEOUT)); |
704 | 704 | ||
705 | l2cap_send_cmd(conn, conn->info_ident, | 705 | l2cap_send_cmd(conn, conn->info_ident, |
@@ -996,7 +996,7 @@ static void l2cap_conn_unreliable(struct l2cap_conn *conn, int err) | |||
996 | static void l2cap_info_timeout(struct work_struct *work) | 996 | static void l2cap_info_timeout(struct work_struct *work) |
997 | { | 997 | { |
998 | struct l2cap_conn *conn = container_of(work, struct l2cap_conn, | 998 | struct l2cap_conn *conn = container_of(work, struct l2cap_conn, |
999 | info_work.work); | 999 | info_timer.work); |
1000 | 1000 | ||
1001 | conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_DONE; | 1001 | conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_DONE; |
1002 | conn->info_ident = 0; | 1002 | conn->info_ident = 0; |
@@ -1029,7 +1029,7 @@ static void l2cap_conn_del(struct hci_conn *hcon, int err) | |||
1029 | hci_chan_del(conn->hchan); | 1029 | hci_chan_del(conn->hchan); |
1030 | 1030 | ||
1031 | if (conn->info_state & L2CAP_INFO_FEAT_MASK_REQ_SENT) | 1031 | if (conn->info_state & L2CAP_INFO_FEAT_MASK_REQ_SENT) |
1032 | cancel_delayed_work_sync(&conn->info_work); | 1032 | cancel_delayed_work_sync(&conn->info_timer); |
1033 | 1033 | ||
1034 | if (test_and_clear_bit(HCI_CONN_LE_SMP_PEND, &hcon->pend)) { | 1034 | if (test_and_clear_bit(HCI_CONN_LE_SMP_PEND, &hcon->pend)) { |
1035 | cancel_delayed_work_sync(&conn->security_timer); | 1035 | cancel_delayed_work_sync(&conn->security_timer); |
@@ -1089,7 +1089,7 @@ static struct l2cap_conn *l2cap_conn_add(struct hci_conn *hcon, u8 status) | |||
1089 | if (hcon->type == LE_LINK) | 1089 | if (hcon->type == LE_LINK) |
1090 | INIT_DELAYED_WORK(&conn->security_timer, security_timeout); | 1090 | INIT_DELAYED_WORK(&conn->security_timer, security_timeout); |
1091 | else | 1091 | else |
1092 | INIT_DELAYED_WORK(&conn->info_work, l2cap_info_timeout); | 1092 | INIT_DELAYED_WORK(&conn->info_timer, l2cap_info_timeout); |
1093 | 1093 | ||
1094 | conn->disc_reason = HCI_ERROR_REMOTE_USER_TERM; | 1094 | conn->disc_reason = HCI_ERROR_REMOTE_USER_TERM; |
1095 | 1095 | ||
@@ -2583,7 +2583,7 @@ static inline int l2cap_command_rej(struct l2cap_conn *conn, struct l2cap_cmd_hd | |||
2583 | 2583 | ||
2584 | if ((conn->info_state & L2CAP_INFO_FEAT_MASK_REQ_SENT) && | 2584 | if ((conn->info_state & L2CAP_INFO_FEAT_MASK_REQ_SENT) && |
2585 | cmd->ident == conn->info_ident) { | 2585 | cmd->ident == conn->info_ident) { |
2586 | cancel_delayed_work_sync(&conn->info_work); | 2586 | cancel_delayed_work_sync(&conn->info_timer); |
2587 | 2587 | ||
2588 | conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_DONE; | 2588 | conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_DONE; |
2589 | conn->info_ident = 0; | 2589 | conn->info_ident = 0; |
@@ -2704,7 +2704,7 @@ sendresp: | |||
2704 | conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_SENT; | 2704 | conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_SENT; |
2705 | conn->info_ident = l2cap_get_ident(conn); | 2705 | conn->info_ident = l2cap_get_ident(conn); |
2706 | 2706 | ||
2707 | schedule_delayed_work(&conn->info_work, | 2707 | schedule_delayed_work(&conn->info_timer, |
2708 | msecs_to_jiffies(L2CAP_INFO_TIMEOUT)); | 2708 | msecs_to_jiffies(L2CAP_INFO_TIMEOUT)); |
2709 | 2709 | ||
2710 | l2cap_send_cmd(conn, conn->info_ident, | 2710 | l2cap_send_cmd(conn, conn->info_ident, |
@@ -3129,7 +3129,7 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn, struct l2cap_cm | |||
3129 | conn->info_state & L2CAP_INFO_FEAT_MASK_REQ_DONE) | 3129 | conn->info_state & L2CAP_INFO_FEAT_MASK_REQ_DONE) |
3130 | return 0; | 3130 | return 0; |
3131 | 3131 | ||
3132 | cancel_delayed_work_sync(&conn->info_work); | 3132 | cancel_delayed_work_sync(&conn->info_timer); |
3133 | 3133 | ||
3134 | if (result != L2CAP_IR_SUCCESS) { | 3134 | if (result != L2CAP_IR_SUCCESS) { |
3135 | conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_DONE; | 3135 | conn->info_state |= L2CAP_INFO_FEAT_MASK_REQ_DONE; |