]> 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)
commit3f7aeb831417498979a2071b5b047b8adeb48d65
tree0e835b5e2318bcbf2d2494d45662fa08c1b643df
parentf6f5699679a69a8097909aa9a5cb3c77a774881c
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