2013-12-11 08:05:37 -07:00
|
|
|
/*
|
|
|
|
Copyright (c) 2013 Intel Corp.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License version 2 and
|
|
|
|
only version 2 as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __6LOWPAN_H
|
|
|
|
#define __6LOWPAN_H
|
|
|
|
|
2014-03-04 02:23:02 -07:00
|
|
|
#include <linux/errno.h>
|
2013-12-11 08:05:37 -07:00
|
|
|
#include <linux/skbuff.h>
|
|
|
|
#include <net/bluetooth/l2cap.h>
|
|
|
|
|
2014-03-04 02:23:02 -07:00
|
|
|
#if IS_ENABLED(CONFIG_BT_6LOWPAN)
|
2013-12-11 08:05:37 -07:00
|
|
|
int bt_6lowpan_recv(struct l2cap_conn *conn, struct sk_buff *skb);
|
|
|
|
int bt_6lowpan_add_conn(struct l2cap_conn *conn);
|
|
|
|
int bt_6lowpan_del_conn(struct l2cap_conn *conn);
|
|
|
|
int bt_6lowpan_init(void);
|
|
|
|
void bt_6lowpan_cleanup(void);
|
2014-03-04 02:23:02 -07:00
|
|
|
#else
|
|
|
|
static int bt_6lowpan_recv(struct l2cap_conn *conn, struct sk_buff *skb)
|
|
|
|
{
|
|
|
|
return -EOPNOTSUPP;
|
|
|
|
}
|
|
|
|
static int bt_6lowpan_add_conn(struct l2cap_conn *conn)
|
|
|
|
{
|
|
|
|
return -EOPNOTSUPP;
|
|
|
|
}
|
|
|
|
int bt_6lowpan_del_conn(struct l2cap_conn *conn)
|
|
|
|
{
|
|
|
|
return -EOPNOTSUPP;
|
|
|
|
}
|
|
|
|
static int bt_6lowpan_init(void)
|
|
|
|
{
|
|
|
|
return -EOPNOTSUPP;
|
|
|
|
}
|
|
|
|
static void bt_6lowpan_cleanup(void) { }
|
|
|
|
#endif
|
2013-12-11 08:05:37 -07:00
|
|
|
|
|
|
|
#endif /* __6LOWPAN_H */
|