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:

commit de
Nitesh Shrivastav

pai
f16867f4c2
commit
8bb56ebedc
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
||||
|
Referência em uma nova issue
Block a user