|
@@ -28,6 +28,7 @@
|
|
#include <net/cfg802154.h>
|
|
#include <net/cfg802154.h>
|
|
|
|
|
|
#include "ieee802154_i.h"
|
|
#include "ieee802154_i.h"
|
|
|
|
+#include "cfg.h"
|
|
|
|
|
|
static int
|
|
static int
|
|
mac802154_netdev_register(struct wpan_phy *phy, struct net_device *dev)
|
|
mac802154_netdev_register(struct wpan_phy *phy, struct net_device *dev)
|
|
@@ -169,7 +170,7 @@ ieee802154_alloc_hw(size_t priv_data_len, const struct ieee802154_ops *ops)
|
|
|
|
|
|
priv_size = ALIGN(sizeof(*local), NETDEV_ALIGN) + priv_data_len;
|
|
priv_size = ALIGN(sizeof(*local), NETDEV_ALIGN) + priv_data_len;
|
|
|
|
|
|
- phy = wpan_phy_alloc(NULL, priv_size);
|
|
|
|
|
|
+ phy = wpan_phy_alloc(&mac802154_config_ops, priv_size);
|
|
if (!phy) {
|
|
if (!phy) {
|
|
pr_err("failure to allocate master IEEE802.15.4 device\n");
|
|
pr_err("failure to allocate master IEEE802.15.4 device\n");
|
|
return NULL;
|
|
return NULL;
|