mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacld-3.0: Avoid un-initialized pointer access in hdd_ndi_start_bss
In function hdd_ndi_start_bss, avoid access to channel list pointer without initializing it. Change-Id: I9307f587bb9691d12b9b16f3a5e62945be7b2220 CRs-Fixed: 2205990
This commit is contained in:
parent
da7e53ada0
commit
709c0cbcf2
1 changed files with 4 additions and 6 deletions
|
|
@ -186,13 +186,11 @@ static int hdd_ndi_start_bss(struct hdd_adapter *adapter,
|
|||
|
||||
roam_profile->csrPersona = adapter->device_mode;
|
||||
|
||||
if (!operating_channel)
|
||||
operating_channel = NAN_SOCIAL_CHANNEL_2_4GHZ;
|
||||
|
||||
roam_profile->ChannelInfo.numOfChannels = 1;
|
||||
if (operating_channel) {
|
||||
roam_profile->ChannelInfo.ChannelList = &operating_channel;
|
||||
} else {
|
||||
roam_profile->ChannelInfo.ChannelList[0] =
|
||||
NAN_SOCIAL_CHANNEL_2_4GHZ;
|
||||
}
|
||||
roam_profile->ChannelInfo.ChannelList = &operating_channel;
|
||||
|
||||
roam_profile->SSIDs.numOfSSIDs = 1;
|
||||
roam_profile->SSIDs.SSIDList->SSID.length = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue