Commit Graph

12518 Commits

Author SHA1 Message Date
Jeff Johnson
0e8259ca6d qcacld-3.0: Refactor MGMT_RETRY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY

Change-Id: I19af4fa260bd837b55dc0ac38ef7556e5f181c13
CRs-Fixed: 2371570
2018-12-25 11:36:50 -08:00
Jeff Johnson
b902100ff3 qcacld-3.0: Refactor AGG_RETRY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY

Change-Id: Ibda27586afb6daf7745c2a98cb947a22975e0453
CRs-Fixed: 2371569
2018-12-25 11:36:50 -08:00
nshrivas
36d70db071 Release 5.2.0.113J
Release 5.2.0.113J

Change-Id: I2ade79f1e8c82166d00d37c4733991d0727bf9df
CRs-Fixed: 774533
2018-12-25 10:29:56 -08:00
Ashish Kumar Dhanotiya
5d781567c8 qcacld-3.0: Update center_freq_2 only for chwidth 80+80
Driver is updating center_frequency_2 in case of channel width
80MHz, 80+80MHz and 160MHz in channel change notification to
hostapd.
Since center_frequency_2 gets used only in case of 80+80 MHz,
update center_freq_2 only for 80+80 MHz.

Change-Id: If66f205eac0c81bbb7a2954c05b2e3d5618ff8f8
CRs-Fixed: 2372039
2018-12-25 10:29:55 -08:00
nshrivas
24d5b76649 Release 5.2.0.113I
Release 5.2.0.113I

Change-Id: Icab66aac5b23ffd10f9bcdeac11de088cb348ec1
CRs-Fixed: 774533
2018-12-25 05:20:57 -08:00
Ashish Kumar Dhanotiya
ff833227e5 qcacld-3.0: Reset recovery in progress flag during probe
Currently in driver at load time if probe fails because
of any reason, as part of FW down, recovery in progress
flag is getting set which is getting reset only in re-init
path. Now when probe starts again as this was load time
failure, this flag is set and there are checks at many
places for this flag in driver where we just don't proceed
further if this flag is set.
One such example of such incident is reg_process_master_chan_list
api where regulatory event is not getting processed because this
flag is set.

To resolve this issue reset recovery in progress flag during probe.
There is no harm in resetting the flag during probe as probe start
indicates that FW is ready.

Change-Id: Ib681870f869060f4511563aa3255aeb0eb8f9f12
CRs-Fixed: 2365416
2018-12-25 05:20:56 -08:00
Abhishek Singh
eb7751ad7b qcacld-3.0: Fix invalid session used in ap ecsa timeout api
If ecsa timeout is active and stop bss is received. During
pe delete session the timer is stopped and destroyed. But if
if timer has already expired and has posted the message to MC
thread the timer callback will be called with pe session which
is already deleted.

Fix this by checking if of pe session is valid in timeout API.
Also reset dfsIncludeChanSwIe during pe delete session.

Change-Id: I67d7e65c8136daaa04afa8b01b7019b0b8b36dae
CRs-Fixed: 2372278
2018-12-25 05:20:52 -08:00
Jeff Johnson
256002f959 qcacld-3.0: Converge on struct del_ts_param
The driver currently defines two different data structures to hold
Delete Tspec parameters:
- tDelTsParams
- struct del_ts_param

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: Ia70b1e17e4446259ff32107ffbc11646d078e1c0
CRs-Fixed: 2371915
2018-12-25 05:20:48 -08:00
nshrivas
03ff21d983 Release 5.2.0.113H
Release 5.2.0.113H

Change-Id: I021f70e54d3c358722e8b513655b522892a48167
CRs-Fixed: 774533
2018-12-25 02:59:11 -08:00
Jeff Johnson
9851fcc55b qcacld-3.0: Converge on struct add_ts_param
The driver currently defines two different data structures to hold
Add Tspec parameters:
- tAddTsParams
- struct add_ts_param

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I298202748b8a0f6c2a9f8a36ca7cdee071d000bf
CRs-Fixed: 2371914
2018-12-25 02:59:10 -08:00
Jeff Johnson
cf2ec16b6a qcacld-3.0: Converge on struct delts_req_info
The driver currently defines two different data structures to hold
Delete Tspec Request parameters:
- tSirDeltsReqInfo
- struct delts_req_info

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I0951c8da636bcbf81a335c0ea1250d721ca5c573
CRs-Fixed: 2371913
2018-12-25 02:59:06 -08:00
Jeff Johnson
5402441a01 qcacld-3.0: Converge on struct aggr_add_ts_param
The driver currently defines two different data structures to hold
aggregate AddTspec parameters:
- tAggrAddTsParams
- struct aggr_add_ts_param

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I960bd79b04838ac675ad49e332a47671faccaaa7
CRs-Fixed: 2371912
2018-12-25 02:59:02 -08:00
nshrivas
706e9072d0 Release 5.2.0.113G
Release 5.2.0.113G

Change-Id: I2a78b41e77c0171d33499429a6f3fd5c83e09cbe
CRs-Fixed: 774533
2018-12-25 00:40:35 -08:00
Jeff Johnson
56471b94c5 qcacld-3.0: Converge on struct mac_tspec_ie
The driver currently defines two different data structures to hold
a TSpec IE field:
- tSirMacTspecIE
- struct mac_tspec_ie

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I2e9da1d72dae3c4b0baa13306ee7ec127895a4f2
CRs-Fixed: 2371911
2018-12-25 00:40:34 -08:00
Jeff Johnson
312348f6ff qcacld-3.0: Converge on struct mac_ts_info
The driver currently defines two different data structures to hold
a TS Info field:
- tSirMacTSInfo
- struct mac_ts_info

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I95bcb4364ee7e3108137c8ceeedf05c7a53bc393
CRs-Fixed: 2371910
2018-12-25 00:40:29 -08:00
Jeff Johnson
92bf60e67a qcacld-3.0: Rename lim_process_ft_aggr_qo_s_rsp()
The function name lim_process_ft_aggr_qo_s_rsp() is mangled,
originally produced by automated camelCase conversion. Rename to
lim_process_ft_aggr_qos_rsp() to make more sense.

Change-Id: I8ca5888594d4384020d14804524f9a669ae8de08
CRs-Fixed: 2371909
2018-12-25 00:40:25 -08:00
nshrivas
655fbbff9d Release 5.2.0.113F
Release 5.2.0.113F

Change-Id: Ib30ce4977f59a085b50168a481b7c2171ff92dee
CRs-Fixed: 774533
2018-12-24 22:29:37 -08:00
Zhang Qian
e33b4b94f8 qcacld-3.0: Clean up OCB legacy code
Clean up OCB legacy code after feature componentization.

CRs-Fixed: 2177619
Change-Id: Ib8a26c9e67e78e53f8b2b4929276060687254ea1
2018-12-24 22:29:37 -08:00
gaurank kathpalia
ece50259ec qcacld-3.0: Set passive scan as false in ACS scan req
Currently the driver doesn't set the passive scan req flag
as false which results in passive scan, and thus introduces
latency.

Fix is to set passive scan as false in ACS scan req.

Change-Id: I1274a4ccb9d99d568c32aeea1a65e4637a82b9c8
CRs-Fixed: 2372103
2018-12-24 22:29:32 -08:00
nshrivas
ab50883975 Release 5.2.0.113E
Release 5.2.0.113E

Change-Id: I561d723e67d5d394d0a4d75c0c68509c90b5157e
CRs-Fixed: 774533
2018-12-24 12:15:45 -08:00
Ashish Kumar Dhanotiya
bf00f82427 qcacld-3.0: Validate all channels for avoid_freq channel list
In avoid frequency vendor command, only data validation is
being done but each individual channel is not getting validated
which may lead to an array out of bound access as the array
which is used to cache the channels has the size of valid number
of channels.

To avoid this, add a check to validate each channel before
updating the unsafe channel list array.

Change-ID: I433e9297207869e43d1a6ee2d621bded2f562656
CRs-Fixed: 2341890
2018-12-24 12:15:44 -08:00
nshrivas
488ac6dba7 Release 5.2.0.113D
Release 5.2.0.113D

Change-Id: Ibbcdc79de4664b4637f2db6362774874337e74a1
CRs-Fixed: 774533
2018-12-24 10:06:35 -08:00
nshrivas
b5e5d84ee2 Release 5.2.0.113C
Release 5.2.0.113C

Change-Id: Id90399d390f4287f81cbf1de3dc2bb6dc6f73fce
CRs-Fixed: 774533
2018-12-24 03:32:38 -08:00
Yeshwanth Sriram Guntuka
14ab04c72f qcacld-3.0: Add host support for db2dbm RSSI changes
Add host support for db2dbm RSSI changes. Firmware
indicates this capability when underlying hardware
has RSSI reporting feature. Based on this capability
host will know if firmware sends SNR or RSSI. If no
capablity is present then host will convert SNR to
rssi using a fixed offset of -96. If capability is
present host will directly use the rssi as it is.

Change-Id: I9058f16c6280d466feb96cf88a8a0d8cd7b02032
CRs-Fixed: 2364023
2018-12-24 03:32:38 -08:00
nshrivas
2cd4c0a291 Release 5.2.0.113B
Release 5.2.0.113B

Change-Id: Ie6ff89c599989b8b45d7b3ebc40a5c506dc15b51
CRs-Fixed: 774533
2018-12-24 00:10:52 -08:00
Arif Hussain
b6ec264531 qcacld-3.0: Add null pointer validation in wma_ll_stats_evt_handler()
Add validation code in wma_ll_stats_evt_handler().

Change-Id: I7d0331ce18b16650540724917194defaf65aed10
CRs-Fixed: 2348596
2018-12-24 00:10:51 -08:00
nshrivas
9f4da456d1 Release 5.2.0.113A
Release 5.2.0.113A

Change-Id: If8bfe386ca215027b81e856f131ffc15be77eb75
CRs-Fixed: 774533
2018-12-23 21:58:40 -08:00
hqu
34a79332a2 qcacld-3.0: Fix seven memory leak in function wma_hold_req_timer
In wma_hold_req_timer(), if wma_crash_on_fw_timeout()
is true, SSR will be triggered, but allocated memory
such as user_data, params and resp are not freed,
result in memory leak.

Fix is to still do wma_send_msg_high_priority() when
wma_crash_on_fw_timeout()is true, so allocated memory
can be freed.

Change-Id: I798bb864e8ad6dc7eb67401a820dc0896892e65e
CRs-Fixed: 2370594
2018-12-23 21:58:40 -08:00
Rakshith Suresh Patkar
c107967468 qcacld-3.0: Use new accessor macro for map_index in qdf_nbuf_cb
The existing accessor macro NBUF_MAP_ID is obsoleted due to
restructuring of qdf_nbuf_cb.

Use new macro QDF_NBUF_CB_RX_MAP_IDX to access map_index.

Change-Id: I23650781cdd770f25b72a0a5fe55acc12d71cb64
CRs-Fixed: 2370724
2018-12-23 21:58:36 -08:00
nshrivas
d8f7c75e12 Release 5.2.0.113
Release 5.2.0.113

Change-Id: If8f2eb1e4764016049712c40ea528b5efb35731b
CRs-Fixed: 774533
2018-12-23 13:59:28 -08:00
Jeff Johnson
f3827507dd qcacld-3.0: Refactor NON_AGG_RETRY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY

Change-Id: I607335f5975d45f2a38503cbaaa557e02818cbdb
CRs-Fixed: 2371568
2018-12-23 13:59:28 -08:00
nshrivas
218a444821 Release 5.2.0.112Z
Release 5.2.0.112Z

Change-Id: Icd7dc733ce712d3db5ebb0a70576d6c4abe4ef55
CRs-Fixed: 774533
2018-12-23 11:37:50 -08:00
Jeff Johnson
47e2e8401b qcacld-3.0: Refactor GUARD_TIME configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME

Change-Id: I3395b39fd150daba2383998d9bef1a58ac61fd4d
CRs-Fixed: 2371567
2018-12-23 11:37:50 -08:00
Jeff Johnson
f15ede01fa qcacld-3.0: Refactor STATS_AVG_FACTOR configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR

Change-Id: Ife9ca5b48a3b64b3de674873a2faf2926df4e60a
CRs-Fixed: 2371566
2018-12-23 11:37:44 -08:00
Jeff Johnson
1feb8a62af qcacld-3.0: Refactor QPOWER configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER

Change-Id: Ic10dd8ef706cb73028fe8523dbb6e0cc0a15ac4a
CRs-Fixed: 2371565
2018-12-23 11:37:39 -08:00
Jeff Johnson
3d4f64cc60 qcacld-3.0: Refactor SCAN_ENABLE configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE

Change-Id: Ia9e97c19c26d7fbdaed0ddaec2def1bdc78ae34c
CRs-Fixed: 2371564
2018-12-23 11:37:34 -08:00
nshrivas
6df886e813 Release 5.2.0.112Y
Release 5.2.0.112Y

Change-Id: I84e6e29df655a5bddaf935453ec4c3bb8f4467bb
CRs-Fixed: 774533
2018-12-22 14:06:11 -08:00
Liangwei Dong
d7c5e01a75 qcacld-3.0: remove legacy roc struct/functions
After p2p componentized, the legacy roc data struct and
functions are not needed. Remove below data struct and
functions:
lim_remain_on_chn_rsp
lim_process_remain_on_chnl_req
lim_process_remain_on_chn_timeout
lim_send_p2p_action_frame
lim_send_sme_roc_rsp
struct sir_roc_rsp
struct sSirRemainOnChnReq
tSirRemainOnChnReq *gpLimRemainOnChanReq

Change-Id: Ie1644bf973e8aba30f44e0750f97b21ec31deb69
CRs-Fixed: 2367914
2018-12-22 14:06:11 -08:00
nshrivas
b32cb26dee Release 5.2.0.112X
Release 5.2.0.112X

Change-Id: If650ffcb4c32573a3a095dc35df025d12eb66e40
CRs-Fixed: 774533
2018-12-22 07:45:00 -08:00
Jeff Johnson
9381d0329f qcacld-3.0: Refactor LRO configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_LRO

Change-Id: I5627292f84cefe79b1a89d1be84cea5d8a7c6cc1
CRs-Fixed: 2371563
2018-12-22 07:45:00 -08:00
Jeff Johnson
6db916208e qcacld-3.0: Refactor LISTEN_INTERVAL configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL

Change-Id: I61b679c4fda4b803a8721054694102c7af46fc88
CRs-Fixed: 2371562
2018-12-22 07:44:54 -08:00
Jeff Johnson
bcaeafb9f6 qcacld-3.0: Refactor MODULATED_DTIM configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
-QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM

Change-Id: Iebadf68ec920ab4198feb5b8ee99ec3d8b961173
CRs-Fixed: 2371561
2018-12-22 07:44:49 -08:00
Jeff Johnson
7f4fd70da6 qcacld-3.0: Refactor FINE_TIME_MEASUREMENT configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT

Change-Id: I8b9914936ed9077b487bb8092246a64a6c5f914b
CRs-Fixed: 2371560
2018-12-22 07:44:44 -08:00
Jeff Johnson
522464b830 qcacld-3.0: Use vtable for CONFIG_SCAN_DEFAULT_IES
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

The QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES attribute handling is
already in a separate function, so add that function to the vtable
instead of calling it directly.

Change-Id: Id77d491ce90bbc1d2a0569af37bba55aeeaa0295
CRs-Fixed: 2371559
2018-12-22 07:44:39 -08:00
Jeff Johnson
b48efe27f1 qcacld-3.0: Add wifi config vtable support
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach

As the first step of this refactoring add the actual vtable
infrastructure.  Later changes will refactor the attribute handling
and populate the vtables.

Change-Id: If79fc61f84bf17a39e300c18681961a4a0e01408
CRs-Fixed: 2371558
2018-12-22 07:44:34 -08:00
nshrivas
95f70363ed Release 5.2.0.112W
Release 5.2.0.112W

Change-Id: I05673c6f4bb3e2b974d774c623825b5f8760dc20
CRs-Fixed: 774533
2018-12-22 05:23:21 -08:00
Rajeev Kumar
55d9a526b3 qcacld-3.0: Dump DPT and MAC trace after LIM detects disconnection
Dump DPT and MAC trace after LIM detects disconnection caused by
deauth or disassoc such that in case of RX data stall we can get
all required logs.

Change-Id: I28b129e5b787391e0064a16d9750c463f2310199
CRs-Fixed: 2371708
2018-12-22 05:23:20 -08:00
Jeff Johnson
9e760830c1 qcacld-3.0: Converge on struct mobility_domain_info
The driver currently defines three different data structures to hold
mobility domain information:
- tSirMobilityDomainInfo
- tCsrMobilityDomainInfo
- struct mobility_domain_info

To align with the converged software architecture remove the two
legacy typedefs and exclusively use the unified WMI structure.

Change-Id: I317b90e47c3db8b74a76c297f6bc42301fa2f80e
CRs-Fixed: 2369476
2018-12-22 05:23:11 -08:00
Jianmin Zhu
bf84593f36 qcacld-3.0: Replace isRoamOffloadEnabled and RoamOffloadEnabled
Replace legacy isRoamOffloadEnabled from csr_config with
converged flag lfr3_roaming_offload.
Fix CamelCase issues for roam offload part.

Change-Id: I89ceda876d5549e9b0959e7e25e317c9667594b5
CRs-Fixed: 2367873
2018-12-22 05:23:07 -08:00
nshrivas
13d9b46548 Release 5.2.0.112V
Release 5.2.0.112V

Change-Id: If3f38889778a2d7f63a709de8749943a4a9d6912
CRs-Fixed: 774533
2018-12-22 02:54:04 -08:00
Nachiket Kukade
089b98361e qcacld-3.0: Handle concurrencies with NAN Discovery
Use policy manager to set and update the NAN Discovery
related connection info. Disable NAN Discovery
explicitly for unsupported concurrencies.

Handle concurrencies with NAN Discovery interface.

Change-Id: I8c9450b034983ef0402fdc878d8b525bedac9f0b
CRs-Fixed: 2358180
2018-12-22 02:54:03 -08:00
Kiran Kumar Lokere
80734c0a31 qcacld-3.0: Fix the issue with MU EDCA param update
Calculate the CW min and max values before configure them to FW.

Change-Id: I3024fcc0aaacda5f307a1b71ea67b87b538a3664
CRs-Fixed: 2371029
2018-12-22 02:53:59 -08:00
Jianmin Zhu
e932fb02f4 qcacld-3.0: Refactor roam scan offload parameters config
After replace CONFIG_MCL with WLAN_FEATURE_ROAM_OFFLOAD in
struct roam_offload_scan_params, roam_offload_params is only
defined under MACRO WLAN_FEATURE_ROAM_OFFLOAD, any access to
roam_offload_params should be under WLAN_FEATURE_ROAM_OFFLOAD.

Refactor function wma_roam_scan_offload_mode, separate roam scan
offload parameters config to another function.

Change-Id: I3b9306ef3c3ad9c451ffb450df9521cde609bca4
CRs-Fixed: 2367841
2018-12-22 02:53:54 -08:00
nshrivas
f6c0c6a804 Release 5.2.0.112U
Release 5.2.0.112U

Change-Id: I529bd9807942f3e8b3a8fdb0a8a79bc4d3ae718a
CRs-Fixed: 774533
2018-12-21 19:23:37 -08:00
Rajeev Kumar
acb73d0200 qcacld-3.0: Reject con mode handler after driver is unloaded
Reject con mode handler after driver is unloaded. Proper order is
Driver needs to be re-loaded again and then con mode change handler
needs to be invoked.

Change-Id: Ibc3dfbae1ba3953af537f2d5f50748598a4fe3e1
CRs-Fixed: 2369284
2018-12-21 19:23:36 -08:00
Jianmin Zhu
9b7bef75ca qcacld-3.0: Fix 2nd STA failed to connect in dbs mode
When STA connect and target AP isn't in scan cache, specific
scan for AP ssid will happen, and roam profile is saved in
scan info.
When scan complete, in registered csr scan callback, if connect
need HW mode change, HW mode change is sent to F/W, and roam
profile in scan info is freed at once.
In HW mode change response handler,  if roam profile in scan info
is found to be freed,  failed to start connect.

Fix:
Make sure roam profile not freed before issue connect.
In specific scan result callback, before issue connect, check
whether need HW mode change.
1. If HW mode change is unneeded or return FAILED, free roam
   profile in scan info.
2. If HW mode change return SUCCESS,  when cmd is finished or
   cancelled, in csr_free_cmd_memory, free roam profile when
   cmd is e_sme_command_set_hw_mode with reason
   POLICY_MGR_UPDATE_REASON_HIDDEN_STA.

Change-Id: I3f87996de4142baea33dd0f56cb2a892f0387336
CRs-Fixed: 2369154
2018-12-21 19:23:32 -08:00
nshrivas
874e3ea2de Release 5.2.0.112T
Release 5.2.0.112T

Change-Id: I28b536a94e5ec111a270b1c2ddce6a4d2287afcd
CRs-Fixed: 774533
2018-12-21 15:16:01 -08:00
Jeff Johnson
e5ec370cee qcacld-3.0: Remove tAniSetTmLevelReq
Change I5afd04a5ed5d4d0bd3438d95cc4f6c214ad4bc3d ("qcacld-3.0: Remove
sme_set_tm_level()") removed the last usage of tAniSetTmLevelReq.
Since it is obsolete, remove it.

Change-Id: I2a44f2a3b5f0e924d4dc0d9a9563b359a0366577
CRs-Fixed: 2371206
2018-12-21 15:16:01 -08:00
Jeff Johnson
b48dda4623 qcacld-3.0: Remove gLimEseTsmTimer from tLimTimers
Timer gLimEseTsmTimer in tLimTimers is unused, so remove it.

Change-Id: I30a67b9bec363330429be07c1b9ca0275154f114
CRs-Fixed: 2371205
2018-12-21 15:15:56 -08:00
Jeff Johnson
51210c8764 qcacld-3.0: Remove gSmeSessionId from tAniSirLim
Field gSmeSessionId in tAniSirLim is unused, so remove it.

Change-Id: I1e22b1e0d7df22e60010d94b956d0f467ad9b5db
CRs-Fixed: 2371204
2018-12-21 15:15:51 -08:00
Jeff Johnson
05c36c18ef qcacld-3.0: Remove rrm_update_start_tsf()
Function rrm_update_start_tsf() is unused, so remove it.

Change-Id: I0d795a9ff42a08806026525366701ce7eaad08c2
CRs-Fixed: 2371203
2018-12-21 15:15:47 -08:00
Jeff Johnson
3acfc6b63f qcacld-3.0: Remove mgmtFrameSessionId from tAniSirLim
Field mgmtFrameSessionId in tAniSirLim is initialized but is otherwise
never referenced. Since the field is unused, remove it.

Change-Id: I27239cbe92d9b1de32fe003cd977e2c8ccc18017
CRs-Fixed: 2371202
2018-12-21 15:15:42 -08:00
Jeff Johnson
7a3b24eea8 qcacld-3.0: Remove lim_set_link_state_ft()
Function lim_set_link_state_ft() is unused, so remove it.

Change-Id: Ib621426cb1956e6d0a2d34dd154cf5f3d55b643d
CRs-Fixed: 2371201
2018-12-21 15:15:38 -08:00
Jeff Johnson
3bdd76217b qcacld-3.0: Remove hdd_wmm_get_uapsd_mask()
Change Idf75957707c3799add0c59fdd532fe0c24d27117 ("qcacld-3.0: Remove
obsolete STA support for SIOCSIWESSID") removed the last client of
hdd_wmm_get_uapsd_mask(). Since this function is now unused, remove
it.

Change-Id: I28b1909690e1f1c813f4169b6429a7faecdac7d6
CRs-Fixed: 2371200
2018-12-21 15:15:33 -08:00
Jeff Johnson
40edc6531b qcacld-3.0: Remove hdd_wlan_set_ht2040_mode()
Function hdd_wlan_set_ht2040_mode() is obsolete, so remove it.

Change-Id: Ie5fef47eda8eb92442bb01f87c6e09d7d0c02b72
CRs-Fixed: 2371199
2018-12-21 15:15:29 -08:00
Jeff Johnson
e0c470959a qcacld-3.0: Remove csr_purge_vdev_all_ser_cmd_list()
Change I1d45de261c50f1835379a9cc1df4631f3e32f459 ("qcacld-3.0: Purge
all serialization commands on csr stop") removed the only client of
csr_purge_vdev_all_ser_cmd_list(). Since this function is now unused,
remove it.

Change-Id: I62ff513aa817d9b7fd4dcec156d53c02a1de40e2
CRs-Fixed: 2371198
2018-12-21 15:15:01 -08:00
Jeff Johnson
bced99ae01 qcacld-3.0: Remove csr_is_sta_session_connected()
Change I913b6e769f282a0f5a0ddb40e54d294ae07deb55 ("qcacld-3.0: Remove
unused concurrency ini parameters") removed the last client of
csr_is_sta_session_connected(). Since this function is unused, remove
it.

Change-Id: I6c14227fb1364b37dd570cd658aedb0b5b10b341
CRs-Fixed: 2371197
2018-12-21 15:14:49 -08:00
Jeff Johnson
2ef037ddcd qcacld-3.0: Remove wma_ipa_uc_stat_request()
Change Ib9cdaf7e8aa019002b9fc02d8ffacfcdb28fc121 ("qcacld-3.0:
Remove sme_ipa_uc_stat_request()") removed the last client of
wma_ipa_uc_stat_request(). Since this function is now obsolete,
remove it.

Change-Id: I965ccad2e94246c0d7d57e85c1fa433eeb5c136e
CRs-Fixed: 2371196
2018-12-21 15:14:37 -08:00
Jeff Johnson
5b21359f5e qcacld-3.0: Remove wma_get_wcnss_software_version()
Change Ief51bcf611d5d5759fa04e05c0bb4d96e44c7a29 ("qcacld-3.0:
Remove sme_get_wcnss_*_version()") removed the last client of
wma_get_wcnss_software_version(). Since this function is obsolete,
remove it.

Change-Id: Ie3e8fcb48e45deebc750c9886f268d5306a7b705
CRs-Fixed: 2371195
2018-12-21 15:14:26 -08:00
Jeff Johnson
7146db75bc qcacld-3.0: Remove wma_get_mac_id_of_vdev()
Function wma_get_mac_id_of_vdev() is unused, so remove it.

Change-Id: Id9283aaff4f9c83f427311191cc3d1777810ac91
CRs-Fixed: 2371194
2018-12-21 15:14:15 -08:00
Jeff Johnson
5a8f11a474 qcacld-3.0: Remove sme_set_tm_level()
Function sme_set_tm_level() is unused, so remove it.

Change-Id: I5afd04a5ed5d4d0bd3438d95cc4f6c214ad4bc3d
CRs-Fixed: 2371193
2018-12-21 15:14:04 -08:00
Jeff Johnson
7d99c7f2bf qcacld-3.0: Remove sme_set_neighbor_scan_min_period()
Change Id39629e33e87ffe6ed58f375609a55e324618693 ("qcacld-3.0: Apply
second part of LFR INIs changes in HDD layer") removed the last client
of sme_set_neighbor_scan_min_period()").  Since this function is
unused, remove it.

Change-Id: I305b9d78582b5e633079daeb864da703428314d8
CRs-Fixed: 2371192
2018-12-21 15:13:53 -08:00
Jeff Johnson
9bf35c4459 qcacld-3.0: Remove sme_set_dhcp_till_power_active_flag()
Change Idf75957707c3799add0c59fdd532fe0c24d27117 ("qcacld-3.0: Remove
obsolete STA support for SIOCSIWESSID") removed the only client of
sme_set_dhcp_till_power_active_flag(). Since this function is now
unused, remove it.

Change-Id: I161122772fbc6e588384ac10382885cafdadbc3e
CRs-Fixed: 2371191
2018-12-21 15:13:43 -08:00
Jeff Johnson
9816a252c2 qcacld-3.0: Remove sme_is_sta_smps_allowed()
Change Ifff2ef2c8790994a68e676b8bba2fb03c21370d4 ("qcacld-3.0: Enable
station SMPS only if the session supported NSS > 1") introduced
function sme_is_sta_smps_allowed(). However this function has
subsequently never been used, so remove it.

Change-Id: I0a4d134986dd3a03d12e907f6df6ecb29b268eb3
CRs-Fixed: 2371155
2018-12-21 15:13:32 -08:00
Jeff Johnson
867c89d833 qcacld-3.0: Remove obsolete sme "is supported" functions
The following legacy functions are unused, so remove them:
- sme_is11d_supported()
- sme_is11h_supported()
- sme_is_wmm_supported()

Change-Id: I50016f7695d873f551f214504b54c0cbeb40564f
CRs-Fixed: 2371154
2018-12-21 15:13:22 -08:00
Jeff Johnson
87ab490a62 qcacld-3.0: Remove sme_ipa_uc_stat_request()
Change Id4691e0f490c2f9bd9ccc8d5225be32002a5df9e ("qcacld-3.0:
Remove legacy IPA code from HDD") removed the last client of
sme_ipa_uc_stat_request().  Since the function is unused, remove it.

Change-Id: Ib9cdaf7e8aa019002b9fc02d8ffacfcdb28fc121
CRs-Fixed: 2371153
2018-12-21 15:13:12 -08:00
Jeff Johnson
de8c2392e1 qcacld-3.0: Remove sme_handle_dfs_chan_scan()
Change I994e53b17788472de979df9dce9e18c6f68de850 ("qcacld-3.0: Add
support for regulatory component ucfg apis") removed the last client
of sme_handle_dfs_chan_scan(). Since this function is now unused,
remove it.

Change-Id: Id4bad555c0cd52c736c7c934e4892953dc27c582
CRs-Fixed: 2371151
2018-12-21 15:13:03 -08:00
Jeff Johnson
ab9e396d51 qcacld-3.0: Remove sme_get_soft_ap_domain()
Function sme_get_soft_ap_domain() is unused, so remove it.

Change-Id: I23da56f1ab4e6396fc17f3523d4f4640041874dd
CRs-Fixed: 2371150
2018-12-21 15:12:53 -08:00
Jeff Johnson
0265e9944f qcacld-3.0: Remove csr_get_infra_session_id()
Change Ib37eff0591d9c043e62883329c12410fcca67223 ("qcacld-3.0: Remove
sme_get_infra_session_id()") removed the only client of
csr_get_infra_session_id(). Since this function is now unused, remove
it.

Change-Id: I32d0875087ad1f55ec8e8ee2985f7397fefb525d
CRs-Fixed: 2371149
2018-12-21 15:12:44 -08:00
Jeff Johnson
cb62be3384 qcacld-3.0: Remove sme_get_infra_session_id()
Function sme_get_infra_session_id() is unused, so remove it.

Change-Id: Ib37eff0591d9c043e62883329c12410fcca67223
CRs-Fixed: 2371148
2018-12-21 15:12:35 -08:00
Jeff Johnson
ba4fd18cba qcacld-3.0: Remove sme_get_infra_operation_channel()
Function sme_get_infra_operation_channel() is unused, so remove it.

Change-Id: I5b2a6e8c3c38c751e5b4f826b8329d34095e18be
CRs-Fixed: 2371147
2018-12-21 15:12:26 -08:00
Jeff Johnson
37cc3c705f qcacld-3.0: Remove sme_feature_caps_exchange()
Change I0ded9473083418f6bb33cec4fa43a17c8c281177 ("qcacld-3.0: Remove
hdd_exchange_version_and_caps()") removed the only client of
sme_feature_caps_exchange(). Since this function is an obsolete stub,
remove it.

Change-Id: I0899e4befbf995436729c90caeda982e8b5ec1ff
CRs-Fixed: 2371146
2018-12-21 15:12:17 -08:00
Jeff Johnson
ce85b5a410 qcacld-3.0: Remove sme_disable_feature_capablity()
Change I0ded9473083418f6bb33cec4fa43a17c8c281177 ("qcacld-3.0: Remove
hdd_exchange_version_and_caps()") removed the only client of
sme_disable_feature_capablity().  Since this function is an obsolete
stub, remove it.

Change-Id: I8cf83e7f370a644c6e814aa7b4aedad1f7fec88f
CRs-Fixed: 2371145
2018-12-21 15:12:08 -08:00
Jeff Johnson
64a419a8ad qcacld-3.0: Remove sap_dfs_is_channel_in_preferred_location()
Change Ia0fa016b174ef4b50e2cc339e4e476ec65642dbf ("qcacld-3.0:
Use dfs component support") removed the last client of
sap_dfs_is_channel_in_preferred_location().  Since this function
is now obsolete, remove it.

Change-Id: I137a00699511c7f019f6cf3b8f0579aeb52c7778
CRs-Fixed: 2371144
2018-12-21 15:12:00 -08:00
Jeff Johnson
ee4e895e01 qcacld-3.0: Remove lim_teardown_infra_bss()
Function lim_teardown_infra_bss() is unused, so remove it.

Change-Id: I608fe64c5e2ef25f57b85e8f8324639da71b8bfa
CRs-Fixed: 2371143
2018-12-21 15:11:51 -08:00
Jeff Johnson
123943afec qcacld-3.0: Remove csr_store_joinreq_param()
Change I92f79f595e881fccb6eb5e87fcfa29e8f26fa1a5 ("qcacld-3.0:
Remove sme_store_joinreq_param()") removed the last client of
csr_store_joinreq_param(). Since this function is now unused,
remove it.

Change-Id: Ie3f7a8a581a505a29ddb96825eafe265c6d01479
CRs-Fixed: 2371142
2018-12-21 15:11:43 -08:00
Jeff Johnson
f34deb8e4a qcacld-3.0: Remove csr_move_bss_to_head_from_bssid()
Change I3050cd9a704f9c2489a11c75cd439224e44b8748 ("qcacld-3.0: Remove
csr_roam_connect_to_last_profile()") removed the last client of
csr_move_bss_to_head_from_bssid(). Since this function is now unused,
remove it.

Change-Id: Ib83c7fa596d589ba9eed5803701f24d4634ad645
CRs-Fixed: 2371141
2018-12-21 15:11:35 -08:00
Jeff Johnson
791bcf9ef3 qcacld-3.0: Remove csr_clear_joinreq_param()
Change I795bfd1d19f81d703bd9d903ebc53e61b014c5c3 ("qcacld-3.0:
Remove sme_clear_joinreq_param()") removed the last client of
csr_clear_joinreq_param().  Since this function is now unused,
remove it.

Change-Id: I8482ddb4c2410c93fc7d982d6f1cd024b4d66d17
CRs-Fixed: 2371140
2018-12-21 15:11:27 -08:00
Jeff Johnson
ac445965cc qcacld-3.0: Remove sme_clear_joinreq_param()
Change I6cb9fe12bee3702556c9b52e7ccb7c69c762d8de ("qcacld-3.0: Remove
legacy code for policy manager restructuring") removed the last client
of sme_clear_joinreq_param(). Since this function is now unused,
remove it.

Change-Id: I795bfd1d19f81d703bd9d903ebc53e61b014c5c3
CRs-Fixed: 2371139
2018-12-21 15:11:19 -08:00
Jeff Johnson
2246ebd499 qcacld-3.0: Remove csr_issue_stored_joinreq()
Change I360a0c0f7508026f1889e1998eeaac01464382de ("qcacld-3.0: Remove
sme_issue_stored_joinreq()") removed the last client of
csr_issue_stored_joinreq().  Since the function is now unused, remove
it.

Change-Id: I0ec6ae46c5b90ab6619f03ab76d95ca4e45ad450
CRs-Fixed: 2371138
2018-12-21 15:11:11 -08:00
Jeff Johnson
38ffcc3155 qcacld-3.0: Remove csr_is_p2p_session_connected()
Change I913b6e769f282a0f5a0ddb40e54d294ae07deb55 ("qcacld-3.0: Remove
unused concurrency ini parameters") removed the last client of
csr_is_p2p_session_connected().  Since this function is now unused,
remove it.

Change-Id: Ifd4f4f52bfe6e5be4b472a47cfea765b336a8daf
CRs-Fixed: 2371137
2018-12-21 15:11:04 -08:00
Jeff Johnson
c9563620b9 qcacld-3.0: Remove csr_is_mcc_supported()
Function csr_is_mcc_supported() is unused, so remove it.

Change-Id: Id0a4196ad502cecd51eb4d8010ce2af0887710a6
CRs-Fixed: 2371136
2018-12-21 15:10:57 -08:00
Jeff Johnson
5721ab88f7 qcacld-3.0: Remove csr_is_infra_connected()
Change I2b469c6cb2e6bdfc735b04e9bd6f12ba0d41fea4 ("qcacld-3.0: Remove
sme_is_sta_p2p_client_connected()") removed the last client of
csr_is_infra_connected().  Since the function is now obsolete, remove
it.

Change-Id: I5a71cad7414aee56a981e640ef66687fe0433b4f
CRs-Fixed: 2371135
2018-12-21 15:10:50 -08:00
Jeff Johnson
738e8fd310 qcacld-3.0: Remove lim_get_wpspbc_sessions()
Change Ia95c4911600a45d1004b9e6148b1b04f414e2475 ("qcacld-3.0: Remove
support for eWNI_SME_GET_WPSPBC_SESSION_REQ") removed the last client
of lim_get_wpspbc_sessions(). Since this function is now obsolete,
remove it.

Change-Id: I2df051e00dd788767c4f176395a50ea2a16eead2
CRs-Fixed: 2371102
2018-12-21 15:10:43 -08:00
Jeff Johnson
847aaffccc qcacld-3.0: Remove gLimHeartBeatCount from tAniSirLim
Field gLimHeartBeatCount in tAniSirLim is initialized but is otherwise
never used, so remove it.

Change-Id: I02c30aa599c1c43bab4cce6f8fff386696e74a96
CRs-Fixed: 2371101
2018-12-21 15:10:36 -08:00
Jeff Johnson
30fd0b54e4 qcacld-3.0: Remove csr_send_mb_get_associated_stas_req_msg()
Change I8beb48c378e532c27f317d946bdf58b2aa512c14 ("qcacld-3.0:
Remove csr_roam_get_associated_stas()") removed the last client of
csr_send_mb_get_associated_stas_req_msg().  Since this function is
obsolete, remove it.

Change-Id: I050383ce7e922fe4e42e1f5c4d2a8260dddbd4bb
CRs-Fixed: 2371100
2018-12-21 15:10:29 -08:00
Jeff Johnson
96bf13b960 qcacld-3.0: Remove csr_is_ibss_started()
Function csr_is_ibss_started() is unused, so remove it.

Change-Id: Ie681bfe30e23093706161d5ab8d218bdbb41c7a8
CRs-Fixed: 2371099
2018-12-21 15:10:23 -08:00
Jeff Johnson
1c9cb873fb qcacld-3.0: Remove csr_is_concurrent_infra_connected()
Change I913b6e769f282a0f5a0ddb40e54d294ae07deb55 ("qcacld-3.0: Remove
unused concurrency ini parameters") removed the last client of
csr_is_concurrent_infra_connected().  Since it is obsolete, remove it.

Change-Id: Ibec4e93c2da7411544c491e08198b146074a1779
CRs-Fixed: 2371097
2018-12-21 15:10:17 -08:00
Jeff Johnson
a50ab22d4a qcacld-3.0: Remove cds_crypto_init()/deinit()
Functions cds_crypto_init() & cds_crypto_deinit() are unused,
so remove them.

Change-Id: If33ee8874b65a5b3e7d5f853b943d12bb1bbb84f
CRs-Fixed: 2371098
2018-12-21 15:10:10 -08:00
Jeff Johnson
b72ff37f86 qcacld-3.0: Remove rrm_get_min_of_max_tx_power()
Function rrm_get_min_of_max_tx_power() is unused, so remove it.

Change-Id: I7b4231bcf735d4fd49082b66e65da04d79422ab1
CRs-Fixed: 2371096
2018-12-21 15:10:04 -08:00
Jeff Johnson
a8b67a2afe qcacld-3.0: Remove populate_dot11f_qos_caps_ap()
Function populate_dot11f_qos_caps_ap() is unused, so remove it.

Change-Id: Ie6d8894cc6a2ce1e2ee1666cbab8d2a30abe361f
CRs-Fixed: 2371095
2018-12-21 15:09:58 -08:00
Jeff Johnson
3e7b7524be qcacld-3.0: Remove populate_dot11f_assoc_res_wsc_ie()
Function populate_dot11f_assoc_res_wsc_ie() is unused, so remove it.

Change-Id: Ib7fa00e1943b6ba3739b40aed9a2194e64804880
CRs-Fixed: 2371094
2018-12-21 15:09:52 -08:00
Jeff Johnson
627ca6ab31 qcacld-3.0: Remove lim_remove_pbc_sessions()
Change Ia95c4911600a45d1004b9e6148b1b04f414e2475 ("qcacld-3.0: Remove
support for eWNI_SME_GET_WPSPBC_SESSION_REQ") removed the last client
of lim_remove_pbc_sessions(). Since the function is now obsolete,
remove it.

Change-Id: Icacb3f2d2097d3f9866251740855770b86ec19bf
CRs-Fixed: 2371093
2018-12-21 15:09:46 -08:00
Jeff Johnson
dfa0356bc4 qcacld-3.0: Remove lim_populate_p2p_mac_header()
Change I64d0b71853004679ae694bcd6ca7a2f2347adc84 ("qcacld-3.0:
Remove legacy P2P codes in MAC") removed the last client of
lim_populate_p2p_mac_header(). Since this function is now
obsolete, remove it.

Change-Id: I3adb55dcf3eb3b14c6f7d6a82e686f13c3d955a1
CRs-Fixed: 2371092
2018-12-21 15:09:41 -08:00
Jeff Johnson
a6231481bc qcacld-3.0: Remove csr_scan_flush_selective_result()
Change I8a4cf81d4a2f561e2464b3e32c21202b5779de07 ("qcacld-3.0:
Remove sme_scan_flush_p2p_result()" removed the last client of
csr_scan_flush_selective_result(). Since this function is now
obsolete, remove it.

Change-Id: I42d5d020e2320a490c38dd7d021dd7ac395717c2
CRs-Fixed: 2370968
2018-12-21 15:09:36 -08:00
Jeff Johnson
dfe72d4f9d qcacld-3.0: Remove csr_roam_get*_pmkid_cache()
Change I98ef4dc56bd820849b038de5b33665f3bb7b01b4 ("qcacld-3.0: Remove
sme_roam_get*_pmkid_cache()") removed the only clients for the
associated CSR functions, so remove the following now obsolete
functions:
- csr_roam_get_pmkid_cache()
- csr_roam_get_num_pmkid_cache()

Change-Id: Id535e5b863e3cd2f2ec538159bc5dac13cc8d568
CRs-Fixed: 2370967
2018-12-21 15:09:30 -08:00
Jeff Johnson
81b765a502 qcacld-3.0: Remove csr_roam_get_connect_state()
Change Ieff533b5abca419fa2ffeabfcbfe9b2cf8eb5879 ("qcacld-3.0: Remove
sme_roam_get_connect_state()") removed the only client of
csr_roam_get_connect_state().  Since this function is now obsolete,
remove it.

Change-Id: If0f8ceaaf0ccddad5e0248b7f5d9cd1c58d5c253
CRs-Fixed: 2370966
2018-12-21 15:09:25 -08:00
Jeff Johnson
51d51f2db5 qcacld-3.0: Remove csr_roam_get_associated_stas()
Change I55b6604b17c736d513dc9baf9045fb634ed7a19d ("qcacld-3.0:
Remove sme_roam_get_associated_stas()") removed the only client of
csr_roam_get_associated_stas().  Since this function is now obsolete,
remove it.

Change-Id: I8beb48c378e532c27f317d946bdf58b2aa512c14
CRs-Fixed: 2370965
2018-12-21 15:09:20 -08:00
Jeff Johnson
3dcc43631b qcacld-3.0: Remove csr_roam_connect_to_last_profile()
Change Idb53c7cd871c0ccbacd3899f14fccc2a67935f4f ("qcacld-3.0:
Remove sme_roam_connect_to_last_profile()" removed the only
client of csr_roam_connect_to_last_profile(). Since this
function is now obsolete, remove it, along with the helper
function csr_roam_join_last_profile().

Change-Id: I3050cd9a704f9c2489a11c75cd439224e44b8748
CRs-Fixed: 2370964
2018-12-21 15:09:15 -08:00
Jeff Johnson
ea56a8bc37 qcacld-3.0: Remove csr_prepare_disconnect_command()
Change I0e27d6dc72e26589b5973bd7668a1783ac132477 ("qcacld-3.0: Remove
serialization from open and close session") removed the last client of
csr_prepare_disconnect_command(). Since this is now obsolete, remove
it.

Change-Id: Ib67f580a79dfc8c29c04c375ce2a8ff1538c7552
CRs-Fixed: 2370962
2018-12-21 15:09:11 -08:00
Jeff Johnson
75ea0e939c qcacld-3.0: Remove csr_is_any_session_connected()
Change I7e04b4488b10021d6815e76d0a55e040756b1794 ("qcacld-3.0: Remove
unused SCAN code under NAPIER_SCAN define") removed the last client of
csr_is_any_session_connected().  Since this function is now obsolete,
remove it.

Change-Id: Ide7a12b07907be0480445f886e419801bda2217d
CRs-Fixed: 2370963
2018-12-21 15:09:07 -08:00
Jeff Johnson
26a420ccdd qcacld-3.0: Remove ValidChannelList from tSirRoamOffloadScanReq
The separate ValidChannelList & ValidChannelCount fields in
tSirRoamOffloadScanReq are obsolete since the valid channels are now
handled as part of the ConnectedNetwork struct, therefore remove
support for these obsolete fields.

Change-Id: Ic413d52f95fcc7082e1dfdd28d28513d6a7a2e7d
CRs-Fixed: 2370961
2018-12-21 15:09:03 -08:00
nshrivas
9ff0acc9e0 Release 5.2.0.112S
Release 5.2.0.112S

Change-Id: Id6fcb7d6b4488b86ddf339b3fb64e349a32e7939
CRs-Fixed: 774533
2018-12-21 12:34:57 -08:00
Jeff Johnson
6c0a46d65b qcacld-3.0: Remove BkidCandidateInfo
The BkidCandidateInfo and NumBkidCandidate fields in struct
csr_roam_session are initialized by csr_reset_bkid_candidate_list(),
but are otherwise unused. Since these are unused, remove the entire
infrastructure.

Change-Id: Ifb29e88b8c137a08ea65625ec4677ec7e8676298
CRs-Fixed: 2370960
2018-12-21 12:34:56 -08:00
Jeff Johnson
300c5852fe qcacld-3.0: Remove NeighborRoamScanRefreshPeriod
Field NeighborRoamScanRefreshPeriod in tSirRoamOffloadScanRsp is
unused, so remove.

Change-Id: I54b9bc8cadfd00aded1719981917254d6fb1b14a
CRs-Fixed: 2370959
2018-12-21 12:34:51 -08:00
Jeff Johnson
d48f004cbe qcacld-3.0: Remove PEPreauthRespTimeout
Field PEPreauthRespTimeout in tCsr11rAssocNeighborInfo is initialized
but never read. Since this field is unused, remove it.

Change-Id: Ifb812d9fec695cf410a10bd40fb4ec97f0c41d16
CRs-Fixed: 2370958
2018-12-21 12:34:47 -08:00
Jeff Johnson
63dab5d270 qcacld-3.0: Remove sme_update_*_retry_limit_threshold()
Change Icb45c37358dcfacbea8e3b3f40b93189d62e1be4 ("qcacld-3.0: Pass
short_retry_limit and long_retry_limit to FW") removed the last cleint
of the following functions:
- sme_update_short_retry_limit_threshold()
- sme_update_long_retry_limit_threshold()

Since these functions are now unused, remove them.

Change-Id: I5dddf069e2a04826e44b7ef1761d326bd88d9408
CRs-Fixed: 2370897
2018-12-21 12:34:43 -08:00
Nachiket Kukade
cf94160805 qcacld-3.0: Add policy mgr changes to manage NAN Discovery
Add NAN Discovery specific modes, modules that manage NAN
Discovery interface. Add cases and exceptions that manage
concurrent operations alongside NAN Discovery.

Add policy manager changes to manage NAN Discovery.

Change-Id: Ib9a10be265c14adf8d1d5f2f2e2b65aa399d6636
CRs-Fixed: 2358183
2018-12-21 12:34:38 -08:00
nshrivas
8fc29775da Release 5.2.0.112R
Release 5.2.0.112R

Change-Id: I6340957a35fbcf7d104fccf98aa44bb6d67a08cb
CRs-Fixed: 774533
2018-12-21 10:05:14 -08:00
Kiran Kumar Lokere
a67af057c8 qcacld-3.0: Fix the issue with beamformee NSTS setting
The user setting value is checked against the previous setting
hence if the current setting value is greater than previous setting
then driver returns error.
Check the user setting value against the range and update the param
value.

Change-Id: I2c730b71668efa7932600328459da9347d3e1d2f
CRs-Fixed: 2371024
2018-12-21 10:05:13 -08:00
Arif Hussain
cca6043ce0 qcacld-3.0: Refactor stats cfg items
Refactor following stats cfg items
CFG_PERIODIC_STATS_DISPLAY_TIME
CFG_LINK_SPEED_RSSI_MID
CFG_REPORT_MAX_LINK_SPEED
CFG_LINK_SPEED_RSSI_LOW
CFG_LINK_SPEED_RSSI_HIGH

Change-Id: I1b699d5fe5b3182c292cf10c85f842169bf14342
CRs-Fixed: 2362068
2018-12-21 10:05:09 -08:00
nshrivas
559b9bf4f8 Release 5.2.0.112Q
Release 5.2.0.112Q

Change-Id: I976d8536cd44884ee0d644cd7a646d051f2db7a6
CRs-Fixed: 774533
2018-12-21 07:47:13 -08:00
Jeff Johnson
459dde4818 qcacld-3.0: Remove sme_store_joinreq_param()
Change I6cb9fe12bee3702556c9b52e7ccb7c69c762d8de ("qcacld-3.0: Remove
legacy code for policy manager restructuring") removed the last client
of sme_store_joinreq_param(). Since it is no longer used, remove it.

Change-Id: I92f79f595e881fccb6eb5e87fcfa29e8f26fa1a5
CRs-Fixed: 2370896
2018-12-21 07:47:12 -08:00
Jeff Johnson
770fdb0b72 qcacld-3.0: Remove sme_scan_flush_p2p_result()
Change Ic160dfafcfa015eb42a226304260b1be3dddc6f0
("qcacld-3.0: cleanup legacy scan request processing"
removed the last client of sme_scan_flush_p2p_result().
Since it is now unused, remove it.

Change-Id: I8a4cf81d4a2f561e2464b3e32c21202b5779de07
CRs-Fixed: 2370895
2018-12-21 07:47:07 -08:00
Jeff Johnson
b3451dcab7 qcacld-3.0: Remove sme_roam_get*_pmkid_cache()
The following functions are unused, so remove them:
- sme_roam_get_pmkid_cache()
- sme_roam_get_num_pmkid_cache()

Change-Id: I98ef4dc56bd820849b038de5b33665f3bb7b01b4
CRs-Fixed: 2370894
2018-12-21 07:47:02 -08:00
Jeff Johnson
7c4eccde0a qcacld-3.0: Remove sme_roam_get_connect_state()
Function sme_roam_get_connect_state() is unused, so remove it.

Change-Id: Ieff533b5abca419fa2ffeabfcbfe9b2cf8eb5879
CRs-Fixed: 2370893
2018-12-21 07:46:57 -08:00
Jeff Johnson
b6cc7fa156 qcacld-3.0: Remove sme_roam_get_associated_stas()
Change I4a452d6eed9eb035ad124fb5cd1fe5f62f507b5f ("qcacld-3.0:
Remove wlansap_get_assoc_stations()") removed the last client of
sme_roam_get_associated_stas(). Since it is now obsolete, remove
it as well.

Change-Id: I55b6604b17c736d513dc9baf9045fb634ed7a19d
CRs-Fixed: 2370892
2018-12-21 07:46:52 -08:00
Jeff Johnson
a064a443e3 qcacld-3.0: Remove sme_roam_connect_to_last_profile()
Function sme_roam_connect_to_last_profile() is unused, so remove it.

Change-Id: Idb53c7cd871c0ccbacd3899f14fccc2a67935f4f
CRs-Fixed: 2370891
2018-12-21 07:46:48 -08:00
Jeff Johnson
979c16e14a qcacld-3.0: Remove sme_reset_power_values_for5_g()
Function sme_reset_power_values_for5_g() is unused, so remove it.

Change-Id: Icec943ba172d35a14b92e85b366845ab7b79469c
CRs-Fixed: 2370890
2018-12-21 07:46:43 -08:00
nshrivas
9fa1ca4430 Release 5.2.0.112P
Release 5.2.0.112P

Change-Id: Ie378c00df742433a1dc5f13ad92dc856d0cdf8ea
CRs-Fixed: 774533
2018-12-21 05:15:42 -08:00
Jeff Johnson
2ebc068751 qcacld-3.0: Remove sme_register_hw_mode_trans_cb()
Change I6cb9fe12bee3702556c9b52e7ccb7c69c762d8de ("qcacld-3.0: Remove
legacy code for policy manager restructuring") removed the client of
sme_register_hw_mode_trans_cb(). Since this function is obsolete,
remove it along with the underlying data structures.

Change-Id: Ibc478a6e2a4d50ee57324ee2431ae677dcb1e3a0
CRs-Fixed: 2370889
2018-12-21 05:15:41 -08:00
Jeff Johnson
5665bfa37b qcacld-3.0: Remove sme_qos_validate_params()
Function sme_qos_validate_params() is unused, so remove it.

Change-Id: I6f967effc1c8e27fbe939504d9bc5675dee3955d
CRs-Fixed: 2370888
2018-12-21 05:15:37 -08:00
Jeff Johnson
9c2cd57d94 qcacld-3.0: Remove sme_issue_stored_joinreq()
Change Ifa27ecdf1e37eda6f929f89da603bc356e9cb7fd ("qcacld-3.0: legacy
code change for policy manager restructuring") removed the only client
of sme_issue_stored_joinreq(). Since this function is now unused,
remove it.

Change-Id: I360a0c0f7508026f1889e1998eeaac01464382de
CRs-Fixed: 2370887
2018-12-21 05:15:32 -08:00
Jeff Johnson
397c19feee qcacld-3.0: Remove sme_is_auto_ps_timer_running()
Change Id84eb7cf579a29da30f3366edef24821fcd5be55 ("qcacld-3.0:
Cleanup qpower vendor command") removed the only client of
sme_is_auto_ps_timer_running(). Since this function is now
unused, remove it.

Change-Id: I00692e5ac8981752e609bb21cef4c76cfc03c838
CRs-Fixed: 2370886
2018-12-21 05:15:28 -08:00
Jeff Johnson
29cb098914 qcacld-3.0: Remove sme_get_wcnss_*_version()
Change I0ded9473083418f6bb33cec4fa43a17c8c281177 ("qcacld-3.0: Remove
hdd_exchange_version_and_caps()") removed the only client of the
following functions:
- sme_get_wcnss_wlan_compiled_version()
- sme_get_wcnss_wlan_reported_version()
- sme_get_wcnss_software_version()
- sme_get_wcnss_hardware_version()

Since these are now obsolete, remove them along with the underlying
tSirVersionType data structure.

Change-Id: Ief51bcf611d5d5759fa04e05c0bb4d96e44c7a29
CRs-Fixed: 2370885
2018-12-21 05:15:23 -08:00
Jeff Johnson
31e70c043b qcacld-3.0: Remove sme_get_roam_beacon_rssi_weight()
Function sme_get_roam_beacon_rssi_weight() is unused, so remove it.

Change-Id: Ide8df4e1f5c11d97b75e568095ffb48bc181286d
CRs-Fixed: 2370884
2018-12-21 05:15:18 -08:00
Jeff Johnson
7fea5c5bff qcacld-3.0: Remove sme_get_channel_bonding_mode*_g()
Change I7c5fc06c66c004aa5c1a208376d1ab4b88956a6f ("qcacld-3.0:
Fix channel selection failure after radar is detected") removed
the only client of functions sme_get_channel_bonding_mode24_g() and
sme_get_channel_bonding_mode5_g(). Snce these are now unused,
remove them.

Change-Id: I21e6b5a927e27063f6393930a3933ee7b53b7e1e
CRs-Fixed: 2370883
2018-12-21 05:15:14 -08:00
Jeff Johnson
ccb2408244 qcacld-3.0: Remove sme_cfg_set_str()
Change Ib943f9de70a78ba5d5e87d81c76b20341893f8e9 ("qcacld-3.0:
Enable MAC provisioning from ini") removed the last client of
sme_cfg_set_str(). Since the CFG is being phased out there
should not be any new clients for this function, so remove it.

Change-Id: Ie97bb639423ceb0be41dab686d85dae46e4acff7
CRs-Fixed: 2370882
2018-12-21 05:15:09 -08:00
Jeff Johnson
ba04f224ad qcacld-3.0: Remove rem_on_chan_ready_event from hdd_adapter
Change Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d ("qcacld-3.0: Remove
legacy P2P codes in HDD") removed the logic which utilized the
rem_on_chan_ready_event field in struct hdd_adapter. Since this field
is no longer used, remove it.

Change-Id: Ic8947dc70d510bd123759e53e58e33c5b64ec130
CRs-Fixed: 2370881
2018-12-21 05:15:05 -08:00
Jeff Johnson
471d77088e qcacld-3.0: Remove eWNI_SME_READY_TO_SUSPEND_IND handling
Change Iba16643adf1cbd997138c740345e40c00c8e81f6 ("qcacld-3.0: Add
Suspend and Resume support in PMO") removed the logic which sent the
eWNI_SME_READY_TO_SUSPEND_IND message. However it left behind the
handler function in SME which will now never be called. Since this
message is now unused, remove the remaining infrastructure that
originally supported this message.

Change-Id: I91ef442eeb3fd0bb6dc3cccd803c77329b0c730f
CRs-Fixed: 2370880
2018-12-21 05:15:00 -08:00
Jeff Johnson
d0cfb937b4 qcacld-3.0: Remove populate_dot11f_assoc_res_wpsi_es()
Function populate_dot11f_assoc_res_wpsi_es() is unused,
so remove it.

Change-Id: Iaf7f033a14ddb92b6a89d765cdba478fc5064a28
CRs-Fixed: 2370878
2018-12-21 05:14:56 -08:00
Jeff Johnson
ebcccb30e4 qcacld-3.0: Remove PE Global Lock infrastructure
Change I64d0b71853004679ae694bcd6ca7a2f2347adc84 ("qcacld-3.0: Remove
legacy P2P codes in MAC") removed the client of the PE Global Lock
Infrastucture. Since this is no longer used, remove it.

Change-Id: I71a7d98667eb779c1f62cc9d02a877814ad1d7a0
CRs-Fixed: 2370877
2018-12-21 05:14:52 -08:00
Jeff Johnson
bc24bc0b92 qcacld-3.0: Remove lim_send_vht_opmode_notification_frame()
Function lim_send_vht_opmode_notification_frame() is unused,
so remove it.

Change-Id: I9a81c5537673ed04e6c0a315fb96b9d4bf284193
CRs-Fixed: 2370876
2018-12-21 05:14:48 -08:00
Jeff Johnson
fe31a6d6d4 qcacld-3.0: Remove is_nan_enabled flag from wma_handle_t
The is_nan_enabled flag in wma_handle_t is written but never read.
Since it is unused, remove it along with the logic that writes it.

Change-Id: I3e7d09ac1ab77427d37a8a45ca5f1612b05c5339
CRs-Fixed: 2370875
2018-12-21 05:14:43 -08:00
nshrivas
e2e23a1cd4 Release 5.2.0.112O
Release 5.2.0.112O

Change-Id: Ic9a597d3e3cf741c2b2a29c1820801e1c694c3a1
CRs-Fixed: 774533
2018-12-21 02:40:41 -08:00
Abhishek Singh
cfc4e23ee9 qcacld-3.0: Fix INI params to get the adaptive dwell time for PNO
PNO adaptive dwell mode is updated from adaptive_dwell_mode_enabled
instead of pnoscan_adaptive_dwell_mode.

Use pnoscan_adaptive_dwell_mode to update the PNO adaptive dwell time
mode.

Change-Id: Ia1f44fa6e3bf65ca41e1a29dcdac345432923e76
CRs-Fixed: 2370377
2018-12-21 02:40:37 -08:00
Alok Kumar
6f20e30949 qcacld-3.0: Avoid rx_ring.refill_debt count to become negative
Here rx_ring.refill_debt can become negative if filled count
returned from htt_rx_ring_fill_n() exceeds the rx_ring.refill_debt.

This is possible because inside htt_rx_ring_fill_n() we always refill
num = qdf_atomic_read(&pdev->rx_ring.refill_debt). Here we do not take
care of already served debt.

Taken care of above by subtracting debt_served from refill debt.

Change-Id: I0c154c978b711da2d8497c50f730619767787188
CRs-Fixed: 2365566
2018-12-21 02:40:32 -08:00
Abhishek Singh
ea20e64629 qcacld-3.0: Clean up remaining unused scan ini
Clean up remaining unused scan ini as below
bug_report_for_no_scan_results
roam_bg_scan_client_bitmap
first_scan_bucket_threshold
early_stop_scan_enable
early_stop_scan_min_threshold
early_stop_scan_max_threshold

Change-Id: I8299832539b8b5eca1db9ab8b135965fb1118168
CRs-Fixed: 2370385
2018-12-21 02:40:28 -08:00
Yeshwanth Sriram Guntuka
06f9cd1d0b qcacld-3.0: Validate session id before checking ps enable timer state
Change interface received fails due to peer existing with same
MAC address. As a result of this, session id is set to invalid
in adapter. hdd_stop invoked after this disables auto ps timer
but since session id is invalid, assert happens since the timer
state is invalid.

Fix is to validate session id before checking auto ps timer
state.

Change-Id: Ie5b5860dfdcc4d678021d8aa2d643f29465d4735
CRs-Fixed: 2365726
2018-12-21 02:40:24 -08:00
nshrivas
d998882ddc Release 5.2.0.112N
Release 5.2.0.112N

Change-Id: Ieef2719ef8c9e979d1fa1fa93bbc9b792c478282
CRs-Fixed: 774533
2018-12-20 14:38:13 -08:00
Jeff Johnson
6866088ec4 qcacld-3.0: Remove sme_is_sta_p2p_client_connected()
Change I8b1ead9902ec93e76f76144118392db38abd38d7 ("qcacld-3.0: Remove
hdd_issta_p2p_clientconnected()") removed the only caller of
sme_is_sta_p2p_client_connected(). Since the function is now unused,
remove it.

Change-Id: I2b469c6cb2e6bdfc735b04e9bd6f12ba0d41fea4
CRs-Fixed: 2370794
2018-12-20 09:13:35 -08:00
Jeff Johnson
4ab662b26f qcacld-3.0: Remove hdd_issta_p2p_clientconnected()
Function hdd_issta_p2p_clientconnected() is unused, so remove it.

Change-Id: I8b1ead9902ec93e76f76144118392db38abd38d7
CRs-Fixed: 2370793
2018-12-20 09:13:35 -08:00
Jeff Johnson
9bc7982b45 qcacld-3.0: Remove populate_dot11f_wmm_schedule()
Function populate_dot11f_wmm_schedule() is unused, so remove it.

Change-Id: I74d3f38bc5a20dfc102745a44f190e155d83b216
CRs-Fixed: 2370792
2018-12-20 09:13:34 -08:00
Jeff Johnson
0fadd22e56 qcacld-3.0: Remove populate_dot11f_wider_bw_chan_switch_ann()
Function populate_dot11f_wider_bw_chan_switch_ann() is unused,
so removeit.

Change-Id: I88cea0abaa376798a468bf35ef120d14115c915b
CRs-Fixed: 2370791
2018-12-20 09:13:34 -08:00
Jeff Johnson
fdec4b63f8 qcacld-3.0: Remove mac_trace_msg_*_new()
Functions mac_trace_msg_rx_new() and mac_trace_msg_tx_new() are
unused, so remove them.

Change-Id: I22c6846769a4c6d76d0cfae02fee1e1c01061fbe
CRs-Fixed: 2370790
2018-12-20 09:13:34 -08:00
Jeff Johnson
4a62076ace qcacld-3.0: Remove lim_send_tpc_request_frame()
Function lim_send_tpc_request_frame() is unused, so remove it.

Change-Id: I9667db6d916e1d20e64adfd96ef49b093e8f2328
CRs-Fixed: 2370789
2018-12-20 09:13:34 -08:00
Jeff Johnson
d473a60b27 qcacld-3.0: Remove lim_send_sme_roc_rsp()
Function lim_send_sme_roc_rsp() is unused, so remove it.

Change-Id: I5f031ea0195f65bc3307636c4ed254bca82c0760
CRs-Fixed: 2370788
2018-12-20 09:13:34 -08:00
Jeff Johnson
47ead069c6 qcacld-3.0: Remove lim_is_noa_insert_reqd()
Function lim_is_noa_insert_reqd() is unused, so remove it.

Change-Id: I1f106fee092e52e27dcc01cc39f73b6c38d2f033
CRs-Fixed: 2370787
2018-12-20 09:13:34 -08:00
Jeff Johnson
a7aa17c012 qcacld-3.0: Remove lim_get_noa_attr_stream_in_mult_p2p_ies()
Function lim_get_noa_attr_stream_in_mult_p2p_ies() is unused,
so remove it.

Change-Id: Ib03f80bfc983cfa018bf6dbc55bde56072d55364
CRs-Fixed: 2370786
2018-12-20 09:13:34 -08:00
Jeff Johnson
81b606553b qcacld-3.0: Remove lim_get_current_operating_channel()
Function lim_get_current_operating_channel() is unused,
so remove it.

Change-Id: Ia19590a4b20ffe07488b6ce49f10eec17b9d3719
CRs-Fixed: 2370785
2018-12-20 09:13:34 -08:00
Jeff Johnson
06eb8ed667 qcacld-3.0: Remove lim_get_bss_id_from_sme_join_req_msg()
Function lim_get_bss_id_from_sme_join_req_msg() is unused,
so remove it.

Change-Id: Ic1b154a2cb284512d4464821c67b08f5c168b19c
CRs-Fixed: 2370784
2018-12-20 09:13:34 -08:00
Jeff Johnson
8977d22dc7 qcacld-3.0: Remove gLimDeauthReasonCode from tAniSirLim
The gLimDeauthReasonCode field in tAniSirLim is initialized to 0 but
is otherwise never referenced. Since the field is ultimately unused,
remove it.

Change-Id: Ic3da451c4b3540ba72d45a1f03b0e89cc2ece725
CRs-Fixed: 2370783
2018-12-20 09:13:34 -08:00
Jeff Johnson
5e6275c7d5 qcacld-3.0: Remove gHTRifsMode from tAniSirLim
The gHTRifsMode field in tAniSirLim is written but never read.
Since the field is ultimately unused, remove it.

Change-Id: I7ad1f977d354bf80b66a1dc04c2afb8ca0f42719
CRs-Fixed: 2370782
2018-12-20 09:13:34 -08:00
Jeff Johnson
50f7442693 qcacld-3.0: Remove sme_handle_set_fcc_channel()
Change I994e53b17788472de979df9dce9e18c6f68de850 ("qcacld-3.0: Add
support for regulatory component ucfg apis") removed the last caller
of sme_handle_set_fcc_channel(). Since the function is now obsolete,
remove it.

Change-Id: Ie5ca8d32e9286209395f6e8992b2292fec2354f2
CRs-Fixed: 2370781
2018-12-20 09:13:33 -08:00
Jeff Johnson
dbbc885e28 qcacld-3.0: Remove csr_to_upper()
Function csr_to_upper() is unused, so remove it.

Change-Id: I7341cfc11287657036b9f5afb77495254aee3a04
CRs-Fixed: 2370780
2018-12-20 09:13:33 -08:00
Jeff Johnson
58d578bc0a qcacld-3.0: Remove csr_roam_reconnect()
Function csr_roam_reconnect() is unused, so remove it.

Change-Id: I8e9f51a037d598f2bfad2fbab375a0c4c0a9ccc0
CRs-Fixed: 2370779
2018-12-20 09:13:33 -08:00
Jeff Johnson
17c392616b qcacld-3.0: Remove csr_roam_get_wapi_*_ie()
Functions csr_roam_get_wapi_req_ie() & csr_roam_get_wapi_rsp_ie()
are unused, so remove them.

Change-Id: If4f8a3cd00c7853657cd1f446ba4e3dc3c422370
CRs-Fixed: 2370778
2018-12-20 09:13:33 -08:00
Jeff Johnson
14716aa3ec qcacld-3.0: Remove csr_is_bss_type_match()
Function csr_is_bss_type_match() is unused, so remove it.

Change-Id: Ib8160f6a8ed3cdc6e5abb8604449ea14d7ec6b64
CRs-Fixed: 2370777
2018-12-20 09:13:33 -08:00
Jeff Johnson
fd5c269c71 qcacld-3.0: Remove csr_is11d_supported()
Function csr_is11d_supported() is no longer used, so remove it.

Change-Id: Icf4454f243e5eb12d1b794f526c28a3e9d4bffe1
CRs-Fixed: 2370776
2018-12-20 09:13:33 -08:00
Jeff Johnson
6f3506eecc qcacld-3.0: Remove cds_upper_to_lower()
Utility function cds_upper_to_lower() is unused, so remove it.

Change-Id: I27464377fd10f0d3c4172ef4e3fe59ff6310aa61
CRs-Fixed: 2370775
2018-12-20 09:13:32 -08:00
Jeff Johnson
1fca7b0507 qcacld-3.0: Remove cds_get_monotonic_boottime()
Utility function cds_get_monotonic_boottime() is unused, so remove it.

Change-Id: I85ab8be34b2fde61f710384acb2b727456adf760
CRs-Fixed: 2370774
2018-12-20 09:13:32 -08:00
Jeff Johnson
a73a93a877 qcacld-3.0: Remove cancel_rem_on_chan_var from struct hdd_adapter
Change Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d ("qcacld-3.0:
Remove legacy P2P codes in HDD") removed the code that utilized
the cancel_rem_on_chan_var completion variable. Since it is no
longer used, remove the remaining references to it.

Change-Id: Icb2701a8335042aade3a2c7eb0af308e8bdfc658
CRs-Fixed: 2370037
2018-12-20 09:13:32 -08:00
Jeff Johnson
d7649c4800 qcacld-3.0: Clean up legacy 11d remnants
Change I6f6710450ff692f4722ccb6d704871f50178680c ("qcacld-3.0: Cleanup
the legacy Scan cache") removed most of the legacy scan cache logic.
However it left behaind a few remants of the old 11d logic, so remove
them.

Change-Id: I03af09c622f2e52cdc54737ed8791e46409604b4
CRs-Fixed: 2370035
2018-12-19 20:54:31 -08:00
Jeff Johnson
de971dc3fb qcacld-3.0: Remove legacy scan message structs
The legacy scan structs tSirSmeScanAbortReq and tSirSmeGetScanChanReq
are unused, so remove them.

Change-Id: I72e75145f4dcf3a578b52d9d1be841a12d67a2d3
CRs-Fixed: 2370034
2018-12-19 20:54:31 -08:00
Jeff Johnson
b67b8a5047 qcacld-3.0: Remove tSirNsOffloadReq
Change I823ba0a426cce5a5717cf2b693b49c8f8a2f7a29 ("qcacld-3.0: Add
support for arp/ns offload in PMO component") removed the references
to the nsOffloadInfo field in tSirHostOffloadReq as well as to the
underlying tSirNsOffloadReq structure, so remove these obsolete data
structures.

Change-Id: I44724334c3e0483ec9403f94259ac531cce59bb4
CRs-Fixed: 2370033
2018-12-19 20:54:31 -08:00
Jeff Johnson
96e1b8e9f3 qcacld-3.0: Remove tSmeGetScanChnRsp & tLimScanChn
Change I590745af3943a8975fb0644d02e58b2133c9f1cb ("qcacld-3.0: Add
changes to get/flush scan results") migrated to the converged scan
model. The legacy scan data structures tSmeGetScanChnRsp & tLimScanChn
are now unused, so remove them.

Change-Id: I61033b1f7b0eba43186f0ae24b9da3f5588f03b9
CRs-Fixed: 2370032
2018-12-19 20:54:31 -08:00
Jeff Johnson
a41fe79d2d qcacld-3.0: Remove struct ani_roc_req
Change I2f7d4c14d4ba2df9360351bdc55a8ba92ec9caf9 ("qcacld-3.0:
Remove legacy P2P codes in SME") removed the last reference to
struct ani_roc_req. Since this struct is unused, remove it.

Change-Id: I328481b5334b3f0c6f586d7360fe58e55a56166d
CRs-Fixed: 2370031
2018-12-19 20:54:31 -08:00
Jeff Johnson
f0ef8b8018 qcacld-3.0: Remove tSirSmeProbeReq
The current version of the driver does not used tSirSmeProbeReq,
except for one reference in LIM which is actually referencing the
wrong typedef, so fix the bad reference and remove the obsolete
typedef.

Change-Id: I314df685eb5da110021da2aafb6eab46e2f07d42
CRs-Fixed: 2370030
2018-12-19 20:54:31 -08:00
Jeff Johnson
ecb0cd7f0a qcacld-3.0: Remove tSirWlanResumeParam
The current version of the driver has not used tSirWlanResumeParam,
so remove it.

Change-Id: I7b01b9f27d45592ec970cd35c98d458f3ca62640
CRs-Fixed: 2370029
2018-12-19 20:54:30 -08:00
Jeff Johnson
5a8dab9e27 qcacld-3.0: Remove tSirUpdateAPWPARSNIEsReq
Change I4e89efe38776eb74c702485020236cfaee50641f ("qcacld-3.0: Remove
obsolete csr_roam_update_wparsni_es()") removed the last references to
tSirUpdateAPWPARSNIEsReq. Since this typedef is now unused, remove it.

Change-Id: I64d3baaf7ebd168ef4510ec5483be71d1416d390
CRs-Fixed: 2370028
2018-12-19 20:54:30 -08:00
Jeff Johnson
af15a1c20f qcacld-3.0: Remove WLAN_WAPI_KEY_RSC_LEN macro
The macro WLAN_WAPI_KEY_RSC_LEN has never been used by the current
generation of the driver, so remove it.

Change-Id: I696052e84025477f483a37b844c70d135832f97b
CRs-Fixed: 2370027
2018-12-19 20:54:30 -08:00
Jeff Johnson
ee846a5a0b qcacld-3.0: Remove MAX_NUM_LEGACY_BSSID_PER_CHANNEL macro
Change I98c1caac415ca90a1101b64e49b0909b46d42616 ("qcacld-3.0: Remove
obsolete member variables of tAniSirLim") removed the only reference
to macro MAX_NUM_LEGACY_BSSID_PER_CHANNEL.  Since this macro is now
unused, remove it.

Change-Id: I2ae846a1fe7dd4b8a0905e4babfc761f67dc5545
CRs-Fixed: 2370026
2018-12-19 20:54:30 -08:00
Jeff Johnson
1abb0d2236 qcacld-3.0: Remove enum tdls_concerned_external_events
Change Ia860904685fc4783453491effa4518777c7406d0 ("qcacld-3.0:
TDLS: remove legacy interfaces") removed the last reference to
enum tdls_concerned_external_events. Since this enum is now unused,
remove it.

Change-Id: Ie21072a45d7c083d4f0f661906ca9cabb17a6178
CRs-Fixed: 2370025
2018-12-19 20:54:30 -08:00
Jeff Johnson
884d329c33 qcacld-3.0: Remove WLAN_WAIT_TIME_COUNTRY macro
Change I994e53b17788472de979df9dce9e18c6f68de850 ("qcacld-3.0: Add
support for regulatory component ucfg apis") removed the last
reference to macro WLAN_WAIT_TIME_COUNTRY. Since this macro is now
unused, remove it.

Change-Id: Ia0824abe9bb4419966b812f755600853520f8df2
CRs-Fixed: 2370024
2018-12-19 20:54:30 -08:00
Jeff Johnson
0f897a3b6c qcacld-3.0: Remove WLAN_HDD_PUBLIC_ACTION_TDLS_DISC_RESP macro
Change I8ba344ce5593df44bd15527e2ff68e872b6d23b8 ("qcacld-3.0: TDLS:
remove legacy core functions") removed the code that used macro
WLAN_HDD_PUBLIC_ACTION_TDLS_DISC_RESP. Since the macro is now unused,
remove it.

Change-Id: Ie0cd5cea1bc2a16829bbfb9b8339a41b303c6724
CRs-Fixed: 2370023
2018-12-19 20:54:30 -08:00
Jeff Johnson
42583f90e3 qcacld-3.0: Remove "nil scan report" remnant
Change Ia8b85548ff64ad77b5066fe03229e2b0b2f7fae3 ("qcacld-3.0: Remove
legacy scan complete callback") removed the "nil scan report"
feature. However it left behind the last_nil_scan_bug_report_timestamp
field in struct hdd_context. Since this field is now unused, remove
it.

Change-Id: I7a208121c3957a5ab04df455ad8a8b54932dfd1c
CRs-Fixed: 2370022
2018-12-19 20:54:30 -08:00
Jeff Johnson
9785c1a0c3 qcacld-3.0: Remove unused SIR_BG_SCAN macros
The following macros are unused, so remove them:
- SIR_BG_SCAN_PURGE_LFR_RESULTS
- SIR_BG_SCAN_PURGE_RESUTLS
- SIR_BG_SCAN_RETURN_CACHED_RESULTS
- SIR_BG_SCAN_RETURN_FRESH_RESULTS
- SIR_BG_SCAN_RETURN_LFR_CACHED_RESULTS
- SIR_SCAN_MAX_NUM_SSID

Change-Id: I536493d6ac3370104bffa47a0c504bac682d6923
CRs-Fixed: 2370021
2018-12-19 20:54:30 -08:00
Jeff Johnson
ecc38783b5 qcacld-3.0: Remove wma_wow_tx_complete() prototype
The current version of the driver does not have an implementation of
wma_wow_tx_complete(), so remove the obsolete prototype.

Change-Id: Ieb91ebeade812ed4ba4ba25f93a63e4e33cad8ff
CRs-Fixed: 2370020
2018-12-19 20:54:30 -08:00
Jeff Johnson
56c7d46b00 qcacld-3.0: Remove ucMaxProbeRespRetryLimit from tAddBssParams
Field ucMaxProbeRespRetryLimit in tAddBssParams is unused, so
remove it.

Change-Id: I4d9020e134eaca7b43b13f7e58e6837548a79c28
CRs-Fixed: 2370018
2018-12-19 20:54:30 -08:00
Jeff Johnson
aa77367b54 qcacld-3.0: Remove wma_scan_comp_timer from t_wma_handle
The wma_scan_comp_timer in t_wma_handle is unused, so remove it.

Change-Id: I794f462eb8bce6fddf11b438aaf389ff7fe30e52
CRs-Fixed: 2370017
2018-12-19 20:54:29 -08:00
nshrivas
65e60617a5 Release 5.2.0.112M
Release 5.2.0.112M

Change-Id: I7580c6f298b6600a95269265e2bd447d06f84c56
CRs-Fixed: 774533
2018-12-19 18:52:13 -08:00
Abhishek Singh
8ebda9db47 qcacld-3.0: Cleanup unused scan params and ini
Cleanup unused scan params and ini as they are moved to scan
component.

Change-Id: I67a589133e58fd7740d7edc93d32a2d9fcd14c5a
CRs-Fixed: 2369068
2018-12-19 18:52:12 -08:00
nshrivas
2b22156b7b Release 5.2.0.112L
Release 5.2.0.112L

Change-Id: Ifb2b032eb8c469d043c7c2b6ca40ebf110bdc156
CRs-Fixed: 774533
2018-12-19 16:30:44 -08:00
Bala Venkatesh
c8bbb0058d qcacld-3.0: Enable TDLS in FW in standalone STA and P2P client
TDLS is not supported in concurrency. As part of second interface
creation, TDLS is disabled in both host and FW. But after the second
interface is deleted, TDLS is not enabled in FW and host even for
Standalone STA and P2P client cases.

Change-Id: I362c22a79e171f9779393b1b893b5bfd14ff562a
CRs-Fixed: 2367083
2018-12-19 16:30:43 -08:00
Nachiket Kukade
079b67f747 qcacld-3.0: Remove remaining_bytes_for_apf_inst variable
Variable remaining_bytes_for_apf_inst was introduced in change
I63a5f7222de74cbb80d656f20f42d1b8453dce26, and renamed later.
But it was never used, so remove it.

Remove remaining_bytes_for_apf_inst variable.

Change-Id: I0382ff970b3fafd279453a71c1c65e1731f67aa6
CRs-Fixed: 2369099
2018-12-19 16:30:40 -08:00
nshrivas
a5319270ae Release 5.2.0.112K
Release 5.2.0.112K

Change-Id: Ib665b23860b0712c440eac80f2bde3ecdf6c421b
CRs-Fixed: 774533
2018-12-19 14:14:42 -08:00
Jeff Johnson
26bd67a020 qcacld-3.0: Remove sme_update_fast_transition_enabled() prototype
The current version of the driver does not have an implementation
of sme_update_fast_transition_enabled(), so remove the obsolete
prototype.

Change-Id: I705d4f3dc409e80d73d5dbc540e3d4ba03bbf192
CRs-Fixed: 2369216
2018-12-19 14:14:41 -08:00
Jeff Johnson
46cd9b0876 qcacld-3.0: Remove limHandleMaxRetriesInterrupt() prototype
The current version of the driver does not have an implementation of
limHandleMaxRetriesInterrupt(), so remove the obsolete prototype.

Change-Id: I78f929592f4c54be3f24fb02113cf4dcfba130e0
CRs-Fixed: 2369215
2018-12-19 14:14:37 -08:00
Jeff Johnson
7e91dc9831 qcacld-3.0: Remove limContinueChannelLearn() prototype
The current version of the driver does not have an implementation of
limContinueChannelLearn(), so remove the obsolete prototype.

Change-Id: Ifaa8b174cc337b2a279a58901e1215a275a87e89
CRs-Fixed: 2369214
2018-12-19 14:14:33 -08:00
Jeff Johnson
0711e27a84 qcacld-3.0: Fix split strings in lim_send_meas_report_frame()
lim_send_meas_report_frame() contains several instances of
user-visible strings that are split, which violates the coding
standard, so merge them.

Change-Id: Ifca7aac555df1fffc6b3669091c3cab245378be0
CRs-Fixed: 2369213
2018-12-19 14:14:29 -08:00
Jeff Johnson
74b1ab930f qcacld-3.0: Remove LIM_GET_NOISE_MAX_TRY macro
Macro LIM_GET_NOISE_MAX_TRY has never been used by the current version
of the driver, so remove it.

Change-Id: Iafad122b0d0e7019a1753920e299431a9b1df2bc
CRs-Fixed: 2369212
2018-12-19 14:14:25 -08:00
Jeff Johnson
3158c4c0fb qcacld-3.0: Remove lim_process_mlm_reassoc_ind() prototype
There is no implementation for lim_process_mlm_reassoc_ind() so remove
the obsolete prototype.

Change-Id: Ib628d1ab55f9d713331f95a9de7331265f3d32e5
CRs-Fixed: 2369210
2018-12-19 14:14:20 -08:00
Jeff Johnson
e9c63d04e9 qcacld-3.0: Remove obsolete limPost*() prototypes
There is no implementation for the following functions, so remove the
obsolete prototypes:
- limPostDummyToTmRing()
- limPostPacketToTdRing()

Change-Id: I65d9a240ddd5af6e39e65247a31445f49c8d5ec9
CRs-Fixed: 2369209
2018-12-19 14:14:16 -08:00
Jeff Johnson
ff432cde87 qcacld-3.0: Remove DISABLE_GF_FOR_INTEROP feature code
The DISABLE_GF_FOR_INTEROP feature code in lim_add_sta_self() is old
and non-functional so remove it.

Change-Id: I5e35410b4983794834fb6bbc882a0ba8f5f5e6ef
CRs-Fixed: 2369208
2018-12-19 14:14:12 -08:00
Jeff Johnson
dbef8fab74 qcacld-3.0: Remove legacy TDLS definitions from LIM
LIM contains some legacy TDLS definitions that are no longer used, so
remove them.

Change-Id: I175cd5ce589b15f34c32a60ee3650c610d0af0a8
CRs-Fixed: 2369207
2018-12-19 14:14:08 -08:00
Jeff Johnson
5c4fa5e6a5 qcacld-3.0: Remove gLimTdlsLinkMode from struct sAniSirLim
The LIM context contains a gLimTdlsLinkMode field that is written but
never read. Since that means the field is unused, remove it.

Change-Id: Id1bbcad683b0679184af86a6670fb52397206979
CRs-Fixed: 2369206
2018-12-19 14:14:04 -08:00
Jeff Johnson
675e9e135d qcacld-3.0: Remove pe_register_tl_handle() prototype
LIM exposes a prototype for function pe_register_tl_handle(), but the
current driver does not have a function by that name, so remove the
prototype.

Change-Id: I06fe675cf885f8d2db49d1e6529c21a78f9b20a5
CRs-Fixed: 2369205
2018-12-19 14:13:59 -08:00
nshrivas
28a8a1352c Release 5.2.0.112J
Release 5.2.0.112J

Change-Id: Ibccbf9ffcde3f18e77e7f73b5b4b674b92fc6bd5
CRs-Fixed: 774533
2018-12-19 12:01:51 -08:00
Abhishek Singh
a848eac5f1 qcacld-3.0: Fix NULL check in csr_roam_save_connected_information
Fix NULL check issue in csr_roam_save_connected_information, verify
number of ssid to check if ssid is present in profile.

Change-Id: Id8e760e505e2d216a97e5924ff7e2c1cf664d6b7
CRs-Fixed: 2369161
2018-12-19 12:01:50 -08:00
nshrivas
0f4bf7c9cd Release 5.2.0.112I
Release 5.2.0.112I

Change-Id: I5cf9b0b0d27f782667295c7f3e3baf273040e0c7
CRs-Fixed: 774533
2018-12-19 09:32:17 -08:00
nshrivas
b947e5b538 Release 5.2.0.112H
Release 5.2.0.112H

Change-Id: I788c872a22445742f7cf1da33247768256ae6987
CRs-Fixed: 774533
2018-12-19 04:57:00 -08:00
bings
705b412f40 qcacld-3.0: Remove dead code tUpdateCFParams and WMA_UPDATE_CF_IND
WMA_UPDATE_CF_IND message (aka SIR_HAL_UPDATE_CF_IND) is dead code, because
it is not processed anywhere.

Remove dead code WMA_UPDATE_CF_IND. The only use of tUpdateCFParams is in
lim_send_cf_params() which only creates a WMA_UPDATE_CF_IND message, so
remove tUpdateCFParams and lim_send_cf_params().

Change-Id: I1b613300cdd7eeeb33825e319977ff941cae548c
CRs-Fixed: 2367931
2018-12-19 04:56:59 -08:00
Krunal Soni
e64b17e7f0 qcacld-3.0: Driver fails to report gDualMacFeatureDisable val to FW
If DBS is disabled from INI then driver just bails out
in wlan_hdd_update_dbs_scan_and_fw_mode_config() API and never report
it to FW. This creates a confusion when DBS is disable INI but our HW
is capable of doing DBS, i.e. driver thinks that DBS disabled
but FW thinks that DBS is enabled.

Provide a fix that driver should report exact INI setting to FW.
This issue got introduced as part of regression caused by:
Iec2ef7e77e91f332028904c319d24e1ed134306d

ROME platform doesn't support any DBS related commands in FW,
so if driver sends wmi command with dual_mac_config with all params
set to 0 then FW wouldn't respond back and driver would timeout on
waiting for response. This was the original issue for which
Iec2ef7e77e91f332028904c319d24e1ed134306d was added.

Make sure current solution doesn't break backward compatibility.
Add a check to make sure FW supports DBS to eliminate
ROME vs NON-ROME platform.

CRs-Fixed: 2361628
Change-Id: I8a3b795b20e82391ae5d5c86d1e7d814d103ce64
2018-12-19 04:56:55 -08:00
lifeng
0b46ae503e qcacld-3.0: Refine mlme reg configurations
Refine mlme reg configurations based on converged cfg component.
Remove related legacy codes.

Change-Id: I524b29d2d03e60111fa1759d11e32236bb3aa3fa
CRs-Fixed: 2357961
2018-12-19 04:56:44 -08:00
nshrivas
b5df052333 Release 5.2.0.112G
Release 5.2.0.112G

Change-Id: I348905f2ff0a9bd2d44d3a7f7b9cddcecdf3dcca
CRs-Fixed: 774533
2018-12-19 02:04:28 -08:00
Wu Gao
b056db61ad qcacld-3.0: Conditional reading of 5G preferred parameters
Read 5G preferred parameters if only enable_5g_band_pref enabled.
Delete unused variables.

Change-Id: I5e3a8435034dbc7682b9da4327dd6067d2033951
CRs-Fixed: 2367136
2018-12-19 02:04:27 -08:00
Sourav Mohapatra
c55bdf3e26 qcacld-3.0: Add ini based control for Beacon Reception stats
Currently, the support for beacon reception stats is only dependent on
the FW.

Add an ini so that the user can also have a control over the stats

Change-Id: I4a1e654b9d1598836378def494b37a997904d77a
CRs-Fixed: 2366473
2018-12-19 02:04:22 -08:00
nshrivas
0e5eb336a5 Release 5.2.0.112F
Release 5.2.0.112F

Change-Id: I5e6d86565fe858b08ce4b18a2489154778e2516c
CRs-Fixed: 774533
2018-12-18 16:50:43 -08:00
Jeff Johnson
9aaffb8688 qcacld-3.0: Remove peProcessMsg() prototype
LIM exposes a prototype for function peProcessMsg(), but the current
driver does not have a function by that name, so remove the prototype.

Change-Id: I90d5c4983467c58e5d2a44caf6edc9ef6c4a1c99
CRs-Fixed: 2369204
2018-12-18 16:50:43 -08:00
Jeff Johnson
9b1fbfcc40 qcacld-3.0: Remove legacy channel avoidance structs
The legacy channel avoidance struct tSirChAvoidIndType, and its member
struct tSirChAvoidFreqType, are unused, so remove them.

Change-Id: Id891a094c674ca7bc3c9f2fdb7a9f990a9e79929
CRs-Fixed: 2369203
2018-12-18 16:50:38 -08:00
Jeff Johnson
6095418741 qcacld-3.0: Remove ANI_WDS_INFO_MAX_LENGTH macro
The macro ANI_WDS_INFO_MAX_LENGTH has never been used by the current
version of the driver. Since it is unused, remove it.

Change-Id: I5a8f39341e759cd6562de5b04b0043b677e24c0b
CRs-Fixed: 2369202
2018-12-18 16:50:33 -08:00
Jeff Johnson
b68164dfdd qcacld-3.0: Remove MAX_NO_OF_P2P_SESSIONS macro
Change I64d0b71853004679ae694bcd6ca7a2f2347adc84 ("qcacld-3.0: Remove
legacy P2P codes in MAC") removed the last reference to macro
MAX_NO_OF_P2P_SESSIONS. Since it is now unused, remove it.

Change-Id: I455571aeb65f25abcfb7c80706a3a8d9bec887c3
CRs-Fixed: 2369201
2018-12-18 16:50:28 -08:00
Jeff Johnson
debeaa8799 qcacld-3.0: Remove MAX_PENDING_LOG macro
Change I3260369879108f167453d5e0b8435c30ed729c5e ("qcacld-3.0: HDD
changes for common scan module") removed the only reference to macro
MAX_PENDING_LOG. Since it is now unused, remove it.

Change-Id: I4b5bf351a5bc7e2b841810302b75102038ae5a43
CRs-Fixed: 2368721
2018-12-18 16:50:23 -08:00
Jeff Johnson
8de65b5b70 qcacld-3.0: Remove struct hdd_tgt_cfg forward reference
Change I84e9ac5ccfe8faaa00dfc448defb81fb792263d5 ("qcacld-3.0: Add
support for NDP vendor commands and NDI Create") introduced a forward
reference to struct hdd_tgt_cfg. That struct doesn't actually exist,
so remove the forward reference.

Change-Id: Ic3129f6c0c8e55824ba066d5d36a7d10868f9f50
CRs-Fixed: 2368720
2018-12-18 16:50:18 -08:00
Jeff Johnson
e50a437635 qcacld-3.0: Remove RATE_LIMIT_ERROR_LOG macro
Change I64d7a0e3e180a636d710b42837ff3a982853fb12 ("qcacld-3.0: Remove
the excessive logging in hdd_get_adapter_by_vdev") removed the last
reference to macro RATE_LIMIT_ERROR_LOG. Since it is now unused,
remove it.

Change-Id: I531f0496edb064ed0a8208c497a7a5905be21713
CRs-Fixed: 2368719
2018-12-18 16:50:13 -08:00
Jeff Johnson
41f1fd23d1 qcacld-3.0: Remove WE_GET_STA_INFO_SIZE macro
Change I3a506905f40272efe472028391e8080d764cb390 ("qcacld-3.0: Use max
STA count when iterating SAP clients") removed the only reference to
macro WE_GET_STA_INFO_SIZE. Since it is unused, remove it.

Change-Id: I6c8069f0ce420fbe08d4e2527ce94f5c906027c6
CRs-Fixed: 2368718
2018-12-18 16:50:09 -08:00
Jeff Johnson
f907ab4453 qcacld-3.0: Remove HDD_P2P_WILDCARD_SSID macros
The following macros have neer been used by the current version of the
driver, so remove them:
- HDD_P2P_WILDCARD_SSID
- HDD_P2P_WILDCARD_SSID_LEN

Change-Id: Ice446d0e6a9f6a1e95b16267a3cb6aebf85cf5ad
CRs-Fixed: 2368717
2018-12-18 16:50:05 -08:00
Jeff Johnson
f1886e765f qcacld-3.0: Remove HDD_CHANNEL_14 macro
Change I8ba344ce5593df44bd15527e2ff68e872b6d23b8 ("qcacld-3.0: TDLS:
remove legacy core functions") removed the only reference to macro
HDD_CHANNEL_14. Since it is now obsolete, remove it.

Change-Id: I41267b0e5aef8f60c8a48cd9154529b2689bab5f
CRs-Fixed: 2368716
2018-12-18 16:50:00 -08:00
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