Commit Graph

12277 Commits

Author SHA1 Message Date
nshrivas
54ecf6c7d5 Release 5.2.0.102H
Release 5.2.0.102H

Change-Id: I00582cda13e6de5ff77a630861e11e1cd2c63da3
CRs-Fixed: 774533
2018-10-18 08:13:26 -07:00
Jianmin Zhu
0923660ec1 qcacld-3.0: Implement LFR2 and reassoc for new vdev SM
LFR2 uses ft reassoc, whose process is different from general
connect.

1.ft reassoc, normal reassoc and assoc, all of 3 need deliver
event WLAN_VDEV_SM_EV_START to SM,  but need different handler.

2.ft reassoc send vdev start when add bss, not switch channel.

Change-Id: Ieefbcf0a28867be3c8a86d9a912143857c54fe06
CRs-Fixed: 2334194
2018-10-18 08:13:25 -07:00
nshrivas
80a7a3f7c0 Release 5.2.0.102G
Release 5.2.0.102G

Change-Id: I0ee6f5d8e0cc2c5eee2937d519eb1393093f594f
CRs-Fixed: 774533
2018-10-18 02:16:55 -07:00
Jeff Johnson
43837af883 qcacld-3.0: Replace new instance of tHalHandle in wlan_hdd_main
Previously "qcacld-3.0: Use mac_handle_t in wlan_hdd_main" (Change
If9ddbe0935d859d4c71dc11576cd7062a715b3e9) replaced all instances of
tHalHandle with mac_handle_t in wlan_hdd_main. But subsequently change
"qcacld-3.0: Allow Setting Channel&Bandwidth in STA mode" (Change
Ie9ffc701d93ed1c050375dd56151b7a0da69cdce) introduced a new instance,
so replace it as well.

Change-Id: I01e67401b0eb99b242a7a0b0d161696cbe2fba79
CRs-Fixed: 2335139
2018-10-18 02:16:54 -07:00
nshrivas
f214373311 Release 5.2.0.102F
Release 5.2.0.102F

Change-Id: I7c40f866274eb77b4e6c3e69bb59f07e5a50902c
CRs-Fixed: 774533
2018-10-18 00:21:04 -07:00
Dustin Brown
194aeca1bf qcacld-3.0: Move p2p work around to change_iface
hdd_change_adapter_mode() contains a work around for an issue with
userspace requesting station mode on a p2p adapter, expecting the wlan
driver to instead change the adapter to p2p-device mode. Hoist this work
around to the caller, __wlan_hdd_cfg80211_change_iface, so the rest of
the code doesn't need to be aware of it.

Change-Id: Ic71d6d99b1df7339dda892adcfb27605fa8dfc59
CRs-Fixed: 2332798
2018-10-18 00:21:03 -07:00
Dustin Brown
63fe49239f qcacld-3.0: Factor out common parts in change_iface
Some common parts of __wlan_hdd_cfg80211_change_iface are repeated in
multiple places. Factor out these common sections to reduce redundant
code and ensure they stay synchronized in the future.

Change-Id: I80d47f1c9a14342f777bfc169d85287a3e709a58
CRs-Fixed: 2332780
2018-10-18 00:20:59 -07:00
Dustin Brown
56377e1ebe qcacld-3.0: Prefer QDF_OPMODE in __wlan_hdd_cfg80211_change_iface
__wlan_hdd_cfg80211_change_iface() currently uses QDF_OPMODE and
nl80211_iftype relatively interchangeably, which forces the reader to
mentally convert between the two as they go and disperses the real
conversion of one into the other throughout the code. Instead, do the
conversion from nl80211_iftype to QDF_OPMODE once up front. This way
usage can be consistent and more easily followed.

Change-Id: Ie578865c3724e4a85bd249352288afac10928bb4
CRs-Fixed: 2331969
2018-10-18 00:20:52 -07:00
nshrivas
e4a74b4bb4 Release 5.2.0.102E
Release 5.2.0.102E

Change-Id: Iba336593b02b3073ca41324e793b1cb08807bd05
CRs-Fixed: 774533
2018-10-17 22:25:56 -07:00
Abhishek Singh
15997c7db6 qcacld-3.0: properly update vht caps in mlme vht caps
In mlme_update_vht_cap, local structure is updated instead of
mlme global structure for vht caps and thus the mlme vht caps
contains only the default values.

Fix this by updating mlme vht caps in mlme_update_vht_cap.

Change-Id: Ifa3d30ae202f1a4b6361db1a504861918f7ebf2c
CRs-Fixed: 2334955
2018-10-17 22:25:56 -07:00
nshrivas
53a21d1088 Release 5.2.0.102D
Release 5.2.0.102D

Change-Id: I44174e915f99c14a15af599f21326ddb72cdb9a7
CRs-Fixed: 774533
2018-10-17 19:37:24 -07:00
Manikandan Mohan
4cc1c5a4d0 qcacld-3.0: Fix VDEV SM for NAN data path interface
NAN data path interface (NDI) VDEV uses AP MLME callbacks for
VDEV state machine but some state actions are no op for NDI mode.
Update lim module to transition from NDI from VDEV START state to
VDEV up state and bypass beacon update and VDEV up WMI for NDI mode.

CRs-fixed: 2330270
Change-Id: I648811b41020a4e09aa6c7c436ec2c9693c51d97
2018-10-17 19:37:23 -07:00
nshrivas
5eef577f04 Release 5.2.0.102C
Release 5.2.0.102C

Change-Id: I26dbf3eb0c5e6a7b639e0f50f11f56e2498339dc
CRs-Fixed: 774533
2018-10-17 17:42:18 -07:00
Mohit Khanna
cabf5e79d8 qcacld-3.0: Fixes for IPA enablement for lithium/Hasting
Following changes were made -

- Replace #ifdef CONFIG_LITHIUM with QCA_WIFI_QCA6290 and QCA_WIFI_QCA6390
  flags. CONFIG_LITHIUM is not defined to be used within the code, the
  individual chip specific flags are defined, hence use those.

- Pass IPA enable/disable ini configuration to DP layer

Change-Id: If0bfdaf408b06a922923e998c0c6ad2157e2c080
CRs-Fixed: 2328711
2018-10-17 17:42:18 -07:00
Vignesh Viswanathan
657615cc53 qcacld-3.0: Free sta_self_wmi_rsp if WMA_DELETE_STA_REQ is not queued
In wma_self_peer_remove, sta_self_wmi_rsp is allocated and sent as
params to wma_fill_hold_req for WMA_DELETE_STA_REQ. However, if
wma_fill_hold_req fails and returns NULL, the memory allocated for
sta_self_wmi_rsp is not freed leading to memory leak.

Free sta_self_wmi_rsp in the error handling case for wma_fill_hold_req
in wma_self_peer_remove.

Change-Id: I8df840b39284e00a8c8be114c0fec13c3c199fc6
CRs-Fixed: 2334580
2018-10-17 17:42:14 -07:00
nshrivas
0c36853b51 Release 5.2.0.102B
Release 5.2.0.102B

Change-Id: I6d60cb9c4a8deaa63701e583163a3817e3ef225b
CRs-Fixed: 774533
2018-10-17 14:28:02 -07:00
Krunal Soni
80d0f27518 qcacld-3.0: Move gEnableStaConnectionIn5Ghz from HDD to Plcy manager
As part of new INI/CFG model, move gEnableStaConnectionIn5Ghz
ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: I894467bab4b0bddf309463802b98904ef1150536
2018-10-17 14:28:02 -07:00
Krunal Soni
6871374b9d qcacld-3.0: Move gEnableMCCAdaptiveScheduler from HDD to Plcy manager
As part of new INI/CFG model, move gEnableMCCAdaptiveScheduler
ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: Ib86004c4ee753b37b392de69551c777e3e9011de
2018-10-17 14:27:58 -07:00
Krunal Soni
13b50f8014 qcacld-3.0: Move DBS/vdev/channel selection related INIs to plcy mgr
As part of new INI/CFG model, move dbs_selection_policy,
vdev_priority_list, channel_select_logic_conc INIs'
ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: I8b38916d92931ef9cd1727481740bc61cad8f808
2018-10-17 14:27:54 -07:00
Krunal Soni
d7ef8637a0 qcacld-3.0: Move gEnableCustomConcRule1 (/2) from HDD to Plcy manager
As part of new INI/CFG model, move gEnableCustomConcRule1 and
gEnableCustomConcRule2 ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: I11952819a6ba5581de51d9b58969ff02d582f233
2018-10-17 14:27:50 -07:00
Krunal Soni
83d4960206 qcacld-3.0: Move gMaxConcurrentActiveSessions from HDD to Plcy manager
As part of new INI/CFG model, move gMaxConcurrentActiveSessions
ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: Iac1451fc457d9bceee73596affdae54895917040
2018-10-17 14:27:47 -07:00
Krunal Soni
e71838de7e qcacld-3.0: Move gSystemPref from HDD to Policy manager
As part of new INI/CFG model, move gSystemPref ownership
from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: Ia586896ea55c6e71d8dcff705bf0e74879931dbb
2018-10-17 14:27:43 -07:00
Krunal Soni
5e3f962ed2 qcacld-3.0: Move gWlanMccToSccSwitchMode from HDD to Policy manager
As part of new INI/CFG model, move gWlanMccToSccSwitchMode ownership
from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: Id8bdee52ebf83b1c8b3c8f9132a2fc74b28f42a0
2018-10-17 14:27:39 -07:00
Krunal Soni
e9c12f5aab qcacld-3.0: Add new INI/CFG infrastructure for Policy Manager
Policy Manager component needs to adopt a new INI/CFG
infrastructure.

Provide a new infrastructure and remove old INI/CFGs related
to policy manager component.

CRs-Fixed: 2324393
Change-Id: Ia16845c2aef3c5877b0b164fcef13fe7cd41c736
2018-10-17 14:27:36 -07:00
nshrivas
d1d4786016 Release 5.2.0.102A
Release 5.2.0.102A

Change-Id: I426861552194f2cd89b69d017cbd8608e8d712d9
CRs-Fixed: 774533
2018-10-17 05:50:30 -07:00
Jeff Johnson
2a7f101484 qcacld-3.0: Refine the passpoint set/reset logic
Make the following updates to the passpoint set/reset logic:
1) Exclusively use the Unified WMI data structures.
2) Refactor the vendor command processing to improve code
   maintainability.

Change-Id: I39945b2cec90c3f34c81e5ca525842f1af9340f7
CRs-Fixed: 2334234
2018-10-17 05:50:29 -07:00
nshrivas
93fbc1527d Release 5.2.0.102
Release 5.2.0.102

Change-Id: Ib4bb34766d8c281639cdc7df299ff3c8212b6e3d
CRs-Fixed: 774533
2018-10-17 02:07:04 -07:00
Yuanyuan Liu
49948f1d08 qcacld-3.0: Remove deprecated ANDROID_BUILD_TOP for new SP
ANDROID_BUILD_TOP variable is being deprecated and thus all paths are
assumed to be relative to the top directory.
However, this is causing problem when some of the paths are constructed
in the Android build system and used in the non-Android makefiles that
are usually executed NOT at the top directory but at a sub directory
using -C option. As a result, the relative path from the Android build
system become invalid in the non-Android makefiles.
In order to overcome the restriction, ANDROID_BUILD_TOP is manually
constructed when invoking the non-Android makefiles by using $$(pwd).
The non-Android makefiles are expected to construct the absolute path
by prepending ANDROID_BUILD_TOP to any path that came from the Android
build system.
Specifically, Kbuild is modified so that ANDROID_BUILD_TOP is prepended
to WLAN_ROOT and WLAN_COMMON_INC to make them absolute paths.

Change-Id: Ic34de7a2bc407153085eb3eb154d6dd71f04eedb
CRs-Fixed: 2328210
2018-10-17 02:07:03 -07:00
chenguo
b795b83594 qcacld-3.0: Fix invalid messages for dumpStats command
After enable AC based flow control feature, there are several
invalid messages are brought because of new added flow control
actions. Add new dump strings for these new added actions.

CRs-Fixed: 2332343
Change-Id: I6123e222a6124d992c094a2931fb7c8111c7a71a
2018-10-17 02:06:58 -07:00
Krunal Soni
bd7e8933f1 qcacld-3.0: Replace Linux Fix-Width data-type with C-99 stdints
Protocol stack supposed to be HLOS-agnostic, but there is some use of
Linux fixed-width types u8, u16, and u32. These should be replaced with
C99 fixed-width types uint8_t, uint16_t, and uint32_t so that they will
correctly be HLOS-agnostic and work on non-Linux targets.

CRs-Fixed: 2326407
Change-Id: I8f9099a0170e4f94a54cdd6cc6c2e321a29af717
2018-10-17 02:06:50 -07:00
nshrivas
fabecad587 Release 5.2.0.101Z
Release 5.2.0.101Z

Change-Id: Ib2d8636f56b45fb16c46a3fbac945c0f685b7ba4
CRs-Fixed: 774533
2018-10-16 13:40:16 -07:00
Qiwei Cai
dcb73b0132 qcacld-3.0: Featurize MCL only WMI APIs
Featurize MCL only WMI APIs by compiling them as a separate source.
It enables profiles/configs to selectively compile the WMI APIs
based on whether the feature is required or not.
Featurize WMI APIs and TLVs that are specific to MCL -
- DSRC
- NAN
- P2P
- PMO
- roaming
- concurrency
- STA
- Generic MCL specific WMI (STA)

Change-Id: I3b005b8f60491c7d27cf221b7505116e1b9c1a38
CRs-Fixed: 2333916
2018-10-16 13:40:16 -07:00
nshrivas
475de55e25 Release 5.2.0.101Y
Release 5.2.0.101Y

Change-Id: I68d16a8addd49c9040b688272003e54a202699cd
CRs-Fixed: 774533
2018-10-16 11:37:56 -07:00
Tiger Yu
f5249d9210 qcacld-3.0: Do softirq for every 32 packets for IPA exception RX path
Do softirq for every 32 RX packets from 16 for IPA exception RX path.
Which will improve RX throughput much better.

Change-Id: I717d23714d1d0ae72550a06fd4df0817195f658b
CRs-Fixed: 2250253
2018-10-16 11:37:55 -07:00
Karthik Kantamneni
505b15b861 qcacld-3.0: Fix vdev destroy during ssr reinit
During hdd wlan reinit VDEV delete command is not sent to firmware
since cds_driver_recovery is True and it is set to False at later stage.

To fix this, remove recovery check in wma_vdev_detach to send WMI command
to FW as WMI is active during reinit phase.

Change-Id: I94b7437edbf0c5bccbc469ce01940b14b46258fb
CRs-Fixed: 2333475
2018-10-16 11:37:51 -07:00
nshrivas
f9705a1e62 Release 5.2.0.101X
Release 5.2.0.101X

Change-Id: I4ad9e5a7b47b5245bce9917d642358f4ba8edc53
CRs-Fixed: 774533
2018-10-16 04:34:50 -07:00
gaurank kathpalia
4a205fc269 qcacld-3.0: Green ap CFG convergence
Adds CFG convergence support for green ap related items

Change-Id: I2cfee273ffbcefcd3294cc1a18fb58549166c55b
CRs-Fixed: 2322024
2018-10-16 04:34:49 -07:00
nshrivas
27674765bd Release 5.2.0.101W
Release 5.2.0.101W

Change-Id: Iaaeda18e1950290efdedc73d8699653b525741dd
CRs-Fixed: 774533
2018-10-16 02:52:04 -07:00
Alok Kumar
800c8466fd qcacld-3.0: Resume dp_thread in error path during WLAN suspend
In __wlan_hdd_cfg80211_suspend_wlan(), if suspend fails due to
hdd_suspend_wlan() < 0, dp rx thread waits to get resume during
WLAN resume callback.

Resume dp rx thread in __wlan_hdd_cfg80211_suspend_wlan() to
handle error path.

Change-Id: Id53bcbae782b31c28fe785fab9da406482cf1794
CRs-Fixed: 2333112
2018-10-16 02:52:03 -07:00
Rajeev Kumar Sirasanagandla
4aa9ae3296 qcacld-3.0: Send VDEV_UP command to firmware for STA interface
For STA interface, add support to send VDEV_UP command to firmware when
VDEV state is transitioning to VDEV_S_UP.

Change-Id: Ic8f4e8355381d915f4c1c7f6650950d7d12d9db3
CRs-Fixed: 2333297
2018-10-16 02:51:59 -07:00
nshrivas
a5ae600fad Release 5.2.0.101V
Release 5.2.0.101V

Change-Id: I36bca4bc67935e3c501f93e62c3dea485172c974
CRs-Fixed: 774533
2018-10-15 22:50:31 -07:00
Jeff Johnson
360135b8ea qcacld-3.0: Refine the extscan set epno logic
Make the following updates to the extscan set epno logic:
1) Exclusively use the Unified WMI data structures.
2) Refactor the vendor command processing to improve code
   maintainability.

Change-Id: I8179fd9b9acced01956232f113d656e0137231b5
CRs-Fixed: 2333537
2018-10-15 22:50:31 -07:00
Abhinav Kumar
e48f34df00 qcacld-3.0: Possible NULL Pointer Dereference in wma_send_bcn_buf_ll
While handling the WMI_HOST_SWBA_EVENTID WMI FW event, driver invokes
corresponding wma handler wma_beacon_swba_handler. The event argument
comes directly from the FW. Towards the end of the function,
wma_beacon_swba_handler invokes wma_send_bcn_buf_ll and passes the
original TLV structure, param_buf, as an argument. wma_send_bcn_buf_ll
pull tim_info and p2p_noa_info from the param_buf structure. These
structures can be optionally defined in the message with zero length
resulting in them being NULL pointers. Later, throughout the function
they are then deferenced without every checking if they are in fact NULL.

Fix is to make sure in wma_send_bcn_buf_ll, param_buf->tim_info and
param_buf->p2p_noa_info dereferenced only after NULL check.

Change-Id: Ic27b59dd35f74413e9a978627047855e655b9ed1
CRs-Fixed: 2331956
2018-10-15 22:50:27 -07:00
nshrivas
8b1c973b7c Release 5.2.0.101U
Release 5.2.0.101U

Change-Id: I475403fcffebce9390e04041a1607ccb42e2ac5b
CRs-Fixed: 774533
2018-10-15 21:07:42 -07:00
Harprit Chhabada
b034fb35fe qcacld-3.0: Check if rs_results->total_num_tx_power_levels is allocated
Check if rs_results->total_num_tx_power_levels is allocated, before
checking the OOB in wma_unified_radio_tx_power_level_stats_event_handler
for new fixed_param->total_num_tx_power_levels

Change-Id: I3e3caf295fad568ecc8e294e6224356ea8a84da6
CRs-Fixed: 2333042
2018-10-15 10:46:41 -07:00
nshrivas
b509fac295 Release 5.2.0.101T
Release 5.2.0.101T

Change-Id: If2ae622273e2e989d21dc57e949876273506d16b
CRs-Fixed: 774533
2018-10-15 03:10:22 -07:00
Abhinav Kumar
bd41baa587 qcacld-3.0: Fix FT roaming failure for WEP Auto switch auth mode
hdd_set_csr_auth_type sets roam profile auth type on the basis
of pHddStaCtx->conn_info.authType. Currently, if supplicant
sends pHddStaCtx->conn_info.authType = eCSR_AUTH_TYPE_AUTOSWITCH,
driver is not handling this case and by default sets
eCSR_AUTH_TYPE_UNKNOWN. When scan results are obtained, driver is
not able to match the auth type in csrIsSecurityMatch as its set
to UNKNOWN .This leads to connection failure in FT roaming.

Fix is to set proper value of pRoamProfile->AuthType in case of
pHddStaCtx->conn_info.authType = eCSR_AUTH_TYPE_AUTOSWITCH.

Change-Id: I203f71606ee424340b447caecb91aded18c029b0
CRs-Fixed: 2327541
2018-10-15 03:10:21 -07:00
nshrivas
52bf386d87 Release 5.2.0.101S
Release 5.2.0.101S

Change-Id: Ifdae3e87acffa58991c53274a32afa12f475076a
CRs-Fixed: 774533
2018-10-15 01:29:31 -07:00
Abhishek Singh
4dc3ac2556 qcacld-3.0: Fix SAP VDEV state machine for dfs cac offload
If DFS CAC is offloaded the SAP VDEV state machine does not move to
CAC wait state and thus stop AP and radar indications are dropped.
This leads to del_self_sta without del_bss.

To fix this move the SAP VDEV state machine to cac wait state when
dfs cac offload is set.

Change-Id: I0b526974a4586b41f5a4b1ea5968721f444c610b
CRs-Fixed: 2332087
2018-10-15 01:29:30 -07:00
nshrivas
335c7b624d Release 5.2.0.101R
Release 5.2.0.101R

Change-Id: I002139d86bde5aea4cecdfd611bd65dabf2b7511
CRs-Fixed: 774533
2018-10-13 15:23:20 -07:00