Commit Graph

13798 Commits

Author SHA1 Message Date
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
chenguo
ac840e5400 qcacld-3.0: Enable AC based flow control by default
Enable QCA_AC_BASED_FLOW_CONTROL in Kbuild file for for all
lithium platform, including HST.

CRs-Fixed: 2371232
Change-Id: I7e755d6211106f4a5c8e9d87905f6425ece4c5c3
2018-12-22 05:23:16 -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