wmi.c (652f69ed9c1b4f8ef4ea9d6738f1e6263a5ff26d) | wmi.c (b6f6301041a3f27cb3085abb395c2607ac71671c) |
---|---|
1// SPDX-License-Identifier: BSD-3-Clause-Clear 2/* 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. | 1// SPDX-License-Identifier: BSD-3-Clause-Clear 2/* 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. |
4 * Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. |
|
4 */ 5#include <linux/skbuff.h> 6#include <linux/ctype.h> 7#include <net/mac80211.h> 8#include <net/cfg80211.h> 9#include <linux/completion.h> 10#include <linux/if_ether.h> 11#include <linux/types.h> --- 8208 unchanged lines hidden (view full) --- 8220 ret = ath11k_wmi_pdev_attach(ab, 0); 8221 if (ret) 8222 return ret; 8223 8224 ab->wmi_ab.ab = ab; 8225 ab->wmi_ab.preferred_hw_mode = WMI_HOST_HW_MODE_MAX; 8226 8227 /* It's overwritten when service_ext_ready is handled */ | 5 */ 6#include <linux/skbuff.h> 7#include <linux/ctype.h> 8#include <net/mac80211.h> 9#include <net/cfg80211.h> 10#include <linux/completion.h> 11#include <linux/if_ether.h> 12#include <linux/types.h> --- 8208 unchanged lines hidden (view full) --- 8221 ret = ath11k_wmi_pdev_attach(ab, 0); 8222 if (ret) 8223 return ret; 8224 8225 ab->wmi_ab.ab = ab; 8226 ab->wmi_ab.preferred_hw_mode = WMI_HOST_HW_MODE_MAX; 8227 8228 /* It's overwritten when service_ext_ready is handled */ |
8228 if (ab->hw_params.single_pdev_only) | 8229 if (ab->hw_params.single_pdev_only && ab->hw_params.num_rxmda_per_pdev > 1) |
8229 ab->wmi_ab.preferred_hw_mode = WMI_HOST_HW_MODE_SINGLE; 8230 8231 /* TODO: Init remaining wmi soc resources required */ 8232 init_completion(&ab->wmi_ab.service_ready); 8233 init_completion(&ab->wmi_ab.unified_ready); 8234 8235 return 0; 8236} --- 719 unchanged lines hidden --- | 8230 ab->wmi_ab.preferred_hw_mode = WMI_HOST_HW_MODE_SINGLE; 8231 8232 /* TODO: Init remaining wmi soc resources required */ 8233 init_completion(&ab->wmi_ab.service_ready); 8234 init_completion(&ab->wmi_ab.unified_ready); 8235 8236 return 0; 8237} --- 719 unchanged lines hidden --- |