@@ -224,7 +224,7 @@ struct hci_conn {
224224 spinlock_t lock ;
225225
226226 bdaddr_t dst ;
227- __u8 dst_type ;
227+ __u8 dst_type ;
228228 __u16 handle ;
229229 __u16 state ;
230230 __u8 mode ;
@@ -317,7 +317,8 @@ static inline long inquiry_entry_age(struct inquiry_entry *e)
317317 return jiffies - e -> timestamp ;
318318}
319319
320- struct inquiry_entry * hci_inquiry_cache_lookup (struct hci_dev * hdev , bdaddr_t * bdaddr );
320+ struct inquiry_entry * hci_inquiry_cache_lookup (struct hci_dev * hdev ,
321+ bdaddr_t * bdaddr );
321322void hci_inquiry_cache_update (struct hci_dev * hdev , struct inquiry_data * data );
322323
323324/* ----- HCI Connections ----- */
@@ -431,7 +432,8 @@ int hci_conn_del(struct hci_conn *conn);
431432void hci_conn_hash_flush (struct hci_dev * hdev );
432433void hci_conn_check_pending (struct hci_dev * hdev );
433434
434- struct hci_conn * hci_connect (struct hci_dev * hdev , int type , bdaddr_t * dst , __u8 sec_level , __u8 auth_type );
435+ struct hci_conn * hci_connect (struct hci_dev * hdev , int type , bdaddr_t * dst ,
436+ __u8 sec_level , __u8 auth_type );
435437int hci_conn_check_link_mode (struct hci_conn * conn );
436438int hci_conn_check_secure (struct hci_conn * conn , __u8 sec_level );
437439int hci_conn_security (struct hci_conn * conn , __u8 sec_level , __u8 auth_type );
@@ -460,10 +462,12 @@ static inline void hci_conn_put(struct hci_conn *conn)
460462 timeo = msecs_to_jiffies (conn -> disc_timeout );
461463 if (!conn -> out )
462464 timeo *= 2 ;
463- } else
465+ } else {
464466 timeo = msecs_to_jiffies (10 );
465- } else
467+ }
468+ } else {
466469 timeo = msecs_to_jiffies (10 );
470+ }
467471 mod_timer (& conn -> disc_timer , jiffies + timeo );
468472 }
469473}
@@ -578,16 +582,20 @@ struct hci_proto {
578582
579583 void * priv ;
580584
581- int (* connect_ind ) (struct hci_dev * hdev , bdaddr_t * bdaddr , __u8 type );
585+ int (* connect_ind ) (struct hci_dev * hdev , bdaddr_t * bdaddr ,
586+ __u8 type );
582587 int (* connect_cfm ) (struct hci_conn * conn , __u8 status );
583588 int (* disconn_ind ) (struct hci_conn * conn );
584589 int (* disconn_cfm ) (struct hci_conn * conn , __u8 reason );
585- int (* recv_acldata ) (struct hci_conn * conn , struct sk_buff * skb , __u16 flags );
590+ int (* recv_acldata ) (struct hci_conn * conn , struct sk_buff * skb ,
591+ __u16 flags );
586592 int (* recv_scodata ) (struct hci_conn * conn , struct sk_buff * skb );
587- int (* security_cfm ) (struct hci_conn * conn , __u8 status , __u8 encrypt );
593+ int (* security_cfm ) (struct hci_conn * conn , __u8 status ,
594+ __u8 encrypt );
588595};
589596
590- static inline int hci_proto_connect_ind (struct hci_dev * hdev , bdaddr_t * bdaddr , __u8 type )
597+ static inline int hci_proto_connect_ind (struct hci_dev * hdev , bdaddr_t * bdaddr ,
598+ __u8 type )
591599{
592600 register struct hci_proto * hp ;
593601 int mask = 0 ;
@@ -673,7 +681,8 @@ static inline void hci_proto_auth_cfm(struct hci_conn *conn, __u8 status)
673681 conn -> security_cfm_cb (conn , status );
674682}
675683
676- static inline void hci_proto_encrypt_cfm (struct hci_conn * conn , __u8 status , __u8 encrypt )
684+ static inline void hci_proto_encrypt_cfm (struct hci_conn * conn , __u8 status ,
685+ __u8 encrypt )
677686{
678687 register struct hci_proto * hp ;
679688
@@ -698,7 +707,8 @@ struct hci_cb {
698707
699708 char * name ;
700709
701- void (* security_cfm ) (struct hci_conn * conn , __u8 status , __u8 encrypt );
710+ void (* security_cfm ) (struct hci_conn * conn , __u8 status ,
711+ __u8 encrypt );
702712 void (* key_change_cfm ) (struct hci_conn * conn , __u8 status );
703713 void (* role_switch_cfm ) (struct hci_conn * conn , __u8 status , __u8 role );
704714};
@@ -724,7 +734,8 @@ static inline void hci_auth_cfm(struct hci_conn *conn, __u8 status)
724734 read_unlock_bh (& hci_cb_list_lock );
725735}
726736
727- static inline void hci_encrypt_cfm (struct hci_conn * conn , __u8 status , __u8 encrypt )
737+ static inline void hci_encrypt_cfm (struct hci_conn * conn , __u8 status ,
738+ __u8 encrypt )
728739{
729740 struct list_head * p ;
730741
@@ -755,7 +766,8 @@ static inline void hci_key_change_cfm(struct hci_conn *conn, __u8 status)
755766 read_unlock_bh (& hci_cb_list_lock );
756767}
757768
758- static inline void hci_role_switch_cfm (struct hci_conn * conn , __u8 status , __u8 role )
769+ static inline void hci_role_switch_cfm (struct hci_conn * conn , __u8 status ,
770+ __u8 role )
759771{
760772 struct list_head * p ;
761773
0 commit comments