Commit Graph

16035 Commits

Author SHA1 Message Date
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
wadesong
90d68dee05 qcacld-3.0: Enlarge the PMKR0 buffer for FT-FILS
PMKR0 buffer's length is currently 32 bytes in struct
pe_fils_session, which is incapable of storing the
value of Q when SHA384 is used for authentication.

Enlarge the PMKR0 buffer to 48 bytes in case SHA384
is used.

Change-Id: Ib935a4dfc6fc415453d3c3b9cf458cc3b0f4f0a2
CRs-Fixed: 2462643
2019-06-01 01:38:18 -07:00
nshrivas
821baeb405 Release 5.2.0.135E
Release 5.2.0.135E

Change-Id: I7a7941dd3a45770ae3016ec032728bc19e771ab8
CRs-Fixed: 774533
2019-05-31 23:48:20 -07:00
Rajeev Kumar
d62104a8b0 qcacld-3.0: Add sanity check for hdd context
Add sanity check for hdd context and return if
hdd context is null.

Change-Id: Ibef56ee7d0b0505643e04583a78b4924e4bc20bf
CRs-Fixed: 2462701
2019-05-31 23:48:20 -07:00
nshrivas
221bf3cebc Release 5.2.0.135D
Release 5.2.0.135D

Change-Id: I93af44441f156162790420f76672343d0228277c
CRs-Fixed: 774533
2019-05-31 21:56:05 -07:00
Sandeep Puligilla
d7e005b23a qcacld-3.0: MBSSID: Fix SSID population
CSR is populating TX SSID in NonTx to NonTx
BSSID roaming scenario.

SSID is populated from the TX beacon instead
of the generated NonTX beacon. MOdified code
to populate the IE's from NonTX beacon.

Change-Id: Ib02f320ba0e6622ad79a1bd2429ad5f61e53b71b
CRs-Fixed: 2462018
2019-05-31 21:56:05 -07:00
Pragaspathi Thilagaraj
cbecb299cf qcacld-3.0: Advertise BSS transition enabled in extended capabilities
When BTM config is disabled in the supplicant, the BSS
transition bit (19) of the extended capabilities will be
disabled. If BTM offload is enabled, currently driver still
advertises that the BSS transition bit(19) as disabled. This
results in AP disabling 11v for this STA.

Advertise the BSS transition bit (19) as enabled in the extended
capabilities if btm_offload ini bit 1 is enabled.

Change-Id: I7c1977294a2e166321951ee0ec31f18929c42176
CRs-Fixed: 2455919
2019-05-31 21:56:01 -07:00
Bala Venkatesh
9ae5e2cd2f qcacld-3.0: Avoid NULL pointer dereference
Function mlme_get_dynamic_oce_flags can return the NULL value.
Avoid and check for NULL pointer in the callers.

Change-Id: Idc83a9e5dea812a73fed24de3aa2c2c49436f7d1
CRs-Fixed: 2462716
2019-05-31 21:55:57 -07:00
Abhishek Singh
cf8bedbc4f qcacld-3.0: Send reject ap list to FW
Reject AP list which is maintained by the blacklist manager
has to be sent to the FW for roaming case scenarios, as
the blacklist, and rssi reject APs should not be preferred
in the reassociation.

Change-Id: I58bf90e17653dde2a5042780ba7d57fa3115d63a
CRs-Fixed: 2461230
2019-05-31 21:55:53 -07:00
gaurank kathpalia
1db9525dbf qcacld-3.0: Add logic to add a BSSID in reject ap list
Add logic to add a bssid in the reject AP list maintained
by the blacklist manager. The logic includes addition of
userspace blacklist, avoid list, RSSI reject list,
and not deletion of lowest delta BSSID if the space in the
reject ap list is full.

Change-Id: I0c359f510510582099059fbb9cc098f5a3f91c1b
CRs-Fixed: 2460795
2019-05-31 21:55:48 -07:00
gaurank kathpalia
603aafdacf qcacld-3.0: Add logic to filter scan list with reject ap list
Add logic to filter the bad BSSIDs present in the scan list
with the BSSIDs present in the blacklist manager's reject ap
list.

Change-Id: I3a19be753b64387e251e3a9bc740865bf80251a8
CRs-Fixed: 2460788
2019-05-31 21:55:45 -07:00
gaurank kathpalia
8c943b7df5 qcacld-3.0: Add basic infra, INI, deinit path for BLM
BLM:- Blacklist Manager

Add the basic infrastructure such as target-if, tgt, init,
deinit, ini files, core and main files for the new component
Blacklist Manager.

Change-Id: I624a779ee0dd6be7cb26a911af0aefd426ca9bff
CRs-Fixed: 2460602
2019-05-31 21:55:41 -07:00
nshrivas
c110e2ed45 Release 5.2.0.135C
Release 5.2.0.135C

Change-Id: I955b269c8eac0ca671d62c7eb263a37aa86ec157
CRs-Fixed: 774533
2019-05-31 14:50:36 -07:00
Arun Kumar Khandavalli
32b2af4365 qcacld-3.0: Sanitize the mc address list count
In the target_if layer  based on the mc address list count the
filter params are filled and sent to the firmware. If the mc address
list passed is more than the maximum supported address list there
can be possible buffer overflow.

Sanitize the mc address list count to avoid any overflow.

CRs-Fixed: 2452131
Change-Id: I03208a5487cfd730e933666c47accb2e46fbbc72
2019-05-31 14:50:35 -07:00
Abhinav Kumar
62dcf9883b qcacld-3.0: Enable gChannelBondingMode24GHz by default
In order to ensure that HT40 is enabled by default on 2.4 GHz
remove gChannelBondingMode24GHz entry from INI file and set
the default value of gChannelBondingMode24GHz to 1.

Change-Id: I8b7657e3eef5f4ec19863c8da6a611a63ccecd9c
CRs-Fixed: 2461593
2019-05-31 14:50:31 -07:00
Abhinav Kumar
925a3334ef qcacld-3.0: Update vdev id while de-configuring 11k offload
In case of STA+STA to configure 11k for second STA without
assertion, the driver should de-config 11k for currently
enabled STA. Currently, driver de-configures 11k but not updates
corresponding vdev id results vdev id for which roam disable and
11k disable sent to fw could be different. This leads to assert
in fw.

Fix is to update corresponding vdev id also for which driver
de-configures 11k.

Change-Id: I841a0561124cf110096f5326f2d9ba191518d3f2
CRs-Fixed: 2460097
2019-05-31 14:50:27 -07:00
nshrivas
67628ac49d Release 5.2.0.135B
Release 5.2.0.135B

Change-Id: Id1914d3bbe8561c62dd43ac65f9a5ea32bcc9aa8
CRs-Fixed: 774533
2019-05-31 07:40:09 -07:00
Pragaspathi Thilagaraj
e64714a3b4 qcacld-3.0: Rename pe_session member pePersona
The Linux Coding Style doesn't allow mixed-case names so rename
pePersona to opmode in struct pe_session to be in compliance.

Change-Id: I3434bdba5300fb89c7e78cd16dacfd151ba7c00b
CRs-Fixed: 2459760
2019-05-31 07:40:08 -07:00
nshrivas
bb6d04a2f9 Release 5.2.0.135A
Release 5.2.0.135A

Change-Id: Icec1d9effdbc5558e1e947051e3550ea6e47f1f0
CRs-Fixed: 774533
2019-05-31 05:17:09 -07:00
Yeshwanth Sriram Guntuka
22ed80066a qcacld-3.0: Advertise max NSS capability with few IOT APs
Few IOT APs advertise reduced NSS capabilities on ending
up in bad state. These APs can later recover to support
the actual NSS capabilities. In this scenario, when STA
initiates connection to these APs, which are in bad state,
reduced NSS capabilities is advertised. STA cannot later
upgrade NSS capabilities to the minimum of STA max NSS
capability and APs actual NSS capability, once AP recovers.

Fix is to advertise max NSS capability during connection
with these IOT APs based on vendor OUIs and downgrade if
AP still advertises reduced NSS capability in association
response.

Change-Id: I49ea13534b1a44fd9ffadd1e8fb44e9d782147c4
CRs-Fixed: 2453938
2019-05-31 05:17:09 -07:00
Pragaspathi Thilagaraj
ed78190321 qcacld-3.0: Populate correct default values for BTM ini items
In function mlme_init_btm_cfg(), initializing the
btm_solicited_timeout, btm_max_attempt_cnt and btm_sticky_time
is done using the cfg_default() api, which always returns the
default value irrespective of the ini configured. This results
in failure of ini configuration from the WCNSS_qcom_cfg.ini file.

Use cfg_get() api to get the default value of ini items.

Change-Id: I773676cc67878f233cb6d14e0ad3ec1d79a5518f
CRs-Fixed: 2461612
2019-05-31 05:17:04 -07:00
nshrivas
f3882b0da8 Release 5.2.0.135
Release 5.2.0.135

Change-Id: I4c100c20be914ffbecf8a9faba3b85544252764a
CRs-Fixed: 774533
2019-05-31 02:29:50 -07:00
Vevek Venkatesan
3b6be82e9b qcacld-3.0: abstract Linux identifiers from IPA component
Abstract Linux based OS identifiers from IPA component in
HDD/OSIF layer.

Change-Id: I82a5db8c796d47d552757b1a450df10c72061177
2019-05-31 02:29:49 -07:00