]> 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)
commit01eb0bd004344666fb2d3fc1e1e7eec832524b70
treebf071f6c59f762aed4ebe077ab8272bfb5379b4b
parent96926c71528a1a91bd6949e30f1dbe54b91dff15
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