qcacld-3.0: Cleanup sta_id from IPA [PEER_ID_PHASE1]

Local sta_id or peer_id is being cleaned up across DP, HDD
and PS/WMA. So, any references to local peer_id/sta_id will
be replaced by peer mac address and all interactions
between the layers will be based on peer mac address.

Change-Id: I78230bf1e1ec090e83245bff04953fa2e03b91cd
CRs-Fixed: 2504013
This commit is contained in:
Rakshith Suresh Patkar 2019-08-06 14:34:36 +05:30 committed by nshrivas
parent a4c39554e5
commit 96703f64d6
8 changed files with 49 additions and 59 deletions

View File

@ -605,7 +605,6 @@ static inline void wlan_ipa_mcc_work_handler(void *data)
* wlan_ipa_wlan_evt() - IPA event handler * wlan_ipa_wlan_evt() - IPA event handler
* @net_dev: Interface net device * @net_dev: Interface net device
* @device_mode: Net interface device mode * @device_mode: Net interface device mode
* @sta_id: station id for the event
* @session_id: session id for the event * @session_id: session id for the event
* @type: event enum of type ipa_wlan_event * @type: event enum of type ipa_wlan_event
* @mac_address: MAC address associated with the event * @mac_address: MAC address associated with the event
@ -613,7 +612,7 @@ static inline void wlan_ipa_mcc_work_handler(void *data)
* Return: QDF_STATUS * Return: QDF_STATUS
*/ */
QDF_STATUS wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode, QDF_STATUS wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
uint8_t sta_id, uint8_t session_id, uint8_t session_id,
enum wlan_ipa_wlan_event ipa_event_type, enum wlan_ipa_wlan_event ipa_event_type,
uint8_t *mac_addr); uint8_t *mac_addr);

View File

@ -348,7 +348,6 @@ QDF_STATUS ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
* @pdev: pdev obj * @pdev: pdev obj
* @net_dev: Interface net device * @net_dev: Interface net device
* @device_mode: Net interface device mode * @device_mode: Net interface device mode
* @sta_id: station id for the event
* @session_id: session id for the event * @session_id: session id for the event
* @type: event enum of type ipa_wlan_event * @type: event enum of type ipa_wlan_event
* @mac_address: MAC address associated with the event * @mac_address: MAC address associated with the event
@ -356,7 +355,7 @@ QDF_STATUS ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
* Return: QDF_STATUS * Return: QDF_STATUS
*/ */
QDF_STATUS ipa_wlan_evt(struct wlan_objmgr_pdev *pdev, qdf_netdev_t net_dev, QDF_STATUS ipa_wlan_evt(struct wlan_objmgr_pdev *pdev, qdf_netdev_t net_dev,
uint8_t device_mode, uint8_t sta_id, uint8_t session_id, uint8_t device_mode, uint8_t session_id,
enum wlan_ipa_wlan_event ipa_event_type, enum wlan_ipa_wlan_event ipa_event_type,
uint8_t *mac_addr); uint8_t *mac_addr);

View File

@ -301,7 +301,6 @@ struct wlan_ipa_priv;
* @iface_id: IPA interface ID * @iface_id: IPA interface ID
* @dev: Net device structure * @dev: Net device structure
* @device_mode: Interface device mode * @device_mode: Interface device mode
* @sta_id: Interface station ID
* @session_id: Session ID * @session_id: Session ID
* @interface_lock: Interface lock * @interface_lock: Interface lock
* @ifa_address: Interface address * @ifa_address: Interface address
@ -317,7 +316,6 @@ struct wlan_ipa_iface_context {
uint8_t iface_id; /* This iface ID */ uint8_t iface_id; /* This iface ID */
qdf_netdev_t dev; qdf_netdev_t dev;
enum QDF_OPMODE device_mode; enum QDF_OPMODE device_mode;
uint8_t sta_id; /* This iface station ID */
uint8_t session_id; uint8_t session_id;
qdf_spinlock_t interface_lock; qdf_spinlock_t interface_lock;
uint32_t ifa_address; uint32_t ifa_address;
@ -368,12 +366,10 @@ struct wlan_ipa_stats {
/** /**
* struct ipa_uc_stas_map - IPA UC assoc station map * struct ipa_uc_stas_map - IPA UC assoc station map
* @is_reserved: STA reserved flag * @is_reserved: STA reserved flag
* @sta_id: Station ID
* @mac_addr: Station mac address * @mac_addr: Station mac address
*/ */
struct ipa_uc_stas_map { struct ipa_uc_stas_map {
bool is_reserved; bool is_reserved;
uint8_t sta_id;
struct qdf_mac_addr mac_addr; struct qdf_mac_addr mac_addr;
}; };
@ -449,7 +445,6 @@ struct ipa_uc_fw_stats {
* @node: Pending event list node * @node: Pending event list node
* @type: WLAN IPA event type * @type: WLAN IPA event type
* @device_mode: Device mode * @device_mode: Device mode
* @sta_id: Station ID
* @session_id: Session ID * @session_id: Session ID
* @mac_addr: Mac address * @mac_addr: Mac address
* @is_loading: Driver loading flag * @is_loading: Driver loading flag
@ -459,7 +454,6 @@ struct wlan_ipa_uc_pending_event {
qdf_ipa_wlan_event type; qdf_ipa_wlan_event type;
qdf_netdev_t net_dev; qdf_netdev_t net_dev;
uint8_t device_mode; uint8_t device_mode;
uint8_t sta_id;
uint8_t session_id; uint8_t session_id;
uint8_t mac_addr[QDF_MAC_ADDR_SIZE]; uint8_t mac_addr[QDF_MAC_ADDR_SIZE];
bool is_loading; bool is_loading;

View File

@ -1251,12 +1251,12 @@ end:
* wlan_ipa_uc_find_add_assoc_sta() - Find associated station * wlan_ipa_uc_find_add_assoc_sta() - Find associated station
* @ipa_ctx: Global IPA IPA context * @ipa_ctx: Global IPA IPA context
* @sta_add: Should station be added * @sta_add: Should station be added
* @sta_id: ID of the station being queried * @mac_addr: mac address of station being queried
* *
* Return: true if the station was found * Return: true if the station was found
*/ */
static bool wlan_ipa_uc_find_add_assoc_sta(struct wlan_ipa_priv *ipa_ctx, static bool wlan_ipa_uc_find_add_assoc_sta(struct wlan_ipa_priv *ipa_ctx,
bool sta_add, uint8_t sta_id, bool sta_add,
uint8_t *mac_addr) uint8_t *mac_addr)
{ {
bool sta_found = false; bool sta_found = false;
@ -1264,20 +1264,22 @@ static bool wlan_ipa_uc_find_add_assoc_sta(struct wlan_ipa_priv *ipa_ctx,
for (idx = 0; idx < WLAN_IPA_MAX_STA_COUNT; idx++) { for (idx = 0; idx < WLAN_IPA_MAX_STA_COUNT; idx++) {
if ((ipa_ctx->assoc_stas_map[idx].is_reserved) && if ((ipa_ctx->assoc_stas_map[idx].is_reserved) &&
(ipa_ctx->assoc_stas_map[idx].sta_id == sta_id)) { (qdf_is_macaddr_equal(
&ipa_ctx->assoc_stas_map[idx].mac_addr,
(struct qdf_mac_addr *)mac_addr))) {
sta_found = true; sta_found = true;
break; break;
} }
} }
if (sta_add && sta_found) { if (sta_add && sta_found) {
ipa_err("STA ID %d already exist, cannot add", sta_id); ipa_err("STA already exist, cannot add: " QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(mac_addr));
return sta_found; return sta_found;
} }
if (sta_add) { if (sta_add) {
for (idx = 0; idx < WLAN_IPA_MAX_STA_COUNT; idx++) { for (idx = 0; idx < WLAN_IPA_MAX_STA_COUNT; idx++) {
if (!ipa_ctx->assoc_stas_map[idx].is_reserved) { if (!ipa_ctx->assoc_stas_map[idx].is_reserved) {
ipa_ctx->assoc_stas_map[idx].is_reserved = true; ipa_ctx->assoc_stas_map[idx].is_reserved = true;
ipa_ctx->assoc_stas_map[idx].sta_id = sta_id;
qdf_mem_copy(&ipa_ctx->assoc_stas_map[idx]. qdf_mem_copy(&ipa_ctx->assoc_stas_map[idx].
mac_addr, mac_addr, mac_addr, mac_addr,
QDF_NET_ETH_LEN); QDF_NET_ETH_LEN);
@ -1286,16 +1288,18 @@ static bool wlan_ipa_uc_find_add_assoc_sta(struct wlan_ipa_priv *ipa_ctx,
} }
} }
if (!sta_add && !sta_found) { if (!sta_add && !sta_found) {
ipa_err("STA ID %d does not exist, cannot delete", sta_id); ipa_err("STA does not exist, cannot delete: " QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(mac_addr));
return sta_found; return sta_found;
} }
if (!sta_add) { if (!sta_add) {
for (idx = 0; idx < WLAN_IPA_MAX_STA_COUNT; idx++) { for (idx = 0; idx < WLAN_IPA_MAX_STA_COUNT; idx++) {
if ((ipa_ctx->assoc_stas_map[idx].is_reserved) && if ((ipa_ctx->assoc_stas_map[idx].is_reserved) &&
(ipa_ctx->assoc_stas_map[idx].sta_id == sta_id)) { (qdf_is_macaddr_equal(
&ipa_ctx->assoc_stas_map[idx].mac_addr,
(struct qdf_mac_addr *)mac_addr))) {
ipa_ctx->assoc_stas_map[idx].is_reserved = ipa_ctx->assoc_stas_map[idx].is_reserved =
false; false;
ipa_ctx->assoc_stas_map[idx].sta_id = 0xFF;
qdf_mem_zero( qdf_mem_zero(
&ipa_ctx->assoc_stas_map[idx].mac_addr, &ipa_ctx->assoc_stas_map[idx].mac_addr,
QDF_NET_ETH_LEN); QDF_NET_ETH_LEN);
@ -1353,7 +1357,6 @@ static void wlan_ipa_cleanup_iface(struct wlan_ipa_iface_context *iface_context)
iface_context->dev = NULL; iface_context->dev = NULL;
iface_context->device_mode = QDF_MAX_NO_OF_MODE; iface_context->device_mode = QDF_MAX_NO_OF_MODE;
iface_context->session_id = WLAN_IPA_MAX_SESSION; iface_context->session_id = WLAN_IPA_MAX_SESSION;
iface_context->sta_id = WLAN_IPA_MAX_STA_COUNT;
qdf_spin_unlock_bh(&iface_context->interface_lock); qdf_spin_unlock_bh(&iface_context->interface_lock);
iface_context->ifa_address = 0; iface_context->ifa_address = 0;
if (!iface_context->ipa_ctx->num_iface) { if (!iface_context->ipa_ctx->num_iface) {
@ -1410,14 +1413,13 @@ static void wlan_ipa_nbuf_cb(qdf_nbuf_t skb)
* @net_dev: Interface net device * @net_dev: Interface net device
* @device_mode: Net interface device mode * @device_mode: Net interface device mode
* @adapter: Interface upon which IPA is being setup * @adapter: Interface upon which IPA is being setup
* @sta_id: Station ID of the API instance
* @session_id: Station ID of the API instance * @session_id: Station ID of the API instance
* *
* Return: QDF STATUS * Return: QDF STATUS
*/ */
static QDF_STATUS wlan_ipa_setup_iface(struct wlan_ipa_priv *ipa_ctx, static QDF_STATUS wlan_ipa_setup_iface(struct wlan_ipa_priv *ipa_ctx,
qdf_netdev_t net_dev, qdf_netdev_t net_dev,
uint8_t device_mode, uint8_t sta_id, uint8_t device_mode,
uint8_t session_id) uint8_t session_id)
{ {
struct wlan_ipa_iface_context *iface_context = NULL; struct wlan_ipa_iface_context *iface_context = NULL;
@ -1462,12 +1464,12 @@ static QDF_STATUS wlan_ipa_setup_iface(struct wlan_ipa_priv *ipa_ctx,
goto end; goto end;
} }
iface_context->sta_id = sta_id; tl_context = (void *)cdp_get_vdev_from_vdev_id(ipa_ctx->dp_soc,
tl_context = (void *)cdp_peer_get_vdev_by_sta_id(ipa_ctx->dp_soc, ipa_ctx->dp_pdev,
ipa_ctx->dp_pdev, session_id);
sta_id);
if (!tl_context) { if (!tl_context) {
ipa_err("Not able to get TL context sta_id: %d", sta_id); ipa_err("Not able to get TL context session_id: %d",
session_id);
status = QDF_STATUS_E_INVAL; status = QDF_STATUS_E_INVAL;
goto end; goto end;
} }
@ -1684,7 +1686,6 @@ static void wlan_ipa_uc_offload_enable_disable(struct wlan_ipa_priv *ipa_ctx,
* __wlan_ipa_wlan_evt() - IPA event handler * __wlan_ipa_wlan_evt() - IPA event handler
* @net_dev: Interface net device * @net_dev: Interface net device
* @device_mode: Net interface device mode * @device_mode: Net interface device mode
* @sta_id: station id for the event
* @session_id: session id for the event * @session_id: session id for the event
* @type: event enum of type ipa_wlan_event * @type: event enum of type ipa_wlan_event
* @mac_address: MAC address associated with the event * @mac_address: MAC address associated with the event
@ -1694,7 +1695,7 @@ static void wlan_ipa_uc_offload_enable_disable(struct wlan_ipa_priv *ipa_ctx,
* Return: QDF STATUS * Return: QDF STATUS
*/ */
static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode, static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
uint8_t sta_id, uint8_t session_id, uint8_t session_id,
qdf_ipa_wlan_event type, qdf_ipa_wlan_event type,
uint8_t *mac_addr) uint8_t *mac_addr)
{ {
@ -1710,8 +1711,8 @@ static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
struct wlan_objmgr_psoc *psoc; struct wlan_objmgr_psoc *psoc;
struct wlan_objmgr_vdev *vdev; struct wlan_objmgr_vdev *vdev;
ipa_debug("%s: EVT: %d, MAC: %pM, sta_id: %d session_id: %u", ipa_debug("%s: EVT: %d, MAC: %pM, session_id: %u",
net_dev->name, type, mac_addr, sta_id, session_id); net_dev->name, type, mac_addr, session_id);
if (type >= QDF_IPA_WLAN_EVENT_MAX) if (type >= QDF_IPA_WLAN_EVENT_MAX)
return QDF_STATUS_E_INVAL; return QDF_STATUS_E_INVAL;
@ -1809,7 +1810,6 @@ static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
pending_event->net_dev = net_dev; pending_event->net_dev = net_dev;
pending_event->device_mode = device_mode; pending_event->device_mode = device_mode;
pending_event->sta_id = sta_id;
pending_event->session_id = session_id; pending_event->session_id = session_id;
pending_event->type = type; pending_event->type = type;
pending_event->is_loading = ipa_ctx->resource_loading; pending_event->is_loading = ipa_ctx->resource_loading;
@ -1857,7 +1857,7 @@ static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
} }
status = wlan_ipa_setup_iface(ipa_ctx, net_dev, device_mode, status = wlan_ipa_setup_iface(ipa_ctx, net_dev, device_mode,
sta_id, session_id); session_id);
if (status != QDF_STATUS_SUCCESS) { if (status != QDF_STATUS_SUCCESS) {
ipa_err("wlan_ipa_setup_iface failed %u", status); ipa_err("wlan_ipa_setup_iface failed %u", status);
qdf_mutex_release(&ipa_ctx->event_lock); qdf_mutex_release(&ipa_ctx->event_lock);
@ -1922,7 +1922,7 @@ static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
} }
status = wlan_ipa_setup_iface(ipa_ctx, net_dev, device_mode, status = wlan_ipa_setup_iface(ipa_ctx, net_dev, device_mode,
sta_id, session_id); session_id);
if (status != QDF_STATUS_SUCCESS) { if (status != QDF_STATUS_SUCCESS) {
qdf_mutex_release(&ipa_ctx->event_lock); qdf_mutex_release(&ipa_ctx->event_lock);
ipa_err("%s: Evt: %d, Interface setup failed", ipa_err("%s: Evt: %d, Interface setup failed",
@ -2080,10 +2080,12 @@ static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
} }
qdf_mutex_acquire(&ipa_ctx->event_lock); qdf_mutex_acquire(&ipa_ctx->event_lock);
if (wlan_ipa_uc_find_add_assoc_sta(ipa_ctx, true, sta_id, if (wlan_ipa_uc_find_add_assoc_sta(ipa_ctx, true,
mac_addr)) { mac_addr)) {
qdf_mutex_release(&ipa_ctx->event_lock); qdf_mutex_release(&ipa_ctx->event_lock);
ipa_err("%s: STA ID %d found", net_dev->name, sta_id); ipa_err("%s: STA found, addr: " QDF_MAC_ADDR_STR,
net_dev->name,
QDF_MAC_ADDR_ARRAY(mac_addr));
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }
@ -2187,10 +2189,11 @@ static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }
if (!wlan_ipa_uc_find_add_assoc_sta(ipa_ctx, false, if (!wlan_ipa_uc_find_add_assoc_sta(ipa_ctx, false,
sta_id, mac_addr)) { mac_addr)) {
qdf_mutex_release(&ipa_ctx->event_lock); qdf_mutex_release(&ipa_ctx->event_lock);
ipa_err("%s: STA ID %d NOT found, not valid", ipa_err("%s: STA NOT found, not valid: "
msg_ex->name, sta_id); QDF_MAC_ADDR_STR,
msg_ex->name, QDF_MAC_ADDR_ARRAY(mac_addr));
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }
@ -2320,7 +2323,6 @@ wlan_host_to_ipa_wlan_event(enum wlan_ipa_wlan_event wlan_ipa_event_type)
* wlan_ipa_wlan_evt() - SSR wrapper for __wlan_ipa_wlan_evt * wlan_ipa_wlan_evt() - SSR wrapper for __wlan_ipa_wlan_evt
* @net_dev: Interface net device * @net_dev: Interface net device
* @device_mode: Net interface device mode * @device_mode: Net interface device mode
* @sta_id: station id for the event
* @session_id: session id for the event * @session_id: session id for the event
* @ipa_event_type: event enum of type wlan_ipa_wlan_event * @ipa_event_type: event enum of type wlan_ipa_wlan_event
* @mac_address: MAC address associated with the event * @mac_address: MAC address associated with the event
@ -2328,7 +2330,7 @@ wlan_host_to_ipa_wlan_event(enum wlan_ipa_wlan_event wlan_ipa_event_type)
* Return: QDF_STATUS * Return: QDF_STATUS
*/ */
QDF_STATUS wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode, QDF_STATUS wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
uint8_t sta_id, uint8_t session_id, uint8_t session_id,
enum wlan_ipa_wlan_event ipa_event_type, enum wlan_ipa_wlan_event ipa_event_type,
uint8_t *mac_addr) uint8_t *mac_addr)
{ {
@ -2338,7 +2340,7 @@ QDF_STATUS wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
/* Data path offload only support for STA and SAP mode */ /* Data path offload only support for STA and SAP mode */
if ((device_mode == QDF_STA_MODE) || if ((device_mode == QDF_STA_MODE) ||
(device_mode == QDF_SAP_MODE)) (device_mode == QDF_SAP_MODE))
status = __wlan_ipa_wlan_evt(net_dev, device_mode, sta_id, status = __wlan_ipa_wlan_evt(net_dev, device_mode,
session_id, type, mac_addr); session_id, type, mac_addr);
return status; return status;
@ -2376,7 +2378,6 @@ wlan_ipa_uc_proc_pending_event(struct wlan_ipa_priv *ipa_ctx, bool is_loading)
if (pending_event->is_loading == is_loading && vdev) { if (pending_event->is_loading == is_loading && vdev) {
__wlan_ipa_wlan_evt(pending_event->net_dev, __wlan_ipa_wlan_evt(pending_event->net_dev,
pending_event->device_mode, pending_event->device_mode,
pending_event->sta_id,
pending_event->session_id, pending_event->session_id,
pending_event->type, pending_event->type,
pending_event->mac_addr); pending_event->mac_addr);

View File

@ -502,7 +502,7 @@ QDF_STATUS ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
} }
QDF_STATUS ipa_wlan_evt(struct wlan_objmgr_pdev *pdev, qdf_netdev_t net_dev, QDF_STATUS ipa_wlan_evt(struct wlan_objmgr_pdev *pdev, qdf_netdev_t net_dev,
uint8_t device_mode, uint8_t sta_id, uint8_t session_id, uint8_t device_mode, uint8_t session_id,
enum wlan_ipa_wlan_event ipa_event_type, enum wlan_ipa_wlan_event ipa_event_type,
uint8_t *mac_addr) uint8_t *mac_addr)
{ {
@ -514,7 +514,7 @@ QDF_STATUS ipa_wlan_evt(struct wlan_objmgr_pdev *pdev, qdf_netdev_t net_dev,
return QDF_STATUS_E_FAILURE; return QDF_STATUS_E_FAILURE;
} }
return wlan_ipa_wlan_evt(net_dev, device_mode, sta_id, session_id, return wlan_ipa_wlan_evt(net_dev, device_mode, session_id,
ipa_event_type, mac_addr); ipa_event_type, mac_addr);
} }

View File

@ -335,9 +335,10 @@ static void wlan_ipa_dump_ipa_ctx(struct wlan_ipa_priv *ipa_ctx)
QDF_TRACE(QDF_MODULE_ID_IPA, QDF_TRACE_LEVEL_INFO, QDF_TRACE(QDF_MODULE_ID_IPA, QDF_TRACE_LEVEL_INFO,
"\nassoc_stas_map ----"); "\nassoc_stas_map ----");
for (i = 0; i < WLAN_IPA_MAX_STA_COUNT; i++) { for (i = 0; i < WLAN_IPA_MAX_STA_COUNT; i++) {
ipa_info("\n\t[%d]: is_reserved=%d, sta_id=%d", i, ipa_info("\n\t[%d]: is_reserved=%d mac: " QDF_MAC_ADDR_STR, i,
ipa_ctx->assoc_stas_map[i].is_reserved, ipa_ctx->assoc_stas_map[i].is_reserved,
ipa_ctx->assoc_stas_map[i].sta_id); QDF_MAC_ADDR_ARRAY(
ipa_ctx->assoc_stas_map[i].mac_addr.bytes));
} }
} }
@ -426,7 +427,6 @@ static void wlan_ipa_dump_iface_context(struct wlan_ipa_priv *ipa_ctx)
"\tcons_client: %d\n" "\tcons_client: %d\n"
"\tprod_client: %d\n" "\tprod_client: %d\n"
"\tiface_id: %d\n" "\tiface_id: %d\n"
"\tsta_id: %d\n"
"\tinterface_lock: %pK\n" "\tinterface_lock: %pK\n"
"\tifa_address: 0x%x\n", "\tifa_address: 0x%x\n",
i, i,
@ -435,7 +435,6 @@ static void wlan_ipa_dump_iface_context(struct wlan_ipa_priv *ipa_ctx)
iface_context->cons_client, iface_context->cons_client,
iface_context->prod_client, iface_context->prod_client,
iface_context->iface_id, iface_context->iface_id,
iface_context->sta_id,
&iface_context->interface_lock, &iface_context->interface_lock,
iface_context->ifa_address); iface_context->ifa_address);
} }
@ -524,9 +523,8 @@ static void wlan_ipa_print_session_info(struct wlan_ipa_priv *ipa_ctx)
if (!iface_context->tl_context) if (!iface_context->tl_context)
continue; continue;
ipa_info("\nIFACE[%d]: sta_id:%d, mode:%d, offload:%d", ipa_info("\nIFACE[%d]: mode:%d, offload:%d",
i, iface_context->sta_id, i, iface_context->device_mode,
iface_context->device_mode,
ipa_ctx->vdev_offload_enabled[iface_context-> ipa_ctx->vdev_offload_enabled[iface_context->
session_id]); session_id]);
} }
@ -539,9 +537,9 @@ static void wlan_ipa_print_session_info(struct wlan_ipa_priv *ipa_ctx)
qdf_list_peek_front(&ipa_ctx->pending_event, qdf_list_peek_front(&ipa_ctx->pending_event,
(qdf_list_node_t **)&event); (qdf_list_node_t **)&event);
while (event) { while (event) {
ipa_info("PENDING EVENT[%d]: EVT:%s, sta_id:%d, MAC:%pM", ipa_info("PENDING EVENT[%d]: EVT:%s, MAC:%pM",
i, wlan_ipa_wlan_event_to_str(event->type), i, wlan_ipa_wlan_event_to_str(event->type),
event->sta_id, event->mac_addr); event->mac_addr);
qdf_list_peek_next(&ipa_ctx->pending_event, qdf_list_peek_next(&ipa_ctx->pending_event,
(qdf_list_node_t *)event, (qdf_list_node_t *)event,

View File

@ -255,7 +255,6 @@ QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
* @pdev: pdev obj * @pdev: pdev obj
* @net_dev: Interface net device * @net_dev: Interface net device
* @device_mode: Net interface device mode * @device_mode: Net interface device mode
* @sta_id: station id for the event
* @session_id: session id for the event * @session_id: session id for the event
* @type: event enum of type ipa_wlan_event * @type: event enum of type ipa_wlan_event
* @mac_address: MAC address associated with the event * @mac_address: MAC address associated with the event
@ -264,7 +263,7 @@ QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
*/ */
QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev, QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
qdf_netdev_t net_dev, uint8_t device_mode, qdf_netdev_t net_dev, uint8_t device_mode,
uint8_t sta_id, uint8_t session_id, uint8_t session_id,
enum wlan_ipa_wlan_event ipa_event_type, enum wlan_ipa_wlan_event ipa_event_type,
uint8_t *mac_addr); uint8_t *mac_addr);
@ -489,7 +488,7 @@ QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
static inline static inline
QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev, QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
qdf_netdev_t net_dev, uint8_t device_mode, qdf_netdev_t net_dev, uint8_t device_mode,
uint8_t sta_id, uint8_t session_id, uint8_t session_id,
enum wlan_ipa_wlan_event ipa_event_type, enum wlan_ipa_wlan_event ipa_event_type,
uint8_t *mac_addr) uint8_t *mac_addr)
{ {

View File

@ -156,11 +156,11 @@ QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev, QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
qdf_netdev_t net_dev, uint8_t device_mode, qdf_netdev_t net_dev, uint8_t device_mode,
uint8_t sta_id, uint8_t session_id, uint8_t session_id,
enum wlan_ipa_wlan_event ipa_event_type, enum wlan_ipa_wlan_event ipa_event_type,
uint8_t *mac_addr) uint8_t *mac_addr)
{ {
return ipa_wlan_evt(pdev, net_dev, device_mode, sta_id, session_id, return ipa_wlan_evt(pdev, net_dev, device_mode, session_id,
ipa_event_type, mac_addr); ipa_event_type, mac_addr);
} }