cfg80211: correctly check ad-hoc channels
authorArik Nemtsov <arik@wizery.com>
Wed, 3 Dec 2014 16:08:17 +0000 (18:08 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 12 Dec 2014 12:40:38 +0000 (13:40 +0100)
commit185076d6db7b0320fd7669732923179f9a4d068b
tree9d2dfdae41a585d8b9f7bbe9b91ac3ae1d8f0bc3
parent70dcec5a488a7b81779190ac8089475fe4b8b962
cfg80211: correctly check ad-hoc channels

Ad-hoc requires beaconing for regulatory purposes. Validate that the
channel is valid for beaconing, and not only enabled.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Luis R. Rodriguez <mcgrof@suse.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c