Commit Graph

245 Commits

Author SHA1 Message Date
Hanumanth Reddy Pothula
07e5f99716 qcacld-3.0: Remove FW memory dump feature
qcacld-2.0 to qcacld-3.0 propagation

FW memory dump feature is no longer used. Hence remove FW memory
dump feature code changes.

Change-Id: Ida655f83630c369df746e7c0c9d61a8fee2932a2
CRs-Fixed: 2140261
2017-12-28 11:54:10 +05:30
Sandeep Puligilla
342d2a6bfc qcacld-3.0: Kbuild changes to enable spectral scan
Add Kbuild changes to build the spectral scan files

Change-Id: Ieeccb322a34ca27642016fec3dc0d7232c7dcf59
CRs-Fixed: 2163445
2017-12-26 17:26:57 -08:00
Amar Singhal
0928b19abe qcacld-3.0: Add sysfs interface for retrieving version information
User-space needs sysfs interface for retrieving version
information for both firmware and driver. Add this new
sysfs interface.

Change-Id: I666aff1868f4d1d954773fae1ae85c1ebd0fdc87
CRs-Fixed: 2153885
2017-12-20 02:26:54 -08:00
Yuanyuan Liu
f45ab3def3 qcacld-3.0: Config driver flags properly when no QMI support
Enable CONFIG_BYPASS_QMI and disable ADRASTEA_SHADOW_REGISTERS when
there's no QMI support in kernel, as shadow registers are configured
by WLAN FW and the configurations are passed through QMI framework.

CRs-Fixed: 2159269
Change-Id: Iaf5b82e37f3983fc18edbcf093b3ebf74d576f71
2017-12-16 01:26:56 -08:00
Srinivas Girigowda
c7a1b0ad16 qcacld-3.0: Remove object files from qca-wifi-host-cmn folder
make clean is not removing the object files in
qca-wifi-host-cmn folder.

CRs-Fixed: 2151813
Change-Id: I56904cdf2154d6bd80aea7fd1bba8d28bd5fe21d
2017-12-12 15:56:38 -08:00
psimha
0b6bb897f3 qcacld-3.0: Add 11AX header flag in Kbuild
Add a new CONFIG_QCA6290_11AX flag to track & enable all 11ax related
header changes.

Change-Id: I265364eafb05c34eea18235a15c5e317716f6ecf
CRs-Fixed: 2124274
2017-12-11 13:56:39 -08:00
Venkata Sharath Chandra Manchala
1240fc7c98 qcacld-3.0: Enable Packetlog for Napier
Add ATH_PKTLOG_LITE_T2H and ATH_PKTLOG_LITE_RX
support for Napier.

Change-Id: I6e2833e2f7e1a4c68c51f7ae83d0ae76f63c9b0f
CRs-Fixed: 2133558
2017-12-09 23:27:07 -08:00
Abhishek Singh
82571c8ec5 qcacld-3.0: Kbuild changes to add new scan files
Kbuild changes to add new scan files, as part of spliting the
filter and bss scoring logic.

Change-Id: Ic239035da1d9cf1478b79c695703b426855eb85f
CRs-Fixed: 2148890
2017-12-06 21:27:07 -08:00
Yun Park
22026c75b7 qcacld-3.0: Enable Metering feature
Enable Data Metering feature in WLAN host driver for SDM845 and SDM670.

Change-Id: If720e40dd299d70b1a6300f56444855ae0f6fc64
CRs-Fixed: 2149525
2017-12-05 07:22:36 -08:00
Will Huang
3cd2b7c566 qcacld-3.0: Enable D0WOW for pcie
Enable FEATURE_WLAN_DOWOW for pcie.
This is for backward compatible with rome fw.

Change-Id: Ia2107ff6939666b4a0bd19d57149d17814f2dfb5
CRs-Fixed: 2070426
2017-11-28 19:39:01 -08:00
Dustin Brown
21a761d385 qcacld-3.0: Enable qdf_debug_domain support
Enable the new resource tracking debug domain feature in the Kbuild.

Change-Id: Icc1170f5a7a4c643289917ce9cf13fe5332cabf5
CRs-Fixed: 2144303
2017-11-22 19:21:26 -08:00
anisha agarwal
188d2549d8 qcacld-3.0: Rename target sdxhedgehog to sdx20
Replace target name sdxhedgehog with sdx20 to maintain
consistency with other components on the same platform.

Change-Id: I257c082c9427f5fb7d699d11924b6bdc1b59f661
CRs-Fixed: 2023531
2017-11-20 04:07:26 -08:00
Dustin Brown
0e769d0284 qcacld-3.0: Include commits since checkout in build tag
Currently, only the Change-Id for HEAD is included in the build tag.
This can be problematic for builds which include hotfixes
(cherry-picks). Include the Change-Ids of every cherry-pick commit since
the last non-cherry-pick commit. This allows developers to quickly
identify the checkout point used to make the build, as well as any
hotfixes applied.

Change-Id: Ibe6259c2e0b46c820e0f1d73a12383e01c10abb8
CRs-Fixed: 2143443
2017-11-14 21:27:45 -08:00
Dustin Brown
96cd9633f1 qcacld-3.0: Include change Ids in build tag
In order to assist in debugging efforts, include both CLD and CMN change
Ids in a build tag. Include the build tag as a part of the driver
version string.

Change-Id: I66d159a1594f71fdf33f3e4b4e6be4840d7e140a
CRs-Fixed: 2142704
2017-11-14 01:42:24 -08:00
Dustin Brown
a2dcb5fb94 qcacld-3.0: Enable QDF cpu hotplug APIs
Enable the new QDF CPU hotplug APIs in Kbuild when CONFIG_SMP is
enabled.

Change-Id: Ib3e1e1fe840f0aae662cd6d32527b174a9c2895c
CRs-Fixed: 2133375
2017-11-07 13:42:37 -08:00
Deepak Dhamdhere
5d7ea2fac9 qcacld-3.0: Add wlan_rome_debug.o to Kbuild
New files are added to qca-wifi-host-cmn project for roam debug
infrastructure. Add the corresponding entry to Kbuild for compilation
of utils/logging/src/wlan_roam_debug.o.

CRs-Fixed: 2135189
Change-Id: I50a3ed760b454ce0de59caec6af7c0b86c556e3e
2017-11-01 14:39:04 -07:00
Kiran Kumar Lokere
e6476b2c02 qcacld-3.0: Add iwpriv support to set HE bss color
Add iwpriv support to set HE bss color in SAP 11AX mode operation

Change-Id: Ib58b93e8a66d9154024e61581885c4a10d737631
CRs-Fixed: 2130322
2017-10-28 03:37:27 -07:00
Orhan K AKYILDIZ
e0d84884a2 qcacld-3.0: Enable TSO segmentation debug for SLUB
Enable TSO segment history collection per TSO segment. This will
allow a better understanding of a rare instance (only 1 instance
so far) where a single TSO segment is detected by memory leak
detection logic.

Change-Id: I7b8277a7307706abdc9a68c8d62fe8c9bcf24513
CRs-Fixed: 2054062
2017-10-25 13:41:11 -07:00
Ashish Kumar Dhanotiya
c0ec623d5f qcacld-3.0: Include WMI_CMD_STRINGS config flag
Include WMI_CMD_STRINGS config flag by default in compilation

Change-Id: If3275ad632efdf639cf7dba3a89b7aff8a955ee7
CRs-Fixed: 2002773
2017-10-24 15:38:29 -07:00
Yun Park
0dad10099d qcacld-3.0: Enable WDI3.0 IPA offload
Enable CONFIG_IPA

Change-Id: I20c6ce30034dd1c66bae32a2b7a891aa04bfa0f4
CRs-Fixed: 2085753
2017-10-23 22:08:34 -07:00
Yun Park
edec48d555 qcacld-3.0: Change to include FW interface file wdi_ipa.h
For WLAN FW-host interface file automation, need to pull in WDI IPA
interface definition file wdi_ipa.h, into WLAN host driver.
This change is to match host dirver MACRO names with wdi_ipa.h.
Enable back CONFIG_IPA_OFFLOAD flag in Kbuild.

Change-Id: I9cd0c3b942c0a7b5e98f589090ae51cc0acf67c2
CRs-Fixed: 2085741
2017-10-23 20:24:00 -07:00
Yun Park
657c7d7a02 qcacld-3.0: WLAN host changes for SDM845
1. To allow WLAN IPA module built for Napali msm-4.9, add to set
   CONFIG_IPA_OFFLOAD build flag 1 when CONFIG_IPA3 is defined
2. Reduce HDD_IPA_MAX_IFACE to 2
3. Rename WDI structure variable num_bam_int_in_non_running_state,
   which is corrected in msm-4.9

Change-Id: I0a58ada19177ab4127e0b4f2e14240c683613192
CRs-Fixed: 2057936
2017-10-23 20:23:58 -07:00
Wu Gao
aa5e3f7476 qcacld-3.0: Remove legacy P2P codes in SAP
To reduce code size, remove legacy P2P codes in SAP layer. Remove
P2P files from Kbuild.

Change-Id: I83a704d3f03e9cb9e6a7420f32d609a323799a12
CRs-Fixed: 2111575
2017-10-18 23:50:55 -07:00
SaidiReddy Yenuga
744073fd06 qcacld-3.0: Fix wlan module loading issue
As part of configure default filters over suspend code
changes wlan module loading broken.

Fix the loading issue by adding the newly added files
to Kbuild.

CRs-Fixed: 2017259
Change-Id: Ib33efa8f7f5e2ca8d9734181df94f70557e9f9cd
2017-10-17 05:05:26 -07:00
Poddar, Siddarth
348727860d qcacld-3.0: Add new data stall detection module in hdd
Add data stall detection module in hdd which handles data
stall reported by host or fw and take necessary recovery
steps based on the data stall type.

Change-Id: Idf6c43f55d1bc115a0c06b4c6ef766ff3ed09bee
CRs-Fixed: 2090643
2017-10-06 12:27:29 -07:00
Frank Liu
1b8212057d qcacld-3.0: TDLS: remove legacy event process
Clear up the tdls legacy tdls firmware events and
implicit tdls discovery request process.

Change-Id: I2e2380b1789cce7841ff0be4120184d1bce0b7e7
CRs-Fixed: 2105075
2017-09-28 09:39:45 -07:00
Arun Khandavalli
08479ba85b qcacld-3.0: Register the netdev notifier before the netdevices
Applications in the userspace can sleep on the RTM events from
the driver. One such application waiting of RTM_NEW_LINK indication
does interface up as soon as it recieves the indication, so the
kernel takes rtnl_lock to call the dev_open on the interface.
Load/unload of the driver and dev_open of the interfaces are
synchronized with hdd_init_deinit_lock. So the __hdd_open is waiting
on the hdd_init_deinit_lock which is currently held by the driver
loading context. After registering the interfaces driver goes to
register the netdev notifier which is blocked on the rtnl_lock
currently held by the dev_open resulting in deadlock.

To mitigate the issue register the netdev notifier before the
interfaces are registered.

Change-Id: Ibb0c187a43ad87fa535ff583316af430e1ddf04f
CRs-Fixed: 2078720
2017-09-26 20:43:43 -07:00
Dustin Brown
0bec9a9259 qcacld-3.0: Prepend kernel includes with "kernel/"
To avoid include conflicts, prepend all kernel includes with "kernel/"

Change-Id: I8a3f037c4abf07b129875b919225825701dc1046
CRs-Fixed: 2094774
2017-09-14 15:41:51 -07:00
Zhu Jianmin
35fcd0dbe7 qcacld-3.0: Enable log to cnss_diag for non-perf sdx
sdx/mdm:
  no-perf: Enable log to cnss_diag by default, have rich debug log.
           Avoid system crash when turn on much log in printk
           QXDM can be used too
  perf:    Disable log to cnss_diag by default for better performance

change-Id: I3b8011b327c78625abe56e9b51167d6ca2e3757f
CRs-Fixed: 2101171
2017-09-06 11:27:13 -07:00
Lin Bai
59b79768d3 qcacld-3.0: Turn on WLAN_NL80211_TESTMODE properly
WLAN_NL80211_TESTMODE need to be controlled by CONFIG_NL80211_TESTMODE,
or compiler will throw error, like - API cfg80211_testmode_* not defined.

CRs-Fixed: 2103007
Change-Id: I84536b8527656d8d0d4a0a7961ca8a83e8dd733c
2017-09-02 00:17:53 -07:00
Sridhar Selvaraj
8c6f5e82b0 qcacld-3.0: Changes to support FILS authentication
Add changes to add support of sending and parsing
authentication packets based on 80211ai specifications.

Change-Id: I684dbc89945ba3aef3186c872e5e1f7564d7e44c
CRs-Fixed: 2028113
2017-08-30 10:45:10 -07:00
Venkata Sharath Chandra Manchala
5e2fef5d39 qcacld-3.0: Remove NAPIER EMULATION flag
Remove QCA_WIFI_NAPIER_EMULATION flag for
Mohave bringup and cleanup the
necessary code under the emulation flag.

Change-Id: I43fcadc7b5e8743b762526157a5a41c5caecebf1
CRs-Fixed: 2096674
2017-08-30 10:40:40 -07:00
gaolez
76d2a16f03 qcacld-3.0: Channel hopping for 2_4G and 5G band
qcacld-2.0 to qcacld-3.0 propagation

Allow device switch to a different channel if the current channel is
congested, using the 11h channel switch announcement.

Change-Id: I1766785017e43f17cc800039b383ee5dabcd6ea5
CRs-Fixed: 2082632
2017-08-22 20:57:57 -07:00
Rajeev Kumar
01e64368ce qcacld-3.0: Enable power offload unit test framework for NP builds
Enable power offload unit test framework for napier emualtion and
SoD builds such that FW low power paging requirement can be profiled.

Change-Id: I961cf7ebfbc529fd1243040aed5d124987ccaed0
CRs-Fixed: 2096444
2017-08-22 13:50:28 -07:00
tfyu
350d9f7552 qcacld-3.0: Add macro protection for HIF CE
Add macro protection for HIF CE, it shouldn't include the ce head file
when the module is usb or sdio.

Change-Id: I426d10fdb4fd7e479f0bc683d857feab8d4d80d8
CRs-Fixed: 2090621
2017-08-17 03:26:59 -07:00
Dustin Brown
48efd5be0a qcacld-3.0: Enable Green AP by default
Currently Green AP is controlled by CONFIG_MOBILE_ROUTER and other
feature flags. Instead, enable Green AP by default in Kbuild.

Change-Id: I2570076f1dd2663f57630aa9808fbcb33b9b0dd2
CRs-Fixed: 2081715
2017-08-15 16:27:59 -07:00
Manjunathappa Prakash
143a24e732 qcacld-3.0: Missing FW interface, disable CONFIG_IPA_OFFLOAD
htt.h FW interface file has missing interface for
WLAN_WDI_IPA_GET_SHARING_STATS_REQ and WLAN_WDI_IPA_SET_QUOTA_ReQ.
Disable IPA until we have them coming from FW file

Change-Id: I0fdec26c6a6b9d5e0f97cb31f344cd6f446b2e53
CRs-Fixed: 2084537
2017-08-11 19:38:13 -07:00
Yingying Tang
71961045fd qcacld-3.0: Disable LFR3.0 for SDX20
Since wifi chip do not supprot LFR3.0 on SDX20, disable LFR3.0
feature in Kbuild, and fix a compilation error.

CRs-Fixed: 2009403
Change-Id: I16eb3bd68d5564801be9cbcf9db1386cb0e3953b
2017-08-09 16:07:53 -07:00
Yun Park
b4f591d8aa qcacld-3.0: Enable WLAN host data path support for IPA WDI3.0
Change to support WLAN Napier host autonomy data path architecture.

Change-Id: I80e8f609587d0df85d2da9fb0f41cb49e02a9d2f
CRs-Fixed: 2033368
2017-08-07 17:47:45 -07:00
Amar Singhal
9583b116c9 qcacld-3.0: Add config for channel enumeration
Add configuration for legacy channel enumeration. This is needed
to conditionally support new dynamic channel enumeration.

Change-Id: Id8ca6a0a0f28de84a4cc0933b466a8b99714aefd
CRs-Fixed: 2048784
2017-08-06 00:59:59 -07:00
c_manjee
36b61839c1 qcacld-3.0: Enable Driver MEMDUMP in Kbuild
MEMDUMP is disabled in Kbuild, Hence the driver memory dump
command is failing.

Enable WLAN_MEMDUMP in Kbuild

CRs-Fixed: 1117348
Change-Id: Ic468a78305a5df409cf95096dfea38cb27aa7c7c
2017-07-30 14:00:43 -07:00
Govind Singh
98b6255df6 qcacld-3.0: Remove QCA_WIFI_3_0_EMU flag from Kbuild
QCA_WIFI_3_0_EMU flag is introduced for IHelium emulation
platform, where wait/error timeouts are kept for larger values.
Remove this flag for production target.
Increase tx completion drain delay to 1sec from 500ms to avoid
unwanted suspend abort.

Change-Id: Ie0633b3a2bbc9e2237039311af7417952961aada
CRs-Fixed: 2047750
2017-07-27 16:59:14 -07:00
Rajeev Kumar
f46083e0e5 qcacld-3.0: Move CLD components outside core folder
Core is legacy module folder in CLD. Hence move MCL specific
components folder outside core.

Change-Id: Iba3f9fdb06ad10dc4a5b19f3ff1ffa23f7372605
CRs-Fixed: 2077963
2017-07-18 01:58:53 -07:00
Manjunathappa Prakash
6c54736903 qcacld-3.0: Add changes for Napier flow control
Adds support for flow control on convergence branch.
We will have global pool and each vdev coming up will have the
descriptors allocated from global pool. Tx queue is paused and unpaused
internally in host based on the stop and start thresholds.
Changes are added under compilation flag QCA_LL_TX_FLOW_CONTROL_V2.

Change-Id: I0ccb80b0099f39efad52ccd7d47f2709fdee2a93
CRs-Fixed: 2040457
2017-07-16 07:01:28 -07:00
Mukul Sharma
d75a667472 qcacld-3.0: Move PMO from CMN to CLD
Move PMO from CMN to CLD.

Change-Id: I31380da668ac3305731b8c9906d343a829777591
CRs-fixed: 2071528
2017-07-14 17:36:11 -07:00
Houston Hoffman
b4d4567fa0 qcacld-3.0: Enable NAPI for lithium
Enable napi and irq affinity for lithium.

Change-Id: Icd90dd6f9e5f4d9b88b8493021e1e6a934678cf6
CRs-Fixed: 2057228
2017-07-13 03:38:06 -07:00
Naveen Rawat
9383625dd6 qcacld-3.0: Add option to avoid timestamp in version string
Adding timestamp in version string is causing long compile times
for wlan project. Add option to avoid timestamp so that developers
can avoid long compile times.

Change-Id: Iaa5fd4f432549844ae319451cb43929a2d4b68ea
CRs-Fixed: 2064805
2017-07-06 15:41:27 -07:00
Jeff Johnson
6fa1e0113b qcacld-3.0: Add HDD FIPS infrastructure
As part of the support for the FIPS certification feature add the
HDD infrastructure.

Change-Id: I76a545c42b10a662db04b5994de100c713a46c59
CRs-Fixed: 2065002
2017-06-29 19:05:58 -07:00
Jeff Johnson
6136fb90e2 qcacld-3.0: Add WMA FIPS infrastructure
As part of the support for the FIPS certification feature add the
WMA infrastructure.

Change-Id: I7e113cee8ba9a08c2efd1141bef84e43d530cdcb
CRs-Fixed: 2065002
2017-06-29 19:05:56 -07:00
Jeff Johnson
7869aadbd4 qcacld-3.0: Add Kbuild support for FIPS feature
In order to get FIPS certification the driver will need to support a
userspace API and accompanying logic to exercise the FIPS WMI
interface exposed by firmware. Since this logic need not be enabled on
production devices, expose a configuration knob so that it can be
enabled or disabled on demand.

Change-Id: I979be0175ea89e9147b07b222f54a7c3fc23dbd9
CRs-Fixed: 2065002
2017-06-29 19:05:54 -07:00