From 1ce1a2e34a8ff5af3318242daf9980914ac742fb Mon Sep 17 00:00:00 2001 From: Aditya Sathish Date: Mon, 19 Nov 2018 20:05:33 +0530 Subject: [PATCH] qcacmn: Fix WMI for peer channel re-intersection Fix WMI message for peer channel width switching to account for reserve space allocated in the message between num_peer and chan_width_peer_list. Change-Id: I5f0cec3c263cb68f44f0fcaa2aa26d120e807b1a CRs-Fixed: 2352372 --- wmi/src/wmi_unified_non_tlv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmi/src/wmi_unified_non_tlv.c b/wmi/src/wmi_unified_non_tlv.c index 14fac3a4af73..3ee314ce4272 100644 --- a/wmi/src/wmi_unified_non_tlv.c +++ b/wmi/src/wmi_unified_non_tlv.c @@ -667,7 +667,7 @@ send_peer_chan_width_switch_cmd_non_tlv(wmi_unified_t wmi_handle, max_peers_per_command : pending_peers; cmd_peer_list = (struct chan_width_peer_list *) - (cmd + sizeof(*cmd)); + &(cmd->chan_width_peer_info[0]); for (ix = 0; ix < cmd->num_peers; ix++) { WMI_CHAR_ARRAY_TO_MAC_ADDR(param_peer_list[ix].mac_addr,