Commit Graph

16107 Commits

Author SHA1 Message Date
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
Sandeep Puligilla
78a8c1f6fa qcacld-3.0: Fix NULL pointer dereference in WMA
Add NULL validaiton check for WMA global context
to avoid possible NULL pointer dereference.

Change-Id: I1cf0bcf574d397eb712ca0e1c39dcf848b9c5328
CRs-Fixed: 2423998
2019-06-04 22:45:35 -07:00
nshrivas
576b01f0c5 Release 5.2.0.135P
Release 5.2.0.135P

Change-Id: I250a9cd5e32dfd3ca656eea640c57ba835089a86
CRs-Fixed: 774533
2019-06-04 20:22:15 -07:00
sheenam monga
0b8f257c1e qcacld-3.0: Populate correct ini value for SU beamformee caps
In function mlme_init_vht_cap_cfg(), initialization of
CFG_VHT_SU_BEAMFORMEE_CAP is done using the cfg_default() api,
which always returns the default value irrespective of the
ini configured.

Use cfg_get() api to get the default value of ini items.
cfg_get() api use gTxBFEnable ini for SU beamforce caps

Change-Id: I17062548931b5032dfdd56652ddaef2b96c8864e
CRs-Fixed: 2462350
2019-06-04 20:22:12 -07:00
Yeshwanth Sriram Guntuka
1c7d239b15 qcacld-3.0: Update MCS set on add_sta in LFR2 scenario
In LFR2 scenario, STA roams to IOT AP with which max nss
capability is advertised because ini configured vendor OUI
and data for max nss is found in AP's beacons or probe
responses. On receiving association response with reduced
nss, nss is not updated as part of add_sta. This is resulting
in incorrect nss to be sent in peer_assoc command.

Fix is to update MCS set so that appropriate nss is sent in
peer_assoc command.

Change-Id: Id137a09f24063c8260c21eda6cd74cbb571b9129
CRs-Fixed: 2464318
2019-06-04 20:22:08 -07:00
nshrivas
c0a982c47c Release 5.2.0.135O
Release 5.2.0.135O

Change-Id: I3033c56c6b191b022cdb0a7d833e80b251a53ebf
CRs-Fixed: 774533
2019-06-04 00:57:58 -07:00
Liangwei Dong
d79af193ff qcacld-3.0: Enable LTE COEX for QCA6390
Enable LTE COEX for QCA6390 and QCA6174 config file
on Auto platform.

Change-Id: I854660c520a2131537394f05effa6723cac43ab9
CRs-Fixed: 2464167
2019-06-04 00:57:58 -07:00
nshrivas
8b50203713 Release 5.2.0.135N
Release 5.2.0.135N

Change-Id: I7bf78387e953eef44a89470a2b7bd913e6c31614
CRs-Fixed: 774533
2019-06-03 21:03:34 -07:00
Srinivas Girigowda
3fcc2f5803 qcacld-3.0: Replace SIR_MAC_TDLS_* with converged enum TDLS_*
Replace SIR_MAC_TDLS_* with converged enum TDLS_*.

Change-Id: Id611517e135c64afc29de371c32c08cff3b985d7
CRs-Fixed: 2461770
2019-06-03 21:03:33 -07:00
Wu Gao
c61878cf42 qcacld-3.0: Send mgmt frame with NULL channel
It won't send mgmt frame with NULL channel information currently,
which is different to other branches. Add this change because up layer
pass NULL channel information when tx mgmt frame in some platform.

Change-Id: I689d64789187fe0df03ed57ef0ff10c5157aeeb6
CRs-Fixed: 2459485
2019-06-03 21:03:29 -07:00
nshrivas
08f6512782 Release 5.2.0.135M
Release 5.2.0.135M

Change-Id: I07426340c553ad0e3ec589e51f81d4af33af1dcb
CRs-Fixed: 774533
2019-06-03 19:02:40 -07:00
Alok Kumar
600d9647f4 qcacld-3.0: Get the newtork queues status during NUD Failure
In some cases i.e. after successful roaming, NUD FAILURE is
triggered due to no ARP REQ packets are sent out by netdev.
Currently, we do not have any information to verify if ARP
packets are not sent because netdev queues are paused or not.

Retrieve the netdev queues status in case of NUD FAILURE to
verify if TX is stopped due to paused queue.

Change-Id: I324afdc349cf6b028471a21ed89bc702f99e5f99
CRs-Fixed: 2441513
2019-06-03 19:02:39 -07:00
nshrivas
8f638fc7a3 Release 5.2.0.135L
Release 5.2.0.135L

Change-Id: I463a080d979ad6368bb6aba836028b69530515d4
CRs-Fixed: 774533
2019-06-03 15:24:35 -07:00
gaurank kathpalia
ac8504a703 qcacld-3.0: Cleanup the scan blacklist path
Currently with the support of Blacklist manager
component, all the blacklist, avoid list, RSSI-REJECT
list is maintained by the BLM, hence the filter logic
of the blacklist APs in the scan component is not
required.

Cleanup the blacklist BSSID APIs, and related functionality.

Change-Id: I4c8283d2c5e4ca66c24a25d31a74026510bb452c
CRs-Fixed: 2464188
2019-06-03 15:24:35 -07:00
Wu Gao
7f70e38aec qcacld-3.0: Fix kw issue about neighbor_scan_channel_list
CFG_VALID_CHANNEL_LIST_STRING_LEN as array size passed to
qdf_uint8_array_parse, which is more big than array size. So pass the
actual size - CFG_VALID_CHANNEL_LIST_LEN to that function.

Change-Id: I7596c0887147523570450dbac4dba2d03e7fe8b6
CRs-Fixed: 2462613
2019-06-03 15:24:30 -07:00
nakul kachhwaha
8dbf4b5654 qcacld-3.0: Check neighbor roam state before disconnecting
Wait for LFR 2.0 based Roaming sequence to complete before
processing disconnect command from cfg80211.

Change-Id: Ib596aa56ccc322f5ba87b46685bbc299793c9d5b
CRs-Fixed: 2464112
2019-06-03 15:24:27 -07:00
nshrivas
a46dfad56a Release 5.2.0.135K
Release 5.2.0.135K

Change-Id: I2bb99948a32cb7b7ed119861d1274c33ebe2a281
CRs-Fixed: 774533
2019-06-03 02:26:54 -07:00
Bala Venkatesh
9bb9c05e83 qcacld-3.0: Pass psoc instead of vdev for teardown links
As part of start_ap or connect_start to teardown active tdls peers
hdd_notify_teardown_tdls_links is called with argument vdev. But
TDLS might not be enabled on that vdev. With recent changes,
osif_priv object is initialized as part of tdls_vdev_init.
For the new interface if TDLS is not initialized then osif_priv
object will not be found and TDLS peers are not removed.

Change-Id: Idcf690bba2766664700a4851d390ee620f2fe73a
CRs-Fixed: 2460108
2019-06-03 02:26:54 -07:00
Manjunathappa Prakash
8280a15953 qcacld-3.0: Add WMA API to know if vdev is roaming
Add WMA API and DP ol_if callback to know if vdev is roaming in progress

Change-Id: Ice43413516d8b2490bf7ddf6fcac85ee5dee421b
CRs-Fixed: 2458886
2019-06-03 02:26:49 -07:00
nshrivas
8a97237186 Release 5.2.0.135J
Release 5.2.0.135J

Change-Id: Ifc4d4104db77964d07d1bc5a242f93cc08a84e25
CRs-Fixed: 774533
2019-06-02 23:24:51 -07:00
gaurank kathpalia
19c2354260 qcacld-3.0: Populate the score config nss param for 5ghz
Currently the driver does not populate the score config
param for 5ghz connection, hence the nss for STA in 5ghz
connection becomes zero by default, and thus results in
a lower score for that BSSID, which should not be the
case.

Fix is to populate the vdev nss 5ghz for STA score config,
which would result in correct nss param.

Change-Id: I5276446caeaf9e68e2e422c403cfd05e68b58545
CRs-Fixed: 2463288
2019-06-02 08:25:59 -07:00
nshrivas
da558d79e4 Release 5.2.0.135I
Release 5.2.0.135I

Change-Id: Ib7731bcca5a5ee1ae58a27f1270b7ec7ca1ed52e
CRs-Fixed: 774533
2019-06-02 01:51:39 -07:00
gaurank kathpalia
7ef7218496 qcacld-3.0: Add support for roaming in case of NUD failure
Add support for roaming in case the driver
detects a nud failure. The STA then would roam
to another BSSID, else if the roaming gets failed
the STA would remain connected to the same BSSID
as connected before.

Change-Id: Idbc99b0ce2f9cacd97564dd8cf9892120958eda2
CRs-Fixed: 2461675
2019-06-02 01:51:38 -07:00
gaurank kathpalia
3ebc17b3e5 qcacld-3.0: Link BLM to the legacy APIs
Link BLM exposed APIs to the following:-

1. csr_get_scan_result:- Link this API with filter bssids in
the reject ap list maintained by the blacklist mgr.

2. lim_assoc_rej_add_to_rssi_based_reject_list:- Link this API
with the the blacklist mgr add bssid to reject list to add the
OCE and BTM related assoc rejects.

3. Userspace avoid list parsing logic for the userspace to set
the BSSID as avoided.

Change-Id: Id51ffb80cea3f845fefe14db25d0f7acda6ea0f3
CRs-Fixed: 2461281
2019-06-02 01:51:34 -07:00
nshrivas
207eaabf34 Release 5.2.0.135H
Release 5.2.0.135H

Change-Id: I549156c80d508a133d511cbc1b154e0840705aee
CRs-Fixed: 774533
2019-06-01 17:05:46 -07:00
Abhinav Kumar
668bd125c0 qcacld-3.0: Fix null pointer dereference in sme_handle_bcn_recv_start
In sme_handle_bcn_recv_start, 'mac_ctx->roam.roamSession' is not
validated for null before being passed to CSR_IS_SESSION_VALID where
dereference can occur.

Validate mac_ctx->roam.roamSession against null before passing it to
CSR_IS_SESSION_VALID.

Change-Id: I48638a320f29a906a6e8a35c000191265313b734
CRs-Fixed: 2462682
2019-06-01 17:05:46 -07:00
nshrivas
cea92bd601 Release 5.2.0.135G
Release 5.2.0.135G

Change-Id: I40acf9ab5b81a6c25d12a19f1f996452951b2e3b
CRs-Fixed: 774533
2019-06-01 03:23:40 -07:00
Abhishek Singh
f5f2166bbb qcacld-3.0: Remove obsolete legacy cfg related files
Remove obsolete cfg_api.h and cfg_global.h files related to
legacy cfg.

Change-Id: I1978c3b44239c62b1dfb6fd59a8a25bccf277aac
CRs-Fixed: 2463744
2019-06-01 03:23:40 -07:00
nshrivas
7de31bbf96 Release 5.2.0.135F
Release 5.2.0.135F

Change-Id: I815196e76e65a6227b1e5e33fba1b6f1a2b91be8
CRs-Fixed: 774533
2019-06-01 01:38:18 -07:00