Do not copy STA VHT capabilities if VHT is not enabled for AP
authorAshok Raj Nagarajan <arnagara@qti.qualcomm.com>
Tue, 22 Sep 2015 13:56:00 +0000 (19:26 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 23 Sep 2015 09:09:35 +0000 (12:09 +0300)
commit28ffd21c0749413925c0f31d87a41d70a215d255
tree8e68931eedc3b94e0939c251e2e7b5e41f1eecb3
parentf455998afe9e72e2f4a3c78a64cbab557f4ffeea
Do not copy STA VHT capabilities if VHT is not enabled for AP

Previously, station's VHT information elements were copied and passed
regardless of the AP's VHT configuration. As a result, AP with VHT
disabled in configuration could have ended up transmitting packets in
VHT rates though AP is not advertising VHT support. Fix this by copying
the station's VHT capabilities only when AP supports VHT (both hardware
and configuration).

Signed-off-by: Ashok Raj Nagarajan <arnagara@qti.qualcomm.com>
src/ap/ieee802_11.c