提交線圖

6410 次程式碼提交

作者 SHA1 備註 日期
nobelj
7966633c14 qcacmn: OFDMA counter get increased when num_msdu 0
Sometimes we receive num_msdu as 0 with ru_tones and ru_start
which cause OFDMA counter to get increament

Change-Id: Ib099a2143799551266e94bc9b8d281237092a46e
2019-02-20 12:56:39 -08:00
Jeff Johnson
6889ddf7bb qcacmn: Replace CONVERGED_TDLS_ENABLE feature flag
The CONVERGED_TDLS_ENABLE feature flag was originally introduced when
the TDLS feature was being componentized so that one could select
either the legacy implementation or the componentized implementation.
That componentization activity has concluded and the legacy
implementation no longer exists. To align with the current usage
remove all legacy TDLS code and switch to using the FEATURE_WLAN_TDLS
feature flag since that more accurately describes the code being
protected.

Change-Id: Ieef785844bd25b06604167eae2f52e39717f502f
CRs-Fixed: 2395694
2019-02-20 09:09:44 -08:00
Abhiram Jogadenu
880ba01add qcacmn: Add target_if support for CFR
Add target_if support for CFR.

CRs-Fixed: 2372061
Change-Id: I8ad14d714306acc20c9a7e09c8d6f17f7caeae16
2019-02-20 06:21:18 -08:00
Abhiram Jogadenu
7b2ba92b37 qcacmn: Add support for CFR init deinit
Add support for CFR init deinit and QDF_MODULE_ID

CRs-Fixed: 2372061
Change-Id: I8468c678e03b315ec15ff94aa603e9f2bcda408e
2019-02-20 06:21:15 -08:00
Abhiram Jogadenu
d81f5b148d qcacmn: hal and spectral kbuild changes for CFR
Adding hal support and including CFR libs in spectral's ko.
CRs-Fixed: 2372061

Change-Id: I7545c594fd2a004f9d34835414549bd51ff09e4f
2019-02-20 06:21:12 -08:00
Kiran Venkatappa
c5de90ee5d qcacmn: Reduce CE1 buffers to 128 for qca8074
CE1 is used only during initial endpoint exchange and some control
exchange like cookies. On HK, there is no need to enqueue 512 buffers.
Hence reduce it to 128. This provides a savings of 384 buffers or ~1.5M.

Change-Id: I2b3a58c1d7a914194d842824945d12ae7c9ebb05
CRs-Fixed: 2401025
2019-02-20 05:02:32 -08:00
Vignesh U
0e6b19c47c qcacmn: Move the function used by WIN out of MCL specific macro
Move reg_enable_dfs_channels() outside of MCL specific macro as
it is also used by WIN.

Change-Id: I8fecf365a695524ad7a97b66eca5c6657aedb264
CRs-Fixed: 2398789
2019-02-19 01:32:55 -08:00
Vinay Adella
5dc5551bde qcacmn: Use the correct dp_peer find API for unmap & delete peer
Use __dp_peer_find_by_id, as this will return the peer, even if
delete is in progress. This is needed, if the FW has crashed and
there is no response expected

Change-Id: I0f77184860622b06f793fcfd321547ea41e958cd
CRs-Fixed: 2392817
2019-02-18 23:19:45 -08:00
Rakshith Suresh Patkar
5cfc631920 qcacmn: Log pkt_stats to logger thread for sw_event
pktlog log types were received as individual log types
like PKTLOG_TYPE_TX_CTRL, PKTLOG_TYPE_RC_FIND, etc.
As per the current implementation, FW sends an
aggregated log type as PKTLOG_TYPE_SW_EVENT.
This aggregated log type event is not logged to
userspace.

Log sw_event pkt_stats to logger thread in
process_sw_event.

Change-Id: I5b12ecce25af6395a10eb7c7452a7eeb042d7c0a
CRs-Fixed: 2396980
2019-02-18 10:40:05 -08:00
Gurumoorthi Gnanasambandhan
612a906f4e qcacmn: Initialize keydata with 0 in delkey
delkey is using the existing keydata instead of memeset to 0

CR Fixed: 2393644
Change-Id: I7ee6718647d27d31e302e670e2bf12ce0fcdec8e
2019-02-18 05:00:24 -08:00
Aditya Sathish
f8074d87b2 qcacmn: Add return path for fc_peer_stats for peer mac address
Add return path for fc_peer_stats for peer mac address if the peer
is connected to another pdev.

The DP peers are maintained at the SOC as such there is no check
to make sure that the peer is for a particular pdev.

This issue is especially seen when an end user invokes
fc_peer_stats in wifi0 for a peer that is connected to wifi1. In
such a case, we should be returning an error since the peer is not
connected to the pdev that the user application is directed to.

Change-Id: Ie1142c508605bfcf2fd49adc863879eee98fffe6
CRs-Fixed: 2397052
2019-02-18 00:43:56 -08:00
Aditya Sathish
8a7357548a qcacmn: Remove dedicated CDP API for mcastenhance 6 AST lookup
Remove dedicated CDP API for mcastenhance 6 AST lookup and replace
the calls with generic APIs

Change-Id: Ic2c5613be57d7eaffc233ee601f136694f81f848
CRs-Fixed: 2369606
2019-02-17 22:12:54 -08:00
Chaitanya Kiran Godavarthi
6df18d4da8 qcacmn: Remove service ready callback for smartlog enable
Remove service ready callback for smartlog enable.

Change-Id: I1d2807b0ec59b4f38bb8e2ac5365f3b57cf37437
2019-02-17 08:41:20 -08:00
Chaitanya Kiran Godavarthi
e0b3414ea7 qcacmn: Change debug module ID to QDF_MODULE_ID_DP
QDF_MODULE_ID_DP is the module id to be used for debug
prints in the dp_peer.

Change-Id: I661239cb7773aa157d503e9acd82a90343089d6b
2019-02-15 22:49:58 -08:00
Alok Kumar
14b3ba0647 qcacmn: Add cdp call to set peer_unmap_sync callback
Add CDP support to set peer_unmap_sync call back in
pdev struct.

Change-Id: Ia685e7e225baff03ba73bafc89d5dfd818f7f03a
CRs-Fixed: 2398850
2019-02-15 20:50:41 -08:00
Bala Venkatesh
7f726aa21a qcacmn: Add ini parameters to control the burst duration
Add ini parameters to control the scan burst duration in STA, SAP
and GO cases.

Change-Id: Ib9f0cdae660b6d425887fefebf9e64f9ac977593
CRs-Fixed: 2398746
2019-02-15 14:46:46 -08:00
Kiran Venkatappa
e9f72e08e2 qcacmn: Reduce WMI max message size on low mem profile
Current max message size of 2048 will result in a 4K slab allocation due
to padding and shinfo additions. We observed that most of the WMI
allocations are within 1600 and there is no need to set max bu size as
2048. Hence reduce max buf size to 1700 for low memory profile so that
allocation on host result in a 2K skbs.

Change-Id: Icb25be0f4ce60112ef6293f39f9dcc57ebc0288c
CRs-Fixed: 2394768
2019-02-15 10:34:02 -08:00
Arif Hussain
20a228a631 qcacmn: Add BKID only for sta mode
BKID is part of only assosciation and reassociation
request frames, So include it only for sta mode.

Change-Id: Ic43e20b46154a957a7290cdcc70615247949cba7
CRs-Fixed: 2398256
2019-02-14 21:29:29 -08:00
Vivek
ea6a02fef9 qcacmn: Change log level for qdf_mem_malloc failure
The non debug version of qdf_mem_malloc logs
allocation failures at WARN trace level
and the debug version uses ERROR trace level.

Also the default log level for QDF component is set to ERROR,
so with this, for failures in the non debug version
of qdf_mem_malloc, we would not see any logs.

Changing the log level to ERROR for failures logs in
the non debug version of qdf_mem_malloc.

Change-Id: I1e28cddfac8f909dec6e3bf6c3beb368953cd357
CRs-Fixed: 2397096
2019-02-14 04:25:51 -08:00
Jinwei Chen
1cb78177e6 qcacmn: Fix REO entry potential overwrite issue
Host SW should not update the cached TP pointer to HW register before
current cached TP REO entry finishes processing, otherwise there is
risk if HW HP catches up to this cached TP, but HW TP value has been
updated to (cached TP + one entry size) now, this TP REO entry might
be overwritten.

Refine it and only update TP pointer to HW when entry processing has done.

Change-Id: I54df3247745717855a67649f440c606c518efd61
CRs-Fixed: 2391658
2019-02-14 03:11:43 -08:00
Sandeep Puligilla
0c6d9b91f7 qcacmn: Add MBSSID service capability
Add MBSSID service capability

Change-Id: Ia8cf04ffd2f4b0ed4f58256164308d658215365f
CRs-Fixed: 2396079
2019-02-13 16:05:35 -08:00
Jeff Johnson
9933bb2233 qcacmn: Remove TDLS featurization from UAPSD trigger structs
As part of the TDLS feature, structs sta_uapsd_trig_params and
sta_uapsd_params were replicated from qcacmn wmi_unified_param.h to
qcacld-3.0 wlan_tdls_public_structs.h, and conditional compilation
based upon CONVERGED_TDLS_ENABLE was used to determine which structs
are actually used by a build. Since these structs are not specific to
TDLS, remove the featurization so that the structs from qcacmn
wmi_unified_param.h are always used.

This is co-dependent upon I37b2d80a4710aced158dcf2ea973d15801a7cecc
("qcacld-3.0: Remove UAPSD trigger structs from TDLS public structs").

Change-Id: Ida0f2b6f131ff2dce7217b881ffadecfd685f563
CRs-Fixed: 2395822
2019-02-13 16:05:31 -08:00
Rhythm Patwa
ce4c4a6f1e qcacmn: Add wmi_pdev param for WMI_PDEV_PARAM_EQUAL_RU_ALLOCATION_ENABLE
Add the WMI PDEV param 'wmi_pdev_param_equal_ru_allocation_enable' to
add command support.

Change-Id: If9dde1277ea70687f7a62815b1f97fd1f60acaf0
CRs-fixed: 2247588
2019-02-13 09:27:42 -08:00
Rhythm Patwa
14b2e1c89b qcacmn: Add command support for UL PPDU duration
Add the WMI PDEV param 'wmi_pdev_param_ul_ppdu_duration' to
add command support to modify the UL PPDU duration.

Change-Id: If2f8ef02d4f992d91fa745599d5c08b1dfccceca
CRs-fixed: 2393139
2019-02-13 09:27:39 -08:00
Jeffin Mammen
a6c50bd74e qcacmn: Send RSSI of the last ack to SON module
Send the RSSI of the last ack received to SON module.

Change-Id: I08d362676b4831beac36356fac332c379853ad99
CRs-Fixed: 2393401
2019-02-13 06:43:43 -08:00
Dustin Brown
1475aad768 qcacmn: Move qdf_status_to/from_os_return()
QDF_STATUS is defined in qdf_status, but related APIs
qdf_status_to_os_return() and qdf_status_from_os_return() are defined
in qdf_util. Create a new file, qdf_status.c, and move these functions
there instead.

Change-Id: Iaa2efa5f662be014a61a8490c3fab411ec0f2054
CRs-Fixed: 2395178
2019-02-12 13:09:59 -08:00
Aditya Sathish
73d452f3d2 qcacmn: Add support for UL_RU26 WMI service
Add support for UL_RU26 WMI service which will notify the host if
the target has allowed UL_RU26

Change-Id: I639c0872f541cf30776c9f76b87c4b950c1e17f4
CRs-Fixed: 2390350
2019-02-12 11:24:37 -08:00
Ashok Kumar
1b91304c4c qcacmn: use bool instead of uint8_t
Replace uint8_t type with bool where only
variable is used for set true or false.

Change-Id: I04592bfc4d0d4b19c67cedafd3b8cb625544cd18
2019-02-12 08:45:15 -08:00
Om Prakash Tripathi
ff39d808a0 qcacmn: Add tx_frame_cnt, ext_busy count in chan info event
Add tx_frame_cnt and ext_busy count in chan info event

Change-Id: I7213e7881dbdffeaefc038c67da0d3224b858b73
CRs-Fixed: 2365685
2019-02-12 08:45:12 -08:00
Tallapragada Kalyan
f07025a708 qcacmn: Do not drop multicast pkts in DBDC QWRAP mode
We are not suppose to drop multicast loop backedpkts
received on a different radio. instead they should be
sent to dp link aggregator for setting certain flags.

Change-Id: Idae19c1b6a2caf2a1b2b58fac531c43e9c24db51
CRs-Fixed: 2351300
2019-02-12 08:45:09 -08:00
Madhvapathi Sriram
bfb0112412 qcacmn: Remove error log for qdf_mem_malloc in hif/htc files
qdf layer already has the error trace

Change-Id: I83441fb5ab2e954f670f2891ecec8fccf5abf9a7
CRs-Fixed: 2376419
2019-02-12 04:47:40 -08:00
Tallapragada Kalyan
a702362d34 qcacmn: Check for MAX_AST entries when adding AST entry
check for max_ast entries supported by FW and add the
entry on host accordingly.

Change-Id: Ief70ba631bb41d50c79d3673e3eea0c45b0c1e19
CRs-Fixed: 2355947
2019-02-12 04:47:37 -08:00
Chaithanya Garrepalli
9ff4c54c25 qcacmn: Avoid NULL dereference in peer unmap handler
Avoid NULL dereference in peer unmap handler

Change-Id: I4dfc6e5fe4c254c6534af187b705efdab706b366
CRs-fixed: 2369001
2019-02-12 02:10:41 -08:00
Venkata Sharath Chandra Manchala
9cfe0f763d qcacmn: Reduce log level for athdiag requests
Reduce the log level from INFO to DEBUG for
athdiag read and write requests.

Change-Id: I37c3842f498ebc85386b1fa8fbb3b228eed6d9b5
CRs-Fixed: 2393714
2019-02-11 21:32:36 -08:00
Madhvapathi Sriram
610c0c8e41 qcacmn: Remove error log for qdf_mem_malloc in wmi files
qdf layer already has the error trace

Change-Id: I4c63264f6674c6c2710368de4b5c9f24817ac74c
CRs-Fixed: 2376431
2019-02-11 11:58:37 -08:00
Pragaspathi Thilagaraj
1e618d6444 qcacmn: Refactor legacy ini items
Refactor the below ini item to new converged cfg/ini
infrastructure:
CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_NAME

CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_NAME - move this to scm module

Change-Id: I2980b2f3f1f451c99ceb19df87fd254a0c919c9b
CRs-Fixed: 2394241
2019-02-11 07:38:31 -08:00
Madhvapathi Sriram
2750c27818 qcacmn: Remove error log for qdf_mem_malloc in qdf files
qdf layer already has the error trace

Change-Id: I451e8a008585d80c9d3ccb619461362a74d0a52b
CRs-Fixed: 2374111
2019-02-11 02:30:06 -08:00
Madhvapathi Sriram
0c5bdd7e73 qcacmn: Remove error log for qdf_mem_malloc in target_if files
qdf layer already has the error trace

Change-Id: I2d752fafb6ee805206047bae9711aa0387f22f69
CRs-Fixed: 2376430
2019-02-11 02:30:02 -08:00
Madhvapathi Sriram
409d19924e qcacmn: Remove error log for qdf_mem_malloc in os_if files
qdf layer already has the error trace

Change-Id: I4ff1fa2a7e261aecd715fd2c8ae68e6e843f1118
CRs-Fixed: 2376427
2019-02-11 02:29:59 -08:00
Madhvapathi Sriram
1197bf79b8 qcacmn: Remove error log for qdf_mem_malloc in utils/ftm files
qdf layer already has the error trace

Change-Id: Ida43aeeeea8004ab47015214565ae3fd8a78b903
CRs-Fixed: 2376434
2019-02-11 02:29:55 -08:00
Abhiram Jogadenu
207dcdbcfe qcacmn: API to extract quiet info from SWBA
Added APIs to extract quiet information from swba, which
is supposed to be filled in Probe response.

Change-Id: I3289fc2a9d12294ec841461997db4239d0158398
CRs-Fixed: 2376067
2019-02-10 23:46:34 -08:00
Amir Patel
1ea85d4671 qcacmn: Add support for STA inactive time in Hawkeye
Currently there is not STA inactive time support for lithium.
Read inactive_time from htt_peer_stats_cmn_tlv by sending
HTT_DBG_EXT_STATS_PEER_INFO to firmware.
After sending command, wait on completion variable till
firmware to response, trigger completion upon firmware response.

CRs-Fixed: 2319219
Change-Id: I93e6343641ae5c72610a57dd6ba551cca0b010c1
2019-02-09 11:52:40 -08:00
Madhvapathi Sriram
b49d30e408 qcacmn: Remove error log for qdf_mem_malloc in cfg files
qdf layer already has the error trace

Change-Id: Ie5f1c8df32b83b3941f4a54b7a0115eb6f84400f
CRs-Fixed: 2376435
2019-02-09 11:52:36 -08:00
Madhvapathi Sriram
65c8e4be73 qcacmn: Remove error log for qdf_mem_malloc in spectral files
qdf layer already has the error trace

Change-Id: Ia8314900f564369f51fd79cd97f3a9dba5d54a1b
CRs-Fixed: 2376437
2019-02-09 09:45:25 -08:00
Kiran Kumar Lokere
b4d634fbf2 qcacmn: Fix compilation issue with crypto set key
Fix compilation issue with crypto set key feature.

Change-Id: I82d8220a9fea1f9e48338baa74307c124c98e784
CRs-Fixed: 2381329
2019-02-08 15:40:27 -08:00
Dustin Brown
17f1e26784 qcacmn: Use build config for max pdevs/vdevs
The following are currently hardcoded. Instead, use appropriate build
configuration values if available:
 * WLAN_UMAC_MAX_PDEVS
 * WLAN_UMAC_PSOC_MAX_VDEVS
 * WLAN_UMAC_PDEV_MAX_VDEVS

Change-Id: I78986ea2461ab99543aa617f3c5bf12e9aeb890a
CRs-Fixed: 2393639
2019-02-08 12:37:57 -08:00
Abhishek Singh
4122f5dd4c qcacmn: Add debug info if scan filter fails to match the BSS
In driver there is no debug info printed  in case a scan filter
fails to match the BSS even when SSID and BSSID match for the BSS.

Thus add debug info for the cases where the BSS is rejected due
to blacklist, security profile mismatch etc.

Change-Id: I8218f4fe1a64803dc4641be9b66e58301bd6b15b
CRs-Fixed: 2395356
2019-02-08 10:30:23 -08:00
Pragaspathi Thilagaraj
522a2a90bd qcacmn: Move PNO related structures under compiletime flag
Move all the PNO related structures and CFG items under
compile time flag "FEATURE_WLAN_SCAN_PNO"

Change-Id: I0decb3e0a7cf009ce18ef08eae05734962f6f8c7
CRs-Fixed: 2382997
2019-02-08 04:03:44 -08:00
Shiva Krishna Pittala
e587b2d1a3 qcacmn: Remove TSO check in nbuf reference tracking
Currently, QDF tracks nbuf reference of only TSO packets.
Remove the TSO check to extend the supprt to all the packets.
This will help in tracking enhanced multicast packets.

Change-Id: Iacf7d4fc0492470d405d9644d480ad9463bcb543
CRs-Fixed: 2384334
2019-02-08 04:03:41 -08:00
Manjunathappa Prakash
a5a3a1e49d qcacmn: Ignore fragmented packet before peer TID setup
peer->rx_tid[tid].array is initiailized when peer TID is setup.
It seems like we are processing the fragmented Rx packet before peer
TID is setup. Drop the fragmented packet in this case.

Change-Id: Ic076e59a9074efff9fed9f9154aa973c41f67341
CRs-Fixed: 2388684
2019-02-07 20:36:13 -08:00