Commit Graph

16896 Commits

Author SHA1 Message Date
Rajeev Kumar Sirasanagandla
c64548c8a8 qcacld-3.0: Remove policy mgr entry after NDI delete
In the host driver, after receiving NDP END INDICATIONs for all NDP
connections then policy manager deletes NDI mode from
pm_conc_connection_list.

From user-space application, if NDP END REQUEST and NDI DELETE request
are issued back to back without waiting for NDP END indication, then
firmware could process NDI DELETE command firstly and avoid NDP END
indication due to peer delete as a part of NDI delete.

If vendor command NDI delete request is issued without receiving
NDP_END_INDICATIONs for all active NDP peers then pm_conc_connection_list
contains stale entry of PM_NDI_MODE associated with deleted NDI.

Stale NDI entry in pm_conc_connection_list is the cause for failure of
get_second_connection_pcl_table_index() for PM_NAN_DISC_MODE, therefore
further NAN enable requests are rejected.

To address this issue, cleanup PM_NDI_MODE from pm_conc_connection_list
as a part of NDI delete.

Change-Id: Ic1535420b60224cc426b24e22fe7486781fd2fa6
CRs-Fixed: 2519625
2019-09-13 21:44:07 -07:00
nshrivas
650ff17271 Release 5.2.0.147S
Release 5.2.0.147S

Change-Id: I6e9f84fbe6e6d222844f11d339d3bbafc97d19e5
CRs-Fixed: 774533
2019-09-13 20:21:38 -07:00
Jianmin Zhu
e224e5f3bd qcacld-3.0: Populate vdev mlme with vdev start req
Populate vdev mlme obj and dest chain with vdev start req for
vdev_mgr_start_send.
Remove vdev_start_params from wma_vdev_start.
Remove vdev_mgr_start_param_populate.

Change-Id: I8606441341344fbcd181facf4000942ff94ac00d
CRs-Fixed: 2516590
2019-09-13 20:21:38 -07:00
nshrivas
a0d59eb95f Release 5.2.0.147R
Release 5.2.0.147R

Change-Id: I7805e354b217c48002546121305aa06578cf6fac
CRs-Fixed: 774533
2019-09-13 18:54:16 -07:00
Tushnim Bhattacharyya
bb1285966a qcacld-3.0: Do not enable AMSDU Rx in ADD BA session for 2.4Ghz
Do not enable AMSDU Rx by advertising advertises AMSDUSUPPPORTED=0
in ADD_BA response if the connection is on 2.4Ghz.

Change-Id: I1c61ce9f3824a600fbd5123680b7d00ae7659438
CRs-Fixed: 2519746
2019-09-13 18:54:16 -07:00
Varuneshwar Petlozu
3a18e850f6 qcacld-3.0: Add VHT capability in the wiphy for 2.4ghz
Currently the driver is not included the VHT capability
on 2.4ghz band if gEnableVhtFor24GHzBand ini is enabled.
As a result the driver is not advertising the VHT support
on 2.4ghz band in wiphy per band info even gEnableVhtFor24GHzBand
ini is enabled.

To resolve this, add VHT capability in the wiphy for 2.4ghz

Change-Id: If36b0ad9bf546e54542485637a99c1ee82b1850e
CRs-Fixed: 2495337
2019-09-13 18:54:11 -07:00
nshrivas
85f95ef6d7 Release 5.2.0.147Q
Release 5.2.0.147Q

Change-Id: I8022bdca1fc9bdfb48a5dc6da6740d8ab92cbd8d
CRs-Fixed: 774533
2019-09-13 17:36:59 -07:00
Alok Kumar
689469268f qcacld-3.0: Add Feature Flag to record Rx paddr in CE History
Add Feature Flag HIF_RECORD_RX_PADDR for Helium to record
paddr in CE descriptor history.

Change-Id: I5a6af11fecc00a26d1a334a983290a00be34895c
CRs-Fixed: 2525667
2019-09-13 17:36:58 -07:00
nshrivas
2261c639e3 Release 5.2.0.147P
Release 5.2.0.147P

Change-Id: I3b139a15f4052e46ea17061261e2539997ab5461
CRs-Fixed: 774533
2019-09-13 05:57:21 -07:00
Bala Venkatesh
540dca4c31 qcacld-3.0: Remove connected peer count check to reset the tdls peers
Currently, in function tdls_process_reset_all_peers before checking
the tdls peer state connected peer count is checked and if is zero
then returned without checking the peer id. If peer is created
but the peer count is not increased then TDLS component will not
notify to delete the peer and this can lead to subsequent add peer
denials.

Change-Id: I2fd1d6945eb9dca478f11cd05ba0ee4a9ed007ea
CRs-Fixed: 2524442
2019-09-13 05:57:20 -07:00
nshrivas
bbeb655bc8 Release 5.2.0.147O
Release 5.2.0.147O

Change-Id: I68447dd1788e13cf9659e82d595e34bd4eaea17c
CRs-Fixed: 774533
2019-09-13 04:33:17 -07:00
gaurank kathpalia
88f78ec8d8 qcacld-3.0: Change chan to freq in csr structures
Change chan to freq in csr structures for 6ghz

Change-Id: I6dc962175d95b202e647f55cfcb1f3d849fef6e2
CRs-Fixed: 2522212
2019-09-13 04:33:17 -07:00
Abhishek Singh
7a4d17a2de qcacld-3.0: Fix Vdev start failure handling in SAP and STA
Vdev start failure handling in SAP and STA and not handled
properly and thus VDEV SM doesn't move to INIT state and
lead to asserts.

Change-Id: I5ea09f9c6e84a2e1c7f9254319aaa1a11e2f97e8
CRs-Fixed: 2526179
2019-09-12 20:23:57 -07:00
nshrivas
c5d794568c Release 5.2.0.147N
Release 5.2.0.147N

Change-Id: I5615164754931657bd05b4078a79303b422e55ab
CRs-Fixed: 774533
2019-09-12 19:12:53 -07:00
Jianmin Zhu
9ab41552f9 qcacld-3.0: Fix host/target hirssi_upper_bound mismatch
On HST,  service bit wmi_service_hw_db2dbm_support is set, need
send target hirssi_upper_bound as RSSI format instead of SNR.

Change-Id: Ie9029e9c26f84456722ca2864a28c7ba3a2be52d
CRs-Fixed: 2485833
2019-09-12 19:12:52 -07:00
nshrivas
d49808d753 Release 5.2.0.147M
Release 5.2.0.147M

Change-Id: I0f59d9a46afaa8ac7be76046cea743af008f0123
CRs-Fixed: 774533
2019-09-12 08:43:05 -07:00
Liangwei Dong
e0f0e6cc54 qcacld-3.0: Disallow SAP+SAP+STA on same MAC
For DBS HW, reject STA or SAP connection if
result to SAP+SAP and STA active on same mac.
SAP+SAP+SAP SCC is still allowed.

Change-Id: If30cf58d2b16fc3ff4dfff4f75d7eeaa51786cad
CRs-Fixed: 2498837
2019-09-12 08:43:04 -07:00
nshrivas
403e4fee99 Release 5.2.0.147L
Release 5.2.0.147L

Change-Id: I2fe357f7c58ddccb4114c01bb2148ed0073a5f22
CRs-Fixed: 774533
2019-09-12 07:30:14 -07:00
Li Feng
9a7ee6c492 qcacld-3.0: Assign third octet of country string field
Assign third octet of country string field as 0x04 to support MBO AP.

Change-Id: I639d713e05c9408915071d233bfd433d98606aff
CRs-Fixed: 2518536
2019-09-12 07:30:13 -07:00
nshrivas
62f9b196c7 Release 5.2.0.147K
Release 5.2.0.147K

Change-Id: Idf4ded050541fba9c260c9e2bfb43545897eb1e7
CRs-Fixed: 774533
2019-09-12 06:23:02 -07:00
Ajit Pal Singh
9c098859c1 qcacld-3.0: usb: Enable WLAN_FEATURE_WOW_PULSE for OOB
Enable WLAN_FEATURE_WOW_PULSE for OOB wakeup support

Change-Id: I788d60a62a979a6bcbb775d2153fcf5cfa90c426
CRs-Fixed: 2524631
2019-09-12 06:23:01 -07:00
nshrivas
5f3a9a84e3 Release 5.2.0.147J
Release 5.2.0.147J

Change-Id: I53c95a92b07ffb87797f9c2a2bb36b844ad45749
CRs-Fixed: 774533
2019-09-12 05:06:21 -07:00
Rakesh Pillai
70f1f541cb qcacld-3.0: Reduce loglevel for stats from timer context
Printing the tx queue stats on to the console in
the timer context causes a watchdog bark due to
excessive logging.

Reduce the log level for the stats dumping
from timer context.

CRs-Fixed: 2522067
Change-Id: Ic8162fabf552f6e5103427298229385d68dbbfbb
2019-09-12 05:06:21 -07:00
nshrivas
cb9e048af0 Release 5.2.0.147I
Release 5.2.0.147I

Change-Id: I9bfbc740bba809df21a0561d59d9680c5f10d529
CRs-Fixed: 774533
2019-09-12 01:46:10 -07:00
Kiran Kumar Lokere
e54ed6cdeb qcacld-3.0: Rename the vendor IE attributes
Rename the vendor IE attributes.

Change-Id: I952578efe9e23552eb57e9a902cc22641b6d7656
CRs-Fixed: 2525188
2019-09-12 01:46:10 -07:00
Alan Chen
35cb57c797 qcacld-3.0: Perform timing profiling after validating hdd_ctx
Pointer hdd_ctx returned from the call to function cds_get_context may be
NULL and will be dereferenced. Move the recording of timing of runtime
PM operations to after validation of hdd_ctx.

Change-Id: I5da02c3fdb695be25bf0b59f4fe33e599e751d03
CRs-Fixed: 2524971
2019-09-12 01:46:05 -07:00
nshrivas
4036af67cb Release 5.2.0.147H
Release 5.2.0.147H

Change-Id: I67090699d5d9332f0e13bfefebd9ab5127439372
CRs-Fixed: 774533
2019-09-11 01:32:48 -07:00
gaurank kathpalia
e5724cc36e qcacld-3.0: Prevent wlan suspend if conn in progress
Currently the driver does not check if the state
is key exchange in progress and suspends wlan
before set-key happens which further results in
FW also in wake up state.
This would result in delayed EAP exchange, and also
in power loss.

Scenario:-
1. Turn on STA and try to connect to enterprise network
2. Turn off display.

Here the display turn off would trigger APPS suspend
while the STA is trying to connect, and authenticate
and since there is no check in driver to prevent
suspend in set key in progress state, it would result
in a FW assert, as the expectation of FW is to allow
suspend only after set key has been done.

Fix is to prevent WLAN-suspend in case of connection
in progress, and allow suspend only in connected
and authenticated state.

Change-Id: Ic173116f7ba424005d938a43c75831a6a4dc874c
CRs-Fixed: 2512866
2019-09-11 01:32:48 -07:00
Tiger Yu
bf14ba81a9 qcacld-3.0: Add protection for type_specific_data in ath_pktlog_hdr
The member of type_specific_data is not valid for ROME module. Add macro
protection for type_specific_data in the ath_pktlog_hdr to avoid offset
error when getting the msdu id info during  processing pktlog TX info.

Change-Id: Icb8b95cef9a32732116522e4fc3b39067ff36037
CRs-Fixed: 2522277
2019-09-11 01:32:44 -07:00
nshrivas
ac2b175b9b Release 5.2.0.147G
Release 5.2.0.147G

Change-Id: I7b6f2873a28eef956d2fc531265b2a750bc5e24d
CRs-Fixed: 774533
2019-09-10 12:22:53 -07:00
Alok Kumar
cdf1205941 qcacld-3.0: Fix buffer overflow in HTT MSG handling
If the firmware gets compromised, the values sent to
the driver could result in buffer overflows.

Validate HTT MSG "msg_word" to avoid buffer overflows.

Change-Id: I6073029f61a358da32bcc0dcfc339d9bb7ee8218
CRs-Fixed: 2213659
2019-09-10 12:22:52 -07:00
nshrivas
1a3e558678 Release 5.2.0.147F
Release 5.2.0.147F

Change-Id: I6a3fbcbd345ce8e3b663eadbf10b4ebaa1dd04b9
CRs-Fixed: 774533
2019-09-10 06:30:19 -07:00
Rakshith Suresh Patkar
a8405f50dd qcacld-3.0: Init mic work for QDF_FTM_MODE
Initialize mic work for QDF_FTM_MODE in
hdd_open_adapter to avoid touching uninitialized
lock in hdd_mic_flush_work as part of hdd_stop_adapter.

Change-Id: I280de93b2408acba4da363ecd292f811f6301d31
CRs-Fixed: 2523654
2019-09-10 06:30:18 -07:00
nshrivas
73a04e7d46 Release 5.2.0.147E
Release 5.2.0.147E

Change-Id: I90b3409d644b91159d8ea1bd263683b3e4bc1c9a
CRs-Fixed: 774533
2019-09-10 01:02:50 -07:00
Qun Zhang
1b3c85c2eb qcacld-3.0: Add INI to configure SIFS burst mode
To pass WFA 11N 4.2.25 case, it's needed to enable legacy mode
SIFS burst. So add INI to make SIFS burst mode configurable.

Change-Id: I740fe33a7ae0d9b558aa3b3aeee434f482ed24cb
CRs-Fixed: 2486171
2019-09-10 01:02:49 -07:00
Jianmin Zhu
9772c4a321 qcacld-3.0: Refactor sta add bss in wma and lim
Devide wma_add_bss_sta_mode into 4 functions for 4 cases:
1. wma_pre_assoc_req, called before sta assoc, config vdev
params.
2. wma_send_peer_assoc_req, called after sta associated, send
peer assoc cmd to F/W.
3. LFR3 add bss
4. LFR2 add bss and vdev start

Lim will call these functions directly instead of post msg to
wma.

Replace lim_set_link_state with wma_add_bss_peer_sta to create
peer for LFR2 roaming.

Clean up all link state usless code now.

Change-Id: I6ad19bb92e7b0334704ac9c930277e9c35abbee2
CRs-Fixed: 2510119
2019-09-10 01:02:43 -07:00
nshrivas
161ac8e19a Release 5.2.0.147D
Release 5.2.0.147D

Change-Id: I993afcff62d44ba94960111eb8f66209975786df
CRs-Fixed: 774533
2019-09-09 05:35:28 -07:00
Yu Wang
8cf2c24edb qcacld-3.0: hide temp dirs generated during compilation
To build multiple ko files, android build system will
generate some temporary dirs, names of wihch are started
with '~'.
Replace these '~' with '.' to hide the temporary dirs.

CRs-Fixed: 2522153
Change-Id: Ic2606afee07c068803fd9b0446d20851e1e06e03
2019-09-09 05:35:28 -07:00
Yu Wang
baff800e4d qcacld-3.0: add support for wlan config override
Introduce a new Kbuild option 'WLAN_CFG_OVERRIDE' to override
wlan configurations.
Value of this option is a list, which includes the config items
those need to override, its pattern is as below:
WLAN_CFG_OVERRIDE="WLAN_CFG_1=n WLAN_CFG_2=y WLAN_CFG_3=n"

For LA build, it makes use of this Kbuild option, and introduces
new android build options for different products:
  WLAN_CFG_OVERRIDE_wlan: for single wlan driver case.
  WLAN_CFG_OVERRIDE_<chip>: for multiple wlan drivers case, for
    example WLAN_CFG_OVERRIDE_qca6390 and WLAN_CFG_OVERRIDE_qca6174.

Change-Id: I8e062c62d36e076a79032a47aa04501d4543a9c8
CRs-Fixed: 2515905
2019-09-09 05:35:22 -07:00
Bala Venkatesh
235615809c qcacld-3.0: Reset the connection_in_progress flag in case of SSR
Currently, the connection_in_progress flag in hdd_ctx is not reset
as part of SSR this can lead to scan reject after SSR.

Change-Id: Icc7889eb3140f02dd100d05e812d5573ebcae63c
CRs-Fixed: 2516937
2019-09-09 05:35:17 -07:00
Jianmin Zhu
dd405695cd qcacld-3.0: Switch to target if vdev up
Switch legacy vdev up to vdev mgr/target if vdev up

Remove wakelock since it is handled in target if.
Clean up legacy vdev up API.

Change-Id: I125b202e9a18ee3bf279fe4df7bc17b9ec7bf999
CRs-Fixed: 2516586
2019-09-09 05:35:11 -07:00
nshrivas
4c16e61fea Release 5.2.0.147C
Release 5.2.0.147C

Change-Id: I33f1b4413f3740418f8a17909666e4ceb299db53
CRs-Fixed: 774533
2019-09-08 07:37:21 -07:00
Visweswara Tanuku
2e839e540c qcacld-3.0: Genoa: SDIO: Handle Tx Padding & Credits
In Genoa SDIO ADMA implementation Host sends packets to FW in
multiples of SDIO Block size.
If the packet/bundle is not block aligned Host adds padding at the
end of Packet/Bundle.

If the TX packet plus padding exceeds one FW TX Buffer, Padding data
will occupy the next FW TX buffer. Same applies for bundle TX packet.

For above scenario, HTC_FLAGS_PADDING_CHECK of HTC header Flags is used
to notify the FW that - Padding data follows the currentHTC packet

Since the padding data will take one extra FW Tx Buffer, host need to
handle the extra Tx credit being used by the padding data/buffer

CRs-Fixed: 2516619
Change-Id: Ie2d2292fabb30e1a13eebe4d11b57f452e42afa8
2019-09-08 07:37:21 -07:00
nshrivas
82415b1dcf Release 5.2.0.147B
Release 5.2.0.147B

Change-Id: I1c2bb21e1e1a53bf6908c01874309487c285dd77
CRs-Fixed: 774533
2019-09-08 02:24:10 -07:00
Abhishek Singh
989f8b8709 qcacld-3.0: Remove unused members of struct wma_txrx_node
Some struct wma_txrx_node members are not used so remove them.

Change-Id: I900a0898e448dfc363aad1d157de74557bb982f6
CRs-Fixed: 2523105
2019-09-08 02:24:09 -07:00
nshrivas
f71b03c282 Release 5.2.0.147A
Release 5.2.0.147A

Change-Id: Iae2c02885aa628c209bc948b69a1d63482b20a36
CRs-Fixed: 774533
2019-09-08 01:07:24 -07:00
Yu Ouyang
228afe9d1d qcacld-3.0: Fix ANI_AKM_TYPE_SAE undeclared issue
ANI_AKM_TYPE_SAE is defined only when WLAN_FEATURE_SAE defined.
But it is used without any checking in function lim_check_wpa_rsn_ie().
If WLAN_FEATURE_SAE is disabled, build error will occur.

It is easy to fix it to add '#ifdef WLAN_FEATURE_SAE' in function
lim_check_wpa_rsn_ie(). But coding rule, '#ifdef WLAN_FEATURE_SAE' isn't
allowed to occur in function. So, move '(*akm_type == ANI_AKM_TYPE_SAE)'
to function lim_check_sae_pmf_cap().

Change-Id: Id62bc69d770dbd4e470d8fa379b4cb3f7447d9dc
CRs-Fixed: 2508071
2019-09-08 01:07:24 -07:00
nshrivas
a1cf7896bf Release 5.2.0.147
Release 5.2.0.147

Change-Id: Id92f94cd67b60309fbb7fa25b22778b52a0301c0
CRs-Fixed: 774533
2019-09-07 23:44:35 -07:00
Jayachandran Sreekumaran
8785e2504b qcacld-3.0: Add sdio support for pld update status
Add pld update status api support for sdio

Change-Id: Id96bf8346989dfb2100bff7bd508a499570d2015
CRs-Fixed: 2512562
2019-09-07 23:44:34 -07:00
nshrivas
9a2e6e3c87 Release 5.2.0.146Z
Release 5.2.0.146Z

Change-Id: I9bb6abf7c76057d3cfd23ccc052e0c66b6d620fd
CRs-Fixed: 774533
2019-09-07 12:28:55 -07:00