Commit Graph

12524 Commits

Author SHA1 Message Date
Jeff Johnson
d039a3302f qcacld-3.0: Remove ownSsid from struct sap_context
The ownSsid and ownSsidLen fields in struct sap_context are unused, so
remove them.

Change-Id: I405f0c7c47e163a962bc3db19d88d5b69ca95ac7
CRs-Fixed: 2374274
2019-01-07 00:07:25 -08:00
gaurank kathpalia
1be77fa6a9 qcacld-3.0: Add Dot11 mode related CFG items in mlme cfg
Add dot11mode related cfg items in mlme cfg, and replace
old WNI dot11 modes with new MLME DOT11 mode enums

Change-Id: I6e866959f440ae781432c8aaa724b229c0874856
CRs-Fixed: 2362540
2019-01-07 00:07:19 -08:00
Sravan Kumar Kairam
f48210cb66 qcacld-3.0: Add cdp api for dp tx desc availability
Add cdp api to check if tx desc pool available descriptor
threshold has reached.

Change-Id: I12cc38b56a68ca7ee8f4560677fcdabccb38928b
CRs-Fixed: 2369244
2019-01-07 00:07:14 -08:00
Abhishek Singh
ef6f38c913 qcacld-3.0: Refactor the prints for rx management frames
Refactor the prints for rx management frames. Do not print rx
frames in wma_form_rx_packet, as txrx module take care of it.

Change-Id: I52403c9dd32919507af13782dc838ff8076070cd
CRs-Fixed: 2375675
2019-01-07 00:07:10 -08:00
Nachiket Kukade
338547b58b qcacld-3.0: Print APF work memory as it is read or written
Just like the legacy APF commands, dump the contents of the
APF instructions/data as it is read or written by upper
layer using the new APFv3 vendor commands. This is helpful
for debugging purposes.

Change-Id: I24725b5b8431fcaa573953187f8412e4f4d0b510
CRs-Fixed: 2375362
2019-01-07 00:07:05 -08:00
nshrivas
5761a0355e Release 5.2.0.114Q
Release 5.2.0.114Q

Change-Id: Ifa1c30e54f404eeb2fd27b995699f4b40da2bb56
CRs-Fixed: 774533
2019-01-03 16:16:48 -08:00
Abhishek Singh
1a8299a139 qcacld-3.0: Cleanup unused eLIM_LEARN_DURATION_TIMER
Cleanup unused timer enum eLIM_LEARN_DURATION_TIMER

Change-Id: I79d215777e18a453488471f530e598773c1e6b77
CRs-Fixed: 2375046
2019-01-03 16:16:47 -08:00
Abhishek Singh
d085438d4a qcacld-3.0: Cleanup unused LIM MLM states
Cleanup unused LIM MLM states:
eLIM_MLM_P2P_LISTEN_STATE
eLIM_MLM_WT_PROBE_RESP_STATE
eLIM_MLM_PASSIVE_SCAN_STATE
eLIM_MLM_LEARN_STATE
eLIM_MLM_WT_SET_MIMOPS_STATE

Change-Id: I04b29adf4729e830b61cebb47bd501caad5ace50
CRs-Fixed: 2375044
2019-01-03 16:16:43 -08:00
Abhishek Singh
5432c35d01 qcacld-3.0: Remove unused logic to convert DFS channels to active
lim.dfschannelList.timeStamp is a array of
SIR_MAX_24G_5G_CHANNEL_RANGE(166). In some countries channel greater
than 165 are allowed and thus if channel is greater than 165 driver
access out of bound memory which lead to corruption of
lim.sme_msg_callback.

lim.dfschannelList.timeStamp is used to convert DFS channels to
active, which is used for host handled scan to decide if active
scan can be done on DFS channel. Scan now been handled in firmware
this logic is unused and can be removed.

Change-Id: Ib301fa70a6b7ed99f3ecacbf344dd9e821079149
CRs-Fixed: 2374977
2019-01-03 16:16:38 -08:00
nshrivas
e1ea09e9b6 Release 5.2.0.114P
Release 5.2.0.114P

Change-Id: Ia149e0aea3704089cac08a9536c0c4d4512ffcaf
CRs-Fixed: 774533
2019-01-03 09:04:16 -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
nshrivas
7e3f297823 Release 5.2.0.114O
Release 5.2.0.114O

Change-Id: I0ce565dd729925d89d69582741fd2ad28ea1ef9d
CRs-Fixed: 774533
2019-01-03 06:47:35 -08:00
Harprit Chhabada
98225f6b0d qcacld-3.0: Add flag CONFIG_WMI_BCN_OFFLOAD to dependent APIs
Change I4fdbf041b53b5f1606d324714f01088742a9307f ("qcacld-3.0:
Modify Kbuild to add new beacon header file") added new file
wmi_unified_bcn_api.c to Kbuild with flag CONFIG_WMI_BCN_OFFLOAD.

Add this flag to all dependent APIs.

Change-Id: Id3f77434179b739d5563b490d25b1c1386e1831f
CRs-Fixed: 2374758
2019-01-03 06:47:35 -08:00
nshrivas
da1b34837b Release 5.2.0.114N
Release 5.2.0.114N

Change-Id: I8ee936f83070b80f9a8a9705bd25ebae221a5c08
CRs-Fixed: 774533
2019-01-03 00:21:25 -08:00
Alok Kumar
d9111bb36b qcacld-3.0: Handle NUD event if subnet gateway is configured
Add protective check in driver to handle NUD events only if
subnet gateway is configured.

Change-Id: I5142e4d50490ea4726f337e19c8282359d23423d
CRs-Fixed: 2373552
2019-01-03 00:21:24 -08:00
nshrivas
bdb53f1b27 Release 5.2.0.114M
Release 5.2.0.114M

Change-Id: Iadb504d6af7341ade149900b1835d61d1d2e2e27
CRs-Fixed: 774533
2019-01-02 18:46:37 -08:00
Harprit Chhabada
dc5bc15a6c qcacld-3.0: Remove unused WNI CFG item of scan component
Remove unused wni CFG item, WNI_CFG_SCAN_IN_POWERSAVE

Change-Id: I13e01172c3a18072c31e9b13a6e2396cfea0f5c6
CRs-Fixed: 2371763
2019-01-02 18:46:37 -08:00
Jeff Johnson
339ede8ffe qcacld-3.0: Use vtable for rx blocksize
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 update the signature of the following function
and add that function to the vtable:
- wlan_hdd_cfg80211_wifi_set_rx_blocksize()

Note that with this change all of the attribute handling in
__wlan_hdd_cfg80211_wifi_configuration_set() has been relocated to the
vtables. The measured cyclematic complexity was reduced from 103 to 6.

Change-Id: If5c3cfea7107f95c07867895a0bc7cc5d13fc7ac
CRs-Fixed: 2371594
2019-01-02 18:46:33 -08:00
nshrivas
a2380537f0 Release 5.2.0.114L
Release 5.2.0.114L

Change-Id: I9b4b8aa82b8b4c5d6bb3cf8b2d298665ffe3fc97
CRs-Fixed: 774533
2019-01-02 16:29:51 -08:00
Jeff Johnson
0dd687eda0 qcacld-3.0: Use vtable for reorder timeout
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 update the signature of the following function
and add that function to the vtable:
- wlan_hdd_cfg80211_wifi_set_reorder_timeout()

Change-Id: Ia9c160eb81358b91feecb35b1cb8c097f90979cc
CRs-Fixed: 2371593
2019-01-02 16:29:50 -08:00
Jeff Johnson
1350e62148 qcacld-3.0: Refactor ANT_DIV_SNR_WEIGHT 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 interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT

Change-Id: I1bd98a7c78b77791eb7737a928f2a22ced1af3c6
CRs-Fixed: 2371592
2019-01-02 16:29:45 -08:00
Jeff Johnson
7bf20cb5eb qcacld-3.0: Refactor ANT_DIV_PERIOD 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 interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD

Change-Id: I13f76951f8f8451d70e1cc64f0116a8b6de163d0
CRs-Fixed: 2371591
2019-01-02 16:29:41 -08:00
Jeff Johnson
0fbb43b96a qcacld-3.0: Refactor MPDU_AGGREGATION 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 interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION

Change-Id: Ied99c92d708967713e6807d000485327ddba5fdd
CRs-Fixed: 2371590
2019-01-02 16:29:37 -08:00
nshrivas
655b48bd52 Release 5.2.0.114K
Release 5.2.0.114K

Change-Id: I09dc0811ab45e0aba5e61810f566e109947dd1a0
CRs-Fixed: 774533
2019-01-02 14:15:01 -08:00
Jeff Johnson
affc4da8cd qcacld-3.0: Refactor ACCESS_POLICY 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 interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY
- QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST

Change-Id: Ia10060a8a50b2e12f0eb7dc5ea5810f1751bce60
CRs-Fixed: 2371589
2019-01-02 14:15:01 -08:00
Rajeev Kumar
f10f177186 qcacld-3.0: Avoid psoc remove when previous probe was not successful
Previous psoc probe was not successful and in that case hdd_ctx will
be null so during next psoc remove check for validity of hdd_ctx
before de-referencing it and return safely in case psoc probe was
not successful.

Change-Id: I535965f9d60522245720952d2d7c14e09a91a334
CRs-Fixed: 2373865
2019-01-02 14:14:56 -08:00
nshrivas
a891c69dbc Release 5.2.0.114J
Release 5.2.0.114J

Change-Id: I434bbb72880a7ae22459b97b016a464e94c20447
CRs-Fixed: 774533
2019-01-02 12:04:28 -08:00
Alok Kumar
ac74177daa qcacld-3.0: Avoid access of deleted peer during RX thread close
During SSR case in wlan_hdd_stop_modules(), ol_txrx_pdev_pre_detach()
cleanup the peer forcibly. Later RX Thread is getting closed as part
of cds_sched_close(). So chances of accessing deleted peer is there.

Shutdown RX thread before doing ol_txrx_pdev_pre_detach() to avoid
the chances of accessing deleted peer.

Change-Id: Iae27262396d8245eeb7a9b39cb678fad14815260
CRs-Fixed: 2349994
2019-01-02 12:04:27 -08:00
nshrivas
57ed3b03e3 Release 5.2.0.114I
Release 5.2.0.114I

Change-Id: Ie8e9de37a1d8bb60bc33e9c730dcec796b148f40
CRs-Fixed: 774533
2019-01-02 09:28:00 -08:00
Arif Hussain
49698119d9 qcacld-3.0: Make sure to initialize global target_if before soc create
Make sure to initialize global target_if before soc create
as part of this psoc notifications are registered.

Change-Id: Id5491a2aac49450774532fe69ee24e18c9a7c594
CRs-Fixed: 2351426
2019-01-02 09:28:00 -08:00
nshrivas
f253f834ac Release 5.2.0.114H
Release 5.2.0.114H

Change-Id: Ic70e9280c74bcb6fd758c8eea0533efd08835923
CRs-Fixed: 774533
2019-01-02 03:52:58 -08:00
Yu Ouyang
781f1b56c9 qcacld-3.0: correct return value for pld_pcie_get_user_msi_assignment
Without CNSS module, function pld_pcie_get_user_msi_assignment return zero
even no msi config. For caller function pld_get_user_msi_assignment, zero
means TRUE. It will result to panic when deinit sequence called in
function hif_ce_srng_msi_free_irq. Return correcly value to avoid panic.

Change-Id: Id4480ef1db5357943162472963c4e78d7bfe64b8
CRs-Fixed: 2373130
2019-01-02 03:52:58 -08:00
nshrivas
246f7db4b3 Release 5.2.0.114G
Release 5.2.0.114G

Change-Id: I806462b82620db468260b718bdbd45c23d7ac2f8
CRs-Fixed: 774533
2019-01-01 23:28:24 -08:00
hangtian
29be28705c qcacld-3.0: Add rrm IE for sap mode
Add rrm IE for sap mode.

Change-Id: Ic598da89627254a5d14b61c546e3fdb29d5836cc
CRs-Fixed: 2371360
2019-01-01 23:28:24 -08:00
hangtian
06a41355e6 qcacld-3.0: Discard msdu and do not try to access vdev and vdev->pdev
Discard msdu and do not try to access vdev and vdev->pdev, because in
some cases, vdev or vdev->pdev is already freed, but some packet just
received right after wmi vdev delete command is sent.

Change-Id: Ia38768d800da97e361ffa1688ce53c25be6cd597
CRs-Fixed: 2372557
2019-01-01 23:28:20 -08:00
nshrivas
1651b9612e Release 5.2.0.114F
Release 5.2.0.114F

Change-Id: I3bc77688a052f75be9c5dc76ace6cac5ab913088
CRs-Fixed: 774533
2019-01-01 17:06:03 -08:00
Arif Hussain
0b634b48ed qcacld-3.0: Restore gDisableDfsJapanW53 ini support
Restore gDisableDfsJapanW53 ini support.

Change-Id: I085e62e7cd8b1fdfe931997d35915f55d079f11d
CRs-Fixed: 2371006
2019-01-01 17:06:03 -08:00
nshrivas
1bd0968261 Release 5.2.0.114E
Release 5.2.0.114E

Change-Id: I17a3e520e05e13e4d4a8226315ba5588bc04d08b
CRs-Fixed: 774533
2018-12-31 21:29:28 -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
nshrivas
71118e7ad7 Release 5.2.0.114D
Release 5.2.0.114D

Change-Id: I7672350c7684a834a1a7a00edcf016cadc018873
CRs-Fixed: 774533
2018-12-31 01:13:12 -08:00
Sourav Mohapatra
9e014cf171 qcacld-3.0: Add support to enable/disable RTT feature
Define a new ini param to provide control over enabling and disabling
support for RTT.

Change-Id: I4fcc2370f758f80f00aaf04a4f23e24934d92f52
CRs-Fixed: 2364495
2018-12-31 01:13:11 -08:00
Sourav Mohapatra
fec6d6c8c4 qcacld-3.0: Disable indoor channels only for SAP and not GO
In the present scenario, the indoor channels are disabled
in both SAP and GO.
Disable the indoor channels only in case of SAP.

Change-Id: Ic66c3af211bd65846ec0ecaac8375d037f15af9a
CRs-Fixed: 2203719
2018-12-31 01:13:07 -08:00
nshrivas
9991acf33b Release 5.2.0.114C
Release 5.2.0.114C

Change-Id: I6d1fb7a153e47a6780b48f6c4c395c628ed23c6d
CRs-Fixed: 774533
2018-12-30 03:59:10 -08:00
Abhishek Singh
caebb463d7 qcacld-3.0: Fix infinite for loop in wlansap_update_csa_channel_params
In wlansap_update_csa_channel_params if channel is not present in
op class table the for loop become infinite.

Add check to break the loop if BW is 20 and still entry is not found
in op class table.

Change-Id: I6ef6bc138a8df0e18b54bd16a47eba23b437616d
CRs-Fixed: 2373915
2018-12-30 03:59:09 -08:00
nshrivas
372d92da33 Release 5.2.0.114B
Release 5.2.0.114B

Change-Id: I78ebf228cd2496be4b01b1c670ddf9a6d1e075de
CRs-Fixed: 774533
2018-12-28 22:56:27 -08:00
Abhishek Singh
59e6aa940e qcacld-3.0: Remove wlan_serialization_legacy_init_callback
Each cmd in serialization list holds a vdev ref by
I8d573ff5a25e6dff928b2708e51ad7b97e292277. When vdev is
destroyed physically, it means vdev ref count is 0, all
serialization cmds of this vdev are released, so no need
to registed purge calback.

Change-Id: Iea75707c88154e1e3e87369285b82d1288523e22
CRs-Fixed: 2373677
2018-12-28 22:56:26 -08:00
nshrivas
00a705fc60 Release 5.2.0.114A
Release 5.2.0.114A

Change-Id: I4cf62a6adf8ffe669d871d1fca9ff9a36f73f6e3
CRs-Fixed: 774533
2018-12-28 19:20:31 -08:00
Srinivas Dasari
e3ef7c646d qcacld-3.0: Free memory allocated to FILS info in roam profile
Memory allocated to FILS info is not getting freed in some
cases such as back to back connection and disconnect handler.

Add changes to free memory in these cases.

CRs-Fixed: 2047172
Change-Id: I5baf4555d956045cb65eedbc87daef3045732286
2018-12-28 19:20:31 -08:00
nshrivas
e23f3f8097 Release 5.2.0.114
Release 5.2.0.114

Change-Id: I18235a2e2cec1c3c02f7ba9627f08f4acc1231f2
CRs-Fixed: 774533
2018-12-28 16:12:10 -08:00
Jianmin Zhu
5252e04745 qcacld-3.0: Avoid keeping in DBS mode when STA connect 5G AP
If Connect candidate has two or more APs in different band,
switch to DBS firstly. After associated 5G AP, will check and
try to switch to single MAC mode.  But during DUT STA-AP key
negotiation, set hw mode cmd is refused to avoid EAPOL fail.

Fix: Delay N sec to check and set hw mode after associated, let
EAPOL handshake finish first.

Change-Id: I7d975fb56fedc30d66c21782607d148137e53e82
CRs-Fixed: 2372485
2018-12-28 16:12:09 -08:00
nshrivas
5b39c24385 Release 5.2.0.113Z
Release 5.2.0.113Z

Change-Id: Ie3388755b8eff10599f50ca4547486d6734eae55
CRs-Fixed: 774533
2018-12-28 12:26:44 -08:00
Abhinav Kumar
c1059384a6 qcacld-3.0: Address checkpatch errors added as part of VHT & WMM CFG items
Address checkpatch errors added as part of VHT & WMM CFG items.

Change-Id: I2c3d5466264781cee8197778806a349cfbf06957
CRs-Fixed: 2359406
2018-12-28 12:26:44 -08:00
Ashish Kumar Dhanotiya
efae55b005 qcacld-3.0: 11d and 11h inis are not getting updated
As part of ini convergence, enabled_11d and enabled_11h inis are
moved to converged framework but these inis are not removed from
legacy initialization path which is overwritting these values
to constant values and thus these inis are not taking effect.
Morever in the converged code also these inis are getting
initialized with default values instead of the values given
from ini file.

To address this issue, remove the legacy initialization of these
inis and in the converged ini path initialize these values with
the values configured in the ini files.

Change-id: I3d02c0d543fd561f1fd948b5c2850a509b1104e7
CRs-fixed: 2371528
2018-12-28 12:26:39 -08:00
nshrivas
af44e4f081 Release 5.2.0.113Y
Release 5.2.0.113Y

Change-Id: Ia5f2761f0ef77488b447150ce07d73fcf60f7cd1
CRs-Fixed: 774533
2018-12-28 07:13:18 -08:00
Wu Gao
a67c3801b7 qcacld-3.0: Active tdls psoc enable and disable
Call tdls psoc enable/disable in HDD component enable/disable.

Change-Id: Ibdeb977ea474c57085d18d87bb589f0aa8063db8
CRs-Fixed: 2373030
2018-12-28 07:13:18 -08:00
nshrivas
3ca3db6088 Release 5.2.0.113X
Release 5.2.0.113X

Change-Id: Idd876038ae9aec285772c3c1fbbea7e6f435f4c6
CRs-Fixed: 774533
2018-12-28 04:38:10 -08:00
Wu Gao
c3e1ba9174 qcacld-3.0: Remove unused tdls api in hdd
Remove below unused tdls api in hdd:
- wlan_hdd_tdls_extctrl_config_peer
- wlan_hdd_tdls_extctrl_deconfig_peer
- wlan_hdd_cfg80211_tdls_scan
- wlan_hdd_cfg80211_send_tdls_discover_req

Change-Id: Ib6407bb18bc77e92e1cdd3b38d6ff3051f03b74c
CRs-Fixed: 2373063
2018-12-28 04:38:09 -08:00
nshrivas
835219f5a4 Release 5.2.0.113W
Release 5.2.0.113W

Change-Id: I1b2b926f47514b1cc69dd05bfd43933fe1311d26
CRs-Fixed: 774533
2018-12-28 02:23:01 -08:00
Manikandan Mohan
2bd0977920 qcacld-3.0: Move IBSS INI params to converged CFG component
Update qcacld driver to move IBSS INI params to converged CFG
component and cleanup HDD ini entriesi

Change-Id: Id8e4c0505113e556a8d64915a648f17fc5c0daf5
CRs-fixed: 2358493
2018-12-28 02:23:00 -08:00
Manikandan Mohan
d350c194b4 qcacld-3.0: Move offload ini params to converged CFG
Move misc offload ini params to converged CFG component and
cleanup HDD ini config.

Change-Id: I14b3d95dc1577d02230168d305d1d1c4c7fef2fd
CRs-fixed: 2358489
2018-12-28 02:22:55 -08:00
nshrivas
aed4e3d88d Release 5.2.0.113V
Release 5.2.0.113V

Change-Id: I364d1f35ebf9e421f3c19fcf887b9a47883adf8d
CRs-Fixed: 774533
2018-12-27 22:10:30 -08:00
Jianmin Zhu
d443946b3d qcacld-3.0: Fix scan info memory leak in csr scan callback
In specific scan result callback, before issue connect, check
whether need HW mode change. If HW mode change is unneeded or
return FAILED, need free roam profile in scan info after issue
connect.

Change-Id: I81b37babcbdf474a3cfa58edb8c21dbcbd467d6f
CRs-Fixed: 2373157
2018-12-27 22:10:29 -08:00
nshrivas
2aa3c8a096 Release 5.2.0.113U
Release 5.2.0.113U

Change-Id: I13ffa46d2a7ea2bcc6aa6342c56bb7c86ff9f77a
CRs-Fixed: 774533
2018-12-27 15:35:54 -08:00
Abhishek Singh
98278ceed1 qcacld-3.0: Initialize component configs with zero
Initialize all component configs structure sent to component
with zero to avoid any uninitialized values.

Change-Id: I4c1681e622d64641708e51590d283b82c8b0c82c
CRs-Fixed: 2373161
2018-12-27 15:35:54 -08:00
nshrivas
4cf4b94002 Release 5.2.0.113T
Release 5.2.0.113T

Change-Id: I7e51e02e75eba92503cbc144b7faab90a1a53f46
CRs-Fixed: 774533
2018-12-27 03:21:07 -08:00
nshrivas
8343a9b621 Release 5.2.0.113S
Release 5.2.0.113S

Change-Id: Ibb71b76d60d65dc8d7f574141d41a7b4caf7600c
CRs-Fixed: 774533
2018-12-27 01:05:11 -08:00
Manikandan Mohan
06d38d8c48 qcacld-3.0: Add 11K offload param to converged CFG component
Update driver to move 11K offload params to converged CFG component
and remove redundant entries from HDD config.

Change-Id: I7703ca5b23d5fa95a3b5dc5ccd9690771a4bf43d
CRs-fixed: 2357708
2018-12-27 01:05:06 -08:00
nshrivas
7165bc3ab0 Release 5.2.0.113R
Release 5.2.0.113R

Change-Id: I709362626614f5eb2cc11f49c18ffb004eebe8d7
CRs-Fixed: 774533
2018-12-26 22:45:53 -08:00
Jeff Johnson
6dcb44ac13 qcacld-3.0: Rename pAddPeriodicTxPtrnParams
Per the Linux coding style both mixed-case names and so-called
Hungarian notation are frowned upon, therefore replace the identifier
pAddPeriodicTxPtrnParams everywhere it occurs.

Change-Id: Id15f65781eb6ead662add691aa299df0ca60bc3f
CRs-Fixed: 2371907
2018-12-26 22:45:52 -08:00
Jeff Johnson
0536c17571 qcacld-3.0: Avoid memory leak when adding a TX pattern
In wma_process_add_periodic_tx_ptrn_ind() the buffer allocated for the
WMI parameter will be leaked if wma_find_vdev_by_addr() fails. To
avoid this, reorder the operations so that the buffer is not allocated
unless wma_find_vdev_by_addr() is successful.

Change-Id: Idbd180dcc1bcae5b71f6a56adcfa3b4a7e2595da
CRs-Fixed: 2371905
2018-12-26 22:45:48 -08:00
nshrivas
72f4849b0e Release 5.2.0.113Q
Release 5.2.0.113Q

Change-Id: I194da59a169de0da307ab370c706c7ce6c95c6e7
CRs-Fixed: 774533
2018-12-26 20:27:24 -08:00
Harprit Chhabada
253e36ad50 qcacld-3.0: Modify Kbuild to add new beacon header file
In wmi new file, wmi_unified_bcn_api.c is added.
Add this file in Kbuild.

Change-Id: I4fdbf041b53b5f1606d324714f01088742a9307f
CRs-Fixed: 2366772
2018-12-26 20:27:24 -08:00
nshrivas
080e92385c Release 5.2.0.113P
Release 5.2.0.113P

Change-Id: I47f9fc93f4324330847808caa692eebd1aae0f9e
CRs-Fixed: 774533
2018-12-26 18:01:08 -08:00
Rajeev Kumar
7b7bb3f440 qcacld-3.0: Add option to disable psoc idle timer
Add option to disable idle psoc timer by changing min
value to 0 and when 0 value is set in INI file then do
not start the psoc idle timer.

Change-Id: I6593f8ef9a15e1817215021c694c20ddf1aaa252
CRs-Fixed: 2370954
2018-12-26 18:01:08 -08:00
nshrivas
7646224d90 Release 5.2.0.113O
Release 5.2.0.113O

Change-Id: I6e2c42c7676182f55ef0f03112a18f14f6aee9dc
CRs-Fixed: 774533
2018-12-26 12:33:25 -08:00
Abhinav Kumar
3b724f5fa9 qcacld-3.0: Fix memleak in scan for ssid if scan req allocation fails
In scan for ssid if scan req allocation fails in csr_scan_for_ssid,
status is success and thus the memories are not freed for
scan_info.profile results in memleak.

Fix is to free mem for scan_info.profile in case if scan req allocation
fails in csr_scan_for_ssid.

Change-Id: I45ac2093bdd6d2d17b353f805a157dcea80a2623
CRs-Fixed: 2372803
2018-12-26 12:33:25 -08:00
nshrivas
f6ff31b081 Release 5.2.0.113N
Release 5.2.0.113N

Change-Id: I24442184bf3b3dc9ac4174e6e21ef917ebed7ad5
CRs-Fixed: 774533
2018-12-26 10:12:18 -08:00
Pragaspathi Thilagaraj
df0f544dab qcacld-3.0: Add new "roam_score_delta" and "roam_score_delta_bitmap" ini
Add two new WCNSS_qcom.ini values:
"roam_score_delta" - Factor by which the new roaming candidate
ap score should be greater than the score of the current
connected AP.
"roam_score_deltabitmap" - Roam triggers for which
roam_score_delta needs to be applied on the roam score of the
candidate AP.

Populate these two values to wlan_mlme_scoring_cfg from cfg
component in mlme_init_scoring_cfg. The values are sent to
firmware over the WMI TLV WMI_ROAM_AP_PROFILE in the below code
flow:
csr_update_score_params()->__lim_process_roam_scan_offload_req()
->wma_process_roaming_config()->wma_roam_scan_offload_ap_profile

Change-Id: I64f2a2328e485418547dae937c657f85225f1457
CRs-Fixed: 2367910
2018-12-26 10:12:18 -08:00
Pragaspathi Thilagaraj
ae7dc766b3 qcacld-3.0: BTM changes to add new WCNSS_qcom.ini to configure btm params
Add the following new WCNSS_qcom.ini value:
"prefer_roam_score_for_candidate_selection" - choose to sort the
candidates on roam score or preferred AP list send in the BTM
request frame by AP.
When this ini is set, host driver will
modify btm_offload_config bit 7 which will be read by firmware
to get this ini value.

“roam_candidate_validity_timer” - roam cache entries validity
timer. The candidates in the roam cache are valid only for this
time value. This value is sent to firmware over the wmi command
on the structure wmi_roam_offload_tlv_param

"btm_disassoc_timer_threshold" - Disassociation timer threshold
to wait after which the full scan for roaming can be started
after the AP has sent the disassoc imminent

Change-Id: I3ba5ba2182b1b6d722d9c315757332a1b3e62521
CRs-Fixed: 2369018
2018-12-26 10:12:14 -08:00
Pragaspathi Thilagaraj
39d616074e qcacld-3.0: Add new WCNSS_qcom.ini "bss_load_bss_sample_time"
Add new ini item "bss_load_sample_time" to send the monitor
time window for which the beacons are to be sampled to collect
the bss load information.
Also add changes to send bss load trigger parameters only during
RSO start during initial connection

Change-Id: I61d1f3745b56199838fc886f1ed3a05786653501
CRs-Fixed: 2372147
2018-12-26 10:12:06 -08:00
Jianmin Zhu
f2de84f371 qcacld-3.0: Involve VDEV SM when STA switch channel width
When found AP channel width change from beacon:
    1. Set channel switch in progress with reason
	LIM_SWITCH_CHANNEL_HT_WIDTH, Send
	WLAN_VDEV_SM_EV_FW_VDEV_RESTART.
    2. Call lim_ht_switch_chnl_params in
        mlme_vdev_restart_send if reason is
	LIM_SWITCH_CHANNEL_HT_WIDTH, set ht width switch
	callback.
    3. Send WLAN_VDEV_SM_EV_RESTART_RESP in
        wma_vdev_start_resp_handler and clear channel switch in
	progress.
    4. Send WMA_SWITCH_CHANNEL_RSP in mlme_vdev_start_continue.
    5. Send WLAN_VDEV_SM_EV_START_SUCCESS in ht width switch
	callback to up vdev.

Change-Id: I46651e9aa17ebe049e44179d3a8fcc5a214762be
CRs-Fixed: 2372486
2018-12-26 10:12:01 -08:00
nshrivas
4177948219 Release 5.2.0.113M
Release 5.2.0.113M

Change-Id: Ie3236c1eed226669deb3bdfa6bf56df1af1e061c
CRs-Fixed: 774533
2018-12-26 07:47:35 -08:00
Pragaspathi Thilagaraj
30251ecf5a qcacld-3.0: Handle the wmi event from WMI_ROAM_BLACKLIST_EVENTID
When firmware receives BTM request with disassoc imminent set,
the firmware should blacklist the AP and should not roam to it
for disassoc timer duration sent in the btm frame. The new wmi
event WMI_ROAM_BLACKLIST_EVENTID received from the firmware
carries the bssid to be blacklisted.

Handle this wmi event WMI_ROAM_BLACKLIST_EVENTID and update the
mac_ctx->roam.rssi_disallow_bssid with the bssid entries
received from firmware.

Change-Id: Ib41bcb91f123ce24b7d28407468e4597af7b5e1a
CRs-Fixed: 2369078
2018-12-26 07:47:34 -08:00
Rachit Kankane
2a3fd3981a qcacld-3.0: Enable FT_IEEE8021X and FT_PSK for Genoa
Enable FEATURE_WLAN_FT_IEEE8021X and FEATURE_WLAN_FT_PSK for Genoa as
targeted kernel version is 4.4.

Change-Id: I599be887b0021e7f53622c840dc76d5e3b47376a
CRs-Fixed: 2359886
2018-12-26 07:47:30 -08:00
Pragaspathi Thilagaraj
69f0b69ca9 qcacld-3.0: Send bss load trigger values to firmware
Introduce the following new WCNSS_qcom.ini values:
"enable_bss_load_roam_trigger"
"bss_load_threshold"
Send these values over the new wmi command,
WMI_ROAM_BSS_LOAD_CONFIG_CMDID if "enable_bss_load_roam_trigger"
is set to true.

This wmi command will be sent to firmware as part of the RSO
start or update config.

Change-Id: Ib2e21904bc7b8d87e5f51824d2694b90a3ac53f2
CRs-Fixed: 2367770
2018-12-26 07:47:25 -08:00
nshrivas
18ed10f6b9 Release 5.2.0.113L
Release 5.2.0.113L

Change-Id: Ie02ba50474ce7df3ac420a2b9b2e3aa8feb5761d
CRs-Fixed: 774533
2018-12-26 01:21:14 -08:00
Nachiket Kukade
c1bba2f146 qcacld-3.0: Set 5GHz channel for NDI start and remove the INI
NDI Create from upper layers also does a start bss with the
channel specified with INI "gnan_datapath_ndi_channel". It
defaults to channel 6 if no value is specified. For targets
with 2x2 DBS MAC Configuration this cannot happen without
a DBS mode change. Since this channel is not indicative of
the actual NDI channel, send a 5GHz NAN Social channel for
the BSS start to avoid the DBS mode change.

Send 5GHz NAN Social channel for NDI bss start and remove
the corresponding INI.

Change-Id: I40428f5eb4071f7c1d3934c6279316aad8082c03
CRs-Fixed: 2364619
2018-12-26 01:21:13 -08:00
nshrivas
52ffdd48b1 Release 5.2.0.113K
Release 5.2.0.113K

Change-Id: Ie38438d2dc1589cfe9ab1d9b0971a5c668b05d34
CRs-Fixed: 774533
2018-12-25 19:53:29 -08:00
Jeff Johnson
7acca0dd65 qcacld-3.0: Refactor GTX 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_GTX

Change-Id: Ie64612653b55a3c75d035612d7a4a06cf5a1e772
CRs-Fixed: 2371588
2018-12-25 11:36:52 -08:00
Jeff Johnson
0bdbb96857 qcacld-3.0: Refactor RSN_IE 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_RSN_IE

Change-Id: Ib513fce2a797a31fe9c81bcc3e142b61db972d30
CRs-Fixed: 2371587
2018-12-25 11:36:52 -08:00
Jeff Johnson
0a315915de qcacld-3.0: Refactor DISABLE_FILS 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_DISABLE_FILS

Change-Id: I297dafc0282168fe71824fe1dd40635738d90bc8
CRs-Fixed: 2371586
2018-12-25 11:36:52 -08:00
Jeff Johnson
2502ddd2a3 qcacld-3.0: Refactor LATENCY_LEVEL 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_LATENCY_LEVEL

Change-Id: I84ea1d02a91a08ac3c2bd8d020ecdc05176d1668
CRs-Fixed: 2371584
2018-12-25 11:36:52 -08:00
Jeff Johnson
320feebf04 qcacld-3.0: Refactor TOTAL_BEACON_MISS_COUNT 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_TOTAL_BEACON_MISS_COUNT

Change-Id: I6d88ed8e258d9abba74b56907f9fe3a6fef8b473
CRs-Fixed: 2371583
2018-12-25 11:36:52 -08:00
Jeff Johnson
ae21be86d5 qcacld-3.0: Refactor ANT_DIV_SELFTEST_INTVL 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_ANT_DIV_SELFTEST_INTVL

Change-Id: Idbc5c370913e80a9ad17c9eee3fc08bac7f3f31e
CRs-Fixed: 2371585
2018-12-25 11:36:51 -08:00
Jeff Johnson
ef427ad901 qcacld-3.0: Refactor ANT_DIV_SELFTEST 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_ANT_DIV_SELFTEST

Change-Id: Ic6aa338894c39f9d047d064c7752b8d3d4c9b042
CRs-Fixed: 2371582
2018-12-25 11:36:51 -08:00
Jeff Johnson
aa172229cf qcacld-3.0: Refactor ANT_DIV_CHAIN 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_ANT_DIV_CHAIN

Change-Id: I0c63c70de5a7c607f55313acebb7c9fbf8e8ac9d
CRs-Fixed: 2371581
2018-12-25 11:36:51 -08:00
Jeff Johnson
72dc91e518 qcacld-3.0: Refactor RESTRICT_OFFCHANNEL 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_RESTRICT_OFFCHANNEL

Change-Id: I34d7a8a3526a80f5cdbe2bab4a663a0f41b6a4d7
CRs-Fixed: 2371580
2018-12-25 11:36:51 -08:00
Jeff Johnson
77177bc73b qcacld-3.0: Refactor ANT_DIV_PROBE_DWELL_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_ANT_DIV_PROBE_DWELL_TIME

Change-Id: I43e07645a7d5ce242fd97d477764fdfb3cd6d1a5
CRs-Fixed: 2371579
2018-12-25 11:36:51 -08:00
Jeff Johnson
91f90ffa51 qcacld-3.0: Refactor ANT_DIV_SNR_DIFF 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_ANT_DIV_SNR_DIFF

Change-Id: I1fa384b98c276ab5cf09c96d8d47be9fc0a93acd
CRs-Fixed: 2371578
2018-12-25 11:36:51 -08:00
Jeff Johnson
3a25de856b qcacld-3.0: Refactor IGNORE_ASSOC_DISALLOWED 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_IGNORE_ASSOC_DISALLOWED

Change-Id: I3f91195a7b26ea248d57f608936e79761890dc1b
CRs-Fixed: 2371577
2018-12-25 11:36:51 -08:00
Jeff Johnson
f9871e4c06 qcacld-3.0: Refactor ANT_DIV_ENA 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_ANT_DIV_ENA

Change-Id: I7bd2652db54c71645a8292ab36775682e5a32250
CRs-Fixed: 2371575
2018-12-25 11:36:51 -08:00
Jeff Johnson
7766fd2d80 qcacld-3.0: Refactor CHANNEL_AVOIDANCE_IND 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_CHANNEL_AVOIDANCE_IND

Change-Id: Ie5252620221a77c82a03f74eaa14dfaa22b5476a
CRs-Fixed: 2371576
2018-12-25 11:36:51 -08:00
Jeff Johnson
7c5e6dc43e qcacld-3.0: Refactor TX_FAIL_COUNT 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_TX_FAIL_COUNT

Change-Id: I138b6cee0df42a8ca375092eccc103412544ba2a
CRs-Fixed: 2371574
2018-12-25 11:36:51 -08:00
Jeff Johnson
8fb9dedf60 qcacld-3.0: Refactor PROPAGATION_ABS_DELAY 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_PROPAGATION_ABS_DELAY

Change-Id: I789a46ab7baf2719de25c7e3c1531192c3e663a7
CRs-Fixed: 2371573
2018-12-25 11:36:50 -08:00
Jeff Johnson
982147462f qcacld-3.0: Refactor PROPAGATION_DELAY 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_PROPAGATION_DELAY

Change-Id: I3457a98592164d83db09f20b9e63d28bc8429055
CRs-Fixed: 2371572
2018-12-25 11:36:50 -08:00
Jeff Johnson
6b48a2f04a qcacld-3.0: Refactor CTRL_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_CTRL_RETRY

Change-Id: Id54483ced3505e28a5db3d05fb3afc4c0c7a1ff9
CRs-Fixed: 2371571
2018-12-25 11:36:50 -08:00
Jeff Johnson
0e8259ca6d qcacld-3.0: Refactor MGMT_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_MGMT_RETRY

Change-Id: I19af4fa260bd837b55dc0ac38ef7556e5f181c13
CRs-Fixed: 2371570
2018-12-25 11:36:50 -08:00
Jeff Johnson
b902100ff3 qcacld-3.0: Refactor 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_AGG_RETRY

Change-Id: Ibda27586afb6daf7745c2a98cb947a22975e0453
CRs-Fixed: 2371569
2018-12-25 11:36:50 -08:00
nshrivas
36d70db071 Release 5.2.0.113J
Release 5.2.0.113J

Change-Id: I2ade79f1e8c82166d00d37c4733991d0727bf9df
CRs-Fixed: 774533
2018-12-25 10:29:56 -08:00
Ashish Kumar Dhanotiya
5d781567c8 qcacld-3.0: Update center_freq_2 only for chwidth 80+80
Driver is updating center_frequency_2 in case of channel width
80MHz, 80+80MHz and 160MHz in channel change notification to
hostapd.
Since center_frequency_2 gets used only in case of 80+80 MHz,
update center_freq_2 only for 80+80 MHz.

Change-Id: If66f205eac0c81bbb7a2954c05b2e3d5618ff8f8
CRs-Fixed: 2372039
2018-12-25 10:29:55 -08:00
nshrivas
24d5b76649 Release 5.2.0.113I
Release 5.2.0.113I

Change-Id: Icab66aac5b23ffd10f9bcdeac11de088cb348ec1
CRs-Fixed: 774533
2018-12-25 05:20:57 -08:00
Ashish Kumar Dhanotiya
ff833227e5 qcacld-3.0: Reset recovery in progress flag during probe
Currently in driver at load time if probe fails because
of any reason, as part of FW down, recovery in progress
flag is getting set which is getting reset only in re-init
path. Now when probe starts again as this was load time
failure, this flag is set and there are checks at many
places for this flag in driver where we just don't proceed
further if this flag is set.
One such example of such incident is reg_process_master_chan_list
api where regulatory event is not getting processed because this
flag is set.

To resolve this issue reset recovery in progress flag during probe.
There is no harm in resetting the flag during probe as probe start
indicates that FW is ready.

Change-Id: Ib681870f869060f4511563aa3255aeb0eb8f9f12
CRs-Fixed: 2365416
2018-12-25 05:20:56 -08:00
Abhishek Singh
eb7751ad7b qcacld-3.0: Fix invalid session used in ap ecsa timeout api
If ecsa timeout is active and stop bss is received. During
pe delete session the timer is stopped and destroyed. But if
if timer has already expired and has posted the message to MC
thread the timer callback will be called with pe session which
is already deleted.

Fix this by checking if of pe session is valid in timeout API.
Also reset dfsIncludeChanSwIe during pe delete session.

Change-Id: I67d7e65c8136daaa04afa8b01b7019b0b8b36dae
CRs-Fixed: 2372278
2018-12-25 05:20:52 -08:00
Jeff Johnson
256002f959 qcacld-3.0: Converge on struct del_ts_param
The driver currently defines two different data structures to hold
Delete Tspec parameters:
- tDelTsParams
- struct del_ts_param

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: Ia70b1e17e4446259ff32107ffbc11646d078e1c0
CRs-Fixed: 2371915
2018-12-25 05:20:48 -08:00
nshrivas
03ff21d983 Release 5.2.0.113H
Release 5.2.0.113H

Change-Id: I021f70e54d3c358722e8b513655b522892a48167
CRs-Fixed: 774533
2018-12-25 02:59:11 -08:00
Jeff Johnson
9851fcc55b qcacld-3.0: Converge on struct add_ts_param
The driver currently defines two different data structures to hold
Add Tspec parameters:
- tAddTsParams
- struct add_ts_param

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: I298202748b8a0f6c2a9f8a36ca7cdee071d000bf
CRs-Fixed: 2371914
2018-12-25 02:59:10 -08:00
Jeff Johnson
cf2ec16b6a qcacld-3.0: Converge on struct delts_req_info
The driver currently defines two different data structures to hold
Delete Tspec Request parameters:
- tSirDeltsReqInfo
- struct delts_req_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: I0951c8da636bcbf81a335c0ea1250d721ca5c573
CRs-Fixed: 2371913
2018-12-25 02:59:06 -08:00
Jeff Johnson
5402441a01 qcacld-3.0: Converge on struct aggr_add_ts_param
The driver currently defines two different data structures to hold
aggregate AddTspec parameters:
- tAggrAddTsParams
- struct aggr_add_ts_param

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: I960bd79b04838ac675ad49e332a47671faccaaa7
CRs-Fixed: 2371912
2018-12-25 02:59:02 -08:00
nshrivas
706e9072d0 Release 5.2.0.113G
Release 5.2.0.113G

Change-Id: I2a78b41e77c0171d33499429a6f3fd5c83e09cbe
CRs-Fixed: 774533
2018-12-25 00:40:35 -08:00
Jeff Johnson
56471b94c5 qcacld-3.0: Converge on struct mac_tspec_ie
The driver currently defines two different data structures to hold
a TSpec IE field:
- tSirMacTspecIE
- struct mac_tspec_ie

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: I2e9da1d72dae3c4b0baa13306ee7ec127895a4f2
CRs-Fixed: 2371911
2018-12-25 00:40:34 -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
Jeff Johnson
92bf60e67a qcacld-3.0: Rename lim_process_ft_aggr_qo_s_rsp()
The function name lim_process_ft_aggr_qo_s_rsp() is mangled,
originally produced by automated camelCase conversion. Rename to
lim_process_ft_aggr_qos_rsp() to make more sense.

Change-Id: I8ca5888594d4384020d14804524f9a669ae8de08
CRs-Fixed: 2371909
2018-12-25 00:40:25 -08:00
nshrivas
655fbbff9d Release 5.2.0.113F
Release 5.2.0.113F

Change-Id: Ib30ce4977f59a085b50168a481b7c2171ff92dee
CRs-Fixed: 774533
2018-12-24 22:29:37 -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
gaurank kathpalia
ece50259ec qcacld-3.0: Set passive scan as false in ACS scan req
Currently the driver doesn't set the passive scan req flag
as false which results in passive scan, and thus introduces
latency.

Fix is to set passive scan as false in ACS scan req.

Change-Id: I1274a4ccb9d99d568c32aeea1a65e4637a82b9c8
CRs-Fixed: 2372103
2018-12-24 22:29:32 -08:00
nshrivas
ab50883975 Release 5.2.0.113E
Release 5.2.0.113E

Change-Id: I561d723e67d5d394d0a4d75c0c68509c90b5157e
CRs-Fixed: 774533
2018-12-24 12:15:45 -08:00
Ashish Kumar Dhanotiya
bf00f82427 qcacld-3.0: Validate all channels for avoid_freq channel list
In avoid frequency vendor command, only data validation is
being done but each individual channel is not getting validated
which may lead to an array out of bound access as the array
which is used to cache the channels has the size of valid number
of channels.

To avoid this, add a check to validate each channel before
updating the unsafe channel list array.

Change-ID: I433e9297207869e43d1a6ee2d621bded2f562656
CRs-Fixed: 2341890
2018-12-24 12:15:44 -08:00
nshrivas
488ac6dba7 Release 5.2.0.113D
Release 5.2.0.113D

Change-Id: Ibbcdc79de4664b4637f2db6362774874337e74a1
CRs-Fixed: 774533
2018-12-24 10:06:35 -08:00
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