Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83277
b: refs/heads/master
c: eff001e
h: refs/heads/master
i:
  83275: 428a48e
v: v3
  • Loading branch information
Dave Young authored and David S. Miller committed Feb 5, 2008
1 parent 68df912 commit 6cee95d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a26af1e08a3a1e0f88e6f2685ac2313d713a59c9
refs/heads/master: eff001e35a857361f3fb289fea86e97c334a5446
19 changes: 1 addition & 18 deletions trunk/net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,30 +369,13 @@ static inline void hidp_process_hid_control(struct hidp_session *session, unsign
{
BT_DBG("session %p param 0x%02x", session, param);

switch (param) {
case HIDP_CTRL_NOP:
break;

case HIDP_CTRL_VIRTUAL_CABLE_UNPLUG:
if (param == HIDP_CTRL_VIRTUAL_CABLE_UNPLUG) {
/* Flush the transmit queues */
skb_queue_purge(&session->ctrl_transmit);
skb_queue_purge(&session->intr_transmit);

/* Kill session thread */
atomic_inc(&session->terminate);
break;

case HIDP_CTRL_HARD_RESET:
case HIDP_CTRL_SOFT_RESET:
case HIDP_CTRL_SUSPEND:
case HIDP_CTRL_EXIT_SUSPEND:
/* FIXME: We have to parse these and return no error */
break;

default:
__hidp_send_ctrl_message(session,
HIDP_TRANS_HANDSHAKE | HIDP_HSHK_ERR_INVALID_PARAMETER, NULL, 0);
break;
}
}

Expand Down

0 comments on commit 6cee95d

Please sign in to comment.