regulatory: remove BUG_ON
authorJohannes Berg <johannes.berg@intel.com>
Mon, 3 Dec 2012 17:36:09 +0000 (18:36 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:24 +0000 (13:01 +0100)
commitfdc9d7b2863ce67f51ed64f89e5b20f3077be569
treeba92e30e9cfe3e4ecc6d5ca05397e357a112602e
parentf41737669d2f4c07c09e90767498243e142171f9
regulatory: remove BUG_ON

This code is a bit too BUG_ON happy, remove all
instances and while doing so make some code a bit
smarter by passing the right pointer instead of
indices into arrays.

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