Commit Graph

12140 Commits

Author SHA1 Message Date
Jeff Johnson
6ca5a2c5b2 qcacld-3.0: Remove hdd_roam_tdls_status_update_handler() stub
Change I2e2380b1789cce7841ff0be4120184d1bce0b7e7 ("qcacld-3.0: TDLS:
remove legacy event process") removed the "real" implementation of
hdd_roam_tdls_status_update_handler() but left behind the stub
implementation, so remove the stub as well.

Change-Id: I4862a4cb2b27323c0bb7fb69e6033eaf2a0375b5
CRs-Fixed: 2368715
2018-12-18 16:49:56 -08:00
Jeff Johnson
2122e0c26a qcacld-3.0: Remove struct hdd_tdls_config_params
Change I0fa178bc92bc2a02e45d1ec577f9a54f40d559fb ("qcacld-3.0: Remove
wlan_hdd_tdls_set_params() prototype") removed the last reference to
struct hdd_tdls_config_params. Since it is obsolete, remove the
struct.

Change-Id: I3b5dfc94e17ba1f5b490d10593ba10fd6e33d3f5
CRs-Fixed: 2368714
2018-12-18 16:49:51 -08:00
Jeff Johnson
cab7a40b49 qcacld-3.0: Remove WLAN_HDD_80211_PEER_ADDR_OFFSET macro
Change Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d ("qcacld-3.0: Remove
legacy P2P codes in HDD") removed the only reference to macro
WLAN_HDD_80211_PEER_ADDR_OFFSET. Since it is obsolete, remove it.

Change-Id: I5a298200fc007472651fdab5ded64fb1ee730636
CRs-Fixed: 2368713
2018-12-18 16:49:47 -08:00
Jeff Johnson
12f41227ab qcacld-3.0: Remove obsolete HDD NAN config stubs
Change I5af85d68ee53ad557e64523f7a1719e328536926 ("qcacld-3.0: Update
for converged NAN config params") relocated the NAN INI parsing.
However the change failed to remove the stub implementations of the
following functions, so remove them now:
- hdd_nan_populate_cds_config()
- hdd_nan_populate_pmo_config()

Change-Id: Ic2e7ed3e9a30fb20541734c0a72b55e6478877cf
CRs-Fixed: 2368712
2018-12-18 16:49:37 -08:00
Jeff Johnson
6ba16fda74 qcacld-3.0: Remove WLAN_WAIT_TIME_ABORTSCAN macro
Change I45181908a6a81de21e4ba906f54ae3190aa212d0 ("qcacld-3.0: Use
common scan api to wait on scan to get completed") removed the logic
that used macro WLAN_WAIT_TIME_ABORTSCAN. Since the macro is obsolete,
remove it.

Change-Id: Ie367743e2ba98bac9f554732682d8430c4016c42
CRs-Fixed: 2368711
2018-12-18 16:49:34 -08:00
Jeff Johnson
2044336c28 qcacld-3.0: Remove WLAN_HDD_CHANNEL_IN_UNII_1_BAND macro
Macro WLAN_HDD_CHANNEL_IN_UNII_1_BAND is no longer used, so remove it.

Change-Id: I6003c7d0963acb9c4b1d4314db8814a77daa87e7
CRs-Fixed: 2368710
2018-12-18 16:49:31 -08:00
Jeff Johnson
941694e3c9 qcacld-3.0: Remove WLAN_CHIP_VERSION macro
The WLAN_CHIP_VERSION macro is unused, so remove it.

Change-Id: I2ebd55971712716cebbfa9c20daa267272507708
CRs-Fixed: 2368709
2018-12-18 16:49:28 -08:00
Jeff Johnson
f04367347b qcacld-3.0: Remove legacy WAIT_TIME_TDLS macros
The TDLS functionality has moved to its own component. Left behind in
HDD were the following macros which are now obsolete, so remove them:
- WAIT_TIME_TDLS_LINK_ESTABLISH_REQ
- WAIT_TIME_TDLS_MGMT

Change-Id: Ie9667cafc66975e2cd92265353a8299cb5dff441
CRs-Fixed: 2368708
2018-12-18 16:49:25 -08:00
Jeff Johnson
2e16de98c7 qcacld-3.0: Remove survey_idx field from struct hdd_adapter
Change I2fa509f53b47d65ba0f4abbc438834b85b9c21f6 ("qcacld-3.0: Report
more information in survey dump") removed the legacy survey code that
utilized the survey_idx field in struct hdd_adapter. Since the field
is now obsolete, remove it.

Change-Id: I59653739949692eee4c15d5db1db386deb2d4182
CRs-Fixed: 2368707
2018-12-18 16:49:21 -08:00
Jeff Johnson
e212d0404e qcacld-3.0: Remove IPA contexts from HDD
Since they are now unused remove the hdd_ipa field from struct
hdd_context and the ipa_context field from struct hdd_adapter.

Change-Id: Iec841efdd3aa0f16298c0c58ce5756b325563b34
CRs-Fixed: 2368706
2018-12-18 16:49:17 -08:00
Jeff Johnson
cffe7dfdb3 qcacld-3.0: Remove struct hdd_connect_pm_context
Change Iaa1934594d5ffcf3b90dd2ad41bba4eb62f71119 ("qcacld-3.0: Fix
memleak for pm runtime suspend lock") removed the only usage of struct
hdd_connect_pm_context. Since the struct is obsolete, remove it.

Change-Id: If6e043e3aa2c76bcef6ae63858c5bf51fdfa8d09
CRs-Fixed: 2368705
2018-12-18 16:49:12 -08:00
Jeff Johnson
df4f610d14 qcacld-3.0: Remove TX_SCHED_WRR_PARAM_STRING_LENGTH
Change Iebded11869c55c1797f0521af05585284f46f544 ("qcacld-3.0:
Relocate legacy DP INI items") removed the only references to
TX_SCHED_WRR_PARAM_STRING_LENGTH. Since it is now unused, remove it.

Change-Id: I0d6729af053a543f23b45ef84371886812414870
CRs-Fixed: 2368704
2018-12-18 16:49:08 -08:00
Jeff Johnson
bce28eb11e qcacld-3.0: Remove SapSccChanAvoidance from struct hdd_config
As part of change I374e870610d79cc0d172ae126bfa70dc6d2db9a9
("qcacld-3.0: Remove not used INI CFG") support for the INI item
"gSapSccChanAvoidance" was removed. However that change left behind
the SapSccChanAvoidance field in struct hdd_config. This is now
obsolete, so remove it.

Change-Id: I4950066f492417922ec4054938da1e9acfaf9668
CRs-Fixed: 2368703
2018-12-18 16:49:05 -08:00
nshrivas
ee7eb3f2a9 Release 5.2.0.112E
Release 5.2.0.112E

Change-Id: Ie8da4d8db39b4231d080f3f723ce7b50f8d8fbfe
CRs-Fixed: 774533
2018-12-18 14:29:19 -08:00
Nachiket Kukade
6003bd2adf qcacld-3.0: Route the legacy NAN commands through NAN component
NAN component has been moved to CLD. It includes implementation
of the new NAN command QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
Change the legacy NAN implementation of vendor cmd
QCA_NL80211_VENDOR_SUBCMD_NAN so that the requests go
through the NAN component. Clean up the legacy path.
Functionality remains unchanged for legacy command.

Route the legacy NAN commands through the NAN component.

Change-Id: I542e5afe832619f8c088220cc4456aa7fe4416fd
CRs-Fixed: 2356772
2018-12-18 14:29:19 -08:00
Nachiket Kukade
4f89e9e161 qcacld-3.0: Add support for handling the NAN events
As part of supporting NAN DBS, new WMI TLVs are defined so
that Host can maintain the status of NAN Discovery in sync
with the Firmware. Add modules that process these events and
updates the NAN states.

Add support for handling the NAN events.

Change-Id: Icfcd9c33cc410d9a65140f63cac69ddd69742306
CRs-Fixed: 2355383
2018-12-18 14:29:15 -08:00
Nachiket Kukade
85aa3788b6 qcacld-3.0: Store the NAN target caps inside its private obj
Host will receive the NAN related service capabilities from
the SERVICE_AVAILABLE event. In the HDD callback that gets
called afterwards, set the NAN related capabilities into
the NAN's private PSOC object.

Store the NAN target capabilities inside its private object.

Change-Id: If398b6f253613fc424b7821cfc62b0984ad34b6c
CRs-Fixed: 2356709
2018-12-18 14:29:06 -08:00
Nachiket Kukade
a6a70a98f1 qcacld-3.0: Add support for the new NAN EXT vendor command
As part of the NAN Discovery DBS support, a new vendor command
- QCA_NL80211_VENDOR_SUBCMD_NAN_EXT - has been defined that can
carry the binary blob encapsulated within an attribute and can
carry additional attributes to enhance the NAN command interface.
Add related data structures in NAN component and add modules in
OSIF to parse and sanitize this new command data and forward
the NAN message to the NAN component.

Add support for the new NAN EXT vendor command.

Change-Id: I0e6bb833b01a8cbd65e4d42700b5b70599f3ef99
CRs-Fixed: 2339029
2018-12-18 14:29:02 -08:00
nshrivas
b105e8da48 Release 5.2.0.112D
Release 5.2.0.112D

Change-Id: I16514ed015f517e4c55cbc0704305bd7a7285b2a
CRs-Fixed: 774533
2018-12-18 10:12:58 -08:00
Ashish Kumar Dhanotiya
652c233406 qcacld-3.0: Remove flag WLAN_AP_STA_CONCURRENCY from driver
As STA+SAP concurrency is supported by default in the driver,
flag WLAN_AP_STA_CONCURRENCY is removed from Kbuild, remove
this flag from the driver code also.

Change-Id: Id079e657035c5dd5572f323fefad0dbf96272a77
CRs-Fixed: 2364867
2018-12-18 10:12:58 -08:00
nshrivas
5d0aeebb3a Release 5.2.0.112C
Release 5.2.0.112C

Change-Id: I6ca33371b973dcfe4917eb60a275ea27d149011e
CRs-Fixed: 774533
2018-12-18 07:46:11 -08:00
Abhishek Singh
3360227b8c qcacld-3.0: Fill mgmt_encryption_type in case of RSNE override
In case of RSNE override, the mgmt_encryption_type is not set
and thus AP is not considered as PMF capable by LIM.

TO fix this update mgmt_encryption_type if AP is RSN capable and
profile is RSN capable.

Change-Id: I3350d33ca605c82726156f4f00a8a497dc07d3a8
CRs-Fixed: 2368692
2018-12-18 07:46:10 -08:00
Jeff Johnson
7762006141 qcacld-3.0: Remove PowerUsageControl from struct hdd_config
As part of change Iac183da52495aca07c6270edeb9f383ab49c1ff5
("qcacld-3.0: Add CFG items of power") support for the INI item
"gPowerUsage" was moved from HDD to MLME. However that change left
behind the PowerUsageControl field in struct hdd_config. This is now
obsolete, so remove it.

Change-Id: If5eb74b91f79288a2431b0e806ad89cd3d41b503
CRs-Fixed: 2368702
2018-12-18 07:46:06 -08:00
Visweswara Tanuku
16214ffbe8 qcacld-3.0: Return error for invalid wow pattern
qcacld-2.0 to qcacld-3.0 propagation

Return error from driver whenever user sends invalid
wow pattern via iwpriv command

Change-Id: Iacf84986e95ed3f156fd588d5c855654c3541a89
CRs-Fixed: 2299629
2018-12-18 07:46:02 -08:00
nshrivas
508bc0a223 Release 5.2.0.112B
Release 5.2.0.112B

Change-Id: I9858288c8ee2bce62c4f9f6598302eb0997afc59
CRs-Fixed: 774533
2018-12-18 00:07:51 -08:00
Sourav Mohapatra
a3da1c4f26 qcacld-3.0: Add default NSS to rx_nss before flags calculation
The mcs flags that are sent to the upper layer are derived from mcs
table as present in the driver. Getting the correct values from the
table depends on providing the correct NSS, rate and rate flags.
Currently for the case of TX, all the parameters are passed correctly
but for RX, the NSS is not correct. The rx_nss is set to default value
of 0 where as it should be matched with the value as per the AP
capabilities.

Assign the NSS to the rx_nss as taken from vdev.

Change-Id: Idd579cd23c961d8b194b6b197bc65330be857746
CRs-Fixed: 2366271
2018-12-18 00:07:50 -08:00
Mohit Khanna
8141877926 qcacld-3.0: changes for GRO for TCP packets
Add support for GRO functionality for TCP packets.

CRs-Fixed: 2346997
Change-Id: I9d38c926af4114e90427f5b5c632cd02b9eb3160
2018-12-18 00:07:46 -08:00
nshrivas
8621b1b066 Release 5.2.0.112A
Release 5.2.0.112A

Change-Id: I3452cbb720b1a534f455c0071885965f155a0e7e
CRs-Fixed: 774533
2018-12-17 19:31:06 -08:00
Jeff Johnson
29861acdea qcacld-3.0: Remove nRssiFilterPeriod from struct hdd_config
Change I374e870610d79cc0d172ae126bfa70dc6d2db9a9 ("qcacld-3.0: Remove
not used INI CFG") removed support for the gRssiFilterPeriod
configuration item. However it failed to remove the underlying
nRssiFilterPeriod field from struct hdd_config, so do so now.

Change-Id: I5c8106e7ea57c7ab97213e17628caa1ecdd82b05
CRs-Fixed: 2367390
2018-12-17 13:12:03 -08:00
Jeff Johnson
ab72129316 qcacld-3.0: Re-remove IpaConfig from struct hdd_config
Previously change I5bea63b83ddac62504ef38019aa4034c4e18bca7
("qcacld-3.0: Add IPA CFG items and APIs") relocated the IPA
configuration from HDD to the IPA component. As part of that change
the IpaConfig field was removed from struct hdd_config.

Subsequently change I8cd30439d7ac3de7b550aa5042353cf30e04cbda
("qcacld-3.0: Refactor MLME CFG items and APIs for VHT") inexplicably
restored that field. Since that field is obsolete, remove it again.

In addition remove field IpaClkScalingEnable since this field has
never been used by the current version of the driver.

Change-Id: Ic08dc4b1ec82848512e7667c870dc18de1a343be
CRs-Fixed: 2367389
2018-12-17 13:12:03 -08:00
Jeff Johnson
c57c36816c qcacld-3.0: Remove obsolete MC/BC filter macros
Change I51dcc45d7f2d5ac8a55574b0c6dc0b30458047b8 ("qcacld-3.0: Remove
unused mcast/bcast filter setting") removed some unused MC/BC fields
in the HDD context. However there is still a set of macros that were
used to manipulate these fields that are now unused, so remove thoses
as well.

Change-Id: I7b5a430e125fd7bc4f13943cf63d6d2ec8598e8f
CRs-Fixed: 2367388
2018-12-17 13:12:03 -08:00
Jeff Johnson
63dfda78b3 qcacld-3.0: Remove obsolete aggregation size macros
As part of change Iddde15330c1ad39a59bd9a3c7ea86af971df61b5
("qcacld-3.0: Remove legacy INI items of QOS aggregation configs") the
legacy support for a large number of configuration items was removed,
but the following macros were temporarily left:
- #define CFG_TX_AGGREGATION_SIZE_MIN  0
- #define CFG_TX_AGGREGATION_SIZE_MAX  64
- #define CFG_RX_AGGREGATION_SIZE_MIN  1
- #define CFG_RX_AGGREGATION_SIZE_MAX  64

Subsequently in change I64f474512463d3ba7ac238b2efd0f4cf2e36999b
("qcacld-3.0: Remove legacy CFG macro definitions") the references to
those macros were changed to utilize the converged configuration
infrastructure, but the macros were not removed.

Since these macros are now obsolete, remove them.

Change-Id: Ib2999532d7d60411948b27034ae5ef2acb5010fc
CRs-Fixed: 2367385
2018-12-17 13:12:03 -08:00
Jeff Johnson
04077d6210 qcacld-3.0: Remove legacy ImplicitQosIsEnabled remnants
Change I0c6354960b49d680e3efe304ea3300059c37015c ("qcacld-3.0: ADD
MLME INI items of WMM Configuration") relocated some WMM config items
to MLME. However this change left behind in HDD the documentation and
CFG macros for ImplicitQosIsEnabled, so remove these remnants.

Change-Id: If37f7b37495e6658ec3eaaa542bab7b609ad2efd
CRs-Fixed: 2367384
2018-12-17 13:12:03 -08:00
Jeff Johnson
28260e8288 qcacld-3.0: Remove legacy gAddTSWhenACMIsOff remnants
Change I149971768a7193099926e2778f093dcd073f0461 ("qcacld-3.0: ADD
MLME INI items of WMM Config") relocated the definition of
gAddTSWhenACMIsOff to the MLME component. However this change left
behind in HDD the documentation and CFG macros for this item, so
remove these remnants.

Change-Id: I3cb836bc6292c67850cb5219fc8ca2556a4c0e6c
CRs-Fixed: 2367383
2018-12-17 13:12:02 -08:00
Jeff Johnson
57e4a3ee2f qcacld-3.0: Remove legacy STBC config remnants
Change I8cd30439d7ac3de7b550aa5042353cf30e04cbda ("qcacld-3.0:
Refactor MLME CFG items and APIs for VHT") relocated the definitions
of gEnableRXSTBC and gEnableTXSTBC to the MLME component. However this
change left behind in HDD the documentation and CFG macros for these
items, so remove these remnants.

Change-Id: I22eb72e454fa1f9dcb2c6013c28b5148009ff0d9
CRs-Fixed: 2367382
2018-12-17 13:12:02 -08:00
Jeff Johnson
3b53b70787 qcacld-3.0: Remove config item OkcEnabled remnants
Change Ib2fcdc6318adb488eca5cf47b2b59541020e6009 ("qcacld-3.0: Add
support for PMKID modes of PMK caching and OKC") replaced the config
item OkcEnabled with a new item pmkidModes. However it left behind the
documentation as well as the CFG macros for OkcEnabled, so now remove
those remnants, along with the prototype for the now removed function
hdd_is_okc_mode_enabled().

Change-Id: If2c99717e0e8f3fedfdcc5aee97f2d2de2189bc8
CRs-Fixed: 2367381
2018-12-17 13:12:02 -08:00
Jeff Johnson
798b252b5c qcacld-3.0: Remove legacy PMO configuration remnants
Previously change I9b9ff1f8701168787985cbcb219361a3f63c787f
("qcacld-3.0: Refine PMO configures based on converged cfg component")
introduced PMO items to the converged configuration.

Subsequently change I2cdf18c1000d8cc923c80c00bf530b2b0c60563e
("qcacld-3.0: Apply PMO configures") removed PMO items from the legacy
configuration.

This subsequent change was incomplete. It left behind the legacy
documentation as well as the legacy configuration macros for the
following items, so now remove them:
- gHwFilterMode
- gMCAddrListEnable
- g_enable_packet_filter_bitmap

Change-Id: I7876fc0cd810e1c4f36c30840c1af08387a9d70f
CRs-Fixed: 2367380
2018-12-17 13:12:02 -08:00
Jeff Johnson
c07bd548c9 qcacld-3.0: Remove gEnableMemoryDebug remnants
Previously change I374e870610d79cc0d172ae126bfa70dc6d2db9a9
("qcacld-3.0: Remove not used INI CFG") removed most of the code
associated with the obsolete configuration object gEnableMemoryDebug.
However it left behind the documentation as well as the CFG macros, so
remove those as well.

Change-Id: Ic4d302416630588020111307b73694710e5a269a
CRs-Fixed: 2367379
2018-12-17 13:12:02 -08:00
Jeff Johnson
5a00615f37 qcacld-3.0: Remove legacy DP Trace config macros
Recently change I1938c3f5ab8164e792cb9b1c76e6afa79444bd6f
("qcacld-3.0: Relocate HDD DP ini items") relocated the DP Trace
configuration from the legacy configuration to the converged
mechanism. But this change left behind some macros that are now unused
and obsolete, so remove them.

Change-Id: I1af43a3dd7d85465558195110744a303cce4dff3
CRs-Fixed: 2367378
2018-12-17 13:12:02 -08:00
Jeff Johnson
34f1a7b53e qcacld-3.0: Finish cleanup of concurrent scan config
Previously change Idca5285d58bea659a1a481c1f33827608377ab98
("qcacld-3.0: Cleanup scan concurrent active and passive min time")
partially removed the support for the concurrent scan min timers.
However it left behind the macros used to define the config
parameters, so remove those as well.

Change-Id: I7c5c6e1dc2f89dcb39d7381e01d74ae1c381b7cd
CRs-Fixed: 2367377
2018-12-17 13:12:02 -08:00
Jeff Johnson
4d557f380e qcacld-3.0: Remove legacy LFR config remnants
Change Iebda5bbb3c5c68b922b7f6ac1adaf25cccf903a6 ("qcacld-3.0: Apply
mlme lfr configuraions") relocated a large number of config items from
the legacy HDD config to the MLME config. However this change did not
remove all of the legacy support, so now remove the documentation and
CFG macros for the following:
- roam_bad_rssi_thresh_offset_2g
- enable_5g_band_pref
- 5g_rssi_boost_threshold
- 5g_rssi_boost_factor
- 5g_max_rssi_boost
- 5g_rssi_penalize_threshold
- 5g_rssi_penalize_factor
- 5g_max_rssi_penalize

Change-Id: Idb07ebbe5d6af03de8c46a09365bd74934883719
CRs-Fixed: 2367376
2018-12-17 13:12:02 -08:00
Jeff Johnson
5c04addd7f qcacld-3.0: Remove unused QCA_BAD_PEER_TX_FLOW_CL INI items
As part of change Ic63e07abdabae9795bba6f76daa954235c894245
("qcacld-3.0: Add hdd tx-rx apis for High Latency systems (6/6)") some
data structures were added to support INI configuation for the
QCA_BAD_PEER_TX_FLOW_CL feature. However the INI support is incomplete
and the associated data structures are not being used, so remove them.

Change-Id: I925b53ef7a44a1252ac1cbca5e97d90d0528879d
CRs-Fixed: 2367375
2018-12-17 13:12:02 -08:00
Jeff Johnson
61dd83f9f2 qcacld-3.0: Re-remove PMO items from the HDD config
Previously change I2cdf18c1000d8cc923c80c00bf530b2b0c60563e
("qcacld-3.0: Apply PMO configures") relocated the PMO configuration
items from HDD to the PMO component.

Subsequently change I5046edec1a668e198ed4fcc997a0d24affe342ea
("qcacld-3.0: Add FW offload INI items (1)") inexplicably re-added the
auto_pwr_save_fail_mode and packet_filters_bitmap PMO fields back into
struct hdd_config, so re-remove them.

Change-Id: Iebc9f9046dd537c7be3ede857827b7173ecaf59a
CRs-Fixed: 2367374
2018-12-17 13:12:02 -08:00
Jeff Johnson
ba0773ae95 qcacld-3.0: Remove ol_params.h
Change Ifbb38adba434aa19fade4838e30d39884b6e4615 ("qcacld-3.0: Remove
unnecessary includes from ol_if_athvar.h") removed the only place
where ol_params.h was referenced. Since this file is unused, remove
it.

Change-Id: I8c0e5335f30a0307e7ebac5d33828db41bb8156d
CRs-Fixed: 2366966
2018-12-17 13:12:01 -08:00
Jeff Johnson
489b4643a9 qcacld-3.0: Remove unnecessary includes from ol_if_athvar.h
The header file ol_if_athvar.h is strange in that it is a qcacld-3.0
file that is included by files in the qca-wifi-host-cmn project.  That
model does not conform to the software architecture so there is a plan
to correctly refactor the file. As a preliminary step remove all
include directives that are not actually required by the files that
include this header file.

Change-Id: Ifbb38adba434aa19fade4838e30d39884b6e4615
CRs-Fixed: 2366965
2018-12-17 13:12:01 -08:00
Jeff Johnson
31e7ecfb86 qcacld-3.0: Remove all definitions from ol_if_athvar.h
Currently ol_if_athvar.h defines the following:
- struct ol_version
- enum ol_ath_tx_ecodes
- struct ol_ath_stats

None of these are used, so remove them. This leaves behind just a set
of #include directives.

Change-Id: Ie8c2ee1fa1b3c34f37430633c28987651e60434b
CRs-Fixed: 2366964
2018-12-17 13:12:01 -08:00
Jeff Johnson
237951ba51 qcacld-3.0: Include qdf headers in i_bmi.h
Header file i_bmi.h utilizes several QDF data structures, but it does
not explicitly include the header files which define them. This must
mean that the data structures are being included as a side-effect of
including an unrelated header file.

In an upcoming change the header file ol_if_athvar.h is being
refactored, and that change somehow interferes with the side-effect
that causes the QDF header files to be included by i_bmi.h. So rather
than rely upon the side-effect, explicitly include the necessary
header files.

Change-Id: Icf7d7e4babb14faa41b2ac18c6181a206da9b858
CRs-Fixed: 2366963
2018-12-17 13:12:01 -08:00
Jeff Johnson
c44540a879 qcacld-3.0: Remove unused htt_fw_stats macro ROUND_UP_TO_4
Macro ROUND_UP_TO_4 in htt_fw_stats.c is unused, so remove it.

Change-Id: I2aea830bee4d9e40546a02ee8715995e662cbeb2
CRs-Fixed: 2366962
2018-12-17 13:12:01 -08:00
Jeff Johnson
73aa097a88 qcacld-3.0: Remove unused cds_utils macro IV_SIZE_AES_128
Macro IV_SIZE_AES_128 in cds_utils.c is unused, so remove it.

Change-Id: Ibb757b22168848d959b5fe8974efac45d353fad1
CRs-Fixed: 2366961
2018-12-17 13:12:01 -08:00
Jeff Johnson
51a8052b29 qcacld-3.0: Replace cds_rand_get_bytes()
The functionality provided by cds_rand_get_bytes() replicates
functionality provided by qdf_get_random_bytes(), so use
qdf_get_random_bytes().

Change-Id: I0b855556c9a9861c7067dfadaf0b8a4cdaf8709e
CRs-Fixed: 2366960
2018-12-17 13:12:01 -08:00
Jeff Johnson
b77c0e3843 qcacld-3.0: Use MAX_PMKID_LEN in cds_fils_connection_info
Currently in cds_config.h the macro MAX_PMKID_LEN is not used, and the
pmkid field in struct cds_fils_connection_info uses the "magic number"
16, so replace the magic number with the macro.

Change-Id: I11e7f55d43e5cdd3f222f54434a33c94654f2384
CRs-Fixed: 2366959
2018-12-17 13:12:01 -08:00
Jeff Johnson
5c89b2c49b qcacld-3.0: Fix SNOC condition in i_bmi.h
In i_bmi.h the hif_reg_based_get_target_info() conditional
compilation references SNOC but this is not a macro defined
by the driver. Replace this with the correct macro, HIF_SNOC.

Change-Id: I52969426c58c078b3dd558e825e2a9fb68394536
CRs-Fixed: 2366958
2018-12-17 13:12:01 -08:00
nshrivas
39288c1d1c Release 5.2.0.112
Release 5.2.0.112

Change-Id: I4f62cf8e62f30de940dccf5cfdbcd78a5c5c7d37
CRs-Fixed: 774533
2018-12-17 05:35:39 -08:00
lifeng
db340e7fcd qcacld-3.0: Refine mlme mwc configurations
Refine mlme mwc configurations based on converged cfg component.
Remove related legacy codes.

Change-Id: I2b66ec6c262bdd98f500678d713ed03eb187f1bd
CRs-Fixed: 2352679
2018-12-17 12:14:15 +08:00
nshrivas
a54ab6c03b Release 5.2.0.111Z
Release 5.2.0.111Z

Change-Id: Id477069f0ec569b8ae96361099d788faecdefbf7
CRs-Fixed: 774533
2018-12-16 01:32:23 -08:00
Pragaspathi Thilagaraj
2b9259f963 qcacld-3.0: Refactor WNI_CFG_WPS_UUID cfg to mlme component
WNI_CFG_WPS_UUID should be refactored and adopted by the mlme
component.

Move the cfg item to cfg_mlme_wps_params.h

Change-Id: I79db155ad16998e9d7a7e20c01efbcba1681d61e
CRs-Fixed: 2366599
2018-12-15 19:25:13 -08:00
nshrivas
9ffc59225d Release 5.2.0.111Y
Release 5.2.0.111Y

Change-Id: I7b531f62522db90dfbb5200699af471a512cb730
CRs-Fixed: 774533
2018-12-14 22:49:36 -08:00
Jeff Johnson
cb3e565d3d qcacld-3.0: Remove ol_get_fw_files() prototype
Change I2c217891d0ca4b503e7388b3ebe2f787e8325af5 ("qcacld-3.0: Add
firmware download support for sdio bus (Part 5 - HIF SDIO)") added a
prototype for ol_get_fw_files() but did not add an implementation.
Since nothing uses this prototype, remove it.

Change-Id: Ie3b9aee767e14acc425ca7c365d10cbb73682fb5
CRs-Fixed: 2366957
2018-12-14 22:49:35 -08:00
Jeff Johnson
9837980e05 qcacld-3.0: Remove macro CFG_ACTION_OUI_MAX_LEN
Previously change I6984096719a5abd7fa4f0a4f6641a17d29348332
("qcacld-3.0: Relocate HDD ini items (2)") added macro
CFG_ACTION_OUI_MAX_LEN, but did not add any code which uses it.
All of the Action OUI config items use ACTION_OUI_MAX_STR_LEN,
therefore remove the unused macro.

Change-Id: I8b194ebbbe901a4effef696014551346b3c52645
CRs-Fixed: 2365062
2018-12-14 22:49:31 -08:00
Jeff Johnson
da8f43cc27 qcacld-3.0: Remove pe_ndp_event_handler from t_wma_handle
Previously change I5828002d2363e01f63b0a643a0c59abd52bc4f19
("qcacld-3.0: NAN datapath cleanup") removed the code that uses
the pe_ndp_event_handler but did not remove the field from the
t_wma_handle structure, so remove it now.

Change-Id: I4b23e55fcdb8178d6a272fd46094af5505b94cc7
CRs-Fixed: 2365061
2018-12-14 22:49:27 -08:00
Pragaspathi Thilagaraj
784c492c07 qcacld-3.0: Remove legacy powersave ini and refactor to mlme component
Add the functionality changes to replace the legacy powersave
parameters corresponding to the ini values that were converged.

Remove the legacy powersave ini items.

Change-Id: I1da9af9aac4a02a16dc22a43f7f9d526e196d599
CRs-Fixed: 2364964
2018-12-14 22:49:22 -08:00
Pragaspathi Thilagaraj
43455535fc qcacld-3.0: Converge Powersave related ini items to MLME
Add basic infra to move the following Powersave related
ini to MLME component:
CFG_ENABLE_IMPS               CFG_ENABLE_PS
CFG_AUTO_PS_ENABLE_TIMER      CFG_ICMP_DISABLE_PS
CFG_BMPS_MINIMUM_LI           CFG_BMPS_MAXIMUM_LI
CFG_DTIM_SELECTION_DIVERSITY

This change brings in mlme_init changes, mlme_public_struct.h changes
and cfg_mlme file changes for power save parameters.
Also remove the ini CFG_ICMP_DISABLE_PS_NAME as it is not used.

Change-Id: Ifd74d276b12acc8cd9740c25ee3ca261ed7d0143
CRs-Fixed: 2356897
2018-12-14 22:49:18 -08:00
Dustin Brown
fe50cef303 qcacld-3.0: Add HDD DSC vdev operation start/stop
The Driver Synchronization Core (DSC) is a set of synchronization
primitives for use by the driver's orchestration layer. It provides APIs
for ensuring safe state transitions (including bring up and tear down)
of major driver objects: a single driver, associated psocs, and their
associated vdevs.

Add APIs in HDD for starting and stopping vdev-level operations. These
APIs also provide a register/unregister capability to atomically enable
and disable operation processing for a particular vdev.

Change-Id: I8bfb7a9bc6c16d219eb74eeeb98591fe4fd7984a
CRs-Fixed: 2365189
2018-12-14 22:49:14 -08:00
nshrivas
19263c2574 Release 5.2.0.111X
Release 5.2.0.111X

Change-Id: Iad9f3834fd38aefd732c76118883a5f8d0cdb336
CRs-Fixed: 774533
2018-12-14 19:05:46 -08:00
Harprit Chhabada
4691a470a1 qcacld-3.0: Cleanup scan active, passive and rest concurrent dwell time
Cleanup Scan active, passive and rest concurrent dwell time CFG/INI
references from legacy code

Change-Id: I9b33a578d0075d5b34a2f45fbe0273abb6da78ae
CRs-Fixed: 2363174
2018-12-14 19:05:45 -08:00
nshrivas
296a86e095 Release 5.2.0.111W
Release 5.2.0.111W

Change-Id: I882305c3c0612d0cd823a417fb5696e354e41ce6
CRs-Fixed: 774533
2018-12-14 16:05:56 -08:00
Abhishek Singh
bbe23a736c qcacld-3.0: Fix channel width update sent during channel switch
During channel switch if the new channel's phymode is different
than the old channel the host will update its phymode and
send vdev restart to firmware. Once vdev restart resp is received,
host sends new phymode and channel width to the firmware.

If host process beacon with opmode IE while waiting for vdev restart
response, it check if new channel width in bcn is valid for new
phymode and send channel width to firmware. If channel width changed
is greater than allowed value for older phymode, firmware is not able
to handle it.

Fix is to ignore any opmode IE during channel switch. Also ignore
the beacons with CSA/ECSA IE if channel switch detection is
offloaded. The opmode or any other change in beacon will be detected
with the beacons on new channel once AP moves to new channel.

Change-Id: If3bfb555dfa7b63dc997bbdf2fe6a0836bcf17fd
CRs-Fixed: 2361553
2018-12-14 16:05:55 -08:00
nshrivas
e5e5ab8f92 Release 5.2.0.111V
Release 5.2.0.111V

Change-Id: I28acd9a55b049a44057f9eff2371a86a933b865e
CRs-Fixed: 774533
2018-12-14 14:26:13 -08:00
Pragaspathi Thilagaraj
890d952906 qcacld-3.0: Add debugs in wma_remove_bss_peer path
wma_remove_bss_peer doesn't need req_msg, as only vdev id is
needed. So refine the function definition of wma_remove_bss_peer.

Remove calls to wma_cleanup_target_req_param() if
wma_remove_bss_peer succeeds, as it posts the req->user_data to
firmware. Add debugs in wma_remove_bss path to get more info.

Change-Id: I0d8f0bd74784f0a4542e8ae6301471804285752d
CRs-Fixed: 2363696
2018-12-14 14:26:12 -08:00
nshrivas
386a740a65 Release 5.2.0.111U
Release 5.2.0.111U

Change-Id: I9d536dd3c748b42791caab87e4fd8684cf73afce
CRs-Fixed: 774533
2018-12-14 12:48:34 -08:00
Ajit Pal Singh
ce05896f39 qcacld-3.0: Send WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID if BPF enabled
Send WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID only if BPF is enabled in .ini
file.

Change-Id: Ia093cfaa0ff44e4052150ee943e363ca6412cbe0
CRs-Fixed: 2362929
2018-12-14 12:48:34 -08:00
Chaoli Zhou
50bc9ad9e8 qcacld-3.0: Fix build error at SDX24.le.1.7 platform
Fix 'for' loop initial declarations are only allowed in C99 or C11 mode
build error at SDX24.le.1.7 platform.

Change-Id: I08cc4ee7558f0b390a8c848828272497f517ef08
CRs-Fixed: 2365266
2018-12-14 12:48:29 -08:00
nshrivas
77485371e1 Release 5.2.0.111T
Release 5.2.0.111T

Change-Id: I28535458fc1efada729f7e692f015e6bac2ba7a0
CRs-Fixed: 774533
2018-12-14 11:05:41 -08:00
Alok Kumar
0230129d11 qcacld-3.0: Add WMA callbacks to send peer unmap conf cmd to FW
Add supports to register WMA callbacks to send peer unmap conf
command to FW.

Change-Id: Ia709f5163d5e0a4b9f7141989c4e59183767f00e
CRs-Fixed: 2358129
2018-12-14 11:05:40 -08:00
chenguo
ede57cd0cc qcacld-3.0: Fix NULL VDEV point during peer remove in monitor mode
After gerrit#2436786, vdev in monitor mode is removed from vdev
list of pdev. So it is needed to use the new cdp api, which is
cdp_get_mon_vdev_from_pdev in stead of cdp_get_vdev_from_vdev_id
in monitor mode to register vdev.

CRs-Fixed: 2359997
Change-Id: I75cad531e161748a3830104516e44079dee636ec
2018-12-14 11:05:36 -08:00
Arunk Khandavalli
13015f1059 qcacld-3.0: Initial dsc psoc deployement for syfs entries
Integrate the sysfs entries  to the new dsc psoc infrastructure.

Change-Id: I4ccb012125fed7ff41ce9a4d887e0df6091aec23
CRs-Fixed: 2362343
2018-12-14 11:05:32 -08:00
Arunk Khandavalli
447837f9d2 qcacld-3.0: Initial dsc psoc deployement for cfg80211 ops
Integrate the psoc cfg80211 operations to new dsc
infrastructure.

Change-Id: I66120229752b77286ec3ba24710be1bd4eca24e5
CRs-Fixed: 2362336
2018-12-14 11:05:27 -08:00
Arunk Khandavalli
99716d177a qcacld-3.0: Initial dsc psoc deployement for vendor command
Integrate dsc psoc infrastructure to the vendor commands.

Change-Id: Ic50d7ec0bd32c835e3125a9c895b74cae4d15f09
CRs-Fixed: 2362332
2018-12-14 11:05:23 -08:00
nshrivas
46341514fd Release 5.2.0.111S
Release 5.2.0.111S

Change-Id: Ia659adb9b32b99e6f7be75ad59eb0e4e751c337e
CRs-Fixed: 774533
2018-12-14 07:15:11 -08:00
Sourav Mohapatra
c457ae6f18 qcacld-3.0: Feature flag for Wlan Latency Manager support
WLAN Latency Manager support is one of the capabilities that is sent
along with the service bits by firmware. Currently, driver is not
exposing this feature to the user space.

Create and add support for a feature flag to expose this feature to the
userspace.

Change-Id: Ica8213bdaeb32c7be01b6a71a7d8b7a32dc8611b
CRs-Fixed: 2363704
2018-12-14 07:15:10 -08:00
lifeng
faa83cb69c qcacld-3.0: Refine gFwDebugModuleLoglevel configurations
Refine gFwDebugModuleLoglevel configurations based on converged cfg
component. Remove related legacy codes.

Change-Id: I5a1099872163bdcf0fc2e08478c4b608529db736
CRs-Fixed: 2355599
2018-12-14 07:15:06 -08:00
Rakshith Suresh Patkar
9c46af1764 qcacld-3.0: Add support to dump last n dpt stat records
Add an argument to dump only last n dpt records of debug fs
dump_set_dpt_logs file.

Change-Id: I6ce96d1e57db773386e8ebc29436b33b2211a94f
CRs-Fixed: 2362507
2018-12-14 07:15:02 -08:00
nshrivas
502d2d3545 Release 5.2.0.111R
Release 5.2.0.111R

Change-Id: I36e3df6be6e3220c2086f44b1bb7b6ad7ac82140
CRs-Fixed: 774533
2018-12-14 05:34:51 -08:00
chenguo
2201c0ae46 qcacld-3.0: Fix NULL VDEV pointer during register in monitor mode
After gerrit#2436786(which the Change-ID is
Ie64a05d795660d557d928cb9b874fa5e702f4f55), vdev in monitor mode
is removed from vdev list of pdev. So it is needed to use the new
cdp api, which is cdp_get_mon_vdev_from_pdev instead of
cdp_get_vdev_from_vdev_id in monitor mode to register vdev.

CRs-Fixed: 2350720
Change-Id: Idd36cdb09666783db2042f77708be4dcc6b9d82b
2018-12-14 05:34:50 -08:00
Ashish Kumar Dhanotiya
7a11e273df qcacld-3.0: Enable MAC provisioning from ini
Currently MAC addresses are generated by driver only.
MAC addresses are queried from platform driver or wlan_mac.bin.
If platform driver gives  mac addresses, driver uses it, else it
will use wlan_mac.bin to update MAC addresses. If wlan_mac.bin also
don't have MAC addresses then random MAC addresses are generated
using the HW address or using device serial number.

Add an ini support to enable MAC provisioning. If MAC provisioning
is enabled, ensure that platform driver provides atleast 2 provisioned
MAC addresses. Query the derived addresses also from platform driver.
Generate the remaining random MAC addresses.

Change-Id: Ib943f9de70a78ba5d5e87d81c76b20341893f8e9
CRs-Fixed: 2153836
2018-12-14 05:34:46 -08:00
nshrivas
c05797770c Release 5.2.0.111Q
Release 5.2.0.111Q

Change-Id: Id9efb411ab32478995231140a5505b74c9c15e14
CRs-Fixed: 774533
2018-12-13 23:21:30 -08:00
Bala Venkatesh
cd9decb3f0 qcacld-3.0: Modify the MAX_TX_PWR_CAP to 30dbm
Modify the max tx power value form 22db to 30db
to cover regulatory power requirements.

Change-Id: Id24ed354ed364037ba0ff5dea9de9810fb255962
CRs-fixed: 2362060
2018-12-13 23:21:29 -08:00
Rajeev Kumar Sirasanagandla
d7987f16ef qcacld-3.0: Add ini to disable some aggressive TX features
Add action_oui ini gActionOUIDisableAggressiveTX to identify peers for
which some of aggressive TX features are to be disabled in firmware,
when DUT is operating in softap mode.

Aggressive TX features disabled are SIFS bursting, assist and support of
more than 32 frames in AMPDU.

Change-Id: I89fb6d40be5110b0331e84ed3239cd997ce0c899
CRs-Fixed: 2364888
2018-12-13 23:21:25 -08:00
Manikandan Mohan
9045e2e664 qcacld-3.0: Update for converged thermal throttle params
Update qcacld driver to use converged CFG component for thermal
mitigation throttle offload feature config params. Also cleanup
hdd ini config based redundant entries.

Change-Id: I9c94d1cd7bf9f630ed92ebe0f9f6d6233a216ee5
CRs-fixed: 2358492
2018-12-13 23:21:21 -08:00
Sravan Kumar Kairam
0af1ee5fc2 qcacld-3.0: Update ipa enable config to dp
Currently ipa enable config is not updated to dp as a result
dp ipa configuration is skipped even if ipa is enabled from ini.
Update the ipa enable config to dp config parameters.

Change-Id: I6602f2c9d3ac0a4470f18460b0c1057fab4147ca
CRs-Fixed: 2365811
2018-12-13 23:21:17 -08:00
nshrivas
d8a6844c75 Release 5.2.0.111P
Release 5.2.0.111P

Change-Id: Ie00ee0d2014bddfd310b779003a69fb8cdc45776
CRs-Fixed: 774533
2018-12-13 18:44:29 -08:00
Jeff Johnson
e866cac222 qcacld-3.0: Consolidate DS mode definitions
The file cds_ieee80211_common.h contains a large number of macros that
are used to describe most fields in IEEE 802.11 frames. Despite that,
currently WMA has an enum ds_mode to represent the Distribution System
Mode settings. In order to avoid unnecessary duplicate definitions
remove enum ds_mode and instead use the cds_ieee80211_common macros.

Change-Id: I0dc722009e063a1eac0da4afbe77f96772c583b2
CRs-Fixed: 2365060
2018-12-13 18:44:29 -08:00
Jeff Johnson
06ff3be1eb qcacld-3.0: Remove p2p_lo_in_progress from wma_txrx_node
Previously change I750870ccbe84e817954a3ee1a50e2e8daa5ab661
("qcacld-3.0: Remove obsolete P2P Listen Offload from WMA") removed
the only code that used the p2p_lo_in_progress field in struct
wma_txrx_node. Since it is now obsolete, remove it.

Change-Id: I9e9247a578fb07ef8089f2b5eb544e4e6595244a
CRs-Fixed: 2365059
2018-12-13 18:44:24 -08:00
Jeff Johnson
175e4f91fd qcacld-3.0: Remove Suspend & Resume remnants from WMA
Previously change Iba16643adf1cbd997138c740345e40c00c8e81f6
("qcacld-3.0: Add Suspend and Resume support in PMO") relocated
Suspend/Resume support from WMA to PMO. However that change left
behind in WMA some remnants that are no longer useful such as the
wma_resume_event, so remove them.

Change-Id: Icf35bafd8fdacdbdc71cfb4309a8bd15bfb1a244
CRs-Fixed: 2365057
2018-12-13 18:44:20 -08:00
Jeff Johnson
51971c7494 qcacld-3.0: Revise wma_mcs_rate_match() implementation
Currently some of the parameter names used in the implementation of
wma_mcs_rate_match() do not match the names used in the prototype.
This can be confusing to both humans and to code analysis tools, so
change the camelCase names used in the implementation to match the
prototype.

Change-Id: I87a85a7f1affa6bcad75f33f2bca6aa67475aa47
CRs-Fixed: 2365056
2018-12-13 18:44:16 -08:00
Jeff Johnson
f8e194833c qcacld-3.0: Remove obsolete GEN_PARAM enums
Previously change Id965dd8ee0fbddfa563335fd2fe225dcd20cd162
("qcacld-3.0: Port modulated dtim and override listen interval")
relocated support for configuring Modulated DTIM and Listen Offload
from WMA to PMO. The associated enumerations in enum GEN_PARAM are now
obsolete, so remove them, along with their default value macros.

Change-Id: Iac88c4b5578c24b6fcaefb935459f6e988892a1a
CRs-Fixed: 2365055
2018-12-13 18:44:12 -08:00
Jeff Johnson
083ee823c3 qcacld-3.0: Remove obsolete wma_map_channel() prototype
The driver contains a prototype for wma_map_channel() but no
implementation, so remove the prototype.

Change-Id: I1a8794c103ac78df8ef4fd1c181ee60350c88058
CRs-Fixed: 2365054
2018-12-13 18:44:09 -08:00
Jeff Johnson
1456a1f78a qcacld-3.0: Remove obsolete wma_api prototypes
wma_api.h contains two prototypes for functions that are no longer
a part of the driver, so remove them.

Change-Id: I79c96320a23471e0c21cc04ec1b207cda76db199
CRs-Fixed: 2365053
2018-12-13 18:44:05 -08:00
Jeff Johnson
8ace63dbe9 qcacld-3.0: Remove obsolete parser_api prototypes
parser_api.h contains two prototypes for functions that are no longer
a part of the driver, so remove them.

Change-Id: Id4cc9967ba95d624a2910dec564c68c679279b09
CRs-Fixed: 2365052
2018-12-13 18:44:01 -08:00
Jeff Johnson
d544de42cb qcacld-3.0: Remove sme_qos_a_cto_up_map
The mapping table sme_qos_a_cto_up_map is unused, so remove it.

Change-Id: I1a7b25b07f555dc873cdcafec20f47f1494ec4eb
CRs-Fixed: 2365051
2018-12-13 18:43:57 -08:00