aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/reg.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2008-10-30 16:33:56 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-11-10 15:17:41 -0500
commit5166ccd220f187b2e9edfc5f01eb49f4a0ebf586 (patch)
tree18e3d685a5b72d9f1a8e0f30cbec8191cc957c84 /net/wireless/reg.c
parentb219cee191e7cfe88a695a57249a295d0d5b22e9 (diff)
cfg80211: Add kdoc for struct regulatory_request
As regulatory_request gets bigger there will be more questions of what things means, so clarify documenation for it and keep track of the special alpha2 codes we use internally and on the userspace regulatory agents. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r--net/wireless/reg.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 3f18a1d03a55..4c7e39d466c4 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -42,9 +42,24 @@
42#include "core.h" 42#include "core.h"
43#include "reg.h" 43#include "reg.h"
44 44
45/* 45/**
46 * wiphy is set if this request's initiator is 46 * struct regulatory_request - receipt of last regulatory request
47 * REGDOM_SET_BY_COUNTRY_IE or _DRIVER 47 *
48 * @wiphy: this is set if this request's initiator is
49 * %REGDOM_SET_BY_COUNTRY_IE or %REGDOM_SET_BY_DRIVER. This
50 * can be used by the wireless core to deal with conflicts
51 * and potentially inform users of which devices specifically
52 * cased the conflicts.
53 * @initiator: indicates who sent this request, could be any of
54 * of those set in reg_set_by, %REGDOM_SET_BY_*
55 * @alpha2: the ISO / IEC 3166 alpha2 country code of the requested
56 * regulatory domain. We have a few special codes:
57 * 00 - World regulatory domain
58 * 99 - built by driver but a specific alpha2 cannot be determined
59 * 98 - result of an intersection between two regulatory domains
60 * @intersect: indicates whether the wireless core should intersect
61 * the requested regulatory domain with the presently set regulatory
62 * domain.
48 */ 63 */
49struct regulatory_request { 64struct regulatory_request {
50 struct wiphy *wiphy; 65 struct wiphy *wiphy;
@@ -53,6 +68,7 @@ struct regulatory_request {
53 bool intersect; 68 bool intersect;
54}; 69};
55 70
71/* Receipt of information from last regulatory request */
56static struct regulatory_request *last_request; 72static struct regulatory_request *last_request;
57 73
58/* To trigger userspace events */ 74/* To trigger userspace events */