mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
nl80211: define multicast group names in header
Put the group names into the userspace API header file so that userspace clients can use symbolic names from there instead of hardcoding the actual names. This doesn't really change much, but seems somewhat cleaner. Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
d75bb06b61
commit
71b836eca7
2 changed files with 13 additions and 6 deletions
|
|
@ -59,13 +59,13 @@ enum nl80211_multicast_groups {
|
|||
};
|
||||
|
||||
static const struct genl_multicast_group nl80211_mcgrps[] = {
|
||||
[NL80211_MCGRP_CONFIG] = { .name = "config", },
|
||||
[NL80211_MCGRP_SCAN] = { .name = "scan", },
|
||||
[NL80211_MCGRP_REGULATORY] = { .name = "regulatory", },
|
||||
[NL80211_MCGRP_MLME] = { .name = "mlme", },
|
||||
[NL80211_MCGRP_VENDOR] = { .name = "vendor", },
|
||||
[NL80211_MCGRP_CONFIG] = { .name = NL80211_MULTICAST_GROUP_CONFIG },
|
||||
[NL80211_MCGRP_SCAN] = { .name = NL80211_MULTICAST_GROUP_SCAN },
|
||||
[NL80211_MCGRP_REGULATORY] = { .name = NL80211_MULTICAST_GROUP_REG },
|
||||
[NL80211_MCGRP_MLME] = { .name = NL80211_MULTICAST_GROUP_MLME },
|
||||
[NL80211_MCGRP_VENDOR] = { .name = NL80211_MULTICAST_GROUP_VENDOR },
|
||||
#ifdef CONFIG_NL80211_TESTMODE
|
||||
[NL80211_MCGRP_TESTMODE] = { .name = "testmode", }
|
||||
[NL80211_MCGRP_TESTMODE] = { .name = NL80211_MULTICAST_GROUP_TESTMODE }
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue