qcacmn: Changes to support pdev_id in host from zero

pdev_id in FW starts from one. Zero is reserved for Soc. But host uses
pdev_id starting from zero. Make WMI changes to take care of this
difference and always provide and accept pdev_id starting from zero at
WMI. Use 0xFF for SoC on host.

Change-Id: I49f481e54bbaeea9359753bc7d3da9092fc9559a
CRs-Fixed: 2045125
このコミットが含まれているのは:
Kiran Venkatappa
2017-05-10 16:24:51 +05:30
committed by snandini
コミット 1241bb8f85
3個のファイルの変更208行の追加54行の削除

ファイルの表示

@@ -3042,4 +3042,18 @@ wmi_stop(wmi_unified_t wmi_handle)
wmi_handle->wmi_stopinprogress = 1;
return 0;
}
/**
* wmi_pdev_id_conversion_enable() - API to enable pdev_id conversion in WMI
* By default pdev_id conversion is not done in WMI.
* This API can be used enable conversion in WMI.
* @param wmi_handle : handle to WMI
* Return none
*/
void wmi_pdev_id_conversion_enable(wmi_unified_t wmi_handle)
{
if (wmi_handle->target_type == WMI_TLV_TARGET)
wmi_tlv_pdev_id_conversion_enable(wmi_handle);
}
#endif