]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: track monitor interfaces count
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 29 Jun 2012 10:47:01 +0000 (12:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 29 Jun 2012 11:39:16 +0000 (13:39 +0200)
commita638d2bef16a63bb5bd7acb7f84293073663fb93
tree5b8b56bc68ca4f8d176f340d81a21a75263b7500
parent0d9d90951dac6bb7c4f7c2fbc0041b8e2d2e8e9a
cfg80211: track monitor interfaces count

Implements .set_monitor_enabled(wiphy, enabled).

Notifies driver upon change of interface layout.

If only monitor interfaces become present it is
called with 2nd argument being true. If
non-monitor interface appears then 2nd argument
is false. Driver is notified only upon change.

This makes it more obvious about the fact that
cfg80211 supports single monitor channel. Once we
implement multi-channel we don't want to allow
setting monitor channel while other interface
types are running. Otherwise it would be ambiguous
once we start considering num_different_channels.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/core.c
net/wireless/core.h
net/wireless/util.c