]> git.baikalelectronics.ru Git - kernel.git/commit
regulatory: simplify freq_reg_info_regd
authorJohannes Berg <johannes.berg@intel.com>
Mon, 3 Dec 2012 23:14:17 +0000 (00:14 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:26 +0000 (13:01 +0100)
commitc10b79e149211f6d2d8d2f7512e76f3ce79f5555
tree0e835b5e2318bcbf2d2494d45662fa08c1b643df
parent247c91a31dba8a6e4b3e7996d204ad34a5b9b142
regulatory: simplify freq_reg_info_regd

The function itself has dual-purpose: it can
retrieve from a given regdomain or from the
globally installed one. Change it to have a
single purpose only: to look up from a given
regdomain. Pass the correct regdomain in the
freq_reg_info() function instead.

This also changes the locking rules for it,
no locking is required any more.

Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c