Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
smp.c File Reference
#include <linux/crypto.h>
#include <linux/scatterlist.h>
#include <crypto/b128ops.h>
#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>
#include <net/bluetooth/l2cap.h>
#include <net/bluetooth/mgmt.h>
#include <net/bluetooth/smp.h>

Go to the source code of this file.

Macros

#define SMP_TIMEOUT   msecs_to_jiffies(30000)
 
#define AUTH_REQ_MASK   0x07
 
#define JUST_WORKS   0x00
 
#define JUST_CFM   0x01
 
#define REQ_PASSKEY   0x02
 
#define CFM_PASSKEY   0x03
 
#define REQ_OOB   0x04
 
#define OVERLAP   0xFF
 

Functions

void smp_chan_destroy (struct l2cap_conn *conn)
 
int smp_user_confirm_reply (struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)
 
int smp_conn_security (struct hci_conn *hcon, __u8 sec_level)
 
int smp_sig_channel (struct l2cap_conn *conn, struct sk_buff *skb)
 
int smp_distribute_keys (struct l2cap_conn *conn, __u8 force)
 

Macro Definition Documentation

#define AUTH_REQ_MASK   0x07

Definition at line 35 of file smp.c.

#define CFM_PASSKEY   0x03

Definition at line 281 of file smp.c.

#define JUST_CFM   0x01

Definition at line 279 of file smp.c.

#define JUST_WORKS   0x00

Definition at line 278 of file smp.c.

#define OVERLAP   0xFF

Definition at line 283 of file smp.c.

#define REQ_OOB   0x04

Definition at line 282 of file smp.c.

#define REQ_PASSKEY   0x02

Definition at line 280 of file smp.c.

#define SMP_TIMEOUT   msecs_to_jiffies(30000)

Definition at line 33 of file smp.c.

Function Documentation

void smp_chan_destroy ( struct l2cap_conn conn)

Definition at line 513 of file smp.c.

int smp_conn_security ( struct hci_conn hcon,
__u8  sec_level 
)

Definition at line 765 of file smp.c.

int smp_distribute_keys ( struct l2cap_conn conn,
__u8  force 
)

Definition at line 920 of file smp.c.

int smp_sig_channel ( struct l2cap_conn conn,
struct sk_buff skb 
)

Definition at line 848 of file smp.c.

int smp_user_confirm_reply ( struct hci_conn hcon,
u16  mgmt_op,
__le32  passkey 
)

Definition at line 528 of file smp.c.