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)
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>

No differences found