Commit Graph

11131 Commits

Author SHA1 Message Date
Pragaspathi Thilagaraj
2d1b311af2 qcacld-3.0: Fix possible OOB in lim_chk_n_process_wpa_rsn_ie
In the function lim_chk_n_process_wpa_rsn_ie, if wpa IE is
present, then dot11f_unpack_ie_wpa is called to copy the wpa IE
to destination buffer. assoc_req->wpa.length is passed as the
length to copy the IE. As this length includes 4 bytes of the
OUI fields also, this could result in OOB read.

Change the length passed to the dot11f_unpack_ie_wpa as
(assoc_req->wpa.length - 4), so that the additional 4 bytes of
the OUI fields are excluded.

Change-Id: If972b3a19d239bb955c7b4d4c7d94e25aa878f21
CRs-Fixed: 2267557
2018-07-21 03:35:33 -07:00
nshrivas
c8d91102fa Release 5.2.0.89K
Release 5.2.0.89K

Change-Id: Ic11fd27c057705c0edfcd41797055519f28a9464
CRs-Fixed: 774533
2018-07-21 00:03:15 -07:00
Venkata Sharath Chandra Manchala
9220e32709 qcacld-3.0: Compile hal files based on QCA6390
Compile new hal header files based on CONFIG_CNSS_QCA6390

Change-Id: I1c4a55dbc8c74b9ea960a79653eb5f1f5f371c2b
CRs-Fixed: 2279698
2018-07-21 00:03:14 -07:00
nshrivas
0e7bc28b68 Release 5.2.0.89J
Release 5.2.0.89J

Change-Id: Id339e9a1b125aabad150d612145401def057b480
CRs-Fixed: 774533
2018-07-20 17:55:01 -07:00
Varun Reddy Yeturu
a2a5e4345c qcacld-3.0: Fix issue in populate_dot11f_twt_extended_caps
Fix using uninitialized variable status inside the function
populate_dot11f_twt_extended_caps

Change-Id: Ic80df2f6c5310414da4179f00867c0fe029b09c7
CRs-Fixed: 2277833
2018-07-20 17:55:01 -07:00
nshrivas
40e68c7e74 Release 5.2.0.89I
Release 5.2.0.89I

Change-Id: I80c80674e0a0a40c7b8e0dc2db3a5cc68137d31f
CRs-Fixed: 774533
2018-07-20 16:23:51 -07:00
Varun Reddy Yeturu
b1e6cd3a66 qcacld-3.0: Fix using uninitialized values in hdd_send_twt_enable_cmd
Fix using uninitialized values for req_val, bcast_val and resp_val
in the function hdd_send_twt_enable_cmd.

Change-Id: Ie671660b62f0624fbf86707f15fe122b81552a53
CRs-Fixed: 2277826
2018-07-20 16:23:50 -07:00
nshrivas
f9737c9d42 Release 5.2.0.89H
Release 5.2.0.89H

Change-Id: I3d3ab9b520d2ba2ae91a0336496ad019f8fae7eb
CRs-Fixed: 774533
2018-07-20 12:06:23 -07:00
Jeff Johnson
696317bd53 qcacld-3.0: Remove wma_get_buf_extscan_change_monitor_cmd()
The task formerly done by wma_get_buf_extscan_change_monitor_cmd() is
now done in the common WMI project and this function is no longer
used, so remove it.

Change-Id: I4a42bda3c3b790bcd0c21abcda94a4f4aa49d8ff
CRs-Fixed: 2281906
2018-07-20 12:06:23 -07:00
Jeff Johnson
dc32f37143 qcacld-3.0: Remove wma_get_buf_extscan_start_cmd()
The task formerly done by wma_get_buf_extscan_start_cmd() is now done
in the common WMI project and this function is no longer used, so
remove it.

Change-Id: I840c6a5f83c6cdc479e6746f36a29c2a7970c964
CRs-Fixed: 2281900
2018-07-20 12:06:20 -07:00
nshrivas
34b5e0fc6f Release 5.2.0.89G
Release 5.2.0.89G

Change-Id: I3e39d5766dd6a3c58e560086f11765058d0bb307
CRs-Fixed: 774533
2018-07-20 10:46:49 -07:00
Dustin Brown
0127a73a2d qcacld-3.0: Enable/Disable MC filter when connected
Multicast address filtering only makes sense if the interface is
connected and capable of receiving traffic. Avoid enabling/disabling
the multicast address filter list on an interface that is disconnected.

Change-Id: Id8aff136e920bb726b8c7dd539d477ff44f080d4
CRs-Fixed: 2282003
2018-07-20 10:46:49 -07:00
nshrivas
68b8b4e394 Release 5.2.0.89F
Release 5.2.0.89F

Change-Id: I40d3d571e17fc6345dc7727f42aaae2a5802701a
CRs-Fixed: 774533
2018-07-20 09:31:06 -07:00
Amar Singhal
0cb9a5c808 qcacld-3.0: Refine ready event processing
1) Use correct typecast in function wma_process_fw_event_mc_thread_ctx
2) Change log level to debug and refine logs in
 wma_process_fw_event_handler

CRs-Fixed: 2281191
Change-Id: I4e67143d028867b193e42ec51f6f7562287eba82
2018-07-20 09:31:05 -07:00
Abhinav Kumar
68834229f5 qcacld-3.0: fix the beacon corruption in WMA beacon update msg
When beacon is updated the host pass the gSchBeaconFrameBegin
param to WMA to copy the beacon to WMI and pass the value to
firmware. gSchBeaconFrameBegin is global so if we receive new
beacon update in LIM before the WMA process the old beacon
update the values in the global gSchBeaconFrameBegin are
updated as per new beacon. So if there is change in beacon
length the first WMA msg copy the wrong beacon data and send
this corrupt date to firmware.

To fix this instead of passing the global gSchBeaconFrameBegin
fill the beacon date in the beacon update req itself.

Change-Id: I6d196784470d9a2aeeaba76e12577f9f65012bac
CRs-Fixed: 2272448
2018-07-20 09:31:02 -07:00
nshrivas
2e611d7fbe Release 5.2.0.89E
Release 5.2.0.89E

Change-Id: I0de82a86f2d267cc45ac7c465f390ad3c637709e
CRs-Fixed: 774533
2018-07-20 00:48:05 -07:00
Sourav Mohapatra
5daec820b0 qcacld-3.0: Remove wma_is_service_enable API
The API wma_is_service_enable is a wrapper on the converged
wmi_service_enabled API for services and extended services. The checks
used in the API are not updated for the converged service enum.

Replace wma_is_service_enable with wmi_service_enabled as there is no
need to have a wrapper

Change-Id: I4fe3601f7e1a031290e139f9ef55f845965b7b2e
CRs-Fixed: 2276471
2018-07-20 00:48:04 -07:00
nshrivas
c42862825e Release 5.2.0.89D
Release 5.2.0.89D

Change-Id: I4462f63f2b1e6f3e8ef817a3dbdf99bde6880c86
CRs-Fixed: 774533
2018-07-19 23:10:58 -07:00
Dustin Brown
19048bd940 qcacld-3.0: Use an event for WMI ready in WMA
The WMI ready event from firmware currently uses an event queue, but is
being moved to a simple event instead. Update WMA to account for this
change.

See: I08b4f088874b7c63e20b129f14dbac01851496e5

Change-Id: I5242cc0e839b59db990fb918e8029b8f68385de6
CRs-Fixed: 2275468
2018-07-19 23:10:52 -07:00
Jeff Johnson
ca7a716d96 qcacld-3.0: Rename tCsrLinkStatusCallback and related identifiers
To align with the coding standard rename tCsrLinkStatusCallback to not
use camelCase. As part of the process also rename other link status
identifiers.

Change-Id: I5df83512259f0f48d84a2bef77e333bb0a78eea4
CRs-Fixed: 2281797
2018-07-19 23:10:05 -07:00
nshrivas
1850b04c63 Release 5.2.0.89C
Release 5.2.0.89C

Change-Id: I19fd90bc3cfdaa76d708acd4a97dba79701d33f9
CRs-Fixed: 774533
2018-07-19 21:33:04 -07:00
Jeff Johnson
1be200ae98 qcacld-3.0: Refine the CSR channel status APIs
Currently csr_get_channel_status() and csr_clear_channel_status() both
use void * for their p_mac parameter. Since this is not an opaque data
structure update the APIs the use the correct underlying data type.

Change-Id: I900e97cbdeced3bacc1f2da30f892a4d55648059
CRs-Fixed: 2281794
2018-07-19 21:33:03 -07:00
Manjunathappa Prakash
a1f5879d0b qcacld-3.0: Change log level rx_thread affinity info
Reduce log level of Rx_thread affinity info message.

Change-Id: Idd968259770d55f40c8bf17facd803b11783a080
CRs-Fixed: 2281293
2018-07-19 21:33:00 -07:00
nshrivas
76869721d1 Release 5.2.0.89B
Release 5.2.0.89B

Change-Id: I6f91bf9be4105c68db41f27f5856881f915b13ac
CRs-Fixed: 774533
2018-07-19 08:32:41 -07:00
Ajit Pal Singh
594d400d3d qcacld-3.0: Add shutdown/reinit support for PLD_CNSS_USB
Populate shutdown/reinit callback functions for PLD_CNSS_USB

Change-Id: If0ad6ca69a85778574d874d9a9b9f0df6146e89b
CRs-Fixed: 2279206
2018-07-19 08:32:41 -07:00
nshrivas
17a61f2f66 Release 5.2.0.89A
Release 5.2.0.89A

Change-Id: I1d9bca57c0945064b4407bf6b0a602592015a2de
CRs-Fixed: 774533
2018-07-19 00:56:39 -07:00
Jeff Johnson
daba7ef043 qcacld-3.0: Remove csr_disconnect_all_active_sessions()
Function csr_disconnect_all_active_sessions() is obsolete and no
longer used, so remove it.

Change-Id: Ia2c0faa2429b706a2b7829444cd21cae4431a6ea
CRs-Fixed: 2281077
2018-07-19 00:56:39 -07:00
Jeff Johnson
f7e36d6e4e qcacld-3.0: Refine the P2P LO callback API
The P2P LO Callback currently specifies a void pointer for the event
payload. In the case of this API the event payload is always a struct
sir_p2p_lo_event so update the API to explicitly use this type. In
addition, currently the callback is not using the registered
user-supplied context, so update the callback to correctly use the
user-supplied context.

Change-Id: I566facea3c92b377823c1b3e38f99c84bc65e9d4
CRs-Fixed: 2278587
2018-07-19 00:56:36 -07:00
Dustin Brown
6619bc276c qcacld-3.0: Ensure conn_state session_id in bounds
Attempting to flush the powersave timer on an adapter with an invalid
session_id leads to an out-of-bounds access when checking the station
context's connection state. Only flush powersave timers for adapters
with valid session_ids. Additionally, add debug asserts for invalid
session_id's in the other connection state checking functions too.

Change-Id: Iacd2f97b01d7f6901d402908304a43c2c20d2380
CRs-Fixed: 2281219
2018-07-19 00:56:33 -07:00
Jeff Johnson
0e96308f39 qcacld-3.0: Refine the Thermal Level callback API
The Thermal Level callback currently specifies a void pointer for the
context. In the case of this API the context is actually known to be
an HDD handle, so update the API to explicitly use this type. This
will allow the compiler to verify that the correct type of parameter
is being passed.

Change-Id: Ifa6f9fb5d3e27470b3f5292552b871d072150988
CRs-Fixed: 2278586
2018-07-19 00:56:30 -07:00
nshrivas
fcfcf1b95f Release 5.2.0.89
Release 5.2.0.89

Change-Id: I34925ba19221da47bdc51c064396db46ff6ab180
CRs-Fixed: 774533
2018-07-18 23:18:13 -07:00
Kiran Kumar Lokere
f54b85555f qcacld-3.0: Add support to configure HE trigger frame MAC padding
Add support to configure HE trigger frame MAC padding and disable
the MU EDCA param update when user configures the padding.

Change-Id: Ief928c5421366b03ee6e1d6253963b10fd3b87b6
CRs-Fixed: 2265331
2018-07-18 23:18:12 -07:00
Kiran Kumar Lokere
fba2063db1 qcacld-3.0: Add support to configure HE MU EDCA params
Add support to configure the  HE MU EDCA params with default
values and update the params to FW.

Change-Id: Ia7485949c040cb8f83ccfe1f8336267051dbfd13
CRs-Fixed: 2262874
2018-07-18 23:18:09 -07:00
nshrivas
a3933edd98 Release 5.2.0.88Z
Release 5.2.0.88Z

Change-Id: Ieb00e4290eb90981a5e2509688f10b671c5233c2
CRs-Fixed: 774533
2018-07-18 21:52:52 -07:00
Chaoli Zhou
5d6bad19a9 qcacld-3.0: Extract spectral phyerr for qca6574
Qca6574 doesn't use phy_err_mask0 to indicate a spectral
scan phyerr, so spectral_phyerr_event_handler will never
be called. So add some logical to extract the correct phyerr
code to obtain the spectral scan results.

Change-Id: Ib1ec1aa98f25827dfe6ab549ff96a5d4139ad106
CRs-Fixed: 2252379
2018-07-18 21:52:51 -07:00
nshrivas
694b81ceb7 Release 5.2.0.88Y
Release 5.2.0.88Y

Change-Id: I0c6ed14a1664390a80760b00b8d94adb64e1a6e8
CRs-Fixed: 774533
2018-07-18 08:38:50 -07:00
Alok Kumar
cee3cf297a qcacld-3.0: Fix OOB access of sta_info for invalid sta_id
Currently, sta_id is used without validation in hdd_inspect_dhcp_packet
which may lead to OOB access for sta_info.

Call hdd_inspect_dhcp_packet only if sta_id is valid.

Change-Id: I09ebdaeeb86f8abe95fe09d23974c4bf331e29fe
CRs-Fixed: 2276615
2018-07-18 08:38:50 -07:00
nshrivas
e682d01cc0 Release 5.2.0.88X
Release 5.2.0.88X

Change-Id: If4cd52ae42442a64a18329463ff9b8b3a71dbd9f
CRs-Fixed: 774533
2018-07-18 05:58:59 -07:00
Dundi Raviteja
53de6c3371 qcacld-3.0: Use request manager framework for ready to extwow event
We are transitioning the usage of ready to extwow event
to request manager framework.

Change-Id: I648b6db4ab5367c8e04e77f4adc2fb9d42039054
CRs-Fixed: 2274944
2018-07-18 05:58:59 -07:00
nshrivas
c20f84ea38 Release 5.2.0.88W
Release 5.2.0.88W

Change-Id: I8d619eb62d6711be982d0ad14fd551e6cf1a1cba
CRs-Fixed: 774533
2018-07-18 00:18:04 -07:00
Dundi Raviteja
6bb9e328aa qcacld-3.0: Use request manager framework for set antenna mode event
We are transitioning the usage of set antenna mode event
to request manager framework.

Change-Id: I4df39c9b71ccd5680f85d1662bec06bc90f70977
CRs-Fixed: 2274929
2018-07-18 00:18:03 -07:00
Alok Kumar
cc943caa7e qcacld-3.0: Add support to set/get timestamp for management frames
Add setter and getter function of timestamp for management frames
for the peer based on peer's mac address.

Change-Id: Iab0862eda2392bd516c8ba0b913441b8e0d4c493
CRs-Fixed: 2264667
2018-07-18 00:17:59 -07:00
nshrivas
341a260e58 Release 5.2.0.88V
Release 5.2.0.88V

Change-Id: I2335ed086a727729e9c1d071c9ad1c33257f43bb
CRs-Fixed: 774533
2018-07-17 14:48:23 -07:00
gaurank kathpalia
82a1b2b802 qcacld-3.0: Fix GTK offload req params
Currently the host sends the fixed gtk offload params
and the FILS TLV params, even when the FILS feature is disabled
in the host, which force firmware to pick the KEK from the
FILS TLV structure rather than from the fixed param structure,
which further leads to GTK re-keying feature fail.

Fix is to send only the fixed params in case when host doesnt
supports FILS.

Change-Id: I5b3b3fd503c7cb9c4d7933074fd483086b113204
CRs-Fixed: 2244725
2018-07-17 14:48:23 -07:00
nshrivas
0f71751691 Release 5.2.0.88U
Release 5.2.0.88U

Change-Id: Iea8de044b930acf8a8811e60b5d5869739cb44ef
CRs-Fixed: 774533
2018-07-17 13:16:16 -07:00
Sravan Kumar Kairam
7bca07ebcb qcacld-3.0: Enable feature AST for lithium dp
Currently feature AST is disabled and as a result intra bss
rx forward is not working for lithium dp. So enable feature AST.

Change-Id: Iee1c6815dcb61c4e15a0a590d0df87f23b89391f
CRs-Fixed: 2254735
2018-07-17 13:16:15 -07:00
nshrivas
4edfaf5cab Release 5.2.0.88T
Release 5.2.0.88T

Change-Id: Icdec93c1a1b7a5eb1ee392ae13a922857fcb90c5
CRs-Fixed: 774533
2018-07-17 05:28:37 -07:00
Visweswara Tanuku
6bc52de881 qcacld-3.0: Use hdd netdev notifier call for softAP interface
qcacld-2.0 to qcacld-3.0 propagation

In softAP scenario, if any pending scan request is not serviced
before NETDEV_GOING_DOWN is called, it results in call trace
Handle this by using hdd netdev notifier call for softAP, where
scan_block_work is flushed.

Change-Id: I5de07103e0b0008f21c0a13add0eed36ea1b31d0
CRs-fixed: 2076542
2018-07-17 05:28:37 -07:00
Yeshwanth Sriram Guntuka
45eb08feb9 qcacld-3.0: Strip OMN IE from additional IEs for NSS update
As part of nss update request, operating mode is updated
in beacon template. OMN IE can also present in additional
IEs which will result in OMN IE included twice in beacon.

Fix is to strip OMN IE from additional IEs if beacon
template is updated as part of nss update request.

Change-Id: Ic0cd6b76738e16eb73de7a7ba406cd727c2f8dc4
CRs-Fixed: 2274027
2018-07-17 05:28:33 -07:00
Sandeep Puligilla
c5609d5bdc qcacld-3.0: Add legacy mlme component
Add legacy mlme component main APIs and init/deinit from HDD.

Change-Id: I3d3de3bca9a4fd0896a9d6a076b5e60bb1a5ca83
CRs-Fixed: 2272959
2018-07-17 05:28:30 -07:00