mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
wcn36xx: Parse trigger_ba response properly
This message does not follow the canonical format and needs it's own parser. Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
parent
25a44da26f
commit
16be1ac559
|
|
@ -1968,6 +1968,17 @@ int wcn36xx_smd_del_ba(struct wcn36xx *wcn, u16 tid, u8 sta_index)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int wcn36xx_smd_trigger_ba_rsp(void *buf, int len)
|
||||||
|
{
|
||||||
|
struct wcn36xx_hal_trigger_ba_rsp_msg *rsp;
|
||||||
|
|
||||||
|
if (len < sizeof(*rsp))
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
rsp = (struct wcn36xx_hal_trigger_ba_rsp_msg *) buf;
|
||||||
|
return rsp->status;
|
||||||
|
}
|
||||||
|
|
||||||
int wcn36xx_smd_trigger_ba(struct wcn36xx *wcn, u8 sta_index)
|
int wcn36xx_smd_trigger_ba(struct wcn36xx *wcn, u8 sta_index)
|
||||||
{
|
{
|
||||||
struct wcn36xx_hal_trigger_ba_req_msg msg_body;
|
struct wcn36xx_hal_trigger_ba_req_msg msg_body;
|
||||||
|
|
@ -1992,8 +2003,7 @@ int wcn36xx_smd_trigger_ba(struct wcn36xx *wcn, u8 sta_index)
|
||||||
wcn36xx_err("Sending hal_trigger_ba failed\n");
|
wcn36xx_err("Sending hal_trigger_ba failed\n");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
ret = wcn36xx_smd_rsp_status_check_v2(wcn, wcn->hal_buf,
|
ret = wcn36xx_smd_trigger_ba_rsp(wcn->hal_buf, wcn->hal_rsp_len);
|
||||||
wcn->hal_rsp_len);
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
wcn36xx_err("hal_trigger_ba response failed err=%d\n", ret);
|
wcn36xx_err("hal_trigger_ba response failed err=%d\n", ret);
|
||||||
goto out;
|
goto out;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user