Commit Graph

16035 Commits

Author SHA1 Message Date
nshrivas
6342ad3723 Release 5.2.0.136D
Release 5.2.0.136D

Change-Id: I47f3e877c226468b486e1b6701e2b3ec6ddf2f1f
CRs-Fixed: 774533
2019-06-10 09:15:38 -07:00
Nirav Shah
ca7ab5ce64 qcacld-3.0: Disable packetlog for QCN7605
Disable packetlog for QCN7605.

Change-Id: Id0737e8857ac5fdebd6becd3addb84f10c0033d0
CRs-Fixed: 2467273
2019-06-10 09:15:37 -07:00
Bala Venkatesh
e2f6771896 qcacld-3.0: Avoid memory leaks
pScanFilter->BSSIDs.numOfBSSIDs is allocated as part
of function csr_neighbor_roam_prepare_scan_profile_filter
and this memory is not freed in error cases.

Hence free the allocated memory of pScanFilter->BSSIDs.numOfBSSIDs
in error cases before returning from function
csr_neighbor_roam_prepare_scan_profile_filter.

Change-Id: I411dba7ead796f84994e633a387730de6ee4d579
CRs-Fixed: 2464822
2019-06-10 09:15:33 -07:00
nshrivas
64934f0065 Release 5.2.0.136C
Release 5.2.0.136C

Change-Id: If2d4c506bb25e7be4a39b3bc70feba54df2f12b9
CRs-Fixed: 774533
2019-06-10 07:28:03 -07:00
Yeshwanth Sriram Guntuka
282844155e qcacld-3.0: Cleanup CONFIG_MCL and use common flags and api
Cleanup CONFIG_MCL in peer_assoc_params and use common
flags and api to populate peer_flags in wmi peer assoc
command.

Change-Id: Ib06409c89ee519d8139b52158c8c907dc336beca
CRs-Fixed: 2467182
2019-06-10 07:28:02 -07:00
nshrivas
a1a4c7054c Release 5.2.0.136B
Release 5.2.0.136B

Change-Id: I228dcfd16bfbb3f525796609cc743be7993ce045
CRs-Fixed: 774533
2019-06-10 02:37:35 -07:00
lifeng
c476163754 qcacld-3.0: Update target suspend flag in legacy d0wow enable
Host failed to send legacy d0wow disable command due to failure
in target suspend flag check during resume.

Update target suspend flag in legacy d0wow enable.

Change-Id: I497c46b90a8fb5deb78ce31fb6e5b0d2c76d723d
CRs-Fixed: 2460452
2019-06-10 02:37:34 -07:00
nshrivas
270fc0c235 Release 5.2.0.136A
Release 5.2.0.136A

Change-Id: I0ad32829828cbce62b10ae8aef26a4010fd97878
CRs-Fixed: 774533
2019-06-10 00:50:18 -07:00
tinlin
5d3721d68f qcacld-3.0: Not update wiphy band if registered
Wiphy updates band in insmod time. When wiphy is
registered, updating wiphy band a second
time sets chan_flags of wiphy to all zeros. That
results wrong wiphy chan_flags in
hdd_send_wiphy_regd_sync_event.

Add wiphy registered judgement in
wlan_hdd_update_wiphy_supported_band.

Change-Id: Iac094eea5ac2abcf068de7a35f00bdbf892e55a4
CRs-Fixed: 2452965
2019-06-10 00:50:16 -07:00
nshrivas
45bd5c2360 Release 5.2.0.136
Release 5.2.0.136

Change-Id: I79be3c46c54cbdc1ab98ae0beeb5fcf45f762d6e
CRs-Fixed: 774533
2019-06-09 02:57:01 -07:00
gaurank kathpalia
bf3314357d qcacld-3.0: Set BSSID state as disconnected when roaming is successful
Set BSSID state as disconnected when roaming is successful
so that blacklist manager can clear the AP info if the
nud failure did not come for blacklist reset time value.

Change-Id: Ie602c02d7a43b46daa7f1b1f85cd98628da91280
CRs-Fixed: 2467319
2019-06-09 02:57:00 -07:00
nshrivas
8f1cecacb9 Release 5.2.0.135Z
Release 5.2.0.135Z

Change-Id: I270b1568ca36e78da39cf1b2738da4725f028087
CRs-Fixed: 774533
2019-06-08 12:30:20 -07:00
Ajit Pal Singh
cdbe69a4ad qcacld-3.0: Incase of error return after ol_tx_download_done_base()
In ol_tx_download_done_hl_free() when 'status !=  A_OK',
tx_desc and netbuf are freed in ol_tx_download_done_base() irrespective
of the reference count to tx_desc.
Hence return after ol_tx_download_done_base() if 'status !=  A_OK'.

Change-Id: I2e55d178abc0c2cf30d0f474962f4c06e5c8e327
CRs-Fixed: 2442568
2019-06-08 12:30:16 -07:00
nshrivas
38105e4b3d Release 5.2.0.135Y
Release 5.2.0.135Y

Change-Id: Ic1e7967f08ecccc6be51cd9897b44ac1dd33bf98
CRs-Fixed: 774533
2019-06-08 06:29:25 -07:00
Pragaspathi Thilagaraj
7a1a08e6b6 qcacld-3.0: Replace typedef eCsrAuthType
eCsrAuthType is the enum of AKMs to be used during connection.
So the name eCsrAuthType is misleading as akm and auth algo are
different.
Also the Linux Coding Style doesn't allow mixed-case names and
so-called Hungarian notation, so rename the enum eCsrAuthType to
be compliant.

Change-Id: I35e18d1f84babd0ef2928ae9d7258028d4c9b3c5
CRs-Fixed: 2463813
2019-06-08 06:29:25 -07:00
Min Liu
dd30889709 qcacld-3.0: Reject NULL SSID for SSID white list
For vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with sub command
QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST, NULL SSID with
NULL terminal can be accepted since it only requires non-zero
buffer len. Should only accept buffer len greater than 1.

Change-Id: I87144d4bf169e637756a4715c7a596c32f49dc36
CRs-Fixed: 2454035
2019-06-08 06:29:19 -07:00
Sandeep Singh
75d4b7d4cd qcacld-3.0: Add api to get smmu domain
Add api to get smmu domain from platform driver.

Change-Id: I71efe1a770c8c73f17ffe574555aa9c3b3595819
2019-06-08 06:29:14 -07:00
Rakshith Suresh Patkar
65bdb19143 qcacld-3.0: Use new API pld_smmu_get_domain
Use new API pld_smmu_get_domain in place of
pld_smmu_get_mapping, which is to be deprecated.

Change-Id: I7a083cd3c0deecdbf774b57121866cd72fc157dc
Crs-Fixed: 2464850
2019-06-08 06:29:09 -07:00
nshrivas
ac67d926a0 Release 5.2.0.135X
Release 5.2.0.135X

Change-Id: I3b17365c54478ad8774920ef8b0bcf5e4a4ded30
CRs-Fixed: 774533
2019-06-07 11:38:57 -07:00
Pragaspathi Thilagaraj
469495ba47 qcacld-3.0: Rename pMsgBuf identifier
The Linux Coding Style doesn't allow mixed-case names and
so-called Hungarian notation, so rename the pMsgBuf to be
compliant.

Change-Id: Ia28e9e8ce69c7fbb6853278ccdb12e722ec24e06
CRs-Fixed: 2463442
2019-06-07 11:38:56 -07:00
gaurank kathpalia
2bc10dec7a qcacld-3.0: Set remaining duration of BSSID according to type
Set remaining duration of BSSID according to type of
list it is in. For eg. the remaning duration of avoid
list type would be the avoid list timer value minus the
time for which it is in blacklist manager's reject
ap list.

Change-Id: I0f9ed9e04ab6a5fbdc79521b20f0afd8f8028855
CRs-Fixed: 2466191
2019-06-07 11:38:52 -07:00
nshrivas
21b9862e8d Release 5.2.0.135W
Release 5.2.0.135W

Change-Id: Idbe4afec62c488420e04acea207dabccf561fe71
CRs-Fixed: 774533
2019-06-07 07:05:40 -07:00
Ashish Kumar Dhanotiya
53d8bb6282 qcacld-3.0: Read ini params after ini conf is parsed
Ini parameters gAllowMCCGODiffBI, gEnableMCCMode,
gEnableMacAddrSpoof are getting used before parsing the ini
conf file which is resulting in invalid parameter values.
Based on these invalid values wiphy parameters are getting
updated resulting in invalid wiphy configuration.

To resolve this issue, update these wiphy parameters after
ini conf file is parsed.

CRs-Fixed: 2457077
Change-Id: I20c14e7caeb0c0ad27ede5452e7d055ec2500026
2019-06-07 07:05:40 -07:00
Pragaspathi Thilagaraj
d48e6cd463 qcacld-3.0: Rename statusCode identifier
The Linux Coding Style doesn't allow mixed-case names and
so-called camelcase notation, so rename the statusCode to be
compliant with the coding style.

Change-Id: I98e0af710401a9718bdc1402617253eb970c5861
CRs-Fixed: 2463825
2019-06-07 07:05:35 -07:00
Pragaspathi Thilagaraj
96742aed1e qcacld-3.0: Rename CSR/SME identifier pBssDesc
The Linux Coding Style doesn't allow mixed-case names and
so-called Hungarian notation, so rename the identifier pBssDesc
to be compliant.

Change-Id: I0980de75bbaaeb1eee9321621da1f3ff90e09188
CRs-Fixed: 2463446
2019-06-07 07:05:30 -07:00
nshrivas
512792a38d Release 5.2.0.135V
Release 5.2.0.135V

Change-Id: Ia01bbc815372335710dafd22170a0490c1e7db96
CRs-Fixed: 774533
2019-06-07 03:23:46 -07:00
Sourav Mohapatra
22ff4c6aa8 qcacld-3.0: Rectify the max rates being sent
Currently in the driver, the max rates that are being sent to the
userspace do not take into account the value of the ini
enable_vht20_mcs9. This ini state that the connection doesn't support
MCS9 rates for vht20. As this is not taken into account, the rates
being sent are incorrect.

Add a check inside hdd_report_max_rate to check the value of the ini
before filling up the max MCS index.

Change-Id: I39742b7cc6a18c3d7693a6efef05987ec0e80cec
CRs-Fixed: 2453759
2019-06-07 03:23:46 -07:00
Ashish Kumar Dhanotiya
0dd9b8b56a qcacld-3.0: Avoid uninitialized use of variable
In send sta authorized event api, there is a possibility
of use of uninitialized use of structure variable mask
which may result in an invalid value of the mask.

To avoid uninitialized use of the structure variable,
mem set structure variable to zero before using it.

Change-Id: I2c8bbac949b55fd18928c5dca8744147b0a45415
CRs-Fixed: 2423878
2019-06-07 03:23:40 -07:00
nshrivas
5e92416970 Release 5.2.0.135U
Release 5.2.0.135U

Change-Id: I0e08c23f1e78fcd3940b25498b23edc4c22639e9
CRs-Fixed: 774533
2019-06-07 01:51:23 -07:00
Kiran Kumar Lokere
0f1f4635cf qcacld-3.0: Set extended cap TWT capabilities in roam offload
Set TWT capabilities in extended capability IE in roam scan
offload request.

Change-Id: I4f07cfff47a2ecc4acf4d43d8885ce65f2fa2141
CRs-Fixed: 2459217
2019-06-07 01:51:22 -07:00
Kiran Kumar Lokere
7a6c327af3 qcacld-3.0: Fix possible NULL dereference
Check the station data structure for NULL dereference before
accessing it.

Change-Id: Id719a77e0de36767bd699caacf507cf4f7bb8fc6
CRs-Fixed: 2462587
2019-06-07 01:51:17 -07:00
Kiran Kumar Lokere
1ba55bfa9b qcacld-3.0: Fix possible NULL pointer dereference
Validate the CSR session before accessing it as the session can be
NULL for invalid session id.

Change-Id: I090d75a44bb9e78cbf7f10ac08ccad9f664e6e06
CRs-Fixed: 2462598
2019-06-07 01:51:13 -07:00
Abhinav Kumar
73a516ba32 qcacld-3.0: Update Max Tx Power in channel switch wrapper IE
Currently in case of CSA announcement with channel switch mode 1,
host wraps "switch wrapper IEs" of the current operating channel
for target channel. This is not expected. Driver should send
fills information about target channel in the channel switch
wrapper IEs.

Fix is to fill IE in host and ignore the IE from hostapd.

Change-Id: Ie2447fa7affdf8211a46877e0d8b0e41796f0cc3
CRs-Fixed: 2444679
2019-06-07 01:51:09 -07:00
Pragaspathi Thilagaraj
beb769e8c5 qcacld-3.0: Fix mem leak in wma_roam_update_vdev
In the memory allocated for del_sta_params, set_link_params and
del_bss_params is not freed if the malloc for add_sta_params
fails. This causes memory leak in wma_roam_update_vdev.
Also in wma_extscan_operations_event_handler, oprn_ind is not
freed in case of failure.

Free the memory allocated for del_sta_params, set_link_params,
del_bss_params, oprn_ind during every return.

Change-Id: I727cc734943a2abcc2cfeca3285af13eb68cfe44
CRs-Fixed: 2464098
2019-06-07 01:51:05 -07:00
nshrivas
7ea060459e Release 5.2.0.135T
Release 5.2.0.135T

Change-Id: Ieab2f53939c7f1a909e342a6e9ca44a6a5b3f388
CRs-Fixed: 774533
2019-06-06 19:01:50 -07:00
gaurank kathpalia
45685491ea qcacld-3.0: Fix potential memory leak issues in driver code
Currently in these APIs, driver has a potential mem leak if
the code deviates from the success path:-

1. sme_ap_disable_intra_bss_fwd, param pSapDisableIntraFwd
was not freed in case of mutex acquire gets fail.

2. sme_set_wisa_params, param cds_msg_wisa_params was not freed
in case of mutex cquire fail, and in case of msg failed to
post to scheduler.

3. sme_update_sta_inactivity_timeout, param inactivity_time was
not freed in any case, and has to be freed after use.

4. wma_del_tdls_sta, param peerStateParams needs to be freed
in every failure case, in which the driver sends a del rsp in
error case.

Change-Id: Ibb6061dc399c0f408e7469e91d8084c82786a561
CRs-Fixed: 2466435
2019-06-06 19:01:50 -07:00
nshrivas
2b3ea8ea3e Release 5.2.0.135S
Release 5.2.0.135S

Change-Id: If148bd1577f36302d89b4887ef4a38c8c6f3ebcd
CRs-Fixed: 774533
2019-06-06 13:02:16 -07:00
Abhinav Kumar
009f69fb6a qcacld-3.0: Fix possible memory leak
Free Dynamic allocated memory in following scenarios:
1. In __lim_ext_scan_forward_bcn_probe_rsp()
Free dynamic allocated memory for result in failure case

2. In sme_oem_data_req()
Free dynamic allocated memory for oem_data_req in failure case.

3. In sme_notify_ht2040_mode()
Free dynamic allocated memory for pHtOpMode in default case.

4. In sme_send_rate_update_ind()
Free dynamic allocated memory for rate_upd if mutex acquire
fails.

5. In sme_txpower_limit()
Free dynamic allocated memory tx_power_limit rate_upd if mutex
acquire fails.

Change-Id: I5deccb5ac10f69ad00ea860f43c821ee7e90c71e
CRs-Fixed: 2465786
2019-06-06 13:02:15 -07:00
Bala Venkatesh
c218b38a16 qcacld-3.0: Avoid NULL pointer access in wlan_cfg80211_tdls_add_peer
In function wlan_cfg80211_tdls_add_peer, osif_tdls
is allocated only for STA and P2P CLI vdevs. So if tdls connection is in
progress on p2p_client vdev and at the same time if the driver gets the
change iface for p2p client to p2p device, p2p device vdev is created
with the same mac address replacing the p2p client vdev.
Now if supplicant issues add_station command after change_iface
on p2p interface, it tries to access osif_tdls pointer which is not
allocated for p2p device vdev. This can lead to NULL pointer access
of osif_tdls.

Add check for NULL pointer before accessing osif_tdls pointer
for adding station command.

Change-Id: I2cd63d4d758af360987e1563022918548d113d76
CRs-Fixed: 2464766
2019-06-06 13:02:11 -07:00
Ashish Kumar Dhanotiya
fa55c1889a qcacld-3.0: Update correct MAC address for dump station ops
When MAC address is changed dynamically and dump station
command is invoked driver is not giving the updated MAC
address as the output of the command.

To address this issue give the correct MAC address from
net device.

Change-Id: I4effb1fe4d52f35c0df7beb7884e7943215d73f8
CRs-fixed: 2463418
2019-06-06 13:02:07 -07:00
Jingxiang Ge
37b33f3651 qcacld-3.0: Disable NAN for ROME architecture
NAN is not supported on ROME platform, Disable
CONFIG_QCACLD_FEATURE_NAN in qca6174_defconfig.

Change-Id: I579e26c351bc95e7739a0853f4bfb467aafabbda
CRs-Fixed: 2446747
2019-06-05 20:38:10 -07:00
nshrivas
75d3cf6413 Release 5.2.0.135R
Release 5.2.0.135R

Change-Id: Ia7fa8b3cee6a4b932caf87729f8fe7ef39d3c581
CRs-Fixed: 774533
2019-06-05 09:22:37 -07:00
Rachit Kankane
2a3185a495 qcacld-3.0: Check for ongoing deauth / disassoc
As a SAP, there are two paths to deauthenticate peer STA as:
1. Deauth issued from south bound interface (peer sending deauth etc)
2. Used issued deauth from upper layer (via hostapd_cli)

We have a race condition when deauth comes for the same peer from both
the ways resulting into process one after another.
This is happening since no check is being done at north bound interface
before issuing deauth request to SME.

Adding a check validate if deauth already in-progress for the mentioned
peer before issuing deauth req.

Change-Id: I2050cf5558dbdf6d656694c39e9f1e461e17bf01
CRs-Fixed: 2459967
2019-06-05 09:22:26 -07:00
Sandeep Puligilla
cf1fa4c460 qcacld-3.0: Fix RRM scan request dwell time
Failed to set the RRM scan dwelltime below 40ms.

Modified RRM scan request API to accept active dwelltime
below 40ms and 110ms for passive scan.

Change-Id: I0a1030c6c719950c08db0bc164623556b187fe9d
CRs-Fixed: 2454281
2019-06-05 09:22:21 -07:00
gaurank kathpalia
f40cedc066 qcacld-3.0: Do not reset roam invoke in progress in default case
Do not reset roam invoke in progress in default switch
case.

Change-Id: I3f1bb9f78bb7d23e72973e6e6977b42387755e71
CRs-Fixed: 2465090
2019-06-05 09:22:17 -07:00
gaurank kathpalia
bf933ff252 qcacld-3.0: Clear the userspace blacklist info
Clear the userspace blacklist info when a new
command for set blacklist BSSID comes to the driver
even if the userspace sends zero BSSIDs.

Change-Id: Ic2e310359d8e83c0821a0c4c8fedd90e81998627
CRs-Fixed: 2464948
2019-06-05 09:22:13 -07:00
Jiani Liu
ef39b965be qcacld-3.0: Add qtime & host_time in __hdd_wlan_tsf_show
Add qtime & host_time in __hdd_wlan_tsf_show, so that "cat tsf" will
print out qtime and host_time at the instant.

Change-Id: I4da440f92b7415440f9064a49777c3c3680ac1b1
CRs-Fixed: 2461503
2019-06-05 09:22:08 -07:00
gaurank kathpalia
867e789300 qcacld-3.0: Fill reject ap type in blm fill reject list
Fill the reject ap type as the one requested by the user
in the reject ap list.

Change-Id: Ie26180293e4b0c5c212ebcd31a15fd93f9150f8e
CRs-Fixed: 2464748
2019-06-05 09:22:03 -07:00
nshrivas
b09915d778 Release 5.2.0.135Q
Release 5.2.0.135Q

Change-Id: Ic79187b141a2eb6e1ce40695df83d0dc3c0705fc
CRs-Fixed: 774533
2019-06-04 22:45:43 -07:00
Qun Zhang
f7c1664b2c qcacld-3.0: Fix qcmbr buffer copy issue
The MCL qcmbr ioctl process has duplicated copy_from/to_user actions,
to make sure MCL and WIN qcmbr command processing converge, remove
the redundant copy_from/to_user in wlan_hdd_ftm.c.
This change also fixs FTM test fail issue.

Change-Id: Ie740c3dd1774f5a2bf8f928814d58fb310a7a76d
CRs-Fixed: 2436024
2019-06-04 22:45:42 -07:00