From: John W. Linville Date: Fri, 18 Jul 2014 17:44:50 +0000 (-0400) Subject: Merge tag 'for-linville-20140717' of git://github.com/kvalo/ath X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5235cd21212ca3701b678d7e93682999a772c995;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git Merge tag 'for-linville-20140717' of git://github.com/kvalo/ath --- 5235cd21212ca3701b678d7e93682999a772c995 diff --cc drivers/net/wireless/ath/ath10k/core.c index e6c56c5bb0f6,aaf5f0eea2dc..93adb8c58969 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@@ -795,14 -795,10 +795,14 @@@ int ath10k_core_start(struct ath10k *ar if (status) goto err_htc_stop; - ar->free_vdev_map = (1 << TARGET_NUM_VDEVS) - 1; + if (test_bit(ATH10K_FW_FEATURE_WMI_10X, ar->fw_features)) + ar->free_vdev_map = (1 << TARGET_10X_NUM_VDEVS) - 1; + else + ar->free_vdev_map = (1 << TARGET_NUM_VDEVS) - 1; + INIT_LIST_HEAD(&ar->arvifs); - if (!test_bit(ATH10K_FLAG_FIRST_BOOT_DONE, &ar->dev_flags)) + if (!test_bit(ATH10K_FLAG_FIRST_BOOT_DONE, &ar->dev_flags)) { ath10k_info("%s (0x%08x, 0x%08x) fw %s api %d htt %d.%d\n", ar->hw_params.name, ar->target_version,