2014-09-10 21:58:23 +02:00
|
|
|
#include "config.h"
|
2014-06-01 16:32:30 +02:00
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include "netlinkapp.h"
|
|
|
|
|
|
|
|
/* */
|
2014-09-10 21:58:23 +02:00
|
|
|
static int __init smartcapwap_wtp_init(void) {
|
|
|
|
int ret;
|
2014-06-01 16:32:30 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
TRACEKMOD("### smartcapwap_wtp_init\n");
|
2014-06-01 16:32:30 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
/* Initialize netlink */
|
|
|
|
ret = sc_netlink_init();
|
|
|
|
if (ret) {
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
2014-06-01 16:32:30 +02:00
|
|
|
}
|
2014-09-10 21:58:23 +02:00
|
|
|
module_init(smartcapwap_wtp_init);
|
2014-06-01 16:32:30 +02:00
|
|
|
|
|
|
|
/* */
|
2014-09-10 21:58:23 +02:00
|
|
|
static void __exit smartcapwap_wtp_exit(void) {
|
|
|
|
TRACEKMOD("### smartcapwap_wtp_exit\n");
|
|
|
|
|
|
|
|
sc_netlink_exit();
|
2014-06-01 16:32:30 +02:00
|
|
|
}
|
2014-09-10 21:58:23 +02:00
|
|
|
module_exit(smartcapwap_wtp_exit);
|
2014-06-01 16:32:30 +02:00
|
|
|
|
|
|
|
MODULE_LICENSE("GPL");
|
|
|
|
MODULE_AUTHOR("Massimo Vellucci <vemax78@gmail.com>");
|
2014-06-14 14:52:02 +02:00
|
|
|
MODULE_DESCRIPTION("SmartCAPWAP WTP Data Channel Module");
|