Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
reg.h
Go to the documentation of this file.
1 #ifndef __NET_WIRELESS_REG_H
2 #define __NET_WIRELESS_REG_H
3 /*
4  * Copyright 2008-2011 Luis R. Rodriguez <[email protected]>
5  *
6  * Permission to use, copy, modify, and/or distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 extern const struct ieee80211_regdomain *cfg80211_regdomain;
20 
21 bool is_world_regdom(const char *alpha2);
22 bool reg_is_valid_request(const char *alpha2);
24 
25 int regulatory_hint_user(const char *alpha2,
26  enum nl80211_user_reg_hint_type user_reg_hint_type);
27 
28 int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env);
31 
32 int __init regulatory_init(void);
33 void regulatory_exit(void);
34 
35 int set_regdom(const struct ieee80211_regdomain *rd);
36 
38 
58  struct ieee80211_channel *beacon_chan,
59  gfp_t gfp);
60 
82 void regulatory_hint_11d(struct wiphy *wiphy,
83  enum ieee80211_band band,
84  u8 *country_ie,
85  u8 country_ie_len);
86 
103 void regulatory_hint_disconnect(void);
104 
105 #endif /* __NET_WIRELESS_REG_H */