Commit Graph

803 Commits

Author SHA1 Message Date
Kiran Kumar Lokere
7d6e4c9dc1 qcacld-3.0: crypto convergence support for SET KEY
Make changes to the legacy code to support the
new SET KEY converged infrastructure.

Change-Id: Ic5359e3a9035ac5f2a937a9a1013fa92764cda9d
CRs-Fixed: 2358795
2019-01-08 20:24:43 -08:00
Jeff Johnson
75de2dc20e qcacld-3.0: Remove typedef tCsrRoamRemoveKey
Typedef tCsrRoamRemoveKey is obsolete, so remove it.

Change-Id: I36a4a74be7c4c8b2a9bc9d4d59a1d6218f84618d
CRs-Fixed: 2375519
2019-01-08 15:30:36 -08:00
Jeff Johnson
257dc884fd qcacld-3.0: Remove typedef tCsrFreqScanInfo
Typedef tCsrFreqScanInfo is obsolete, so remove it.

Change-Id: I24a89c4fe05f5d4e6ece840abe07ed024e4c46c6
CRs-Fixed: 2375518
2019-01-08 15:30:31 -08:00
Jeff Johnson
e7ed985c41 qcacld-3.0: Remove typedef tCsrUpdateConfigParam
Change I097c67da517e86b4d44901a01b0fe65e1a53b0a9 ("qcacld-3.0:
Cleanup SME APIs") removed all references to typedef
tCsrUpdateConfigParam. Since the typedef is obsolete, remove it.

Change-Id: Idd33f42930c181d1c79c2cdf72adde0a4af2e9fa
CRs-Fixed: 2375517
2019-01-08 15:30:25 -08:00
Jeff Johnson
7b75cddd2e qcacld-3.0: Remove typedef tCsrStaParams
Change I8ba344ce5593df44bd15527e2ff68e872b6d23b8 ("qcacld-3.0: TDLS:
remove legacy core functions") removed the last references to typedef
tCsrStaParams. Since the typedef is obsolete, remove it.

Change-Id: I63442b1c2f0033c50ab94d4dcf4288eae5fb4d9d
CRs-Fixed: 2375515
2019-01-08 15:30:14 -08:00
Jeff Johnson
9b5953f0f5 qcacld-3.0: Remove roamOffloadSynchParams from csr_roam_session
The roamOffloadSynchParams field in struct csr_roam_session
is unused, so remove it, along with the underlying struct
csr_roam_offload_synch_params.

Change-Id: I7a1c7bad6090404fde9a97ce0ca3a3b36cb8299a
CRs-Fixed: 2375514
2019-01-08 15:30:08 -08:00
Jeff Johnson
393730d824 qcacld-3.0: Remove obsolete bss_config_param thresholds
The uRTSThresh and uDeferThresh fields in struct bss_config_param are
obsolete, so remove them.

Change-Id: I79144e36d661fac7136fbb7b941b7772addf7f25
CRs-Fixed: 2375513
2019-01-08 15:30:03 -08:00
Jeff Johnson
fe774b2729 qcacld-3.0: Harmonize csr_validate_mcc_beacon_interval()
The parameter identifiers used in the implementation of
csr_validate_mcc_beacon_interval() differ from the ones used in the
prototype. Since this can be confusing for both humans and code
analysis tools, harmonize on the parameters used in the
implementation. In addition, relocate the documentation so that it is
the interface that is documented and not the implementation.

Change-Id: I817c836fe07a8add1e3588d9b5eeded027ee6f26
CRs-Fixed: 2375512
2019-01-08 15:29:58 -08:00
Jeff Johnson
42aebb4bb5 qcacld-3.0: Remove p2p_process_remain_on_channel_cmd() prototype
Change I71de90d5fb88462e52148a434d43ea80c41cfe36 ("qcacld-3.0: Move
Channel convert and frame indication logic to lim_utils.c") removed
the implementation of p2p_process_remain_on_channel_cmd() but left
behind the prototype. Since the prototype is obsolete, remove it.

Change-Id: I34caafa9cc2731f3a21e0200e520118a10740d3b
CRs-Fixed: 2375511
2019-01-08 15:29:53 -08:00
Jeff Johnson
ff19d59c28 qcacld-3.0: Remove csr_process_scan_command() prototype
Change Ibea328196a9453ebaae887aa4068e78c47296762 ("qcacld-3.0:
Scan cleanup in lim and csr") removed the implementation of
csr_process_scan_command() but left the prototype. Since the
prototype is obsolete, remove it.

Change-Id: I937ef951045be638fccce8902fbaed510350f029
CRs-Fixed: 2375510
2019-01-08 15:29:49 -08:00
Jeff Johnson
970bea4b53 qcacld-3.0: Remove typedef uapsd_start_indication_cb
Change Ie891eddad2b536e43f5f933c8683d41b096bf578 ("qcacld-3.0: Remove
obsolete code in SME QOS module") removed the only references to
typedef uapsd_start_indication_cb. Since it is obsolete, remove it.

Change-Id: I940608cf59b4f9f5f68cffb68b9ee45606461ded
CRs-Fixed: 2374843
2019-01-07 00:12:00 -08:00
Jeff Johnson
7e6e127ce7 qcacld-3.0: Remove DISA fields from tSmeStruct
Change Ia44acd9a3e31bf0d1098f7d423f0c28a2b7fe5fa ("qcacld-3.0: Cleanup
WMA and SME code related to DISA") removed the SME DISA code, but it
left behind the encrypt_decrypt_cb and encrypt_decrypt_context fields
in tSmeStruct. Since these are now obsolete, remove them, along with
their underlying type definitions.

Change-Id: I7bf5d737b89cc9604310b7c18c510f42f73ec971
CRs-Fixed: 2374842
2019-01-07 00:11:49 -08:00
Jeff Johnson
fd692ff77f qcacld-3.0: Remove csr_roamGetConcurrencyConnectStatusForBmps()
Function csr_roamGetConcurrencyConnectStatusForBmps() no longer
exists, but the prototype is still present. Since it is obsolete,
remove it.

Change-Id: I6e1f0206957a828a1041659e7d5f3ac9e97dc843
CRs-Fixed: 2374840
2019-01-07 00:11:26 -08:00
Jeff Johnson
d2ce414147 qcacld-3.0: Remove sme_ConfigureAppsCpuWakeupState()
Function sme_ConfigureAppsCpuWakeupState() no longer exists, but the
prototype is still present. Since it is obsolete, remove it.

Change-Id: I91c26c2e3ec67c61ff55efbf24b2716e3ff35675
CRs-Fixed: 2374839
2019-01-07 00:11:15 -08:00
Jeff Johnson
db6f33dc0e qcacld-3.0: Remove csr_get_phy_mode_from_bssDesc()
Function csr_get_phy_mode_from_bssDesc() no longer exists, but the
prototype is still present. Since it is obsolete, remove it.

Change-Id: Ib5a37e0468d3f6f2f5ed862c99d508aadb3afda0
CRs-Fixed: 2374838
2019-01-07 00:11:05 -08:00
Jeff Johnson
d5f34f8623 qcacld-3.0: Remove macro CSR_IS_11D_INFO_FOUND
Macro CSR_IS_11D_INFO_FOUND is unused, so remove it.

Change-Id: I8e5ff1f935fd4486144aeea588e1e2dee3920020
CRs-Fixed: 2374837
2019-01-07 00:10:56 -08:00
Jeff Johnson
0ad556031c qcacld-3.0: Remove unused channel fields from csr_roamstruct
The following channel-related fields in struct csr_roamstruct are
unused, so remove them:
- baseChannels
- channelList24
- channelList5G
- numChannelsEeprom

Change-Id: Ia44e386496e36ba15bcb1c39c6190d0331603903
CRs-Fixed: 2374836
2019-01-07 00:10:45 -08:00
Jeff Johnson
2f98db3eb2 qcacld-3.0: Remove enum csr_hi_rssi_scan_id
Change I7994a9038d5bd094ce23bcd525ef8f5282974bfc ("qcacld-3.0: Apply
second part of LFR INIs changes") removed the logic that utilized the
csr_hi_rssi_scan_id enumerations. Since these are now unused, remove
the definition.

Change-Id: Ia72aabdfa672c8012f952967c7f67b1bc8024514
CRs-Fixed: 2374835
2019-01-07 00:10:36 -08:00
Kiran Kumar Lokere
ceeed83aa2 qcacld-3.0: Enable power save with user cfg request
Currently power save enable request user command is not
processed if the station is not in connected state and the
configuration is not saved hence station do not enter into
power save mode until the user command is issued after
connection.
Save the power save user configuration setting if the station
is not connected and start the auto power save timer for one
second timeout value after the station is connected to enable
the power save.

Change-Id: I6e17a8e989ca731ca008dcb46ca79c3a181ddff0
CRs-Fixed: 2371045
2019-01-03 09:04:15 -08:00
Srinivas Dasari
b328f1a4f9 qcacld-3.0: Add changes to support OSEN AKM for HS-2.0
OSEN is a new AKM to support HS-2.0. This change is to support
the same.

Change-Id: I6d6c3c2bca76a346d83c6f1303ae86177f2fde67
CRs-Fixed: 2361385
2018-12-31 21:29:28 -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
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
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
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
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
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
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
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
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
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
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
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