Commit Graph

18066 Commits

Author SHA1 Message Date
Abhishek Ambure
d4bf5ac73b qcacld-3.0: Cleanup sae auth timer for romaing scenarios
Host sends SAE auth retry frames if the response/ack for the previous
SAE auth is not received. In roam scenarios like roam abort, HO fail
host don't need to send SAE auth again.
Hence cleanup sae auth timer for roaming scenarios.

Change-Id: I617a61fdb4ce7b6afa66415ebc33a2ce23e3821b
CRs-Fixed: 2730888
2020-07-16 12:02:34 -07:00
snandini
6760b0beb8 Release 5.2.0.194D
Release 5.2.0.194D

Change-Id: I4e1dc638878c797ce1cc42ffaab4d1e8bd9a42d7
CRs-Fixed: 774533
2020-07-16 02:05:27 -07:00
gaurank kathpalia
a3c45ece94 qcacld-3.0: Modify the HE cap MCS for 160Mhz
Currently the driver intersects the 2g and 5g
capability and stores them in the HE cap variable
of the same PHY.
In the HW where a single PHY supports both 2g and
5g and with max BW support of 160Mhz, the intersection
of 160Mhz and 80+80Mhz MCS will lead to zero as 2g will
not support 160 and 80+80 BW. Hence the MCS map will be
0 for them indicating that the STA would support only
till MCS 7 and not above that which would lead to a
lower coding rate and lower QAM thus resulting in
a lower throughput.

Fix is to not intersect the MCS capability of 2g and 5g
and copy MCS directly from the target capability.

Change-Id: Ice5c426db43516b5dff5379926086b40d69f3d96
CRs-Fixed: 2732512
2020-07-16 02:05:27 -07:00
Abhishek Ambure
48d4b5c4c6 qcacld-3.0: Don't free assoc rsp fail timer on rsp status TRY_AGAIN_LATER
For WPA3 SAE, host runs pmf comeback timer to retry assoc request. Host
retires assoc request once if assoc response has response status as
TRY_AGAIN_LATER after 1 seconds.
Problem scenario:
Host sends assoc request to which AP respond with assoc response status
TRY_AGAIN_LATER, deactivates assoc response failure timer and retransmit
assoc request after 1 second. After 1 second host retransmit assoc req
and marks this is "retried" assoc request. If to the retried assoc
request host gets assoc response with reason status TRY_AGAIN_LATER,
host deactivates assoc failure timer and drops the assoc response.
Thus association does not complete and even association timer doesn't
trigger.
Fix:
deactivate assoc failure timer after checking the assoc response status
is not TRY_AGAIN_LATER and deactivate pmf comeback timer on assoc failure
timer gets trigger.

Change-Id: I7fc89063efec3c4a5b0521e9ff8301d6ea64683e
CRs-Fixed: 2730194
2020-07-16 02:05:23 -07:00
wei yang
3491a58edd qcacld-3.0: fix compilation issue with dp_rx_napi_gro_flush
If CONFIG_WLAN_FEATURE_DP_RX_THREADS is not defined then
dp_rx_napi_gro_flush function will not get compiled from
dp_rx_thread.c, report compilation failure.

Modify dp_rx_napi_gro_flush to static inline type out of
dp_rx_thread.c.

Change-Id: Iad7619e29f6175bc80f2618b3675feafd7f3260d
CRs-Fixed: 2732503
2020-07-16 02:05:20 -07:00
snandini
2f9f745dcc Release 5.2.0.194C
Release 5.2.0.194C

Change-Id: Ifff89813714490c161fab8e3f42caa391d1b8387
CRs-Fixed: 774533
2020-07-15 07:55:09 -07:00
snandini
5ad4347e1d Release 5.2.0.194B
Release 5.2.0.194B

Change-Id: I199d98cd0dfde1d34b4874e7856852b9ec2bd1c2
CRs-Fixed: 774533
2020-07-15 05:52:05 -07:00
Ashish Kumar Dhanotiya
cb959bd757 qcacld-3.0: Retain the stainfo ref count in case of re-connect
Currently in SAP case if a station disconnects and re-connects
to the SAP, in the process of register sta, SAP clears
previous reference of the station and re-initializes the sta
info. Because of this when the thread which actually took the
reference, tries to release the reference, is not able to release
the reference as the ref count is already set to zero as part
of the reconnect which results in undefined behaviour.

To address this issue, retain the ref count of the sta info
in case of re-connect from the same station.

Change-id: Ie9558ca8e59601b48f9be7fff37cc530874ab5ad
CRs-Fixed: 2730782
2020-07-15 05:52:05 -07:00
snandini
0e0de6f9f5 Release 5.2.0.194A
Release 5.2.0.194A

Change-Id: I860722bd651c074faceb0593432172dc3793dbf0
CRs-Fixed: 774533
2020-07-15 01:46:31 -07:00
Lincoln Tran
1de7a9a643 qcacld-3.0: Update band_capability INI to use bitmap
The band_capability field is used in other places to be
a bitmap over reg_wifi_band. Update the field in wma_tgt_cfg and
wlan_mlme_generic to take the same bitmap for consistency.
Update all references to these fields to expect a bitmap as well.

Change-Id: I8abd697e2fbe02b4eadd32f3027bef7408bac2a0
CRs-fixed: 2726710
2020-07-15 01:46:30 -07:00
snandini
ae90b01281 Release 5.2.0.194
Release 5.2.0.194

Change-Id: I5b70273ca7d6e76b86f51058a8e1427d956467df
CRs-Fixed: 774533
2020-07-14 22:45:22 -07:00
Lincoln Tran
d5e1f78aa8 qcacld-3.0: Introduce getband vendor command
Update calls from reg_get_curr_band to reg_get_band since
they provide the same functionality.
Update calls to reg_get_band to expect a bitmap since the API
has been updated.
Update getband driver command to convert the bitmap to the
old values. Also add the new vendor command getband.

Change-Id: I069489ebf4826f8f4bfcb974b74e4d0591d5b33f
CRs-fixed: 2726361
2020-07-14 22:45:22 -07:00
Lincoln Tran
d189dc8105 qcacld-3.0: Update setband commands to support 6G
Update both the driver and vendor setband command to support the
new 6G band. Specific changes include:
	1. Update driver setband command to convert userspace
	   input into a setband bitmap.
	2. Update vendor setband command to accept a bitmask
	   or a value
	3. Add support API to convert between vendor mask and reg
	   bitmap.

Change-Id: Ic968261ce5c3712f1e73cac0cb5a5f030118753a
CRs-fixed: 2726314
2020-07-14 22:45:17 -07:00
nshrivas
bc353f1629 Release 5.2.0.193Z
Release 5.2.0.193Z

Change-Id: I4496af311597b2a08f9a74fdc9ac1c693cda82a8
CRs-Fixed: 774533
2020-07-14 04:26:26 -07:00
Paul Zhang
a426dc45c3 qcacld-3.0: Use get/put to refer vdev [4/4]
Any direct reference to adapter->vdev outside the initial
assignment should use get/put to properly refer the vdev.
        core/hdd/src/wlan_hdd_nan_datapath.c
        core/hdd/src/wlan_hdd_p2p.c
        core/hdd/src/wlan_hdd_softap_tx_rx.c

Change-Id: I2e98ca517c63ad0a03d3539fc9f97f8e466ba2ab
CRs-Fixed: 2714025
2020-07-14 04:26:25 -07:00
Paul Zhang
9ba5a2bc01 qcacld-3.0: Use get/put to refer vdev [2/4]
Any direct reference to adapter->vdev outside the initial
assignment should use get/put to properly refer the vdev.
      core/hdd/src/wlan_hdd_power.c

Change-Id: I68a093c92e57b7076cf4f41e9f69f747f0c7e6ec
CRs-Fixed: 2714025
2020-07-14 04:26:22 -07:00
Paul Zhang
baac594a3f qcacld-3.0: Use get/put to refer vdev [1/4]
Any direct reference to adapter->vdev outside the initial
assignment should use get/put to properly refer the vdev.
        core/hdd/src/wlan_hdd_ioctl.c
        core/hdd/src/wlan_hdd_station_info.c
        os_if/interop_issues_ap/src/wlan_cfg80211_interop_issues_ap.c

Change-Id: I897ee8ac2a4816b91ed48e2c32e97540430c5520
CRs-Fixed: 2714025
2020-07-14 04:26:19 -07:00
nshrivas
c3f5399b50 Release 5.2.0.193Y
Release 5.2.0.193Y

Change-Id: Ic0cc2b339676f6d921f18c623593d27634455ce4
CRs-Fixed: 774533
2020-07-14 02:02:27 -07:00
Srinivas Girigowda
8cf89cb514 qcacld-3.0: Replace obsolete WMA_LOGE() with wma_err()
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: Iaf11baa0f09cfb090806527184c6137f8b950aa8
CRs-Fixed: 2723709
2020-07-14 02:02:27 -07:00
Srinivas Girigowda
e0f33862ae qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_scan_roam.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: I3e99ae2c91d3382afe128b68ec51b13368b3f177
CRs-Fixed: 2723709
2020-07-14 02:02:21 -07:00
Srinivas Girigowda
a9ef877204 qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_power.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: I2846bd57e79812ebe4ce8ca51cd34581bdf4f7ff
CRs-Fixed: 2723709
2020-07-14 02:02:17 -07:00
Srinivas Girigowda
8e8ad1393c qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_mgmt.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: Iff73ada8b420fb66e71f45d236cc365db165eefe
CRs-Fixed: 2723709
2020-07-14 02:02:12 -07:00
Srinivas Girigowda
f986fdacc4 qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_utils.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: Idbb82562db1c64d05920629a2eb3f1cc4916997e
CRs-Fixed: 2723709
2020-07-14 02:02:07 -07:00
Srinivas Girigowda
e609dac563 qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_dev_if.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: Id5a5e41cf1c5a43bf176e0beef925959dcd8f91f
CRs-Fixed: 2723709
2020-07-14 02:02:03 -07:00
Srinivas Girigowda
a1083daa2b qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_data.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: I3db62e12cb1392d73045686a6157c3530568f1b2
CRs-Fixed: 2723709
2020-07-14 02:01:58 -07:00
Srinivas Girigowda
403e38b615 qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_features.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: I8c9492c0877a476d5a2d0420b3013dc6f18b24c7
CRs-Fixed: 2723709
2020-07-14 02:01:53 -07:00
Srinivas Girigowda
13d15035e7 qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_main.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: If55d52640dbe921377f1ceffed609e096f449563
CRs-Fixed: 2723709
2020-07-14 02:01:48 -07:00
Gururaj Pandurangi
77ba18197c qcacld-3.0: Validate bssDescription before using it
Validate bssDescription before dereferencing it.

Change-Id: I89f8c07ad2e38e59dd2a002ce95cfac88232ccc9
CRs-Fixed: 2729263
2020-07-14 02:01:43 -07:00
Surabhi Vishnoi
0412d9a24f qcacld-3.0: Call the ucfg cfr api when CFR HTT msg is received
Firmware sends the HTT msg which has information about the
CFR. This information is required by CFR component to get the
CFR data capture.
Call CFR ucfg api to pass this CFR related info to the CFR component.

Change-Id: I6e9bdd991d8e7f84f35231900fc00ed18e89f835
CRs-Fixed: 2724722
2020-07-14 02:01:39 -07:00
nshrivas
13d45f4e2a Release 5.2.0.193X
Release 5.2.0.193X

Change-Id: I945a4c72680f69ecef6cbb65daa641a3b2647c1b
CRs-Fixed: 774533
2020-07-13 23:39:24 -07:00
Sandeep Singh
0615ee270f qcacld-3.0: Enable both SNOC and IPCI PLD layer for ICNSS2
ICNSS2 platform driver is used for moselle and adrastea which uses
IPCI and SNOC PLD layer, respectively. Add support to enable both
for ICNSS2 based to target flag.

Change-Id: I06fbacade99b09c9ea7347aa28e10968eaeedaa8
2020-07-13 23:39:24 -07:00
Wu Gao
4e5a1591c5 qcacld-3.0: Add ini to configure max tdls peer count
Add ini "gTDLSMaxPeerCount" to configure max tdls peer count.

Change-Id: I45c287c6c9a2fa1dcebcea54fdd0fc0d8a14b064
CRs-Fixed: 2718971
2020-07-13 23:39:20 -07:00
CNSS_WLAN Service
b81a7cfb7d Merge "Release 5.2.0.193W" into wlan-cld3.driver.lnx.2.0 2020-07-12 20:17:17 -07:00
CNSS_WLAN Service
fc6ee2eed0 Merge "qcacld-3.0: Add ini to enable sae auth/assoc retry" into wlan-cld3.driver.lnx.2.0 2020-07-12 20:17:16 -07:00
CNSS_WLAN Service
8b760faee7 Merge "Release 5.2.0.193V" into wlan-cld3.driver.lnx.2.0 2020-07-12 10:51:17 -07:00
CNSS_WLAN Service
7c952cde3b Merge "qcacld-3.0: Use global operating class to initialize array" into wlan-cld3.driver.lnx.2.0 2020-07-12 10:51:15 -07:00
nshrivas
53d271c41d Release 5.2.0.193W
Release 5.2.0.193W

Change-Id: I38700cd21d8c7b8b2941bf92a94b74f43a91c25e
CRs-Fixed: 774533
2020-07-12 10:10:21 -07:00
Abhishek Ambure
fbdde4785a qcacld-3.0: Add ini to enable sae auth/assoc retry
Introduce new INI sae_connect_retries to decide auth (initial connect
and roam auth) and connect retry for sae. MAX reties is capped to 2
and max for roam auth is 1.
Default is 0x49 i.e. 1 retry each.

Bits       Retry Type
BIT[0:2]   AUTH retries
BIT[3:5]   Connection reties
BIT[6:8]   ROAM AUTH retries

Change-Id: Idae86a7bdb32244c7f3a140b8591418b8238758a
CRs-Fixed: 2728458
2020-07-12 10:10:20 -07:00
CNSS_WLAN Service
5a71295f5d Merge "qcacld-3.0: Update self RSN caps to FW in RSO update/start cmd" into wlan-cld3.driver.lnx.2.0 2020-07-12 08:09:54 -07:00
nshrivas
0c45a04554 Release 5.2.0.193V
Release 5.2.0.193V

Change-Id: I52afeae9319d3867df59dc10ef77e7579ff4cefc
CRs-Fixed: 774533
2020-07-12 07:31:23 -07:00
Amar Singhal
9709a3147d qcacld-3.0: Use global operating class to initialize array
Use global operating class to initiaize operating class array.
Country specific operating class table is used less and less now,
so use the global operating class by default.

Change-Id: Iaa6559d47cb1d8d30c8826dc3e7d5b63c743297b
CRs-Fixed: 2728601
2020-07-12 07:31:22 -07:00
Abhishek Ambure
5e1f7ea5d6 qcacld-3.0: Update self RSN caps to FW in RSO update/start cmd
Present source of self RSN capability to copy in RSO command i.e
csr_roam_session's rsn_cap is zero, A new capability OCVC (Operating
Channel Validation Capable) bit is in RSN capabilities. FW enables
OCV feature only if STA and AP both supports it.
Hence update self RSN capability to FW in RSO start/update command.

Change-Id: I1db500142560ec64a24ffab0c414c0c2b733e454
CRs-Fixed: 2721095
2020-07-12 05:17:18 -07:00
nshrivas
f9a9536cfd Release 5.2.0.193U
Release 5.2.0.193U

Change-Id: I83572c4f2a35aa817d52a7af069ffafabd61451a
CRs-Fixed: 774533
2020-07-12 05:17:18 -07:00
nshrivas
0fa1b6629f Release 5.2.0.193U
Release 5.2.0.193U

Change-Id: I2e94c9b9d9569fd3bc15da82e4d74cec41bd5b0c
CRs-Fixed: 774533
2020-07-12 01:49:28 -07:00
Mohit Khanna
114f32b925 qcacld-3.0: Add P2P UDP/TCP checksum offload INI entry
Add support to enable disable TCP/UDP checksum offload for P2p modes.

CRs-Fixed: 2725394
Change-Id: Ib09ef7a0f118d181f4d358857eb960ee41af9e54
2020-07-12 01:49:28 -07:00
nshrivas
5e82bbc32c Release 5.2.0.193T
Release 5.2.0.193T

Change-Id: I8f96c2323309d2942bbbf10e402981630c8b8d95
CRs-Fixed: 774533
2020-07-11 22:39:34 -07:00
Srinivas Dasari
8e493f081d qcacld-3.0: Handle SAP+NAN concurrency when NAN_DBS isn't supported
When nan_sap and nan_disable are supported but nan_dbs is not
supported,
1. Allow SAP+NAN concurrency if force SCC is supported
2. Disable NAN if SAP comes up on a different band and force SCC is
   not supported
3. Reject NAN enable if SAP is already on a different band and force SCC is
   not supported

Change-Id: Ic53eedcda2e5b314f9be2a4bd913d5e63f6613a2
CRs-Fixed: 2729986
2020-07-11 22:39:29 -07:00
nshrivas
63028f5fd7 Release 5.2.0.193S
Release 5.2.0.193S

Change-Id: I163a507748f094f0f45799e87e5c7e6acea0748f
CRs-Fixed: 774533
2020-07-11 20:32:22 -07:00
Srinivas Dasari
d296457502 qcacld-3.0: Rename nan_disable_support to nan_conc_controlled_by_host
nan_disable_support is the firmware capability to allow host to
disable NAN. So that host can disable NAN in any unsupported
concurrencies. This was actually introduced to handle
NAN concurrencies. Rename the capability flag and corresponding
APIs across host driver to resemble the functionality.

Change-Id: I24805194fdb855040bcc518acc96459ee7cb5128
CRs-Fixed: 2729984
2020-07-11 20:32:22 -07:00
nshrivas
64664352f2 Release 5.2.0.193R
Release 5.2.0.193R

Change-Id: Iea291b46f09a8e7ab52316360246978ca43e0f41
CRs-Fixed: 774533
2020-07-11 11:37:20 -07:00
Abhishek Ambure
9ef1764a24 qcacld-3.0: Add support to get roam scan frequencies
For user request of get roam scan frequencies using vendor sub command
QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET and vendor sub attribute
QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL, host replies with list
of roam scan frequencies.

Change-Id: Ia63a5181e13541629a380dec9a032743d15add0c
CRs-Fixed: 2725834
2020-07-11 11:37:19 -07:00
nshrivas
0ebe9a3553 Release 5.2.0.193Q
Release 5.2.0.193Q

Change-Id: I4a720dfc5569bd76e0ad56cc2ac88543ce4ca622
CRs-Fixed: 774533
2020-07-10 21:55:45 -07:00
Aditya Kodukula
09d99afb7e qcacld-3.0: Fix a code comment in hdd_fill_rate_info
Fix a code comment in the function hdd_fill_rate_info

Change-Id: Ia906bc063cd2dfdd5a43a436b6fdb5a155bbc68a
CRs-Fixed: 2728716
2020-07-10 21:55:44 -07:00
nshrivas
683995bb10 Release 5.2.0.193P
Release 5.2.0.193P

Change-Id: Ic4deb468a6dd775b511f38c087f41022af68fcff
CRs-Fixed: 774533
2020-07-10 13:42:21 -07:00
Pragaspathi Thilagaraj
eb128b5dfe qcacld-3.0: Add roam offload state machine changes
Add changes to handle transition to the 2 new states:
1. Roaming in progress: Switch to this state when roam
start notification is received from firmware.
2. Roam Synch in progress: Switch to this from RSO
STARTED state if roam synch indication event is received
from firmware. Change to this state is also allowed in
RSO STOPPED state if supplicant disabled roaming on that
vdev - to allow roam invoke to be processed.

Also query the state machine to get the roaming status instead
of using discrete flags at various layers. Clean the redundant
roaming in progress, roam synch related flags.

Change-Id: Ide20a30d9d8c20a96d8bba70367b51b8643cae09
CRs-Fixed: 2725443
2020-07-10 13:42:21 -07:00
nshrivas
45d1a5e075 Release 5.2.0.193O
Release 5.2.0.193O

Change-Id: Ic672bda0883d7ed6f36614f54d8093b82ccf14a8
CRs-Fixed: 774533
2020-07-10 07:45:38 -07:00
Min Liu
6296d6d783 qcacld-3.0: Fix type mismatch in set wifi config PHY_MODE
Fix the type mismatch issue in set wifi config PHY_MODE and
refactor related APIs.

Change-Id: I2d84f144766126c54e2ed449d367316b65fc769c
CRs-Fixed: 2706050
2020-07-10 07:45:37 -07:00
Abhishek Ambure
7c07f228f6 qcacld-3.0: Add support of pmf comeback timer for SAE assoc retry
If STA DUT receives assoc response with assoc response status as
eSIR_MAC_TRY_AGAIN_LATER, host starts a pmf comeback timer to
send assoc request again on pmf comeback timer timeout.

Change-Id: Ifb28e44af86daef90db7146572cdfae26dfcaa20
CRs-Fixed: 2728459
2020-07-10 07:45:32 -07:00
nshrivas
91903a81ba Release 5.2.0.193N
Release 5.2.0.193N

Change-Id: I6f22c0cae4f2311ba74201ab76f66b7362dd47d4
CRs-Fixed: 774533
2020-07-10 05:38:45 -07:00
nshrivas
9fb1c5b7eb Release 5.2.0.193M
Release 5.2.0.193M

Change-Id: I4e3d1f6f7cddba1b485e450cadafe5de300c408f
CRs-Fixed: 774533
2020-07-09 21:39:34 -07:00
Abhishek Ambure
0a4e3a71ab qcacld-3.0: Add support for assoc retry for SAE assoc timeout
Due to noisy environment, host misses auth and assoc frames which leads
to disconnection. In case of SAE host retires SAE auth if it doesn't get
SAE auth response from AP within 1 second.
To handle SAE assoc response timeout due to noisy environment, host adds
support to reconnect to last BSSID if previous association is timeout.

Change-Id: I71435882e53172e95c873a3216cf649fee9ecd26
CRs-Fixed: 2727340
2020-07-09 21:39:34 -07:00
nshrivas
7c2fc778ef Release 5.2.0.193L
Release 5.2.0.193L

Change-Id: Ib4c2bfadcb87290e46f26f25656079f78274c71b
CRs-Fixed: 774533
2020-07-09 15:54:18 -07:00
sheenam monga
99b51da592 qcacld-3.0: Advertise dpp akm suite in sta mode
Currently, kernel and driver both support dpp akm suite.
but driver doesn't advertise WLAN_AKM_SUITE_DPP_RSN which may
cause issue for WLAN_AKM_SUITE_DPP_RSN supported connection.

Fix: Advertise WLAN_AKM_SUITE_DPP_RSN as supported akm suite
in sta mode.

Change-Id: I5882b310a742c06ad57e97fc24735a9e5021f352
CRs-Fixed: 2726197
2020-07-09 15:54:18 -07:00
Surabhi Vishnoi
1ce2688f28 qcacld-3.0: Add handler for WMI_VDEV_BCN_LATENCY_EVENTID
WMI_VDEV_BCN_LATENCY_EVENTID is sent by firmware when it receives
the latency IE from connected AP in beacon.

Add handler for this event and when latency_level received is ultra
low in latency IE, update request pm qos type PM_QOS_CPU_DMA_LATENCY
to level DISABLE_KRAIT_IDLE_PS_VAL to speed up CPU efficiency and
irq response. This is needed for Voice and Music products where extreme
low latency is needed while playing music and high power consumption is
accepted.

Change-Id: I3c63ef247f4f4a1add68111ef1bcee6daafd148a
CRs-Fixed: 2723205
2020-07-09 15:54:14 -07:00
gaurank kathpalia
f235aec968 qcacld-3.0: Initialize config in sme_update_score_config
Initialize the config variable in sme_update_score_config
to prevent used of un-initialized variable in the same API.

Change-Id: I9a0ca814ffed986f318757a428043d0016d3a6b3
CRs-Fixed: 2726396
2020-07-09 15:54:10 -07:00
nshrivas
c7790a8cb1 Release 5.2.0.193K
Release 5.2.0.193K

Change-Id: I7f700b33d5f1dbcd159689bcae1dcb8e277524f4
CRs-Fixed: 774533
2020-07-09 13:43:27 -07:00
nshrivas
b45dbd221c Release 5.2.0.193J
Release 5.2.0.193J

Change-Id: I95fa77fd90788f1d1f4f50746b427d85e2b190c6
CRs-Fixed: 774533
2020-07-09 11:32:55 -07:00
Yeshwanth Sriram Guntuka
59e699aa03 qcacld-3.0: Fix possible NULL hdd context dereference
On dp_aggregation sysfs store or show, wiphy is fetched
from hdd context without validation. This could result
in possible NULL hdd context dereference.

Fix is to validate the hdd context before dereference
to get wiphy.

Change-Id: I0d01f64e95c9aa3f09ccc940a64d5a25148c302e
CRs-Fixed: 2726433
2020-07-09 11:32:55 -07:00
Sandeep Puligilla
69a2d503d5 qcacld-3.0: SAP sends broadcast disassoc to STA
SAP sends broadcast disassoc to associated stations
as part of the del station request from userspace.

hdd_softap_deauth_current_sta is sending broadcast
address to SME to send the disassoc frame instead
of associated STA address. Modified API to pass
the STA address.

Change-Id: I1645441804abef3c76f7deeff44ef929684c0bf1
CRs-Fixed: 2726960
2020-07-09 11:32:51 -07:00
Jinwei Chen
ebda2c45c3 qcacld-3.0: stop fisa aggregation if cumulative_ip_len not match msdu_len
If current msdu length - l4 header offset value is not matched with
cumulative IP length delta fetched from HW TLV, stop current fisa
aggregation.

Change-Id: Ia686a638a698d705db3c6bda58e85e4d94f323a1
CRs-Fixed: 2727291
2020-07-09 11:32:48 -07:00
nshrivas
5f3b41fac1 Release 5.2.0.193I
Release 5.2.0.193I

Change-Id: I3ce589cef648729065bfd4e1e4661bc59db114fe
CRs-Fixed: 774533
2020-07-09 09:23:58 -07:00
sheenam monga
f288ea9a49 qcacld-3.0: Don't select dot11mode based on band only
Currently, if fw doesn't send phy mode after roaming host itself
calculates phy mode based on band only. Host doesn't consider self
dot11 mode and returns dot11 mode based on 2g band or any other band.
Which may cause different phy modes in fw and host.

Fix: Calculate dot11 based on self dot11 mode, return dot11 mode based
on band only if self dot11 mode is not valid.

Change-Id: Ifa320e3bb8a2ae8cffc59c73501c0643dc3b65af
CRs-Fixed: 2725841
2020-07-09 09:23:58 -07:00
Sachin Ahuja
9687cd8708 qcacld-3.0: Add psoc op start for state ctrl param write ops
Race conditon is seen between the mode change and Wifi Off.
When mode change happens, modules are stopped and wmi handle
becomes NULL. As a part of state ctrl param write, BLM module
uses this wmi handle to send the reject ap list to FW.

Add the psoc op start protection for the ops required during
wifi off.

CRs-Fixed: 2722283
Change-Id: I8e8d9ca789dcacf201934105725e677ce9e0a031
2020-07-09 09:23:54 -07:00
Yu Tian
adb7ee6bc0 qcacld-3.0: use sync method in SAP delete peers
when CSA happens, peer delete will not call
SAP de-register flow, of which may lead adapter
sta_info struct dirty. When STA interface is assigned
new peer_id, it has possibility to conflict with
dirty sta_id in adapter sta_info list. So change to
sync peer delete and notify umac to clean sta_info.

Change-Id: I1703b2b45837e0b4c0814e5c95ae7f86b510e1fc
CRs-Fixed: 2713147
2020-07-09 09:23:49 -07:00
nshrivas
37726f0f50 Release 5.2.0.193H
Release 5.2.0.193H

Change-Id: I12304f8cbf808959d83f25b184459cd25048637f
CRs-Fixed: 774533
2020-07-09 07:23:50 -07:00
gaurank kathpalia
8f00249dd4 qcacld-3.0: Remove filling of unused dot11_mode in scan filter
Remove filling of unused dot11_mode in scan filter as the
filter logic is not present.

Change-Id: I7a484298db44033e8514a26985c63157af939ae0
CRs-Fixed: 2727064
2020-07-09 07:23:49 -07:00
nshrivas
da030b4d68 Release 5.2.0.193G
Release 5.2.0.193G

Change-Id: If62108466182828e96bcecd265a812921b2cc958
CRs-Fixed: 774533
2020-07-09 03:03:43 -07:00
Pragaspathi Thilagaraj
65c1c28045 qcacld-3.0: Add initial roam offload state changes
Rename the existing roam offload states to include
WLAN_ prefix. Add 2 new states:
WLAN_ROAMING_IN_PROG - Roaming has started at firmware, this is
                       after candidate selection at firmware.

WLAN_ROAM_SYNCH_IN_PROG - State after handoff is complete at
                          firmware.

Also move the roam_offload_state enum to connection manager.

Change-Id: Ib1f38d200393849253893113172cdfc69e381fb3
CRs-Fixed: 2725387
2020-07-09 03:03:39 -07:00
nshrivas
5fc44e8a64 Release 5.2.0.193F
Release 5.2.0.193F

Change-Id: I75f52bb2fa41ce5a0cdabd32edf55b5c33282056
CRs-Fixed: 774533
2020-07-09 01:03:07 -07:00
Abhishek Ambure
6dad04b744 qcacld-3.0: Add support to set roam scan freq in specific list
User configures roam scan frequencies using vendor roaming sub command
QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. If the roam scan frequency
list type is QCA_SPECIFIC_SCAN_FREQ_LIST in user command, update specific
roam scan channel list in host and FW.

Change-Id: Ie9d30999a7cdfdd6fa4d97c64b09d9739dd39633
CRs-Fixed: 2725832
2020-07-09 01:03:07 -07:00
Jingxiang Ge
da272dd932 qcacld-3.0: Move wmm dscp init to hdd_wmm_adapter_init
Currently wmm dscp will be called when open adapter,
as wmm dscp will send wmi cmd to fw, it is not right
place as adapter not yet started.

Move wmm dscp init to hdd_wmm_adapter_init, which
adapter vdev has been created.

Change-Id: I41b5e79d0b28ead9c449612ca2d2ed7529b3495f
CRs-Fixed: 2725883
2020-07-09 01:03:03 -07:00
nshrivas
87adaf0a9b Release 5.2.0.193E
Release 5.2.0.193E

Change-Id: I8fff70541bb151d4c9c9dceea4bab382c2efb7b3
CRs-Fixed: 774533
2020-07-08 23:02:34 -07:00
Jingxiang Ge
ea468c6c52 qcacld-3.0: cleanup dfs cac timer for p2pgo in SSR
There is possible dfs cac timer start on p2pgo,
then ssr happens, which cause timer leak.

Clean up dfs cac timer when stop adapter.

Change-Id: I8fe67420196ac752941476312caa7a80f2b3e264
CRs-Fixed: 2720896
2020-07-08 23:02:34 -07:00
nshrivas
2353e15e58 Release 5.2.0.193D
Release 5.2.0.193D

Change-Id: I0516408a64f1f6b96c750bb05c3035971912b0da
CRs-Fixed: 774533
2020-07-08 18:55:48 -07:00
nshrivas
d001e72975 Release 5.2.0.193C
Release 5.2.0.193C

Change-Id: I90bbffde3d949fcd69e8466ca4808968c6b8c858
CRs-Fixed: 774533
2020-07-08 06:51:42 -07:00
Li Feng
0e6dc924e5 qcacld-3.0: Add ini entry for wow pulse configuration
qcacld-2.0 to qcacld-3.0 propagation

Add ini entry to configure wow pulse repetition count
and wow pulse init level.

Change-Id: Ic23d2ae80f6f0adef9f35bfef5a59eb0220c70ae
CRs-Fixed: 2722997
2020-07-08 06:51:42 -07:00
Sourav Mohapatra
95ea7c675f qcacld-3.0: Limit the number of times get_tx_power can come
Currently in the driver, there is no limit on how many number of times
get_tx_power can be requested by the userspace. This can lead to
potential issues where the firmware crashes due to excessive stats
request.

Add a time based rate limiting logic wherein the function call only
sends request to the firmware once in three seconds. In other cases, it
returns the cached value present in the adapter.

Change-Id: I65f23135d88c66e6438484715dafce3def14ddb3
CRs-Fixed: 2717633
2020-07-08 06:51:38 -07:00
nshrivas
8597091832 Release 5.2.0.193B
Release 5.2.0.193B

Change-Id: Ibaa2fa27dba8abec145a9f2ae4bbbddb14551999
CRs-Fixed: 774533
2020-07-08 04:52:26 -07:00
Yeshwanth Sriram Guntuka
c719f2d546 qcacld-3.0: Parse data stall info for appropriate trigger reason
Data stall info received as part of wmi debug msg flush
event is parsed for all reasons. Since fw populates this
info only when the reason is data_stall_trigger, in all
other cases this info would be garbage values and is sent
to userspace.

Fix is to parse data stall info only for the appropriate
trigger reason.

Change-Id: I70004e5825e67df375e9bc14c2db2a398d860c97
CRs-Fixed: 2724248
2020-07-08 04:52:25 -07:00
nshrivas
1cb73d1aed Release 5.2.0.193A
Release 5.2.0.193A

Change-Id: I52a34ed04aab9278bcf68f730381289968554dd9
CRs-Fixed: 774533
2020-07-08 02:14:07 -07:00
Jinwei Chen
e3c87d96ac qcacld-3.0: refine FISA aggregation
Refine FISA aggregation as below,
(1) add aggregate count checking, if current msdu aggregate count
is not equal to last msdu aggregate count + 1, stop current fisa
flow aggregation.
(2) only if current msdu cumultive ip length is > last
msdu cumultive ip length and <= last msdu cumultive ip length
+ 1478, then continue the FISA aggregation.
(3) support variable GSO size UDP aggregation.

Change-Id: Ie86b46c09b1cd8ca5a5c7ad3c1349d4e0d876203
CRs-Fixed: 2724215
2020-07-08 02:14:07 -07:00
Pragaspathi Thilagaraj
df22e92942 qcacld-3.0: Add support for FILS pmksa caching without ERP keys
For FILS pmksa caching, the STA can use the PMKSA cached as
part of the full 802.1x connection. When FILS PMKSA caching
is used, the supplicant might not send the ERP keys in the
connect request. So add support to allow connection when
ERP keys are not received in connect request but FILS
PMK is present in the cache.
If the PMK cache lookup is successful for the bssid,
use pmksa caching to associate, else fallback to full 802.1x
to associate to the BSS.

Change-Id: I9fa67ee5978b7199da1cb638f7f321baed6e5913
CRs-Fixed: 2710402
2020-07-08 02:14:03 -07:00
nshrivas
b12f188b2c Release 5.2.0.193
Release 5.2.0.193

Change-Id: I54fd0429356c85dca492719b48203a7ba14e0630
CRs-Fixed: 774533
2020-07-08 00:09:38 -07:00
Alan Chen
df0f3aff28 qcacld-3.0: Complete qdf wait events during fw down
Complete qdf wait events during fw down to avoid higher layer timeouts.

Change-Id: Ibb6bb8a3acd9edc488975952c015d6221f737923
CRs-Fixed: 2726398
2020-07-08 00:09:37 -07:00
Abhishek Singh
4b9273d712 qcacld-3.0: use crypto from vdev to fill the scan filter
use crypto from vdev to fill the scan filter.

Change-Id: I2c4bd9b85d9dac14c4d331a84cc7f3307d06818d
CRs-Fixed: 2718080
2020-07-08 00:09:34 -07:00
nshrivas
cc554981a4 Release 5.2.0.192Z
Release 5.2.0.192Z

Change-Id: I2adda25040dc39b03aed8b896b9733e01b669f81
CRs-Fixed: 774533
2020-07-07 21:38:33 -07:00
Srinivas Girigowda
942799962e qcacld-3.0: Check for NULL pointer before de-referencing it
Pointer 'hif_ctx' returned from call to function 'cds_get_context'
may be NULL. Check for NULL pointer before de-referencing it.

Change-Id: I9d34d877783b35829faf2049c3c8c43519e12914
CRs-Fixed: 2726468
2020-07-07 21:38:33 -07:00
nshrivas
cc711bcd0b Release 5.2.0.192Y
Release 5.2.0.192Y

Change-Id: Iee069461f4c2b7b525c4b456488e54b894200c6d
CRs-Fixed: 774533
2020-07-07 16:23:10 -07:00
Pragaspathi Thilagaraj
750e889d9e qcacld-3.0: Send vdev pcl command when STA + STA roaming is active
Send Vdev pcl command on both connected STA vdev when sta+sta
roaming is enabled. Handle below cases:
1. When 1st STA is connected send PDEV pcl command for the
first sta. Set pcl_vdev_cmd_active false.
2. When 2nd STA comes up, Set pcl_vdev_cmd_active to true,
send vdev PCL for 1st sta before enabling roaming(disabled
as part of the connect on 2nd STA).
3. For second STA force dbs connection when
enable_dual_sta_roam_offload ini is enabled. Set the channels
of the 1st connected STA band as invalid and remove these
channels from the scan filter.
4. On disconnection of 2nd STA connection, clear the vdev
PCL sent for 1st STA and then send PDEV pcl command.

Also make changes to send set PCL command after roam init
is done before RSO start is done at firmware to avoid assert.
Post set pcl command from sme/csr through lim/wma/wmi to avoid
the above condition.
Disable roaming on the vdev before sending set PCL command to
avoid roaming on undesirable band & channels.

Change-Id: I6bd869015b7248fe5c5c90b6e2fa0174995be197
CRs-Fixed: 2725360
2020-07-07 16:23:06 -07:00
nshrivas
f4f96bd3b2 Release 5.2.0.192X
Release 5.2.0.192X

Change-Id: I48211db778c21725af4edb2a1c7413d6b3dd5ed9
CRs-Fixed: 774533
2020-07-07 14:16:43 -07:00
Abhishek Ambure
38a8f8bc4e qcacld-3.0: Update RSN intersect capability to FW
A new capability OCVC (Operating Channel Validation Capable) bit in RSN
capabilities provides mutual verification between peers (e.g., AP and
STA) of the current operating channel during security-related exchanges
and channel switches to defend against multi-channel MITM attacks.
FW enables OCV feature only if AP and STA both support it, hence update
RSN intersect capability to FW.

Change-Id: Iedc67287ae6c56c1d609ae599fbb591cdfcb4aa8
CRs-Fixed: 2721176
2020-07-07 14:16:43 -07:00
Pankaj Singh
aa9ab765bf qcacld-3.0: Failure to create pdev before get FW ready event received
During TDLS if SSR occurs then wlan driver is not deleting the tdls host
peer.This lead to tdls peer leak, vdev and pdev ref leak. As pdev is not
deleted after SSR new pdev create fails.

Fix is to remove tdls peer information from host driver during ssr

Change-ID: I9f4c2026821a166fbf38f658c75d93e7409141cc
CRs-Fixed: 2726083
2020-07-07 14:16:37 -07:00
nshrivas
ccbd35f3cd Release 5.2.0.192W
Release 5.2.0.192W

Change-Id: I5dbb8cefda94d586028f6f7c4a3f58b0f8d80d28
CRs-Fixed: 774533
2020-07-07 07:24:48 -07:00
Pragaspathi Thilagaraj
6b525a4f72 qcacld-3.0: Add support to compile connection manager STA+STA roam API
Enable compilation of the connection manager roam files with
Kbuild changes.
Add new API to store and retrieve the firmware scan channels at
mlme. Also add initial support to post SET_PCL command through
lim, so that it is not sent before ROAM init command.

Add changes to restrict connection of the 2nd STA to
channels on the other band of the 1st STA connected band.
This is done by filling only the allowed band channels in
the scan filters for the 2nd STA connection. If only
1 STA is active, it is allowed to connect on any band.

Add header gaurds for missed header files:
wlan_cm_tgt_if_tx_api.h
target_if_cm_roam_offload.h

Change-Id: Id2bce12b9663ed635ea46164169b088461aab870
CRs-Fixed: 2720341
2020-07-07 07:24:47 -07:00
Lin Bai
299a322de1 qcacld-3.0: Use sync method to awake device
Use sync wake when trying to awake device for register
accessing.
This can avoid device re-enter low power mode after
device_wake asserted.

Change-Id: I9ce421be0ecdf05a26388732cc8e15154c57a47a
CRs-Fixed: 2703608
2020-07-07 07:24:39 -07:00
nshrivas
3951d21516 Release 5.2.0.192V
Release 5.2.0.192V

Change-Id: If4a425fdee359d90c58f18134502c1d0dcf7ee81
CRs-Fixed: 774533
2020-07-07 02:53:24 -07:00
Jingxiang Ge
99728132d7 qcacld-3.0: Fix set max power fail issue
it will always return here if find vdev in wma_find_vdev_id_by_addr,
as default value of ret is failure.

Separate lookup vdev for sap/sta mode and check return value.

Change-Id: Ic94c6b25d2a02f9e66ed469bec4cf297d696e2a8
CRs-Fixed: 2721825
2020-07-07 02:53:24 -07:00
nshrivas
46c3208db3 Release 5.2.0.192U
Release 5.2.0.192U

Change-Id: I33b3996c1ff030f2c2ed13cf0dc234c796e030d1
CRs-Fixed: 774533
2020-07-07 00:46:00 -07:00
Ashish Kumar Dhanotiya
a90de0b7b0 qcacld-3.0: Use channel freq apis instead of channel num apis
Currently for get channel list command host driver is using
channel number based APIs to get the channels state which may
result in incorrect state for some of the channels of 4.9GHz
channels as 4.9GHz channels are overlapping with the 2.4 GHz
channels.

To address above issue use the frequency based apis to get the
channel state.

Change-Id: I3d36c5aa73e42f6a6e4d82e1b7f35412b0c600c2
CRs-Fixed: 2721078
2020-07-07 00:46:00 -07:00
nshrivas
ab3f514432 Release 5.2.0.192T
Release 5.2.0.192T

Change-Id: Ic7fafbe58517deebe1338fcc89b090d6e9d7451b
CRs-Fixed: 774533
2020-07-06 19:30:30 -07:00
Sandeep Puligilla
c6d0cb6ece qcacld-3.0: Incorrect phymode sent as part of peer_assoc
Incorrect phy mode sent to firmware as part of the
TDLS connection peer assoc command.

VHT phymode representation for 2G and 5G is different
and host is sending 5G VHT phymode as part of the 2G
TDLS connection peer_assoc command to firmware.

Modified phymode generation logic at WMA for TDLS
connection to populate 'WLAN_PHYMODE_11AC_VHT20_2G'
phymode.

Change-Id: I7867df7f013bc05a182e33495181a099332d1fd5
CRs-Fixed: 2719278
2020-07-06 19:30:30 -07:00
nshrivas
767d39503d Release 5.2.0.192S
Release 5.2.0.192S

Change-Id: I2df0f3049658640144e245d12135cc7499205f7c
CRs-Fixed: 774533
2020-07-06 14:13:55 -07:00
Vevek Venkatesan
7d7f50849d qcacld-3.0: add Runtime PM support and its PLD callbacks
Add PLD functions for Runtime suspend and resume callbacks,
and enable Runtime PM support for Moselle.

Change-Id: Ie990334c0c60892ec0f0ad6fac3253b3d326a919
CRs-Fixed: 2720832
2020-07-06 14:13:55 -07:00
Abhishek Ambure
8500973b30 qcacld-3.0: Don't free sae auth retry frame for invalid auth rsp
In the noisy environment observation is, host sends SAE commit req to
AP and gets SAE commit response from AP, then host sends SAE confirm
req to AP but due to noisy environment AP miss the ack for SAE commit
response and keep sending SAE commit response even host send SAE
confirm. As host cleans SAE auth retry frames on reception of SAE auth
rx from AP, host cleanups SAE auth confirm req and disable SAE auth
retry timer. This leads to SAE auth failure. To avoid this host matches
auth frame's "sae algo sequence number" with last sent auth frame's "sae
algo sequence number", if it matches then only free sae auth retry frame
and deactivate sae auth retry timer.

Change-Id: Ia9ae2e5d82c696efdc0aaf4e04b6760b9829c510
CRs-Fixed: 2720436
2020-07-06 14:13:51 -07:00
nshrivas
8ae1be9cfe Release 5.2.0.192R
Release 5.2.0.192R

Change-Id: I13b9fa5c6fcd297e07a77e734ece5647aa6791d6
CRs-Fixed: 774533
2020-07-06 11:23:04 -07:00
Bapiraju Alla
d42aa6376f qcacld-3.0: Check channel bonding mode to HE 40MHz capability in 2g
Add check to verify channel bonding mode before setting 40MHz
capability in HE 2.4GHz.

Change-Id: I22ca48c984cc833835d22d8b7ecfe8a3e194d406
CRs-Fixed: 2723207
2020-07-06 11:23:04 -07:00
gaurank kathpalia
542723afbe qcacld-3.0: Update proper auth mode in crypto
Update proper authmode in crypto as for WPA/WPA2/WPA3 also
the auth type from connect request can be OPEN.

So check the wpa_ver and other params from the connect
request to determine proper authmode. Also set authmode and
cipher for WAPI mode.

Change-Id: If1b1cb403afdd42277b9cab2f3c931848f49ab25
CRs-Fixed: 2725312
2020-07-06 11:23:00 -07:00
nshrivas
8f786b5d44 Release 5.2.0.192Q
Release 5.2.0.192Q

Change-Id: Ib722cbf29610b9981a6886d5f4e6a1e263246034
CRs-Fixed: 774533
2020-07-06 08:33:56 -07:00
Abhishek Ambure
c21971a90c qcacld-3.0: Do not reset auth retry timer on sae auth tx ack
For SAE auth frames, host configures auth retry timer to 1 second,
if host doesn't get ack for previously sent SAE auth frame then host
retransmit queued SAE auth frame once the periodic auth timer
triggers.
Due to noisy environment host may miss the SAE auth response, in this
case host needs to send queued SAE auth frame. Hence don't reset auth
retry timer on SAE auth TX ack reception.

Change-Id: I96456ce5cbe5fb2acc7005ff1d19c6e9eecc1764
CRs-Fixed: 2725359
2020-07-06 08:33:56 -07:00
Arun Kumar Khandavalli
288bc9d412 qcacld-3.0: Disable the panic on the self-recovery ini disable
Currently once the gEnableSelfRecovery is disabled it is decided to panic
once the firmware complete firmware dump is collected, this has a 
side-effect when the normal SSR is triggered for testing purposes.
This reverts commit Ia184a265d0f76e43d1d5edc4bcc0849a05726dac.

Change-Id: Icec14a2afb902a275ffe0bf202ec75d8e58d9f58
CRs-Fixed: 2725430
2020-07-06 08:33:52 -07:00
nshrivas
24f9cd5b9f Release 5.2.0.192P
Release 5.2.0.192P

Change-Id: Iaba7e740635b4b0ae77b1094e63768485a6d8342
CRs-Fixed: 774533
2020-07-06 05:35:17 -07:00
Rakesh Pillai
197e33420a qcacld-3.0: Add vendor cmd attribute to upgrade UDP QoS
Add the vendor command attribute to upgrade the QoS
for all UDP packets having priority less than the
current setting.

Change-Id: I1269018396e163c1a2b02a7ab1cfb3fabfd0af94
CRs-Fixed: 2724041
2020-07-06 05:35:17 -07:00
Rakesh Pillai
f5f6cb8ed9 qcacld-3.0: Upgrade UDP qos based on user setting
Provide the support to upgrade the priority of
UDP packets based on user setting. The user will
set a particular QoS and for any UDP packets, which
has priority lesser than the current setting, the
QoS will be upgrade to the user set value.

The default value for this setting will be Best Effort.

Change-Id: I64207797e9c000d1d6fb757e22b02ee4f96a36f1
CRs-Fixed: 2724041
2020-07-06 05:35:12 -07:00
nshrivas
d862549578 Release 5.2.0.192O
Release 5.2.0.192O

Change-Id: I0f8e661a0ce3343b139932bcc179e0f7cb506540
CRs-Fixed: 774533
2020-07-05 23:13:08 -07:00
Liangwei Dong
cb26ab4de6 qcacld-3.0: Fix ACS invalid defalut channel selected
If the ACS SCAN failed, the API sap_select_default_oper_chan
will select a default channel from ACS scan channel list.
At present sap_select_default_oper_chan doesn't validate the
channel with regulatory. It may select an invalid channel and
report to hostapd. This will happen when driver is doing ACS
scan, the upper layer set different country code and result to
some channels in the acs freq_list become invalid.
Fix by checking the channel supported by regulatory before select
it.

Change-Id: I438b2947ba1fd5388a2472d5122e55edc89229db
CRs-Fixed: 2723689
2020-07-05 23:13:08 -07:00
nshrivas
9994c947c1 Release 5.2.0.192N
Release 5.2.0.192N

Change-Id: I6344570c33b99d111c565a003797863696cc81ec
CRs-Fixed: 774533
2020-07-04 05:00:08 -07:00
Abhishek Ambure
a4d014cdbe qcacld-3.0: Set supported chan width in ht cap of assoc req
For STA in 2.4Ghz band, host adds self HT supported channel width
capability in HT capability field of assoc request.

For WFA certification, expectation is to add self HT supported chan
width capability in HT capability field of assoc request.

Change-Id: I630423de03636e6c4ca07638dce6966c3ca381f9
CRs-Fixed: 2720908
2020-07-04 05:00:08 -07:00
nshrivas
5dfaeb2e22 Release 5.2.0.192M
Release 5.2.0.192M

Change-Id: Idc5dfcfbbbdb4334622c838946efcb7dd63008c6
CRs-Fixed: 774533
2020-07-03 10:51:51 -07:00
Pankaj Singh
b5b8ab03e4 qcacld-3.0: Tdls sta BA session doesn't happen
TDLS Sta not initiating Add BA request or responding to Add BA
request from peer. For TDLS connection, legacy rate is
set to zero even though the peer capabilities supports OFDM rates.
The set of available rates from supplicant is compared with config
and rates is populated, which causes the issue.

Fix is to apply the correct rates provided from supplicant

change-ID: I66ce1b0ee4e5f96f9bb755a40ff7d8c46176087c
CRs-Fixed: 2719391
2020-07-03 10:51:51 -07:00
CNSS_WLAN Service
685594d7ea Merge "Release 5.2.0.192L" into wlan-cld3.driver.lnx.2.0 2020-07-03 09:57:30 -07:00
CNSS_WLAN Service
b4bc49ee69 Merge "qcacld-3.0: Access vdev by reference" into wlan-cld3.driver.lnx.2.0 2020-07-03 09:57:29 -07:00
CNSS_WLAN Service
76589117aa Merge "qcacld-3.0: Restore ps params after current modules being stopped" into wlan-cld3.driver.lnx.2.0 2020-07-03 03:02:22 -07:00
CNSS_WLAN Service
f6fa6c6442 Merge "qcacld-3.0: Add change to check DRV support" into wlan-cld3.driver.lnx.2.0 2020-07-03 03:02:20 -07:00
CNSS_WLAN Service
a5d19b15c1 Merge "qcacld-3.0: Avoid deleting peer on other vdev in case of duplicate MAC" into wlan-cld3.driver.lnx.2.0 2020-07-03 03:02:20 -07:00
CNSS_WLAN Service
24db0e64d5 Merge "qcacld-3.0: cleanup NAN state upon NAN enable/disable timeout" into wlan-cld3.driver.lnx.2.0 2020-07-03 03:02:19 -07:00
nshrivas
153dc305d3 Release 5.2.0.192L
Release 5.2.0.192L

Change-Id: I3f4768b198e93c93d796ccca30d9534543133eac
CRs-Fixed: 774533
2020-07-02 22:32:21 -07:00
Jingxiang Ge
d462a88e53 qcacld-3.0: Access vdev by reference
adapter->vdev should never be referenced directly,
Using hdd_objmgr_get_vdev() and hdd_objmgr_put_vdev()
so that proper reference counting is enforced.

Change-Id: I3b9f82631659af8d27377308a14a6f1a83fc3a6d
CRs-Fixed: 2715220
2020-07-02 22:32:21 -07:00
Bapiraju Alla
8526c047b2 qcacld-3.0: Restore ps params after current modules being stopped
Currently for monitor mode, PS params are disabled during the start
modules and restored at the beginning of stop modules. This will
cause an issue when hdd_wlan_unregister_pm_qos_notifier is called
from stop modules with restored configuration.

To resolve this, restore ps configuration at the end of stop modules.

Change-Id: Ib9db4adf489a8e92cd95cdc547e3c91cc953f1b5
CRs-Fixed: 2720016
2020-07-02 18:23:26 -07:00
nshrivas
8e7ae6e06e Release 5.2.0.192K
Release 5.2.0.192K

Change-Id: Ia29fa4204e81ac1e977476233f7affe9d3600d6a
CRs-Fixed: 774533
2020-07-02 18:23:26 -07:00
Wu Gao
aa07f31e41 qcacld-3.0: Add change to check DRV support
Add change to check check DRV support by platform capability.

Change-Id: Ib0f245672fbba9655ce923dcaef8c4ae28bceff2
CRs-Fixed: 2722648
2020-07-02 18:23:22 -07:00
Abhishek Singh
97a9343767 qcacld-3.0: Avoid deleting peer on other vdev in case of duplicate MAC
In STA+SAP case if AP1 and STA1 have same MAC, and DUT's STA is
connected to AP1. Now when the STA1 tries to connect with DUT's SAP
peer with same mac is already present the add peer fails, but during
delete peer the DUT STA peer (AP1) is deleted instead of STA1 of
DUT's SAP. This leads to SAP deleting peer of a STA interface and
thus the SAP peer count is out of sync.

Fix is to reject any association req from STA1 if AP1 is connected
to DUT's STA. Also ad vdev check while deleting the peer in wma.

Change-Id: I448226497c7aa3c11cb9097be9c7d57eb4239900
CRs-Fixed: 2723814
2020-07-02 18:23:19 -07:00
Srinivas Dasari
2586d8f598 qcacld-3.0: cleanup NAN state upon NAN enable/disable timeout
Currently, driver sends NAN enable/disable request to firmware
and waits for the response. NAN state is cleaned up when NAN
disable indication is received. But if firmware doesn't respond to
NAN enable or disable request, a timeout happens and NAN state is
not cleaned up.
Cleanup the NAN state upon timeout for NAN enable/disable request.

Change-Id: Iadfff2b4d010407f04b529ff81b1ce1f11064695
CRs-Fixed: 2723094
2020-07-02 18:23:16 -07:00
nshrivas
6a0dabf3f8 Release 5.2.0.192K
Release 5.2.0.192K

Change-Id: I34a9c00d0cf4d9d86f7fcccb99bc251e57eda3dd
CRs-Fixed: 774533
2020-07-02 08:48:05 -07:00
Yue Ma
7554af3936 qcacld-3.0: Export if DRV is supported through platform capability
Add PLD_HAS_DRV_SUPPORT to platform capability to indicate if PCIe
DRV is supported or not.

Change-Id: I25dcba18b795988c4cdecd3f0c355de6786e0f3f
CRs-fixed: 2722430
2020-07-02 08:48:01 -07:00
nshrivas
834ea0b828 Release 5.2.0.192J
Release 5.2.0.192J

Change-Id: Id5639371445e91ed1ae7f8fdf4fe6b7e6a6a7570
CRs-Fixed: 774533
2020-07-02 05:55:35 -07:00
Utkarsh Bhatnagar
4537efa54b qcacld-3.0: Print tx_complete in assoc and auth complete cnf
print “tx_complete" values in lim_auth_tx_complete_cnf and
lim_assoc_tx_complete_cnf along with success/fail as well

Change-Id: I0fe60da725df0b90d2e0957877c53bc793826dc6
CRs-Fixed: 2722114
2020-07-02 05:55:34 -07:00
Manjunathappa Prakash
d269df54b3 qcacld-3.0: Reduce FSE cache invalidation messages
Current flow learning algorithm invalidates the cache for every time
flow is learnt. This results in multiple invalidation when there
multiple flows in quick succession of single NAPI soft IRQ processing.
FW has restriction on number simultaneous message processing.
Delay cache invalidation message so that single message serves multiple
flow learning.

Change-Id: Iee8cb5f12546890f2da32195dc3c4878e7a39ffd
CRs-Fixed: 2718968
2020-07-02 05:55:31 -07:00
nshrivas
9dae6a54c3 Release 5.2.0.192I
Release 5.2.0.192I

Change-Id: Ib1db6f13f5492bda1d753883af346b3b619668b8
CRs-Fixed: 774533
2020-07-01 18:06:13 -07:00
Abhishek Ambure
f9dc5f972f qcacld-3.0: Add basic rates if probe rsp don't have supported rates
Some IOT APs set supported rates to zero in probe response. Host uses
probe response/beacon to update scan cache. Host uses supported rates
from scan cache to update in assoc request.

As the supported rates in probe response are zeros, host doesn't
add supported rate IE in assoc request which leads to association
failure. Hence add BSS basic rates in assoc request if supported
rates in scan cache is not present.

Change-Id: Ie2d75a980f5aede0b7985ddf385516a6b15c7560
CRs-Fixed: 2706797
2020-07-01 18:06:13 -07:00
nshrivas
53f5280466 Release 5.2.0.192H
Release 5.2.0.192H

Change-Id: Idd2f5ea56743f7d0c3d2f9bd2b5a7ab52f45c2fa
CRs-Fixed: 774533
2020-07-01 07:50:45 -07:00