/* No need to unregister as family unregistration will do it.  */
int nl802154_mac_register(void)
/* No need to unregister as family unregistration will do it.  */
int nl802154_mac_register(void)
{
	int i;
	int rc;
	rc = genl_register_mc_group(&nl802154_family,
			&ieee802154_coord_mcgrp);
	if (rc)
		return rc;
	rc = genl_register_mc_group(&nl802154_family,
			&ieee802154_beacon_mcgrp);
	if (rc)
		return rc;
	for (i = 0; i < ARRAY_SIZE(ieee802154_coordinator_ops); i++) {
		rc = genl_register_ops(&nl802154_family,
				&ieee802154_coordinator_ops[i]);
		if (rc)
			return rc;
	}
	return 0;
}