diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-02-19 10:05:58 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-21 15:22:44 -0500 |
commit | 59a24b5d0d4befc2498f51c57905cb02963ff275 (patch) | |
tree | 31b7a33f9cd454cea9a44a1f0329975813f7054c /net/bluetooth | |
parent | a5c296832b4fde7d32c01cff9cdd27d9c7c1c4f5 (diff) |
Bluetooth: Fix mgmt_pin_code_reply command status opcode
The opcode for the ENODEV case was wrong (probably copy-paste mistake).
Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index fdcc9742bb00..d1d9b8c3a1b0 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -962,7 +962,7 @@ static int pin_code_reply(struct sock *sk, unsigned char *data, u16 len) | |||
962 | 962 | ||
963 | hdev = hci_dev_get(dev_id); | 963 | hdev = hci_dev_get(dev_id); |
964 | if (!hdev) | 964 | if (!hdev) |
965 | return cmd_status(sk, MGMT_OP_DISCONNECT, ENODEV); | 965 | return cmd_status(sk, MGMT_OP_PIN_CODE_REPLY, ENODEV); |
966 | 966 | ||
967 | hci_dev_lock_bh(hdev); | 967 | hci_dev_lock_bh(hdev); |
968 | 968 | ||