16a721a680ce77d450a6aec32f2cd903bed17a05

In the api sap_get_channel_list, list is allocated memory to store the channel list to be sent for scan request. This api is called by sap_goto_channel_sel which initializes scan_request.ChannelInfo.ChannelList to channel_list, without any prior NULL check of channel_list. Also in scan callback wlansap_scan_callback, if the state machine structure is in disconnected state , the host returns without freeing the memory allocated to the channel list in sap_ctx . Fix is to free the memory allocated to the channel list and make the sap_ctx->channellist, sap_ctx->num_of_channel as NULL and zero respectively in both the instances. Change-Id: Ia54287d6e77e206c717bd3c205ebe57510ea801c CRs-Fixed: 2159489
This is CNSS WLAN Host Driver for products starting from iHelium
儲存庫描述
Languages
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%