Commit Graph

14896 Commits

Author SHA1 Message Date
Jeff Johnson
c060ac40d5 qcacld-3.0: Use vdev_id in roam_scan_filter_params
Change I16679abc7b3b61e6814fc1b0f13c6bc0e0fb7a39 ("qcacmn: Replace
session_id in roam_scan_filter_params") is renaming the legacy
identifier session_id to vdev_id, so concurrently change the usage in
the legacy project.

Change-Id: Ibeab45d4badbeda6baec6a53ab4ec561dd70ccd9
CRs-Fixed: 2407403
2019-03-02 17:45:32 -08:00
nshrivas
ee31824934 Release 5.2.0.123B
Release 5.2.0.123B

Change-Id: I41b478c4b0c1fd86ffcabce3e5ff4cbe36ec7871
CRs-Fixed: 774533
2019-03-02 13:31:33 -08:00
Dustin Brown
c1d81af5c6 qcacld-3.0: Migrate driver transitions to osif_driver_sync
With the recent addition of osif_driver_sync APIs, DSC use is abstracted
behind a common interface. Migrate HDD to the new interface by updating
driver transitions to use the new APIs.

Change-Id: I394f007dd5485cd8d22aee84af74f8854ed54bb6
CRs-Fixed: 2408211
2019-03-02 13:31:32 -08:00
Dustin Brown
60c206456f qcacld-3.0: Add osif_driver_sync APIs
To bring OSIF driver synchronization in line with recent VDEV and PSOC
enhancements, add osif_driver_sync APIs. These allow for atomically
acquiring the driver synchronization context, and protecting various
call flows via DSC primitives.

Change-Id: Iba8df54bb1a3894118adf3daf1d0de8a554284ae
CRs-Fixed: 2408210
2019-03-02 13:31:26 -08:00
Dustin Brown
26afe8f73b qcacld-3.0: Move con_mode_handler
A previous change (Ibe982d1b52647b78dbcdbc2f9dcef609a6b2c02d) introduced
forward declarations in hdd_main.c. Move the relevant logic so as to
avoid needing these forward declarations.

Change-Id: I2bbd95a7eb51e8288eeb121923e9cecc7e238886
CRs-Fixed: 2408209
2019-03-02 13:31:21 -08:00
Dustin Brown
95ff00ba26 qcacld-3.0: Add con_mode_handler registration
A kernel module parameter's change callbacks can be invoked before the
module's init function has completed. In the Wlan driver, this leads to
a race window where the driver's mode can be modified before it is safe
to do so. Abstract the driver mode change logic behind a callback
registration mechanism that allows the driver to opt into handling the
driver mode change once it is safe.

Change-Id: Ibe982d1b52647b78dbcdbc2f9dcef609a6b2c02d
CRs-Fixed: 2408208
2019-03-02 13:31:15 -08:00
Pragaspathi Thilagaraj
ea50d7ec8f qcacld-3.0: Update erp seq num only for FILS connection
During roaming, the firmware updates the host driver without
the next erp sequence number. Currently the host driver updates
the erp sequence number in roam info without checking if the
connection is FILS connection. This results in potential NULL
pointer dereference in case of non FILS connection.

Add check to see if session->pCurRoamProfile->fils_con_info is
not NULL before updating the erp sequence number.

Change-Id: I96541528d179b2b895a3f7f581e073e04bce76af
CRs-Fixed: 2405492
2019-03-02 13:31:09 -08:00
Ajit Pal Singh
a70e315601 qcacld-3.0: Add config option for CFG_TGT_NUM_MSDU_DESC
Add driver config option for CFG_TGT_NUM_MSDU_DESC

Change-Id: I9c738de779d03819e6920e9d3e260ec3d1fbd524
CRs-Fixed: 2390958
2019-03-02 13:31:05 -08:00
nshrivas
893b1330c9 Release 5.2.0.123A
Release 5.2.0.123A

Change-Id: I96f0598f8ddd4cbf20d9514cfb693c324627f6d6
CRs-Fixed: 774533
2019-03-02 10:24:07 -08:00
Jeff Johnson
a6b398d25d qcacld-3.0: Remove wlan_hdd_validate_session_id()
Previously I06f948d8de4b8a98bfe66e18ae38b1040204fdb4 ("qcacld-3.0:
Replace wlan_hdd_validate_session_id()") replaced all instances of
wlan_hdd_validate_session_id() with wlan_hdd_validate_vdev_id().
However this change left behind the wlan_hdd_validate_session_id()
macro. Subsequently I7584fb5db036d1643bd7d56076d30a0c75008a98
("qcacld-3.0: Handle OWE info update from hostapd") added a new
instance of invoking wlan_hdd_validate_session_id(). So rename the new
instance, and remove the macro to prevent the addition of any future
instances.

Change-Id: I132a749d2f694b44296a44f2aa31e9aec5f0878f
CRs-Fixed: 2408166
2019-03-02 10:24:06 -08:00
nshrivas
32470ff17f Release 5.2.0.123
Release 5.2.0.123

Change-Id: Id0092a7f650a328fbae9e6b3cfcfffc9ae68f3fe
CRs-Fixed: 774533
2019-03-02 08:58:33 -08:00
Alok Kumar
3e9c713f2e qcacld-3.0: Check possible OOB while strncmp
In hdd_tx_rx_is_dns_domain_name_match, during strncmp for
domain_name and dns_payload there may be possibility to access
data more than skb->len if track_dns_domain_len is corrupted.

Add a check to verify if track_dns_domain_len during strncmp
is within skb->len to avoid OOB.

Change-Id: If936272a1b57c9239d4817e99d8bebdbc120fd20
CRs-Fixed: 2368165
2019-03-02 08:58:33 -08:00
nshrivas
97cf7821e6 Release 5.2.0.122Z
Release 5.2.0.122Z

Change-Id: I61bf01edb20bd690ff6c5c1194ad7feddd58fef1
CRs-Fixed: 774533
2019-03-02 05:12:43 -08:00
Bala Venkatesh
2ee149738c qcacld-3.0: Remove vdev chk_frame structure
Chk frame member of the tdls_mgmt_req is declared locally inside of
the local function wlan_cfg80211_tdls_mgmt and address is copied
in the mgmt request, and posted to scheduler thread.
But, the validity of the chk frame variable is lost once returned
from the wlan_cfg80211_tdls_mgmt function. And the chk_frame
is used when processing the tdls_mgmt_req in scheduler thread.
And the stale data of chk_frame can be used.

Hence, make the chk_frame as a variable instead pointer inside
tdls_action_frame_request request.

Change-Id: Ib2a8a81e8f6db5550b1d0abee31d9f7ea5dacd9b
CRs-Fixed: 2402124
2019-03-02 05:12:42 -08:00
nshrivas
373f731a6b Release 5.2.0.122Y
Release 5.2.0.122Y

Change-Id: Ie3cc126bfb773b5c4626f4b69bd91a93769ff9c3
CRs-Fixed: 774533
2019-03-02 02:20:15 -08:00
Abhinav Kumar
d69cb5e391 qcacld-3.0: Print a timestamp for each roam scan
Write timestamp for each roam scan to roam stats
buffer.

Change-Id: I2710d40bd013e258a4f2d5dc635b0ad8429e69fc
CRs-Fixed: 2407092
2019-03-02 02:20:14 -08:00
nshrivas
fd1b9a9ad1 Release 5.2.0.122X
Release 5.2.0.122X

Change-Id: I67609010d410ecca41d83212a9f833c245f9e746
CRs-Fixed: 774533
2019-03-01 23:39:05 -08:00
Harprit Chhabada
e40b310cd3 qcacld-3.0: Remove unused LIM_MLM_REASSOC_REQ
Remove message LIM_MLM_REASSOC_REQ. lim_post_mlm_message is calling
the API lim_process_mlm_req_messages and not posting.
So, in the Ieefbcf0a28867be3c8a86d9a912143857c54fe06
LIM_MLM_REASSOC_REQ is replaced by directly calling the API.

Change-Id: Id8c4460058ebca7e12daa1a60afaa578b8aa5cc2
CRs-Fixed: 2396477
2019-03-01 23:39:04 -08:00
nshrivas
dbddc3de44 Release 5.2.0.122W
Release 5.2.0.122W

Change-Id: I69f4c31c3640a17000f2537cd0252cfc967915eb
CRs-Fixed: 774533
2019-03-01 19:19:22 -08:00
Jeff Johnson
6c252a931c qcacld-3.0: Remove transactionId from pe_session
The transactionId in struct pe_session is unused, so remove it.

Change-Id: I41e603b9e2a5b4aa29df1e84046004c982425efb
CRs-Fixed: 2406620
2019-03-01 19:19:21 -08:00
nshrivas
027cf889b3 Release 5.2.0.122V
Release 5.2.0.122V

Change-Id: If620103521e23e18028ecb5d375d4c2ef9060972
CRs-Fixed: 774533
2019-03-01 16:37:14 -08:00
Dustin Brown
bda9e548c0 qcacld-3.0: Integrate DSC (pld)
As part of DSC integration, replace remaining cds_ssr_protect/unprotect
with appropriate osif_sync op start/stop calls in PLD callback handlers.

Change-Id: I60c5b41635a861f1e7cbf7e2f14a33d1d95a7bea
CRs-Fixed: 2406534
2019-03-01 16:37:13 -08:00
Jeff Johnson
57a641a290 qcacld-3.0: Remove transactionId from csr_roamstruct
The transactionId in struct csr_roamstruct is unused, so remove it.

Change-Id: I28b226555bbaf8dd27c41f729a10417ac7a5adea
CRs-Fixed: 2406619
2019-03-01 16:37:08 -08:00
Jeff Johnson
f227cfacc0 qcacld-3.0: Refine csr_send_assoc_ind_to_upper_layer_cnf_msg()
Function csr_send_assoc_ind_to_upper_layer_cnf_msg() currently uses a
combination of direct structure writes and serialized buffer writes to
fill the eWNI_SME_UPPER_LAYER_ASSOC_CNF message. Bring this logic up
to date by removing all serialized buffer writes and exclusively use
direct structure writes. In the process rename all function params and
local variables to be compliant with the coding style.

Change-Id: Ib9a986bcb1928b7d586a820521a72879f780be57
CRs-Fixed: 2406618
2019-03-01 16:37:03 -08:00
nshrivas
6bfa1ca25e Release 5.2.0.122U
Release 5.2.0.122U

Change-Id: I1247b79df08f070f1b49ac8def9df12a698e189d
CRs-Fixed: 774533
2019-03-01 13:57:14 -08:00
Jeff Johnson
4c2837fe92 qcacld-3.0: Fix NULL memcpy in STA keepalive handler
Change I20cf9f54a7ec920a90575ffd73c51708414d46a0 ("qcacld-3.0: Use the
redesigned STA keepalive interface") updated the manner in which STA
keepalive parameters are passed to WMI. Unfortunately that change
introduced three instances of qdf_mem_copy() where the source pointer
may be NULL, so update that logic to test for NULL before performing
the copy. In each case the destination buffer will remain zeroed if
the source pointer is NULL.

Change-Id: I24aaad82bb73dba37297ac17b21f758da16617b4
CRs-Fixed: 2407449
2019-03-01 13:57:13 -08:00
nshrivas
cca51057a9 Release 5.2.0.122T
Release 5.2.0.122T

Change-Id: Ie3a5b9ddf2adcee7bcd29d199173f80369bc1850
CRs-Fixed: 774533
2019-03-01 09:23:54 -08:00
Jianmin Zhu
462ab8693f qcacld-3.0: Fix assert when iwpriv wlan0 addTspec
If ACM is off and can't send AddTspec too, we should
be still ok to send uapsd info to AP via reassoc req.

If roam offload is enabled, when csr_reassoc is called, vdev
start cmd is sent during vdev started status, assert will happen.

Fix: call sme_fast_reassoc in sme_qos_request_reassoc to invoke
LFR3 roam if roam offload supported.

Reproduce steps:
1. Change ini: gAddTSWhenACMIsOff=0
2. DUT STA connected AP
3. iwpriv wlan0 addTspec 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Change-Id: Idbd53ff0af36cb3b68c514e399d0033c41c74a78
CRs-Fixed: 2402542
2019-03-01 09:23:53 -08:00
Qun Zhang
ef65562bcd qcacld-3.0: Support firmware state check through cfg80211 vendor cmd
Add the support to allow user space applications through cfg80211
vendor command to check if wlan firmware is alive or not.

Change-Id: I96bb16e01974f7689493577741a36e3832963996
CRs-Fixed: 2399508
2019-03-01 09:23:49 -08:00
nshrivas
635650c972 Release 5.2.0.122S
Release 5.2.0.122S

Change-Id: Ide9853da3b99d2c35ba73663ee54c8eaefcf8020
CRs-Fixed: 774533
2019-02-28 23:21:02 -08:00
Jeff Johnson
259f3e9ab0 qcacld-3.0: Rename HDD variable pRmcEnable
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pRmcEnable to be
compliant.

Change-Id: Id5c57e4c2bb01415d2315ad0043105fed16a6bcc
CRs-Fixed: 2405772
2019-02-28 23:21:01 -08:00
Jeff Johnson
8ff3ffe382 qcacld-3.0: Rename HDD variable targetApBssid
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable targetApBssid to be
compliant.

Change-Id: I49f3480e3ab40f1a582cef8cbf4164b7a76d926b
CRs-Fixed: 2405771
2019-02-28 23:20:54 -08:00
Jeff Johnson
264e2d3a59 qcacld-3.0: Rename HDD variable cckmIe
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable cckmIe to be
compliant.

Change-Id: Ic02fa6f44f859543905213e67ef7e1d0a08f619b
CRs-Fixed: 2405770
2019-02-28 23:20:46 -08:00
Jeff Johnson
b9eeef3209 qcacld-3.0: Rename HDD variable cckmIeLen
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable cckmIeLen to be
compliant.

Change-Id: Idcc7bf6cbd65b2c68942ab163e73b6c94691b8c0
CRs-Fixed: 2405769
2019-02-28 23:20:39 -08:00
Jeff Johnson
64c01b14ca qcacld-3.0: Rename HDD variable pCckmIe
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pCckmIe to be
compliant.

Change-Id: I93e0dae41ee2346c20da21f5f134daebb0bfe1bc
CRs-Fixed: 2405768
2019-02-28 23:20:31 -08:00
Jeff Johnson
ecbb79fb78 qcacld-3.0: Rename HDD variable pCckmIeLen
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pCckmIeLen to be
compliant.

Change-Id: Iaff516cbe9b5b34d3f2949cd077f81797374873f
CRs-Fixed: 2405767
2019-02-28 23:20:24 -08:00
Jeff Johnson
93f47cf5a5 qcacld-3.0: Rename HDD variable pTxPower
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pTxPower to be
compliant.

Change-Id: Iff5671598d611a1d25685a2ef916141413e731e4
CRs-Fixed: 2405766
2019-02-28 23:20:16 -08:00
Jeff Johnson
4fab64d31a qcacld-3.0: Rename HDD variable cmdPtr
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable cmdPtr to be
compliant.

Change-Id: I271d6056adc193a596566f4bd50a7e53fdf9bc10
CRs-Fixed: 2405765
2019-02-28 23:20:10 -08:00
Jeff Johnson
4ff36b2919 qcacld-3.0: Rename HDD variable inPtr
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable inPtr to be
compliant.

Change-Id: Ib5c6ed64f41f6f1eea9cc3c8241c941b18565372
CRs-Fixed: 2405764
2019-02-28 23:20:04 -08:00
Jeff Johnson
64ba9afb7a qcacld-3.0: Rename HDD variable pPeerMacAddr
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pPeerMacAddr to be
compliant.

Change-Id: Ifa0d639c2346ace4fced4420934f47f07352c8b0
CRs-Fixed: 2405763
2019-02-28 23:19:56 -08:00
Jeff Johnson
091cbb7e6c qcacld-3.0: Rename HDD variable pChannelList
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pChannelList to be
compliant.

Change-Id: I865feb3294644a6c6d8342fef1baeda5d080da10
CRs-Fixed: 2405762
2019-02-28 23:19:51 -08:00
Jeff Johnson
d727cdcf8e qcacld-3.0: Rename HDD variable pChannel
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pChannel to be
compliant.

Change-Id: I8dcb09f5629880694d6446d3944d4584aa57f1bb
CRs-Fixed: 2405761
2019-02-28 23:19:45 -08:00
Jeff Johnson
b7d52797cb qcacld-3.0: Rename HDD variable pTargetApBssid
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pTargetApBssid to be
compliant.

Change-Id: I976939bf9093d3f5a1bdd523090cc659cd15864a
CRs-Fixed: 2405760
2019-02-28 23:19:40 -08:00
Jeff Johnson
80d220abdd qcacld-3.0: Rename HDD variable pDwellTime
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pDwellTime to be
compliant.

Change-Id: Ifad1ba3569292b22b4f974a6e0685ce4462d4e70
CRs-Fixed: 2405759
2019-02-28 23:19:34 -08:00
Jeff Johnson
b2c3d04b6b qcacld-3.0: Rename pEseBcnReq
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pEseBcnReq (used by both HDD and SME) to
be compliant.

Change-Id: I377e1c4ff65bafeba403aa87a6542891f03bb2ba
CRs-Fixed: 2405758
2019-02-28 23:19:24 -08:00
Jeff Johnson
a0b6c3c0f3 qcacld-3.0: Rename HDD variable pPlmRequest
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pPlmRequest to be
compliant.

Change-Id: If4f3eaca226356eb120f13ff1d280ab8af38add4
CRs-Fixed: 2405757
2019-02-28 23:19:17 -08:00
Jeff Johnson
269d7fbe8e qcacld-3.0: Rename HDD variables pTxFlags and txFlags
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variables pTxFlags and txFlags
to be compliant.

Change-Id: I737a9477958858cd3310b9c6104172fbe6340249
CRs-Fixed: 2405756
2019-02-28 23:19:12 -08:00
nshrivas
bc6aafa709 Release 5.2.0.122R
Release 5.2.0.122R

Change-Id: I6018acd9b5a1deb7992d3fc05bb2240398db86ed
CRs-Fixed: 774533
2019-02-28 18:35:38 -08:00
Bala Venkatesh
448e8cd53e qcacld-3.0: Move the INI gSkipDfsChannelInP2pSearch to scan component
Currently, INI gSkipDfsChannelInP2pSearch is initialized in P2P
component and later copied to scan component for usage.
Since this INI is only used by scan component and not the P2P
component, move the initialization part also to the scan
component.

Change-Id: I44a6208ab5f3ee062073550143e23e5800342376
CRs-Fixed: 2405395
2019-02-28 18:35:37 -08:00
Jingxiang Ge
f95dc4df29 qcacld-3.0: Add mutex to protect rssi_disallow_bssid list
rssi_disallow_bssid could be accessed from different thread,
mutex protection is added to avoid node invalid access when
node has been deleted or updated.

Change-Id: I2b19d48f19a3da55030384f26c501aee283801c7
CRs-Fixed: 2405157
2019-02-28 18:35:32 -08:00