mac80211: restrict peer's VHT capabilities to own
authorJohannes Berg <johannes.berg@intel.com>
Fri, 1 Mar 2013 12:07:48 +0000 (13:07 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 15:36:03 +0000 (16:36 +0100)
commit55d942f4246c79a8f3f17f92c224e641c5c26125
treeef369cf92b496330e9aa44729897ed46cbe005f4
parentc07270b605f49039327c35224e27d1d3e802f8a4
mac80211: restrict peer's VHT capabilities to own

Implement restricting peer VHT capabilities to the device's own
capabilities. This is useful when a single driver supports more
than one device and the devices have different capabilities
(often they will differ in the number of spatial streams), but
in particular is also necessary for VHT capability overrides to
work correctly -- otherwise it'd be possible to e.g. advertise,
due to overrides, that TX-STBC is not supported, but then still
use it to TX to the AP because it supports RX-STBC.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h
include/net/mac80211.h
net/mac80211/vht.c