Commit Graph

13780 Commits

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