On Sun, Mar 28, 2010 at 7:26 PM, Bob Copeland <m...@bobcopeland.com> wrote: > On Sun, Mar 28, 2010 at 12:50:52PM +0200, Jiri Moravec wrote: >> country 98: >> (2402 - 2482 @ 40), (N/A, 20) >> (5170 - 5250 @ 40), (N/A, 20), NO-OUTDOOR >> (5250 - 5330 @ 40), (N/A, 20), NO-OUTDOOR, DFS >> (5490 - 5710 @ 40), (N/A, 27), DFS >> >> ~ # crda >> COUNTRY environment variable not set. >> >> ~ # export COUNTRY="CZ" >> ~ # crda >> Failed to set regulatory domain: -22 > > The kernel calls crda (via a uevent through udev) -- you don't have to > call it yourself. See: > > http://wireless.kernel.org/en/developers/Regulatory/CRDA > >> ~ # iw reg set CZ >> ~ # iw reg get >> country 98: >> (2402 - 2482 @ 40), (N/A, 20) >> (5170 - 5250 @ 40), (N/A, 20), NO-OUTDOOR >> (5250 - 5330 @ 40), (N/A, 20), NO-OUTDOOR, DFS >> (5490 - 5710 @ 40), (N/A, 27), DFS > > No idea, Luis is the one to talk to about this stuff.
/** * struct regulatory_request - used to keep track of regulatory requests * * @wiphy_idx: this is set if this request's initiator is * %REGDOM_SET_BY_COUNTRY_IE or %REGDOM_SET_BY_DRIVER. This * can be used by the wireless core to deal with conflicts * and potentially inform users of which devices specifically * cased the conflicts. * @initiator: indicates who sent this request, could be any of * of those set in nl80211_reg_initiator (%NL80211_REGDOM_SET_BY_*) * @alpha2: the ISO / IEC 3166 alpha2 country code of the requested * regulatory domain. We have a few special codes: * 00 - World regulatory domain * 99 - built by driver but a specific alpha2 cannot be determined * 98 - result of an intersection between two regulatory domains * 97 - regulatory domain has not yet been configured * @intersect: indicates whether the wireless core should intersect * the requested regulatory domain with the presently set regulatory * domain. * @country_ie_checksum: checksum of the last processed and accepted * country IE * @country_ie_env: lets us know if the AP is telling us we are outdoor, * indoor, or if it doesn't matter * @list: used to insert into the reg_requests_list linked list */ struct regulatory_request { int wiphy_idx; enum nl80211_reg_initiator initiator; char alpha2[2]; bool intersect; u32 country_ie_checksum; enum environment_cap country_ie_env; struct list_head list; }; _______________________________________________ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel