aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-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 */