]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/wireless/reg.c
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)
commit5d885b999c68283c493cf00cc020260d38951ae6
tree0e835b5e2318bcbf2d2494d45662fa08c1b643df
parent0ba857ad671aa8aa2a1276aa7a0c79abd0575146
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