]> git.karo-electronics.de Git - linux-beck.git/commit
mac80211: TDLS: deny ch-switch req on disallowed channels
authorArik Nemtsov <arik@wizery.com>
Wed, 8 Jul 2015 12:41:46 +0000 (15:41 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 17 Jul 2015 13:40:35 +0000 (15:40 +0200)
commit42d8d789615d539cb13733e516b94e874a34f775
treedd6bd5359724b5ccd575eddf3ca7b1d4dc59f75f
parentc8ff71e667d9fcf775e8b8bbd568d32d48cfb864
mac80211: TDLS: deny ch-switch req on disallowed channels

If a TDLS station is not allowed to beacon on a channel, don't accept
a channel switch request to this channel.
Move channel building code up to avoid lockdep violations - reg_can_beacon
needs to take the wdev lock.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tdls.c