cfg80211: add channel checking for iface combinations
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 29 Jun 2012 10:47:07 +0000 (12:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 29 Jun 2012 11:39:19 +0000 (13:39 +0200)
commitd4e50c5917e110451ced8f8de594cea858791f37
tree078ac36d0642114f90b57e50ef9b585e2f8a5be9
parent2e165b818456ecc1024dd0387eeac64745526377
cfg80211: add channel checking for iface combinations

.connect cannot be handled since the driver scans
and connects on its own. It is up to the driver
then to refuse a connection (with -EBUSY for
example).

Non-fixed channel IBSSes always take a single
channel resource. For example two non-fixed
channel IBSSes always take up 2
num_different_channels, even if they operate on
the same channel at a given point of time.

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