cfg80211: allow multiple driver regulatory_hints()
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 8 Jan 2009 01:43:34 +0000 (17:43 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 20:59:59 +0000 (15:59 -0500)
commit3e0c3ff36c4c7b9e39af7d600e399664ca04e817
tree837fa4d480d5f18bfb7bdb5f59c0caf5341d38eb
parent560e28e14f69ad3440a6e8c283dcfd37e1e41c2d
cfg80211: allow multiple driver regulatory_hints()

We add support for multiple drivers to provide a regulatory_hint()
on a system by adding a wiphy specific regulatory domain cache.
This allows drivers to keep around cache their own regulatory domain
structure queried from CRDA.

We handle conflicts by intersecting multiple regulatory domains,
each driver will stick to its own regulatory domain though unless
a country IE has been received and processed.

If the user already requested a regulatory domain and a driver
requests the same regulatory domain then simply copy to the
driver's regd the same regulatory domain and do not call
CRDA, do not collect $200.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/wireless.h
net/wireless/reg.c