aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-03-25 23:12:50 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:23:54 -0400
commitaca3192cc60d2bf193c2252e45563c32e3117289 (patch)
treed73dc39ae9c9f499a026c56517604af21d63bfd9 /net/bluetooth/hci_event.c
parentacde4855bb8f5fba8bb065d35ff6ac8a94b3dfa8 (diff)
[NET] BLUETOOTH: Use cpu_to_le{16,32}() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r--net/bluetooth/hci_event.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 936d3fc479cd..447ba7131220 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -783,7 +783,7 @@ static inline void hci_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *s
783 if (conn->type == ACL_LINK && hdev->link_policy) { 783 if (conn->type == ACL_LINK && hdev->link_policy) {
784 struct hci_cp_write_link_policy cp; 784 struct hci_cp_write_link_policy cp;
785 cp.handle = ev->handle; 785 cp.handle = ev->handle;
786 cp.policy = __cpu_to_le16(hdev->link_policy); 786 cp.policy = cpu_to_le16(hdev->link_policy);
787 hci_send_cmd(hdev, OGF_LINK_POLICY, 787 hci_send_cmd(hdev, OGF_LINK_POLICY,
788 OCF_WRITE_LINK_POLICY, sizeof(cp), &cp); 788 OCF_WRITE_LINK_POLICY, sizeof(cp), &cp);
789 } 789 }
@@ -793,8 +793,8 @@ static inline void hci_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *s
793 struct hci_cp_change_conn_ptype cp; 793 struct hci_cp_change_conn_ptype cp;
794 cp.handle = ev->handle; 794 cp.handle = ev->handle;
795 cp.pkt_type = (conn->type == ACL_LINK) ? 795 cp.pkt_type = (conn->type == ACL_LINK) ?
796 __cpu_to_le16(hdev->pkt_type & ACL_PTYPE_MASK): 796 cpu_to_le16(hdev->pkt_type & ACL_PTYPE_MASK):
797 __cpu_to_le16(hdev->pkt_type & SCO_PTYPE_MASK); 797 cpu_to_le16(hdev->pkt_type & SCO_PTYPE_MASK);
798 798
799 hci_send_cmd(hdev, OGF_LINK_CTL, 799 hci_send_cmd(hdev, OGF_LINK_CTL,
800 OCF_CHANGE_CONN_PTYPE, sizeof(cp), &cp); 800 OCF_CHANGE_CONN_PTYPE, sizeof(cp), &cp);
@@ -970,7 +970,7 @@ static inline void hci_auth_complete_evt(struct hci_dev *hdev, struct sk_buff *s
970 if (test_bit(HCI_CONN_ENCRYPT_PEND, &conn->pend)) { 970 if (test_bit(HCI_CONN_ENCRYPT_PEND, &conn->pend)) {
971 if (!ev->status) { 971 if (!ev->status) {
972 struct hci_cp_set_conn_encrypt cp; 972 struct hci_cp_set_conn_encrypt cp;
973 cp.handle = __cpu_to_le16(conn->handle); 973 cp.handle = cpu_to_le16(conn->handle);
974 cp.encrypt = 1; 974 cp.encrypt = 1;
975 hci_send_cmd(conn->hdev, OGF_LINK_CTL, 975 hci_send_cmd(conn->hdev, OGF_LINK_CTL,
976 OCF_SET_CONN_ENCRYPT, sizeof(cp), &cp); 976 OCF_SET_CONN_ENCRYPT, sizeof(cp), &cp);