[PATCH AUTOSEL for 4.4 12/28] ath10k: set CTS protection VDEV param only if VDEV is up

Date

Wed, 15 Nov 2017 02:46:01 +0000

From: Bartosz Markowski <bartosz.markowski@tieto.com>

[ Upstream commit 7cfe0455ee1218add152e986b89b4bb8dbeafcdd ]

The cts protection vdev parameter, in new QCA9377 TF2.0 firmware,requires bss peer to be created for the STATION vdev type.bss peer is being allocated by the firmware after vdev_start/_up commands.mac80211 may call the cts protection setup at any time, so thewe needs to track the situation and defer the cts configurationto prevent firmware asserts, like below: