]> asedeno.scripts.mit.edu Git - linux.git/commit
cfg80211: fix NAN bands definition
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 8 Feb 2017 13:00:34 +0000 (15:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 9 Feb 2017 14:17:30 +0000 (15:17 +0100)
commit8585989d146c61dd073d2135c5bb11d0f979d576
tree23fee0893f93a3a65f5610cc0365aed5d081bc49
parentbee427b86217b78a0a5fc85575cc155e4c32bbf9
cfg80211: fix NAN bands definition

The nl80211_nan_dual_band_conf enumeration doesn't make much sense.
The default value is assigned to a bit, which makes it weird if the
default bit and other bits are set at the same time.

To improve this, get rid of NL80211_NAN_BAND_DEFAULT and add a wiphy
configuration to let the drivers define which bands are supported.
This is exposed to the userspace, which then can make a decision on
which band(s) to use.  Additionally, rename all "dual_band" elements
to "bands", to make things clearer.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/mac80211/cfg.c
net/mac80211/trace.h
net/wireless/core.c
net/wireless/nl80211.c
net/wireless/trace.h