]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Disallow changing chan type on monitor when CHAN_MODE_FIXED
authorPontus Fuchs <pontus.fuchs@gmail.com>
Tue, 12 Jun 2012 12:13:19 +0000 (14:13 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 13 Jun 2012 08:23:21 +0000 (10:23 +0200)
commit72655caa983ee9573657713bc5da83996d4e5426
treef4993dbd423f1ed62acb6ebcfe1f873c898d8c67
parent4d736ef00a3c63a3b34f4790286459930ab46cbe
mac80211: Disallow changing chan type on monitor when CHAN_MODE_FIXED

If you add a monitor interface in parallel to a normal interface
mac80211 will let you to change the channel type on the monitor
interface even if you are connected. Add an explicit check to
disallow this.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
[fix typo in commit log, use sdata instead of netdev]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c