hci_event.c (e88422bccda86808359f0d4179e25e5c2191ab4f) | hci_event.c (7978656caf2ad3963fb63797128ec8d71caa2798) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (c) 2000-2001, 2010, Code Aurora Forum. All rights reserved. 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 258 unchanged lines hidden (view full) --- 267 struct hci_rp_delete_stored_link_key *rp = (void *)skb->data; 268 269 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); 270 271 if (rp->status) 272 return; 273 274 if (rp->num_keys <= hdev->stored_num_keys) | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (c) 2000-2001, 2010, Code Aurora Forum. All rights reserved. 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 258 unchanged lines hidden (view full) --- 267 struct hci_rp_delete_stored_link_key *rp = (void *)skb->data; 268 269 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); 270 271 if (rp->status) 272 return; 273 274 if (rp->num_keys <= hdev->stored_num_keys) |
275 hdev->stored_num_keys -= rp->num_keys; | 275 hdev->stored_num_keys -= le16_to_cpu(rp->num_keys); |
276 else 277 hdev->stored_num_keys = 0; 278} 279 280static void hci_cc_write_local_name(struct hci_dev *hdev, struct sk_buff *skb) 281{ 282 __u8 status = *((__u8 *) skb->data); 283 void *sent; --- 6364 unchanged lines hidden --- | 276 else 277 hdev->stored_num_keys = 0; 278} 279 280static void hci_cc_write_local_name(struct hci_dev *hdev, struct sk_buff *skb) 281{ 282 __u8 status = *((__u8 *) skb->data); 283 void *sent; --- 6364 unchanged lines hidden --- |