Commit Graph

12276 Commits

Author SHA1 Message Date
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