aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154/ieee802154.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-11-14 11:14:41 -0500
committerDavid S. Miller <davem@davemloft.net>2013-11-14 17:10:40 -0500
commit1c582d915da13ca21ad375ae04ec1bd6193418b2 (patch)
treecff9bbc495ad1fdf99999cf5643b2b4f51327511 /net/ieee802154/ieee802154.h
parent9504b3ee1c4490d669feb7622c828771d98b2c23 (diff)
ieee802154: use genl_register_family_with_ops()
This simplifies the code since there's no longer a need to have error handling in the registration. Unfortunately it means more extern function declarations are needed, but the overall goal would seem to justify this. While at it, also fix the registration error path - if the family registration failed then it shouldn't be unregistered. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154/ieee802154.h')
-rw-r--r--net/ieee802154/ieee802154.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/net/ieee802154/ieee802154.h b/net/ieee802154/ieee802154.h
index aadec428e6ec..14d5dab4436f 100644
--- a/net/ieee802154/ieee802154.h
+++ b/net/ieee802154/ieee802154.h
@@ -47,7 +47,22 @@ struct sk_buff *ieee802154_nl_new_reply(struct genl_info *info,
47int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info); 47int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info);
48 48
49extern struct genl_family nl802154_family; 49extern struct genl_family nl802154_family;
50int nl802154_mac_register(void); 50
51int nl802154_phy_register(void); 51/* genetlink ops/groups */
52int ieee802154_list_phy(struct sk_buff *skb, struct genl_info *info);
53int ieee802154_dump_phy(struct sk_buff *skb, struct netlink_callback *cb);
54int ieee802154_add_iface(struct sk_buff *skb, struct genl_info *info);
55int ieee802154_del_iface(struct sk_buff *skb, struct genl_info *info);
56
57extern struct genl_multicast_group ieee802154_coord_mcgrp;
58extern struct genl_multicast_group ieee802154_beacon_mcgrp;
59
60int ieee802154_associate_req(struct sk_buff *skb, struct genl_info *info);
61int ieee802154_associate_resp(struct sk_buff *skb, struct genl_info *info);
62int ieee802154_disassociate_req(struct sk_buff *skb, struct genl_info *info);
63int ieee802154_scan_req(struct sk_buff *skb, struct genl_info *info);
64int ieee802154_start_req(struct sk_buff *skb, struct genl_info *info);
65int ieee802154_list_iface(struct sk_buff *skb, struct genl_info *info);
66int ieee802154_dump_iface(struct sk_buff *skb, struct netlink_callback *cb);
52 67
53#endif 68#endif