aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-10-24 14:32:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-10-31 19:02:30 -0400
commitd2372b315289aec9f565a855023c40654a5bff68 (patch)
treecfc73e74dfdea854dd27b747d68224076d8e8d90 /include
parent7dddaf1a36a372c14ca96a0b5fdfbe2015c43841 (diff)
wireless: make regdom passing semantics simpler
The regdom struct is given to the core, so it might as well free it in error conditions. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/wireless.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/wireless.h b/include/net/wireless.h
index 061fe5017e5c..6e3ea0159045 100644
--- a/include/net/wireless.h
+++ b/include/net/wireless.h
@@ -358,8 +358,7 @@ ieee80211_get_channel(struct wiphy *wiphy, int freq)
358 * for a regulatory domain structure for the respective country. If 358 * for a regulatory domain structure for the respective country. If
359 * a regulatory domain is build and passed you should set the alpha2 359 * a regulatory domain is build and passed you should set the alpha2
360 * if possible, otherwise set it to the special value of "99" which tells 360 * if possible, otherwise set it to the special value of "99" which tells
361 * the wireless core it is unknown. If you pass a built regulatory domain 361 * the wireless core it is unknown.
362 * and we return non zero you are in charge of kfree()'ing the structure.
363 * 362 *
364 * Returns -EALREADY if *a regulatory domain* has already been set. Note that 363 * Returns -EALREADY if *a regulatory domain* has already been set. Note that
365 * this could be by another driver. It is safe for drivers to continue if 364 * this could be by another driver. It is safe for drivers to continue if