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
This commit is contained in:
Aditya Sathish
2018-11-19 20:05:33 +05:30
committed by nshrivas
parent 5c0d751414
commit 1ce1a2e34a

View File

@@ -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,