summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/rsi
diff options
context:
space:
mode:
authorSanjay Konduri <sanjay.konduri@redpinesignals.com>2018-05-15 12:04:31 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-05-23 11:02:24 +0300
commiteeed833aaa38712efc7c41d9d6bd5afc8c13c55b (patch)
tree11893d14845fd7e5c68ce58b3e0452a5f9b88c21 /drivers/net/wireless/rsi
parentabd39c6ded9db53aa44c2540092bdd5fb6590fa8 (diff)
downloadlinux-eeed833aaa38712efc7c41d9d6bd5afc8c13c55b.tar.xz
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: Sanjay Konduri <sanjay.konduri@redpinesignals.com> Signed-off-by: Sushant Kumar Mishra <sushant.mishra@redpinesignals.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rsi')
-rw-r--r--drivers/net/wireless/rsi/rsi_91x_mgmt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rsi/rsi_91x_mgmt.c b/drivers/net/wireless/rsi/rsi_91x_mgmt.c
index 0757adcb3f4a..d0e5937cad6d 100644
--- a/drivers/net/wireless/rsi/rsi_91x_mgmt.c
+++ b/drivers/net/wireless/rsi/rsi_91x_mgmt.c
@@ -1190,6 +1190,7 @@ static int rsi_send_auto_rate_request(struct rsi_common *common,
return -ENOMEM;
}
+ memset(skb->data, 0, frame_len);
selected_rates = kzalloc(2 * RSI_TBL_SZ, GFP_KERNEL);
if (!selected_rates) {
rsi_dbg(ERR_ZONE, "%s: Failed in allocation of mem\n",