qcacld-3.0: Handle HTT_T2H_MSG_TYPE_FLOW_POOL_RESIZE command

Add support for HTT_T2H_MSG_TYPE_FLOW_POOL_RESIZE
command from firmware to resize flow pool and call appropriate
function to handle it.

Change-Id: I7d2ca6ed459383ec5c456b15a71290264d5d2408
CRs-Fixed: 2261265
This commit is contained in:
Nirav Shah 2018-06-05 18:01:02 +05:30 • committed by nshrivas
commit 87dca29f5a

View file

@ -563,6 +563,25 @@ static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
break;
}
case HTT_T2H_MSG_TYPE_FLOW_POOL_RESIZE:
{
struct htt_flow_pool_resize_t *msg;
int msg_len = qdf_nbuf_len(htt_t2h_msg);
if (msg_len < sizeof(struct htt_flow_pool_resize_t)) {
QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
"Invalid msg_word length in HTT_T2H_MSG_TYPE_FLOW_POOL_RESIZE");
WARN_ON(1);
break;
}
msg = (struct htt_flow_pool_resize_t *)msg_word;
ol_tx_flow_pool_resize_handler(msg->flow_pool_id,
msg->flow_pool_new_size);
break;
}
case HTT_T2H_MSG_TYPE_RX_OFLD_PKT_ERR:
{
switch (HTT_RX_OFLD_PKT_ERR_MSG_SUB_TYPE_GET(*msg_word)) {