qcacmn: Initialize preferred_hw_mode to MAX

Initializing preferred_hw_mode to WMI_HOST_HW_MODE_MAX and removing
preferred_mode check. This is needed for Napier where preferred_hw_mode
of 0 is a valid configuation which represents single radio mode.

Change-Id: I8998745427427021f219667e03f767c66527d579
CRs-Fixed: 2192227
Esse commit está contido em:
Nandha Kishore Easwaran
2018-02-20 12:17:13 +05:30
commit de Nitesh Shrivastav
commit 8bb56ebedc
3 arquivos alterados com 7 adições e 3 exclusões

Ver arquivo

@@ -644,7 +644,7 @@ static inline uint32_t target_psoc_get_preferred_hw_mode
(struct target_psoc_info *psoc_info)
{
if (psoc_info == NULL)
return (uint32_t)-1;
return WMI_HOST_HW_MODE_MAX;
return psoc_info->info.preferred_hw_mode;
}

Ver arquivo

@@ -510,6 +510,7 @@ QDF_STATUS target_if_alloc_psoc_tgt_info(struct wlan_objmgr_psoc *psoc)
}
wlan_psoc_set_tgt_if_handle(psoc, tgt_psoc_info);
target_psoc_set_preferred_hw_mode(tgt_psoc_info, WMI_HOST_HW_MODE_MAX);
qdf_init_waitqueue_head(&tgt_psoc_info->info.event_queue);