mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
qcacmn: Fix copy length error of unsafe_channel_list
unsafe_channel_list is defined as uint16, but copy with length of byte. Change-Id: I35cd1d006f561c6bb1e64fd56e9822fefd991848 CRs-Fixed: 2170439
This commit is contained in:
parent
e6da44ea06
commit
987316d757
1 changed files with 2 additions and 1 deletions
|
|
@ -182,7 +182,8 @@ void policy_mgr_reg_chan_change_callback(struct wlan_objmgr_psoc *psoc,
|
|||
if (pm_ctx->unsafe_channel_count)
|
||||
qdf_mem_copy(pm_ctx->unsafe_channel_list,
|
||||
avoid_freq_ind->chan_list.ch_list,
|
||||
pm_ctx->unsafe_channel_count);
|
||||
pm_ctx->unsafe_channel_count *
|
||||
sizeof(pm_ctx->unsafe_channel_list[0]));
|
||||
policy_mgr_debug("Channel list update, recieved %d avoided channels",
|
||||
pm_ctx->unsafe_channel_count);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue