Commit Graph

14056 Commits

Author SHA1 Message Date
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
Paul Zhang
d5c1f25d6b qcacld-3.0: resolve race issue accessing pm_conc_connection_list
While function policy_mgr_set_pcl_for_existing_combo posts event
SIR_HAL_PDEV_SET_PCL_TO_FW and before restores pm_conc_connection_list,
the function policy_mgr_get_valid_chan_weights is invoking and
accessing pm_conc_connection_list then race happens.

To resolve the issue, restore the pm_conc_connection_list before
calling SME function.

CRs-Fixed: 2362839
Change-Id: I8b30dc5084c4aae4bcc4b3b350d19c8be89338a9
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