]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Add attributes describing prohibited channel bandwidth
authorRostislav Lisovy <lisovy@gmail.com>
Tue, 15 Apr 2014 12:37:55 +0000 (14:37 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Apr 2014 15:38:23 +0000 (17:38 +0200)
commit955dbc92da32f017cb72af3ea7fe0ea5c977d918
treebf071f6c59f762aed4ebe077ab8272bfb5379b4b
parent1ce68f1d2056c55e227e2300330122d6cc7b87dc
cfg80211: Add attributes describing prohibited channel bandwidth

Since there are frequency bands (e.g. 5.9GHz) allowing channels
with only 10 or 5 MHz bandwidth, this patch adds attributes that
allow keeping track about this information.

When channel attributes are reported to user-space, make sure to
not break old tools, i.e. if the 'split wiphy dump' is enabled,
report the extra attributes (if present) describing the bandwidth
restrictions.  If the 'split wiphy dump' is not enabled,
completely omit those channels that have flags set to either
IEEE80211_CHAN_NO_10MHZ or IEEE80211_CHAN_NO_20MHZ.

Add the check for new bandwidth restriction flags in
cfg80211_chandef_usable() to comply with the restrictions.

Signed-off-by: Rostislav Lisovy <rostislav.lisovy@fel.cvut.cz>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/chan.c
net/wireless/nl80211.c