Commit Graph

856 Commits

Author SHA1 Message Date
Sandeep Puligilla
593c110239 qcacmn: Scan duration is longer
Default scan type is configured as non-dbs
mode because of that scan is taking longer
duration to complete.

Modified default scan type to DBS.

Change-Id: I7f274ea34780b196fa0269968cb8ad76ee239c9f
CRs-Fixed: 2239341
2018-05-18 16:47:12 -07:00
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
2b2ed37d86 qcacmn: Fix typo "doesnt"
Replace typo "doesnt" with correct spelling "doesn't".

Change-Id: I10c7e288056ca296d4e69ec7ad47404482cbf6f3
CRs-Fixed: 2238309
2018-05-17 00:47:39 -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
cc793da52b qcacmn: Fix typo "adapater"
Replace typo "adapater" with correct spelling "adapter".

Change-Id: I53a98385a38df6e26fc3a4a5448566e89c6710ea
CRs-Fixed: 2238309
2018-05-17 00:46:52 -07:00
Jeff Johnson
2f29abc243 qcacmn: Fix typo in "P2P_EVENT_PROPOGATE_TIME"
Macro P2P_EVENT_PROPOGATE_TIME contains a misspelling of PROPAGATE so
fix the misspelling in both places it occurs.

CRs-Fixed: 2238309
Change-Id: Ic5c4a31820f8b51a5117241c6c6fa01025f4ae84
2018-05-17 00:46:49 -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
Jeff Johnson
ae1b3de378 qcacmn: Fix typo "sucess"
Replace typo "sucess" with correct spelling "success"

Change-Id: Ieacb299890210d67848268a389a57168e2a2badd
CRs-Fixed: 2238309
2018-05-17 00:46:44 -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
Abhijit Pradhan
b847c69bf1 qcacmn: Do not process bangradar command in NON-DFS channel
FW, on receiving the bangradar command from host, suspends the
scheduler/tx-traffic and resumes only after the channel is switched.

For a bangradar in non-DFS channel, host does not send the channel
switch command. Hence, the tx_traffic are not  resumed.

When the user issues a bangradar, forward it to FW only if the current
channel is a DFS channel.

Change-Id: Id1f969dd7654e540a1c637632122cf2c6b543123
CRs-Fixed: 2225953
2018-05-15 04:34:01 -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
Naga
78f803eb1e qcacmn: Remove DA specific from common cp_stats
Remove DA specific init APIs from common cp_stats and
change logic to not return callback status for psoc close
and disable to override devpool issue for DA arch

CRs-Fixed: 2224153
Change-Id: Ie5bfb7cb7773d3fc09237a9d14ec3611e78cc06f
2018-05-14 18:00:01 -07:00
Abhinav Kumar
daf261b2a9 qcacmn: Add break for few cases in tdls_process_mgmt_req
Currently break statement is missing for some cases in
tdls_process_mgmt_req.
Add break statement as fallthrough is not required for
these cases.

Change-Id: I9ef290cdea8980f1b550cfebfb80ee81c5a694c0
CRs-Fixed: 2233184
2018-05-14 17:59:56 -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
Dustin Brown
ef742350c2 qcacmn: Add management frame wake stats
Track and print WLAN wake stats for management frames received.

Change-Id: I2f2d49345d695561ab3f115e1ce30f284a1472bb
CRs-Fixed: 2236014
2018-05-14 12:50:55 -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
Naveen Rawat
7b90f6cdfe qcacmn: Add umac implementation of get congestion stats
Add changes to support get congestion stats(arp stats) from
within cp_stats component.

Change-Id: Ieff7df33dd8f3a8a80cda57952eb8d5941ccaedc
CRs-Fixed: 2222781
2018-05-14 11:39:21 -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
Sandeep Puligilla
008d66251d qcacmn: Add NULL validation check in tgt_scan_cancel() API
Add NULL validation check for psoc, pdev, vdev object pointers
in tgt_scan_cancel() API

Change-Id: I7853d8bba439d40a1413b951d8aa799c932b887c
CRs-Fixed: 2232802
2018-05-12 06:28:12 -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
Arif Hussain
8add0f7fbb qcacmn: Fix validation in dfs_process_phyerr_owl()
Fix validation in dfs_process_phyerr_owl function.

Change-Id: I0c97e7c18e1e93a248f325ff6f9b477c4135c486
CRs-Fixed: 2233111
2018-05-11 23:57:05 -07:00
Sandeep Puligilla
e4430b559d qcacmn: Add NULL validation check in tgt_scan_start() API
Add NULL validation check for psoc, pdev, vdev object pointers
in tgt_scan_start() API.

Change-Id: Ia5b6e5de26e4ad3386fbcef2fa1a5abb52198a1b
CRs-Fixed: 2232783
2018-05-11 22:40:11 -07:00
Sandeep Puligilla
659fecb9fc qcacmn: Dereference vdev object only after validation check
Dereference vdev object only after validation check to
avoid null pointer derefernce in ucfg_scan_get_pno_def_params()
API.

Change-Id: I88e9a206ef0a948c4b2e35b05ffd74aee82e2961
CRs-Fixed: 2232809
2018-05-11 13:23:05 -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
Krunal Soni
cf2db1bee2 qcacmn: Add NULL pointer check in p2p_remove_tx_context() API
Add NULL pointer check in p2p_remove_tx_context() API.

CRs-Fixed: 2232786
Change-Id: I67e541573d704f313a48c16c195a626a4040402c
2018-05-07 06:37:06 -07:00
Krunal Soni
acd250c4af qcacmn: Add NULL pointer check in tgt_scan_pno_stop() API
Add NULL pointer check in tgt_scan_pno_stop() API.

CRs-Fixed: 2232787
Change-Id: I9b3c88af8d4d719a4a6fe097e7994ecd4bbddcbd
2018-05-07 06:37:02 -07:00
Krunal Soni
c61d48d886 qcacmn: Add NULL pointer check in tgt_scan_pno_start() API
Add NULL pointer check in tgt_scan_pno_start() API.

CRs-Fixed: 2232784
Change-Id: Ie63ac4eea9d45e9bf8ea305fd26abed1361a03f8
2018-05-07 06:36:59 -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
Amar Singhal
c8d0614f8d qcacmn: Update Japan regulatory domains
Change Tx Power for 2G regdomains MKKA and MKKC to 23 dBm.
Also change TX power for 5G regdomain sub-bands for MKK5 and
MKK11.

Change-Id: I32337fea35f350b2171b6d0a242934f0668d4f5e
CRs-Fixed: 2229597
2018-05-03 18:33:16 -07:00
Abhijit Pradhan
231d7df5d3 qcacmn: Add Radartable related changes for ETSI14_WORLD
Adjust radartable start offset for ETSI14_WORLD

Change-Id: I8d8f1019248c184b4e2a92a3b544be4358793812
CRs-Fixed: 2233349
2018-05-03 09:12:57 -07:00
Paul Zhang
41bd701ee7 qcacmn: Correct the alpha2 for Netherlands
Netherlands country code is NL.

Change-Id: I4e71a96c4f46798f0473effeb52681276d79557a
CRs-Fixed: 2207119
2018-05-03 03:36:09 -07:00
Naveen Rawat
5f7085d09d qcacmn: Fix vdev ref leak in CP_STATs get_peer_rssi
Fix vdev ref leak in CP_STATs get_peer_rssi.

Change-Id: I583fe8c0c0fabd022fd52b4749a8b324c37ae5e5
CRs-Fixed: 2231395
2018-05-02 04:35:15 -07:00
Naveen Rawat
1a9ee7dc49 qcacmn: Define ucfg api to free stats_event
Define ucfg api to free stats_event, since it will be called from
osif and hdd.

Change-Id: Ifeea3e970ddca1ed508960c39a2a39f0ed755bd9
CRs-Fixed: 2231150
2018-05-02 04:35:12 -07:00
Naveen Rawat
34e15c4636 qcacmn: Add umac implementation of getting peer rssi
Add changes to support get peer rssi from within cp_stats
component.

Change-Id: I68c9c7e23dd14b515a71080b1b5fe3af15651ef9
CRs-Fixed: 2222777
2018-05-02 04:35:07 -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
Om Prakash Tripathi
8e9beaef6b qcacmn: Change IE parse failure prints to debug level
In some environments its found that IE's received are not
as expected and console gets flooded with pare failure prints.
Move these prints to debug level.

Change-Id: Ic25bdff65f340f47179a7ac6dd79731b80c805ff
CRs-Fixed: 2232553
2018-04-29 23:44:07 -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