qcacld-3.0: Add is_2g_iface support in WLAN IPA
With IPA TX two pipes support, TX rings for 2G and 5G traffic are separated. As a result, WLAN needs to let IPA driver know if the interface registered to IPA is 2G or 5G so that IPA could differentiate and designate the interface for the correct IPA TX pipe. In this change, a new param is_2g_iface is added for the event interface between protocol and IPA component. And this new param is applicable only STA_CONNECT and AP_CONNECT where wlan will register interface details including is_2g_iface to IPA driver. For two pipes implementation, is_2g_iface piggy-backs session_id when passing it to CDP layer. And CDP layer needs to decode session_id and is_2g_iface. Change-Id: I5e02ec6969bb2f77d6b40e89d5a9451a7bb0be9d CRs-Fixed: 2702704
Cette révision appartient à :
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -298,6 +298,7 @@ QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
|
||||
* @session_id: session id for the event
|
||||
* @type: event enum of type ipa_wlan_event
|
||||
* @mac_address: MAC address associated with the event
|
||||
* @is_2g_iface: true if interface is operating on 2G band, otherwise false
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
@@ -305,7 +306,7 @@ QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
|
||||
qdf_netdev_t net_dev, uint8_t device_mode,
|
||||
uint8_t session_id,
|
||||
enum wlan_ipa_wlan_event ipa_event_type,
|
||||
uint8_t *mac_addr);
|
||||
uint8_t *mac_addr, bool is_2g_iface);
|
||||
|
||||
/**
|
||||
* ucfg_ipa_uc_smmu_map() - Map / Unmap DMA buffer to IPA UC
|
||||
@@ -586,7 +587,7 @@ QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
|
||||
qdf_netdev_t net_dev, uint8_t device_mode,
|
||||
uint8_t session_id,
|
||||
enum wlan_ipa_wlan_event ipa_event_type,
|
||||
uint8_t *mac_addr)
|
||||
uint8_t *mac_addr, bool is_2g_iface)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -176,10 +176,10 @@ QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
|
||||
qdf_netdev_t net_dev, uint8_t device_mode,
|
||||
uint8_t session_id,
|
||||
enum wlan_ipa_wlan_event ipa_event_type,
|
||||
uint8_t *mac_addr)
|
||||
uint8_t *mac_addr, bool is_2g_iface)
|
||||
{
|
||||
return ipa_wlan_evt(pdev, net_dev, device_mode, session_id,
|
||||
ipa_event_type, mac_addr);
|
||||
ipa_event_type, mac_addr, is_2g_iface);
|
||||
}
|
||||
|
||||
int ucfg_ipa_uc_smmu_map(bool map, uint32_t num_buf, qdf_mem_info_t *buf_arr)
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur