diff options
Diffstat (limited to 'net/wimax/stack.c')
| -rw-r--r-- | net/wimax/stack.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/net/wimax/stack.c b/net/wimax/stack.c index 79fb7d7c640f..1ed65dbdab03 100644 --- a/net/wimax/stack.c +++ b/net/wimax/stack.c | |||
| @@ -51,6 +51,7 @@ | |||
| 51 | * wimax_rfkill_rm() | 51 | * wimax_rfkill_rm() |
| 52 | */ | 52 | */ |
| 53 | #include <linux/device.h> | 53 | #include <linux/device.h> |
| 54 | #include <linux/gfp.h> | ||
| 54 | #include <net/genetlink.h> | 55 | #include <net/genetlink.h> |
| 55 | #include <linux/netdevice.h> | 56 | #include <linux/netdevice.h> |
| 56 | #include <linux/wimax.h> | 57 | #include <linux/wimax.h> |
| @@ -60,6 +61,14 @@ | |||
| 60 | #define D_SUBMODULE stack | 61 | #define D_SUBMODULE stack |
| 61 | #include "debug-levels.h" | 62 | #include "debug-levels.h" |
| 62 | 63 | ||
| 64 | static char wimax_debug_params[128]; | ||
| 65 | module_param_string(debug, wimax_debug_params, sizeof(wimax_debug_params), | ||
| 66 | 0644); | ||
| 67 | MODULE_PARM_DESC(debug, | ||
| 68 | "String of space-separated NAME:VALUE pairs, where NAMEs " | ||
| 69 | "are the different debug submodules and VALUE are the " | ||
| 70 | "initial debug value to set."); | ||
| 71 | |||
| 63 | /* | 72 | /* |
| 64 | * Authoritative source for the RE_STATE_CHANGE attribute policy | 73 | * Authoritative source for the RE_STATE_CHANGE attribute policy |
| 65 | * | 74 | * |
| @@ -67,8 +76,7 @@ | |||
| 67 | * close to where the data is generated. | 76 | * close to where the data is generated. |
| 68 | */ | 77 | */ |
| 69 | /* | 78 | /* |
| 70 | static const | 79 | static const struct nla_policy wimax_gnl_re_status_change[WIMAX_GNL_ATTR_MAX + 1] = { |
| 71 | struct nla_policy wimax_gnl_re_status_change[WIMAX_GNL_ATTR_MAX + 1] = { | ||
| 72 | [WIMAX_GNL_STCH_STATE_OLD] = { .type = NLA_U8 }, | 80 | [WIMAX_GNL_STCH_STATE_OLD] = { .type = NLA_U8 }, |
| 73 | [WIMAX_GNL_STCH_STATE_NEW] = { .type = NLA_U8 }, | 81 | [WIMAX_GNL_STCH_STATE_NEW] = { .type = NLA_U8 }, |
| 74 | }; | 82 | }; |
| @@ -562,6 +570,9 @@ int __init wimax_subsys_init(void) | |||
| 562 | int result, cnt; | 570 | int result, cnt; |
| 563 | 571 | ||
| 564 | d_fnstart(4, NULL, "()\n"); | 572 | d_fnstart(4, NULL, "()\n"); |
| 573 | d_parse_params(D_LEVEL, D_LEVEL_SIZE, wimax_debug_params, | ||
| 574 | "wimax.debug"); | ||
| 575 | |||
| 565 | snprintf(wimax_gnl_family.name, sizeof(wimax_gnl_family.name), | 576 | snprintf(wimax_gnl_family.name, sizeof(wimax_gnl_family.name), |
| 566 | "WiMAX"); | 577 | "WiMAX"); |
| 567 | result = genl_register_family(&wimax_gnl_family); | 578 | result = genl_register_family(&wimax_gnl_family); |
