diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-04-28 19:22:06 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-05-16 16:39:39 -0400 |
commit | fb4e156886ce6e8309e912d8b370d192330d19d3 (patch) | |
tree | bc4f6953b1a2983b93d5a0bd7d83669369e2503d /net/wireless/nl80211.c | |
parent | 55300a13d2ca1d59f659cf00b9d8dc93ea225882 (diff) |
nl80211: Add generic netlink module alias for cfg80211/nl80211
To support auto-loading of wireless modules from netlink users, add module
alias for nl80211 family.
This also adds NL80211_GENL_NAME constant to define the "nl80211" netlink
family name as part of uapi.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index f687a8d0d026..9cdcd9ec3317 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -37,10 +37,10 @@ static void nl80211_post_doit(struct genl_ops *ops, struct sk_buff *skb, | |||
37 | 37 | ||
38 | /* the netlink family */ | 38 | /* the netlink family */ |
39 | static struct genl_family nl80211_fam = { | 39 | static struct genl_family nl80211_fam = { |
40 | .id = GENL_ID_GENERATE, /* don't bother with a hardcoded ID */ | 40 | .id = GENL_ID_GENERATE, /* don't bother with a hardcoded ID */ |
41 | .name = "nl80211", /* have users key off the name instead */ | 41 | .name = NL80211_GENL_NAME, /* have users key off the name instead */ |
42 | .hdrsize = 0, /* no private header */ | 42 | .hdrsize = 0, /* no private header */ |
43 | .version = 1, /* no particular meaning now */ | 43 | .version = 1, /* no particular meaning now */ |
44 | .maxattr = NL80211_ATTR_MAX, | 44 | .maxattr = NL80211_ATTR_MAX, |
45 | .netnsok = true, | 45 | .netnsok = true, |
46 | .pre_doit = nl80211_pre_doit, | 46 | .pre_doit = nl80211_pre_doit, |