Commit eeed833a authored by Sanjay Konduri's avatar Sanjay Konduri Committed by Kalle Valo

rsi: add fix for corruption of auto rate table

Auto rate table sent to firmware is getting corrupted
as memset to zeros is not done. Added memset to skb
data before filling auto rate table.
Signed-off-by: default avatarSanjay Konduri <sanjay.konduri@redpinesignals.com>
Signed-off-by: default avatarSushant Kumar Mishra <sushant.mishra@redpinesignals.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent abd39c6d
...@@ -1190,6 +1190,7 @@ static int rsi_send_auto_rate_request(struct rsi_common *common, ...@@ -1190,6 +1190,7 @@ static int rsi_send_auto_rate_request(struct rsi_common *common,
return -ENOMEM; return -ENOMEM;
} }
memset(skb->data, 0, frame_len);
selected_rates = kzalloc(2 * RSI_TBL_SZ, GFP_KERNEL); selected_rates = kzalloc(2 * RSI_TBL_SZ, GFP_KERNEL);
if (!selected_rates) { if (!selected_rates) {
rsi_dbg(ERR_ZONE, "%s: Failed in allocation of mem\n", rsi_dbg(ERR_ZONE, "%s: Failed in allocation of mem\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment