From: Michal Kazior Date: Fri, 29 Jun 2012 10:47:01 +0000 (+0200) Subject: cfg80211: track monitor interfaces count X-Git-Tag: v3.6-rc1~125^2~57^2~208^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbbae26afa81320b3315fb4ad755b20f1ff256b4;p=pandora-kernel.git 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 Signed-off-by: Johannes Berg --- Reading git-diff-tree failed