#include <linux/netdevice.h>
#include <linux/module.h>
#include <linux/if_arp.h>
#include <linux/ieee802154.h>
#include <net/nl802154.h>
#include <net/mac802154.h>
#include <net/ieee802154_netdev.h>
#include <net/cfg802154.h>
#include "ieee802154_i.h"
#include "driver-ops.h"
int mac802154_wpan_update_llsec(struct net_device *dev)
{ … }
static int
mac802154_wpan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{ … }
static int mac802154_wpan_mac_addr(struct net_device *dev, void *p)
{ … }
static int ieee802154_setup_hw(struct ieee802154_sub_if_data *sdata)
{ … }
static int mac802154_slave_open(struct net_device *dev)
{ … }
static int
ieee802154_check_mac_settings(struct ieee802154_local *local,
struct ieee802154_sub_if_data *sdata,
struct ieee802154_sub_if_data *nsdata)
{ … }
static int
ieee802154_check_concurrent_iface(struct ieee802154_sub_if_data *sdata,
enum nl802154_iftype iftype)
{ … }
static int mac802154_wpan_open(struct net_device *dev)
{ … }
static int mac802154_slave_close(struct net_device *dev)
{ … }
static int mac802154_set_header_security(struct ieee802154_sub_if_data *sdata,
struct ieee802154_hdr *hdr,
const struct ieee802154_mac_cb *cb)
{ … }
static int ieee802154_header_create(struct sk_buff *skb,
struct net_device *dev,
const struct ieee802154_addr *daddr,
const struct ieee802154_addr *saddr,
unsigned len)
{ … }
static const struct wpan_dev_header_ops ieee802154_header_ops = …;
static int mac802154_header_create(struct sk_buff *skb,
struct net_device *dev,
unsigned short type,
const void *daddr,
const void *saddr,
unsigned len)
{ … }
static int
mac802154_header_parse(const struct sk_buff *skb, unsigned char *haddr)
{ … }
static const struct header_ops mac802154_header_ops = …;
static const struct net_device_ops mac802154_wpan_ops = …;
static const struct net_device_ops mac802154_monitor_ops = …;
static void mac802154_wpan_free(struct net_device *dev)
{ … }
static void ieee802154_if_setup(struct net_device *dev)
{ … }
static int
ieee802154_setup_sdata(struct ieee802154_sub_if_data *sdata,
enum nl802154_iftype type)
{ … }
struct net_device *
ieee802154_if_add(struct ieee802154_local *local, const char *name,
unsigned char name_assign_type, enum nl802154_iftype type,
__le64 extended_addr)
{ … }
void ieee802154_if_remove(struct ieee802154_sub_if_data *sdata)
{ … }
void ieee802154_remove_interfaces(struct ieee802154_local *local)
{ … }
static int netdev_notify(struct notifier_block *nb,
unsigned long state, void *ptr)
{ … }
static struct notifier_block mac802154_netdev_notifier = …;
int ieee802154_iface_init(void)
{ … }
void ieee802154_iface_exit(void)
{ … }