Grafik Komit

412 Melakukan

Penulis SHA1 Pesan Tanggal
Jeff Johnson
da0a82610b qcacmn: umac: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I34c7acfad802a3878ffa373489b7f6a4194abb62
CRs-Fixed: 2230684
2018-05-18 02:17:46 -07:00
Jeff Johnson
2d821eb0fe qcacmn: Fix typo "recieve"
Replace typo "recieve" with correct spelling "receive".

Change-Id: I7d88e57b97fa6d217630d4a5d5c365b56e714428
CRs-Fixed: 2238309
2018-05-17 00:47:23 -07:00
Jeff Johnson
ba9272370e qcacmn: Fix typo "coexistance"
Replace typo "coexistance" with correct spelling "coexistence".

Change-Id: I067eef3367e16c7e29e535ef7ccf4a5311173deb
CRs-Fixed: 2238309
2018-05-17 00:47:08 -07:00
Jeff Johnson
dc9c55962d qcacmn: Fix typo "lenght"
Replace typo "lenght" with correct spelling "length".

Change-Id: Ieea0c547c61248e510835d16a9fa55ace486df23
CRs-Fixed: 2238309
2018-05-17 00:47:02 -07:00
Jeff Johnson
4cee5cf7cc qcacmn: Fix typo "seperate"
Replace typo "seperate" with correct spelling "separate".

Change-Id: I742473a16b79c5b91722c3642c983a7fa6dfd252
CRs-Fixed: 2238309
2018-05-17 00:46:54 -07:00
Jeff Johnson
3a1832e598 qcacmn: Fix typo "capabilites"
Replace typo "capabilites" with correct spelling "capabilities"

Change-Id: I8efa1d974ecabb1466bdf27ec305fd9960da0616
CRs-Fixed: 2238309
2018-05-17 00:46:46 -07:00
Naveen Rawat
3d57f51826 qcacmn: Add umac implementation of get_stations_stats
Add changes to support get station stats from within the cp stats
component.

Change-Id: I3063125fe8c747f21f00b6f027da38010a2bdc61
CRs-Fixed: 2210313
2018-05-16 23:20:10 -07:00
Vivek
adbfaa7c8d qcacmn: Account for temporary peers created in object manager
The wlan_max_peer count in the object manager currently
includes the count of temporary peers and actual peers
created on the target, and this could be used to limit the
actual numbers of peers created.

The result is that, for a given number of
peers configured the object manager limits
counting temporary peer also and not actual peers alone.

Indicate the count of actual peers and temporary peers
separately, to appropriately limit actual peers created.

Change-Id: Ia1593d702949853ad26756f167988ec70279eb87
CRs-Fixed: 2228250
2018-05-16 00:28:23 -07:00
Ashok Ponnaiah
adfce988a9 qcacmn: Add mgmt cipher in rsn ie
Mgmt cipher is not set when igtk key is set.

Set mgmt cipher for igtk set key in crypto params
and add mgmt cipher in RSN IE.

Change-Id: I9e18972b7dd614a3692c107e2d92ac2fc6110458
Crs-Fixed: 2239608
2018-05-16 00:28:18 -07:00
Om Prakash Tripathi
de062d80ca qcacmn: Release peer ref if mem malloc fails and reset system
Logically deleted peers are used by umac for host/fw
synchronization. Any failure to return logically
deleted peers is catastrophic and will end up in random
behavior/fw assert.
This change makes below changes:
1. Release peer reference on malloc failure
2. Reset system if malloc fails
3. Move print log level to FATAL

Change-Id: I229f0e83a97b44b4436b4f9945265dcaf85901fd
CRs-Fixed: 2240560
2018-05-15 15:38:21 -07:00
Tushnim Bhattacharyya
54c0385480 qcacmn: Use channel and vdev_id array for get_mode_specific_conn_info
Use channel and vdev_id array while calling
policy_mgr_get_mode_specific_conn_info.

Change-Id: I64579e2b1af0eca47af5292d456367d059a461f5
CRs-Fixed: 2238386
2018-05-15 00:36:24 -07:00
Kabilan Kannan
6c3cb57806 qcacmn: Fix Green AP reference count ID mismatch
Green AP incorrectly uses object manager ID for reference
counting, and it causes inconsistency in the system.
Create a unique reference count ID for green AP
and use it.

Change-Id: Ia7d9545e95add01d209b11f1b000e38bc1591a47
CRs-Fixed: 2220280
2018-05-14 16:50:42 -07:00
Santosh Anbu
4d62c9dac3 qcacmn: Enhance objmgr error log
Print the objstate of the object manager objects in the error message.

Change-Id: I718c8ff71bfd70b1f006ed849eab13459d2b91bb
CRs-Fixed: 2214373
2018-05-14 13:58:51 -07:00
Edayilliam Jayadev
8e9eb4f27d qcacmn: Add API to get first vdev of given pdev
Add API to get first vdev of any given pdev.
Change spectral module's API accordingly.

CRs-Fixed: 2234801
Change-Id: I6c5f0aefad4a71610300810531b8c893471306ad
2018-05-14 12:50:52 -07:00
Keyur Parekh
413868686d qcacmn: Add mcast SW encrypt decrypt feature
For SW encap and decap support, need to change API
to support group key
Change-Id: I340b269d8b8be3e5018b69cb9c74b7671817d73c
2018-05-14 10:26:32 -07:00
Srinivas Girigowda
aafe28ed40 qcacmn: Consistently use policy_mgr_dual_mac_config
Remove duplicate structs wmi_dual_mac_config and sir_dual_mac_config
and use policy_mgr_dual_mac_config.

Change-Id: I6da6539f519ec46ee274ba3f3ae042e5fd9c25d2
CRs-Fixed: 2191031
2018-05-12 04:31:30 -07:00
Himanshu Agarwal
3bd09d612d qcacmn: Add API to stop DBS opportunistic timer
Add API to stop DBS opportunistic timer in policy mgr.

Change-Id: I11a2b2976c59d7cd09695f90c2d2bdd7338dde54
CRs-Fixed: 2236333
2018-05-11 23:57:08 -07:00
Ashok Ponnaiah
c1797fd6ea qcacmn: Release peer ref after peer pointer usage
peer pointer is used in wlan_crypto_getkey after
peer ref is released.

Fix is to release peer ref after peer pointer usage
is done in wlan_crypto_getkey API.

Change-Id: Id60acfab838511e0cbde4fd95cce795d77878540
Crs-Fixed: 2236136
2018-05-09 14:08:25 -07:00
Amir Patel
d338594cf9 qcacmn: Update API signature for vdev and peer search to include pdev_id
Add a pdev_id parameter to following API
    For peer:
        a. wlan_objmgr_get_peer()
        b. wlan_objmgr_get_peer_by_mac_n_vdev()
        c. wlan_objmgr_get_peer_by_mac_n_vdev_no_state()
        d. wlan_objmgr_get_peer_no_state()
        e. wlan_objmgr_get_peer_nolock()
        f. wlan_objmgr_populate_logically_
            deleted_peerlist_by_mac_n_vdev()
    For vdev:
        wlan_objmgr_get_vdev_by_macaddr_from_psoc()

Change-Id: I7480c5e17e24b5dfb1a7846cfa773821a86a27ca
CRs-Fixed: 2210118
2018-05-09 01:44:39 -07:00
Kiran Venkatappa
7095e2e883 qcacmn: Increase num_peers to include bss_peers
bss peer are used for each vdev. Include this count also in the num_peer
count sent to FW.

Change-Id: I71c4858ebe416a644f9e100a8d28ac1fd7989757
CRs-Fixed: 2233009
2018-05-07 06:37:12 -07:00
Krunal Soni
3370ea52d1 qcacmn: Fix uninitialize variables in few policy manager APIs
Few variables are left uninitialized and they are being used
with some random value.

Fix by initializing to default value.

CRs-Fixed: 2232791
Change-Id: I3351cae52c58e963601d53376f42ca8ebf0d3b9a
2018-05-07 06:37:09 -07:00
Tushnim Bhattacharyya
46ffb86105 qcacmn: Add range check for mode param in cds_get_pcl
Add range check for mode parameter in cds_get_pcl.

Change-Id: I049bebc5ec62f925e164517d59f94d122dbc5dc2
CRs-Fixed: 2234351
2018-05-04 20:43:14 -07:00
Manjunathappa Prakash
c3aeffb5e9 qcacmn: add API to get NAPI instance corresponding to NAPI ID
Add API to get NAPI instance from NAPI ID. Handle to NAPI is required
for Rx processing via GRO.

Change-Id: I15535827a03953231670d4138235c4876b16e045
CRs-Fixed: 2062180
2018-05-02 04:35:02 -07:00
Disha Das
55b86c274b qcacmn: Fix crypto KW issues
Add buffer overflow check for setkey, delkey and
mmie.
Initialize ret before use on add mmie.

Change-Id: I4c6529464a02c67433984dc37a027cf44cc90f5f
2018-04-30 13:18:40 -07:00
Himanshu Agarwal
80a3da4f57 qcacmn: Add macros for GCMP header and MIC length
CCMP and GCMP both have different lengths of their MIC part. MIC
length for CCMP is 8 bytes whereas it is 16 bytes for GCMP. When
encryption type is GCMP/GCMP-256, sending packets with CCMP MIC
length causes fw to drop the GCMP encrypted management packets
leading to connection issues.

Add macros for GCMP header and MIC length

Change-Id: Ib768319d38dca90d92ff99ad3318a70f5a6ae474
CRs-Fixed: 2226978
2018-04-26 21:39:07 -07:00
Ashok Ponnaiah
23668cdf4e qcacmn: Check key valid for get key api
Check key valid for get key api.
return key only if it is valid and return NULL is key
not valid.

Added new api to get key type

Change-Id: Iae29366ff7d8f60e26a5a87c79119d9649c7a255
Crs-Fixed: 2204858
2018-04-26 02:05:33 -07:00
Ashok Ponnaiah
e25c64c047 qcacmn: Fix ccmp sw encrypt and decrypt
Fixed ccmp sw encrypt and decrypt

Change-Id: Ic0bff6cb764747f31fbb2354e170978144f178d6
Crs-Fixed: 2204858
2018-04-26 02:05:31 -07:00
Akshay Kosigi
41da247986 qcacmn: Remove redundant initialization of array indices
Remove redundant code where some array indices are initialized more
than once

Change-Id: I72414367dad92ccc14a8d0ba9f7660b29eaf8098
CRs-Fixed: 2216642
2018-04-18 18:08:30 -07:00
Linux Build Service Account
c03bbf527d Merge "qcacmn: Fix Access Array out of bound" 2018-04-18 01:53:44 -07:00
Ashok Ponnaiah
afb889318f qcacmn: Add new supporting api for crypto
Add new helper functions for crypto module.
New api to get ucastcipher and mcastcipher
from peer and vdev.
New api to get key from vdev and peer.

Change-Id: Ia111f59a93b6cc7e1a3406dc53142f0c087df6f8
Crs-Fixed: 2223901
2018-04-17 09:21:03 -07:00
Radhika Sriram
00392f394c qcacmn: Fix Access Array out of bound
Upper bound length check is performed for index
that is used to access the array elements.

Change-Id: Id39ef1bd0446ce71be4f74532f2a7650df1a5432
CRs-Fixed: 2218940
2018-04-16 22:58:17 -07:00
Disha Das
9d600faa11 qcacmn: Check EXT_IV bit for PMF frames only
Non PMF frames are being dropped due to incorrect buffer
length check. Modifying the check only for PMF cases

Change-Id: Iead56b199de6c14b3a569a4f1a537553e9325bc8
2018-04-16 15:16:26 -07:00
Disha Das
76210cdb35 qcacmn: Fix for buffer overflow KW issue
Fix for buffer overflow check as igtk key may use
index 2

Change-Id: Id496147633c307dbed62e643a770d17ef6c6805b
2018-04-16 00:24:33 -07:00
wadesong
73deb9aa73 qcacmn: Populate BSS peer pointer for P2P GO
BSS peer pointer is currently not populated to P2P GO vdev during
peer attach, which will result in an assertion in function
wlan_objmgr_peer_get_ref once a remote peer object is created for
the same P2P GO vdev.

Populate the right BSS peer pointer to the P2P GO vdev during
peer attach.

Change-Id: I8d98d3b1c51d28dcda1ed0feadee30229c74dc9c
CRs-Fixed: 2218195
2018-04-14 07:37:47 -07:00
Rachit Kankane
a798a593e0 qcacmn: decrement ref count for P2P CLI
Decrement the reference count when peer type is P2P-CLI thereby
avoid memory leak whenever P2P-CLI disconnects in object manager.

Change-Id: Idaf2910c39b316dcea46f9be39df420d71bab8d6
CRs-Fixed: 2222320
2018-04-14 04:53:19 -07:00
Subrat Mishra
65817ac2d7 qcacmn: Avoid NULL pointer dereference
Avoid NULL pointer dereference in wlan_crypto_fils_delkey()

Change-Id: I2425365f7e118b5ec72223905ce7d16437ee714d
CRs-Fixed: 2221348
2018-04-11 09:15:14 -07:00
Srinivas Pitla
fd3685537b qcacmn: change lock order to avoid deadlock
Acquiring parent lock with in child lock context can occur deadlock
as some caller can invoke API with parent lock acquired.

Change-Id: I8fab6226d9cafe6df20737f966be1063feebb603
CRs-Fixed: 2219624
2018-04-09 11:13:24 -07:00
Naga
6d06baaa60 qcacmn: Add new component id for cp stats
Add support for new component cp stats module id,
component id, obj mgr ref id and default log level

CRs-Fixed: 2192386
Change-Id: Ibb523f3756ad5cc80d5691ab421bcaaa0c7e2e4a
2018-04-06 17:49:56 -07:00
Om Prakash Tripathi
f06184550a qcacmn: Move object ref prints to error level
By default object manager log level is error
while reference prints use info level. This
eventually disables object ref prints.
To fix this move ref prints to error level.

Change-Id: I87bd589cc0eee3bed4591d5a978cf51840ac6b34
CRs-Fixed: 2219152
2018-04-06 13:25:33 -07:00
jiad
de2ec73f9b qcacmn: fix ipa mcc scc event notification
Issue is under AP-AP MCC config, mcc event is not sent from wlan
to IPA driver. mcc mode is decided with the help of connection
table. But for AP mode, mcc mode is checked and updated before
connection table is updated by adding the SAP vdev entry.

Fix is to make ipa mcc mode check and notification when connection
table is updated.

Change-Id: I1ba3fcb874b014f05cebd8af90530b9aa54980a2
CRs-Fixed: 2214351
2018-04-06 13:25:29 -07:00
Yuanyuan Liu
80bfeb949d qcacmn: Fix LLVM compiling issues
Remove typedef redefinition, use correct enum type, remove extra
parentheses and correct header guard.

CRs-Fixed: 2214003
Change-Id: I0a75c70cd530590a16f6bfa884955ebc26906de0
2018-04-02 16:41:52 -07:00
Tushnim Bhattacharyya
f940918d4f qcacmn: Use enum type policy_mgr_con_mode instead of enum QDF_OPMODE
Use enum type policy_mgr_con_mode instead of enum QDF_OPMODE.

Change-Id: Ia7a6bb5e05c6dac650dc6386734462547365a4eb
CRs-Fixed: 2214003
2018-04-02 16:41:50 -07:00
Vivek
71a0ad2500 qcacmn: API to get peer count per psoc
Implement API to get the number of peers
created within a psoc

Change-Id: I4cbb814d00b707355b77be807a462978e22d653a
CRs-Fixed: 2213331
2018-03-29 22:30:31 -07:00
Srinivas Pitla
6c56b09a43 qcacmn: Define list iterate API without ref count protection
In few cases, ref count mechanism is not able to protect access of
all objects, and if ref count is taken without considering object state,
it is causing double free. so, defined an API which protects list through
locks and accesses all objects.

As the current ref count increment API do not check for ref count value to
increment. This is causing object being accessed and ref count taken during
physical destroy leads to double free on releasing ref count

Change-Id: Iff140c581984bf660a48c2b927c4ac2933afa822
CRs-Fixed: 2200871
2018-03-29 06:57:57 -07:00
Jeff Johnson
b311d8e273 qcacmn: Remove WLAN_SER_CMD_SCAN_IDLE_SCAN
enum WLAN_SER_CMD_SCAN_IDLE_SCAN is unused, so remove it.

Change-Id: I32acf848448ab3a739099e7446cd82c401aa11c9
CRs-Fixed: 2212931
2018-03-28 20:01:49 -07:00
wadesong
87f18a3869 qcacmn: Suppress the verbose log from policy mgr
When DBS is disabled in WLAN INI file(e.g. on some platforms
where RM chipset is attached), the policy manager will keep
posting a verbose message saying 'DBS is disabled from ini'.
This isn't exhibiting much useful information, and may cause
watchdog bark when SnS stress is running.

Suppress the verbose log by lowering it's debug level.

Change-Id: Ie8d5a1784940f483cc671da43f734851c0b5adb6
CRs-Fixed: 2214201
2018-03-28 14:44:34 -07:00
Srinivas Pitla
9578a90c65 qcacmn: Acquire pdev lock on updating pdev peer count
The pdev peer count needs to be updated with pdev lock, as multiple peers
can be created same time, which can result in synchronization issues
without lock

Change-Id: Ic8164585873f32a801dd9a334f861d6666b9864f
CRs-Fixed: 2203011
2018-03-27 17:33:39 -07:00
Bala Venkatesh
2438a563c5 qcacmn: Add ENABLE_DBS_CXN_AND_DISABLE_DBS_SCAN
Add ENABLE_DBS_CXN_AND_DISABLE_DBS_SCAN option for the ini
gDualMacFeatureDisable. To enable DBS support for the
connection and disable DBS support for the scan.

Change-Id: I05c613467195fffac98e79b7e4a2991471ac1d80
CRs-Fixed: 2207820
2018-03-27 00:25:38 -07:00
Sravan Kumar Kairam
376e5f1e3f qcacmn: Add IPA component related definitions
As part of IPA componentization remove IPA from HDD module
and make it as an independent component. Add qdf module ID
and Objmgr ID for IPA module.

Change-Id: Id99089f8188e8b1dbf7e1f60d3a127bec770706d
CRs-Fixed: 2180176
2018-03-21 03:39:37 -07:00
Ashok Ponnaiah
455eb68470 qcacmn: export few crypto functions
Export few crypto function for other modules use.

CRs-fixed: 2203383
Change-Id: If9ee188b96d1c537a3fe7f5c37e85683fe069276
2018-03-20 22:35:15 -07:00