Commit Graph

4679 Commits

Author SHA1 Message Date
Jeff Johnson
76e335b13b qcacld-3.0: Refine hdd_parse_user_params()
Currently hdd_parse_user_params() has a few places where it is not
compliant with the Linux coding style, so refine the code.

Change-Id: Ic18e1dfd82e4a8d820fb871801ead464bc146d04
CRs-Fixed: 2407327
2019-03-02 21:47:47 -08:00
Jeff Johnson
aae00aed24 qcacld-3.0: Rename HDD variable dataEnd
The Linux Coding Style frowns upon mixed-case names so rename HDD
local variable dataEnd to be compliant.

Change-Id: If3f44f677eb14849b0935463f7fa0d05565028b3
CRs-Fixed: 2407326
2019-03-02 21:47:44 -08:00
Jeff Johnson
5f3a612bab qcacld-3.0: Rename HDD variable pBuf
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pBuf to be compliant.

Change-Id: Ie24b53fc3efaa8d0940a369a97ebec4ed434457e
CRs-Fixed: 2407325
2019-03-02 21:47:39 -08:00
Jeff Johnson
103f67ac66 qcacld-3.0: Rename HDD variable pBufLen
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pBufLen to be
compliant.

Change-Id: Id9031a9bda31d838f0fd095dcda6ad1a00685f84
CRs-Fixed: 2407324
2019-03-02 21:47:35 -08:00
Jeff Johnson
2370b85ea4 qcacld-3.0: Rename HDD variable rateUpdateParams
The Linux Coding Style frowns upon mixed-case names so rename HDD
local variable rateUpdateParams to be compliant.

Change-Id: Ie46a322046ce864d9c6dcfcb5057e92d99c6a570
CRs-Fixed: 2407323
2019-03-02 21:47:31 -08:00
Jeff Johnson
2a854d565e qcacld-3.0: Remove pConfig from wlan_hdd_set_mc_rate()
As a result of configuration convergence the local variable pConfig in
wlan_hdd_set_mc_rate() is assigned but never dereferenced. Since this
is obsolete, remove it.

Change-Id: I8f23fe4ce89a0946e9a3a307fa8451646f0c76d6
CRs-Fixed: 2405775
2019-03-02 21:47:28 -08:00
Jeff Johnson
b9f9b2801c qcacld-3.0: Rename HDD variable pRate
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pRate to be
compliant.

Change-Id: Ib17924063a07ccdace7ece61c4683937500c2387
CRs-Fixed: 2405774
2019-03-02 21:47:23 -08:00
Jeff Johnson
4b310ceea6 qcacld-3.0: Rename HDD variable pRateStats
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pRateStats to be
compliant.

Change-Id: Ic617f9a67fdf336c09a1292248676d377fbfc7f3
CRs-Fixed: 2405773
2019-03-02 21:47:20 -08:00
Nachiket Kukade
d5b7ebcc37 qcacld-3.0: Define NAN peer objects for storing NDP Peer info
Host presently stores NAN Peer specific info, such as number
of active NDP sessions, in an array inside vdev private object.
The array uses Peer index from HDD connection info. Instead,
use object manager to define peer private objects to store
this information.

Define NAN peer objects for storing NDP Peer info

Change-Id: I43d9339d06acc0eff61cafb337ccb084c372c7e1
CRs-Fixed: 2405507
2019-03-02 17:45:36 -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
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
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
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
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
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
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
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
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
Dustin Brown
c0591c0308 qcacld-3.0: Rename osif_*_sync_create_with_trans()
Rename the osif_*_sync_create_with_trans() to a slightly more
appropriate osid_*_sync_create_and_trans(), to help convey the fact that
the transition does not end when the function returns.

Change-Id: I5606fb613d786d65de773dae49fe8ad431b5342f
CRs-Fixed: 2406713
2019-02-28 01:27:50 -08:00
Manjunathappa Prakash
f39d2374a2 qcacld-3.0: Add stats for Rx gratuitous_arp and multicast_replay drops
Remove logging of Rx drops due to gratuitous_arp and multicast_replay
packets. Add separate stats counter and log it part of periodic stats.

Change-Id: Ib70505bbb8e6b2d363e04493f9e3d2d99e417e8d
CRs-Fixed: 2403211
2019-02-28 01:27:44 -08:00
Dustin Brown
39b33bacef qcacld-3.0: Integrate DSC (IP address change)
As part of DSC integration, replace remaining cds_ssr_protect/unprotect
calls with appropriate osif_sync op start/stop calls in IP address
change handlers.

Change-Id: I1e274fdda7465582046bcfd5266c242265328efd
CRs-Fixed: 2406548
2019-02-27 22:42:13 -08:00
Dustin Brown
015208532f qcacld-3.0: Integrate DSC (spectral scan)
As part of DSC integration, replace remaining cds_ssr_protect/unprotect
calls with appropriate osif_sync op start/stop calls in spectral scan.

Change-Id: I6a2f221aea47b31a0926e64f614999452d21a9f0
CRs-Fixed: 2406599
2019-02-27 19:24:47 -08:00
Jeff Johnson
6636e623e6 qcacld-3.0: Rename HDD variable pValue
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pValue to be
compliant.

Change-Id: Id61c93b87a05d8207ff828728a47bc268d3b1235
CRs-Fixed: 2405755
2019-02-27 11:37:50 -08:00
Jeff Johnson
afa022c9cd qcacld-3.0: Rename HDD variable pUserData
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pUserData to be
compliant.

Change-Id: Ia6e960b2666ef2dc958cdc97cef0b525cfa9e58d
CRs-Fixed: 2405754
2019-02-27 11:37:45 -08:00
Jeff Johnson
52f19d57d7 qcacld-3.0: Rename HDD variable pPeerInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pPeerInfo to be
compliant.

Change-Id: I1b8eb881e6c5fc164a587ba6305bbdf22002d865
CRs-Fixed: 2405753
2019-02-27 11:37:39 -08:00
Jeff Johnson
93107ad75f qcacld-3.0: Rename HDD variable pStaCtx
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pStaCtx to be
compliant.

Change-Id: Ief8942a12c802720d5eb2819e85eb895c6d8df40
CRs-Fixed: 2405752
2019-02-27 11:37:34 -08:00
Jeff Johnson
d89881a759 qcacld-3.0: Rename local variable localPattern
To align with the Linux coding standard rename local variable
localPattern.

Change-Id: Id1e5dba72ecb6e178e1766eb005f717894f7ae67
CRs-Fixed: 2404829
2019-02-27 09:55:46 -08:00
Jeff Johnson
b8673d0dae qcacld-3.0: Use vdev_id in wlan_hdd_set_filter()
Currently wlan_hdd_set_filter() uses sessionId as a parameter name.
In order to align with converged naming, and to adhere to the Linux
coding style, change this to vdev_id.

Change-Id: Icf284b27bf72df0bac1c3b7a2a60b5a7129b49e5
CRs-Fixed: 2404328
2019-02-27 09:55:42 -08:00
Pragaspathi Thilagaraj
96259b245f qcacld-3.0: Add support of FT-SAE roaming
Introduce new CSR auth type eCSR_AUTH_TYPE_FT_SAE to support the
akm suite selector 00:0F:AC-09(FT-SAE) and 00:0F:AC(FT-Suite-B).
Based on the sta_ctx authType, rsn auth type and hdd key
management type, set the auth type eCSR_AUTH_TYPE_FT_SAE to the
roam_profile during initial connection.

csr_scan_get_result() pushes the scan filter to scm module.
Translate the legacy eCsrAuthType to wlan_auth_type and push it
to the filter->auth_type.

Change-Id: I3ab91799ac280b85cdd67ad26b0eb7519d3b8b14
CRs-Fixed: 2400679
2019-02-27 09:55:37 -08:00
Min Liu
0daa098737 qcacld-3.0: Handle OWE info update from hostapd
Handle OWE info update from hostapd in the following path:
HDD->SAP->SME->CSR

Change-Id: I7584fb5db036d1643bd7d56076d30a0c75008a98
CRs-Fixed: 2397009
2019-02-27 08:11:47 -08:00
Min Liu
e34708a91d qcacld-3.0: Send update OWE info event
When receiving assoc request from OWE STA, always send update OWE
info event which contains the following information:
- MAC address of STA
- RSN IE in assoc request
- DH IE in assoc request

Change-Id: I7017c5d2730e493db2472ae53d5dfa69553cfe45
CRs-Fixed: 2396925
2019-02-27 08:11:42 -08:00
Arun Kumar Khandavalli
34f69cfa51 qcacld-3.0: Update connect_timeout correctly in case of scan for ssid
Incase there is a scan for ssid failure connect_timeout is set to
true even when there is no BSSID has been found in the scan result.

Set the connect_timeout to false for the cases wherein there is a
scan for ssid failure.

Change-Id: I822371bbbe2a034b673798b28c993ba53468aa49
CRs-Fixed: 2404646
2019-02-27 06:42:51 -08:00
gaurank kathpalia
566c81ba4d qcacld-3.0: Refactor ini CFG_DHCP_SERVER_IP_NAME
Refactor ini CFG_DHCP_SERVER_IP_NAME to hdd config file

Change-Id: Iabaae01d3abfdada8a68606627cd96f959d05b07
2019-02-27 05:10:08 -08:00