]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7022c6da507e6fa2ab9ac1fb231a4a1d46ea499
tree9d2dfdae41a585d8b9f7bbe9b91ac3ae1d8f0bc3
parent611ab9df36c581b4c1385c618ed9e1d432b39ca1
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