Commit Graph

10832 Commits

Author SHA1 Message Date
Abhishek Singh
5ad797d0b3 qcacld-3.0: Remove legacy APIs to modify vdev state machine
This change Removes legacy APIs to modify vdev state machine and
add use new API to get vdev state.

Change-Id: I48aa3744dafc6d13a43a14e48de821c7dadf3a37
CRs-Fixed: 2314730
2018-09-17 06:09:35 -07:00
nshrivas
6b37ca8762 Release 5.2.0.97A
Release 5.2.0.97A

Change-Id: I3e0594ef490e986dcab39733ab458b9e1cb91052
CRs-Fixed: 774533
2018-09-17 04:26:54 -07:00
Wu Gao
93816217da qcacld-3.0: Apply mlme sta configuraions
Since refined mlme sta configures based on converged cfg component,
apply mlme sta configurations, remove related legacy codes.

Change-Id: Ia5989a29378bf33e3c9550a0ae26338aeb966592
CRs-Fixed: 2312079
2018-09-17 10:44:54 +08:00
nshrivas
edaef7e4d4 Release 5.2.0.97
Release 5.2.0.97

Change-Id: I4c762a542e3a6664d5e77a511c6147e56164065f
CRs-Fixed: 774533
2018-09-15 03:35:05 -07:00
Rajeev Kumar
9f2dd4729c qcacld-3.0: Increase FW response timeout values in debug build
In slub debug enabled build processing is slowed down and hence
increase the FW response timeout values by factor of 2 times.

Change-Id: I979269a9b4f6bc03f97452b3d7f7416fd418f336
CRs-Fixed: 2315934
2018-09-15 03:35:05 -07:00
Rajeev Kumar
1f3e99ad73 qcacld-3.0: Add timer manager and memory debug string
Add timer manager and memory debug string in driver version
global variable such that in offline tool analysis team can
easily find wlan build and version type.

Change-Id: Ie7283d86c0ca38f0b81d407c30da393ff666e51d
CRs-Fixed: 2315915
2018-09-15 03:35:01 -07:00
nshrivas
b163fdfaac Release 5.2.0.96Z
Release 5.2.0.96Z

Change-Id: I6a6ff0283f2262e878c432f7e9aba38ecdcb9e33
CRs-Fixed: 774533
2018-09-14 23:14:49 -07:00
Rakshith Suresh Patkar
d9f4e610c6 qcacld-3.0: Enable wbuff module
wbuff is a module which maintains a pre-allocated pool of
skbs for each registered module and allocates skbs when
requested.

Change-Id: Ia4d13479d8a1342227a2ecbaf29cc7a89bc5e30b
CRs-Fixed: 2313446
2018-09-14 23:14:48 -07:00
nshrivas
072bf5d579 Release 5.2.0.96Y
Release 5.2.0.96Y

Change-Id: I98a0db6ef07a5d881adcdef2fa01568d02c2a79c
CRs-Fixed: 774533
2018-09-14 08:16:33 -07:00
nshrivas
9019fc2fc8 Release 5.2.0.96X
Release 5.2.0.96X

Change-Id: I124d765d3db3f40984ebf3334501c1a29a530f71
CRs-Fixed: 774533
2018-09-14 03:12:25 -07:00
Pragaspathi Thilagaraj
48d273cbf0 qcacld-3.0: Remove legacy INI items of QOS aggregation configs
Remove the legacy INI code from hdd_cfg. Replace the existing
access from hdd_config with new mlme api.

Change-Id: Iddde15330c1ad39a59bd9a3c7ea86af971df61b5
CRs-Fixed: 2313296
2018-09-14 03:12:25 -07:00
Ashish Kumar Dhanotiya
04cc7c2128 qcacld-3.0: Avoid NULL pointer access in apf read memory cb
Add a check to validate hdd adapter to avoid NULL pointer
dereference.

Change-Id: I06d883c213e10b620d8af3f61baaeb483b078bf1
CRs-Fixed: 2240482
2018-09-14 03:12:17 -07:00
nshrivas
1226126f76 Release 5.2.0.96W
Release 5.2.0.96W

Change-Id: I838b1cc60056ed0ad5d59ceb7f83d3d8e72955bc
CRs-Fixed: 774533
2018-09-13 13:20:39 -07:00
Srinivas Girigowda
eff16d956b qcacld-3.0: Fix tab stop checkpatch warnings
Fix tab stop checkpatch warnings.

Change-Id: I4ccbc39b571737413de038fabcd4b8641a39cd62
CRs-Fixed: 2312593
2018-09-13 13:20:38 -07:00
nshrivas
4b8d080e37 Release 5.2.0.96V
Release 5.2.0.96V

Change-Id: I08634b4ccc673b423fcd1f690c10defa11f87d43
CRs-Fixed: 774533
2018-09-13 07:58:36 -07:00
Jinwei Chen
ffaa467dff qcacld-3.0: support HE STS Caps setting by INI
Currently user can not configure HE STS capability through
INI, use gTxBFCsnValue that share same INI with VHT to achieve
it.

Change-Id: Ia83462113cdf06e0af8b9f00c968745363aba9b4
CRs-Fixed: 2306083
2018-09-13 07:58:35 -07:00
nshrivas
83226d61ef Release 5.2.0.96U
Release 5.2.0.96U

Change-Id: Ibf453a1ca06c4b426c22c9ae337b4047f8ec58c1
CRs-Fixed: 774533
2018-09-13 04:52:15 -07:00
Wu Gao
d8f3db0fb5 qcacld-3.0: Refine mlme obss ht40 configurations
Refine mlme obss ht40 configurations based on converged cfg component.
Remove related legacy codes.

Change-Id: If4f061a16e9a2a0bba81d1d24aa1f52bbeadacf5
CRs-Fixed: 2311907
2018-09-13 04:52:15 -07:00
Sravan Kumar Kairam
f3a2f6151d qcacld-3.0: Don't take dp peer ref count during remove peer
From control path while removing peer, dp peer handle is
acquired using mac address with ref count incremented which
is not needed. Ref count should be incremented only when
there is possibility of parallel execution of peer unmap
event. Fix this by getting peer handle with out taking the
ref count.

Change-Id: I76bf4eebc8e7ddadc388a957bea05813a4b24741
CRs-Fixed: 2314110
2018-09-13 04:52:12 -07:00
nshrivas
d4c4f3c5be Release 5.2.0.96T
Release 5.2.0.96T

Change-Id: I5c7b85e4cbcde6f8a56bdb59f472b621bb37bcc3
CRs-Fixed: 774533
2018-09-12 22:27:14 -07:00
Abhishek Singh
5cd19f35d2 qcacld-3.0: Remove SAP FSM dependency from CSA
CSA req changes the SAP FSM state to STOPPING.

Remove this state manipulation by CSA.

Change-Id: I76e78824cdc7acad87e60310d53225596630ea94
CRs-Fixed: 2309229
2018-09-12 22:27:13 -07:00
Lin Bai
ad80a20204 qcacld-3.0: Check channel_count in DCC_GET_STATS command
Invalid channel_count may be sent to driver with
QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS vendor command, and may also
pass the sanity check with get_stats_param->request_array_len as
integer overflow, in send_dcc_get_stats_cmd_tlv().
Then it will finally lead to heap overflow when initializing
TLV header for each channel.

Change-Id: I1d81b5fc4de80829433f2a0ab41c964c41f750c3
CRs-Fixed: 2300516
2018-09-12 22:27:10 -07:00
nshrivas
8dae2e74ee Release 5.2.0.96S
Release 5.2.0.96S

Change-Id: Ibac6d6fed1405766b47ffb3347bf54f29914d5b0
CRs-Fixed: 774533
2018-09-12 20:45:13 -07:00
Arif Hussain
aad545423d qcacld-3.0: Disable uAPSD if TWT is allowed
Disable uAPSD if TWT can be allowed for a given session.

Change-Id: Ia2d0b4b1ab5fc7fd703db66fda28e16a1e611c56
CRs-Fixed: 2287743
2018-09-12 20:45:13 -07:00
nshrivas
82ad4afbcb Release 5.2.0.96R
Release 5.2.0.96R

Change-Id: Ieeea5962f64e6a6e46c57c7e5e5d8768dd9dea8b
CRs-Fixed: 774533
2018-09-12 17:56:56 -07:00
Harprit Chhabada
e8155d3e50 qcacld-3.0: Enable EXTSCAN based on converged extscan component
Enable EXTSCAN based on converged cfg component and remove
legacy codes.

Change-Id: Ia4af89c6a898a936c89c6f3f155609a9c3d98541
CRs-Fixed: 2302197
2018-09-12 17:56:55 -07:00
Liangwei Dong
ac3ddde459 qcacld-3.0: Set drop_bcn_on_chan_mismatch to Scan
Set ini drop_bcn_on_chan_mismatch configuration to
Scan component.

Change-Id: I60acddd69fc99791651def587b90243898ec60e9
CRs-Fixed: 2308731
2018-09-12 17:56:52 -07:00
nshrivas
f3697bc9b4 Release 5.2.0.96Q
Release 5.2.0.96Q

Change-Id: Iaaa5c328f5ae7def4506fb4f072878fa8afb7fb3
CRs-Fixed: 774533
2018-09-12 15:55:56 -07:00
Yeshwanth Sriram Guntuka
35bc5ccf91 qcacld-3.0: Enable few OCE STA ini by default
Enable oce_enable_probe_req_rate, enable_esp_for_roam
and oce_enable_probe_req_deferral ini by default.

Change-Id: I84aaceb468bac54c97c30f681981296a0666063c
CRs-Fixed: 2312013
2018-09-12 15:55:55 -07:00
Pramod Simha
7ee7b53e2c qcacld-3.0: Handle nbufs with ext list in RX thread
Check for nbufs which might already have an existing ext list
before appending to it.

Change-Id: Iac24eaf8430d7f9280386f1449c567fce8aa52fb
CRs-Fixed: 2304742
2018-09-12 15:55:48 -07:00
nshrivas
46151e3859 Release 5.2.0.96P
Release 5.2.0.96P

Change-Id: Id74e97c1b735e77ff6606f22ee7db169517faafc
CRs-Fixed: 774533
2018-09-12 13:35:47 -07:00
Amar Singhal
7ef5909b64 qcacld-3.0: Make sure NULL vdev is not de-referenced
Do not access vdev_id from vdev structure if vdev ptr is NULL.

Change-Id: I1aafa5ce7398994d55805742e831ca8ee1ae6a21
CRs-Fixed: 2313397
2018-09-12 13:35:47 -07:00
Rajeev Kumar Sirasanagandla
17fa308715 qcacld-3.0: Add support to store vdev object in WMA interface
Add support to store vdev object in WMA interface (wma_txrx_node)
and acquire and release its reference count during wma_vdev_attach()
and wma_vdev_detach() respectively.

Change-Id: I5449d4051b08dc328a5d97446a4de3d7b51155eb
CRs-Fixed: 2310990
2018-09-12 13:35:44 -07:00
nshrivas
a420dd6b24 Release 5.2.0.96O
Release 5.2.0.96O

Change-Id: I83c3b1411fc921610e9a6d75defdfb242dbbbe27
CRs-Fixed: 774533
2018-09-12 11:58:27 -07:00
Srinivas Girigowda
09625b0222 qcacld-3.0: Fix embedded function name checkpatch warnings
Logging macros already print function name by default,
there is no need to print the function name again as part of the log.

Hence, remove the function name or
wherever required use '"%s...", __func__'

Change-Id: Ib6dc6cc03ef148146b1c626271d5ac3b7345c4bb
CRs-Fixed: 2312593
2018-09-12 11:58:26 -07:00
Vignesh Viswanathan
8c207396ff qcacld-3.0: Set gAutoBmpsTimerValue to 30 seconds by default
Currently gAutoBmpsTimerValue is set to defaut value of 5 seconds
so that after 5 seconds from association completion, the device would
go to power save. However, this would lead to issues if an ADDTS req is
received from the supplicant. The ADDTS req would be sent to the AP but
the AP would not send the ADDTS response immeidately and would buffer it
as the device is in power sleep.

Ideal way is for the framework to control the device power save where
the framework should push the device to power save after connection and
should disable power save before sending an ADDTS request.

However, to avoid cases where the framework fails to send the power
cfg ops to the host after connection leading the FW to the stuck in
full power mode, setting the gAutoBmpsTimerValue to 30 seconds by
default.

Change-Id: Idc8af26174a56cd1afee3c7a4353b4d7ebeac2d7
CRs-Fixed: 2313913
2018-09-12 11:58:22 -07:00
nshrivas
8f48c294c5 Release 5.2.0.96N
Release 5.2.0.96N

Change-Id: I27699308a38935fe07684057d27d504c86180878
CRs-Fixed: 774533
2018-09-12 08:50:06 -07:00
Sravan Kumar Kairam
0fbaefea1b qcacld-3.0: Unmap nbuf of pending mgmt frames
As part of wlan_mgmt_txrx_pdev_close only nbuf is freed
in case of cleanup path due to SSR or drive unload and
dma unmap is not done. In this change register a callback
to mgmt_txrx component tx ops which does dma unmap of nbuf
as part of pdev close.

Change-Id: Ia0fa6684f66a3b732e5c599f2df4ea7f33ebc4f8
CRs-Fixed: 2308372
2018-09-12 08:50:05 -07:00
Dustin Brown
bf0e950ff1 qcacld-3.0: Cleanup mac_open()
mac_open() employs a completely superfluous inner block scope. Remove
it, and clean up a few other style issues.

Change-Id: I1ded0d462b9030fa49141c21d1b662543f9bced4
CRs-Fixed: 2313406
2018-09-12 08:49:57 -07:00
nshrivas
11377240a0 Release 5.2.0.96M
Release 5.2.0.96M

Change-Id: Id78c87544a68f32a3487c7b4a059bd3da82cfeaf
CRs-Fixed: 774533
2018-09-12 07:08:13 -07:00
Sandeep Puligilla
b7beb478db qcacld-3.0: Add legacy VDEV manager callbacks
Add legacy VDEV manager callbacks framework.

Change-Id: I8529a54382b3ffdecd25e54a97fc69d6a6a68177
CRs-Fixed: 2312724
2018-09-12 07:08:13 -07:00
Rajeev Kumar Sirasanagandla
327f9b6998 qcacld-3.0: Add support to store vdev object in sap context
Add support to store vdev object in sap context and acquire and
release its reference count during sap_set_session_param() and
sap_clear_session_param() respectively.

Change-Id: I61ab4a443ed2de5c58b62012a08c106aee7909d7
CRs-Fixed: 2312356
2018-09-12 07:08:05 -07:00
nshrivas
a33505a1b4 Release 5.2.0.96L
Release 5.2.0.96L

Change-Id: Iaf78b0b3f61c58638757c4f4b6c177982dee923d
CRs-Fixed: 774533
2018-09-12 02:19:16 -07:00
Sourav Mohapatra
113685f379 qcacld-3.0: Add support for FW Offload component
This is for adding support for FW offload component. It is responsible
to offload all the ini params that are needed by the firmware. To have
this component, the new files added are

components/fw_offload/dispatcher/inc/cfg_fwol.h
components/fw_offload/dispatcher/inc/wlan_fwol_ucfg_api.h
components/fw_offload/dispatcher/src/wlan_fwol_ucfg_api.c
components/fw_offload/core/inc/wlan_fw_offload_main.h
components/fw_offload/core/src/wlan_fw_offload_main.c
components/fw_offload/dispatcher/inc/wlan_fw_offload_public_struct.h

The fw_offload_main.h is to take care of the public APIs for the
component. The corresponding .c file implements the init/deinit of
the component. The fw_offload_public_struct.h is to define the public
structures needed. The ucfg files are for the APIs that can be called
from other components. The cfg_fwol stores the INIs and CFGs.

Change-Id: I4405b87e6dec15aa94146f8ec550078c3d03b1e6
CRs-Fixed: 2307837
2018-09-12 02:19:15 -07:00
nshrivas
c9941cc619 Release 5.2.0.96K
Release 5.2.0.96K

Change-Id: Ia2f1f14417246cc8dcf60dde5a58d8112086c53b
CRs-Fixed: 774533
2018-09-12 00:14:06 -07:00
Dustin Brown
ef5fc2d3f2 qcacld-3.0: Invert hdd_alloc_station_adapter()
The bulk of hdd_alloc_station_adapter() sits under the scope of a NULL
check. Invert the conditional to reduce nesting, and address a few other
style issues while we are at it.

Change-Id: Id2e147bc15ede62408ddf7d90245be069a3bff33
CRs-Fixed: TBA
2018-09-12 00:14:06 -07:00
Lin Bai
05195a5483 qcacld-3.0: Fix incompatible pointer compilation error in OCB
Typecast adapter->hdd_vdev to pointer of struct cdp_ctrl_objmgr_vdev
when invoking cdp_vdev_register().

Change-Id: Idc284726e1008ef69ec6ab0b53bc984f2bbb16b5
CRs-Fixed: 2313265
2018-09-12 00:14:03 -07:00
Manikandan Mohan
95453252fa qcacld-3.0: Check for following radio link stats events
When first WMI_RADIO_LINK_STATS_EVENTID is received radio stats buffer
is allocated based on num_radio param. There is an option for pending
following events. So update wma_unified_link_radio_stats_event_handler
to check if following events are valid wrt num_radio values to avoid
buffer overwrites.

Change-Id: If4675bada5492c3bae98c655b45cac6dc76b6431
CRs-fixed: 2309399
2018-09-12 00:13:59 -07:00
nshrivas
1e6840eea6 Release 5.2.0.96J
Release 5.2.0.96J

Change-Id: Ia087b98ba664fff8845cfb22dbe88b8ed152776b
CRs-Fixed: 774533
2018-09-11 18:27:16 -07:00
Pragaspathi Thilagaraj
0d1159e96d qcacld-3.0: Add vdev_active validation for wmi commands
When the host sends a wmi command with invalid vdev id, firmware
crashes. So to avoid this check the vdev_active flag for the
vdev before sending the wmi command.

This changeset validates the vdev_active check for the following
commands:
WMI_VDEV_CREATE_CMDID
WMI_VDEV_DELETE_CMDID
WMI_VDEV_START_REQUEST_CMDID
WMI_VDEV_RESTART_REQUEST_CMDID
WMI_VDEV_UP_CMDID
WMI_VDEV_STOP_CMDID
WMI_VDEV_DOWN_CMDID
WMI_VDEV_SET_PARAM_CMDID
WMI_VDEV_WMM_ADDTS_CMDID
WMI_VDEV_WMM_DELTS_CMDID

This change also removes the flag is_vdev_valid which seems to
duplicate the vdev_active flag.

Change-Id: If9d4a2b24f8141c26a73f3a012fa99d38b3221bc
CRs Fixed: 2312360
2018-09-11 18:27:15 -07:00