提交線圖

10117 次程式碼提交

作者 SHA1 備註 日期
nshrivas
cbe80f4367 Release 5.2.0.77D
Release 5.2.0.77D

Change-Id: I80b39d94dc954422368e2446bbf9212273039ca8
CRs-Fixed: 774533
2018-05-09 22:53:39 -07:00
Sourav Mohapatra
1046049f6c qcacld-3.0: Initialize variable to prevent potential information leak
In the function drv_cmd_set_mc_rate, the variable targetRate, used to
store the value parsed from the command from user space, is not
initialized. The variable is assigned value inside a kernel API
kstrtouint that converts the string to an unsigned int. In a certain
case if the kernel API fails, it returns an error code without assigning
any value to the passed parameter. In this scenario, the variable
targetRate, still uninitialized is passed on to function
wlan_hdd_set_mc_rate where it is logged using hdd_debug. As the flow
goes on, it is then again logged using WMA_LOGE(). This might lead to
potential information leak.

Initialize the variable to zero to prevent the mentioned scenario.

Change-Id: Ideec0b1930e994f19ae8a669cd2963db4016eae1
CRs-Fixed: 2226172
2018-05-09 22:53:39 -07:00
Sourav Mohapatra
debfc5a964 qcacld-3.0: Check buff len alloc in __iw_set_packet_filter_params
In __iw_set_packet_filter_params(), a user controlled length value,
priv_data.length, is used to allocated a buffer. This buffer is then
cast to a struct pointer of struct pkt_filter_cfg type without ensuring
the buffer is large enough to hold the struct. This can lead to a buffer
overread if the user supplied size is smaller than the actual size of the
struct.

Add a sanity check on priv_data.length to ensure that the size is large
enough to hold the struct.

Change-Id: I227856484d4bd7a9b0a16a42e26febbc799f80b5
CRs-Fixed: 2228725
2018-05-09 22:53:36 -07:00
nshrivas
351a989b06 Release 5.2.0.77C
Release 5.2.0.77C

Change-Id: Ic6b5eb94a55d380b42b7be963508f06d7d82c50d
CRs-Fixed: 774533
2018-05-09 20:22:51 -07:00
Himanshu Agarwal
1230ee0ddd qcacld-3.0: Enable fw_crash_timeout
Presently, fw_crash_timeout is disabled as a result of which if
timeout happens for any VDEV related WMI command and device goes
in bad state, no assert or recovery is getting triggered. Due to
this, device crashes at some later point of time at some random
location making debugging difficult.

Enable fw_crash_timeout and trigger recovery if recovery is enabled
otherwise assert.

Change-Id: I9e9e51cba8086bd181be28884c490f0bd77663a8
CRs-Fixed: 2229101
2018-05-09 20:22:51 -07:00
nshrivas
39b22c8810 Release 5.2.0.77B
Release 5.2.0.77B

Change-Id: Ieaec9f0a601ceded100a7e2326224d809453b43b
CRs-Fixed: 774533
2018-05-09 17:36:16 -07:00
Jeff Johnson
5e492b4cb8 qcacld-3.0: Fix typo "deafult"
Replace typo "deafult" with the correct spelling "default"

Change-Id: Ieee2917cf1a094468249424dd6558acdefd237a3
CRs-Fixed: 2237730
2018-05-09 17:36:16 -07:00
Vignesh Viswanathan
69a76a9f4e qcacld-3.0: Add sanity check variable_data len in update_fils_data
In function update_fils_data, fils_indication->num_variable_data
is the actual length of the data present in the array variable_data.
While accessing variable_data array to copy cache identifier, HESSID
and realm identifiers, the length of the array is not checked and
could lead to OOB access.

Add check to validate remaining data length in variable_data array
before accessing it to copy various fields.

Change-Id: Ifc1f5d55964bcd7fdcc2676ea9c2afede0fe6803
CRs-Fixed: 2231767
2018-05-09 17:36:13 -07:00
nshrivas
e5d8787b0a Release 5.2.0.77A
Release 5.2.0.77A

Change-Id: I339818db2580cffee8848072249a98bea6adf269
CRs-Fixed: 774533
2018-05-09 16:31:24 -07:00
Jeff Johnson
9421434405 qcacld-3.0: Remove obsolete P2P macros
As a result of P2P componentization a variety of P2P-related macros
are no longer used, so remove them.

Change-Id: I693c4f11575968ce0aae9f3ecac9e008b0dbf5b9
CRs-Fixed: 2237726
2018-05-09 16:31:24 -07:00
Jeff Johnson
118a4a05af qcacld-3.0: Fix typo "capabilites"
Replace typo "capabilites" with correct spelling "capabilities".

Change-Id: I1c84c401fd732227d63a159bea7f7f3cefacf153
CRs-Fixed: 2237725
2018-05-09 16:31:19 -07:00
Jeff Johnson
5ead5ab10f qcacld-3.0: Fix typos "sucess" and "sucessful"
Replace typos "sucess" and "sucessful" with correct spellings
"success" and "successful"

Change-Id: I30746cbab4533da9b052261fa9bb87214188138b
CRs-Fixed: 2237724
2018-05-09 16:31:15 -07:00
Jeff Johnson
ff4b683dee qcacld-3.0: Fix typo "comming"
Replace typo "comming" with correct spelling "coming"

Change-Id: I9e6927cbbca82280edc459c445c2831dd8d79ce9
CRs-Fixed: 2237727
2018-05-09 16:31:11 -07:00
nshrivas
723a4c1566 Release 5.2.0.77
Release 5.2.0.77

Change-Id: Ie3125bfe6e9634ae3c1b7a6bd9df599de7c530e2
CRs-Fixed: 774533
2018-05-09 15:19:59 -07:00
Jeff Johnson
48a281a9d6 qcacld-3.0: Fix typo "accross"
Replace typo "accross" with correct spelling "across"

Change-Id: Id3a895e5dada1ff352a5ca52a80accd2c1615a71
CRs-Fixed: 2237728
2018-05-09 15:19:58 -07:00
Jeff Johnson
2cc31fdbad qcacld-3.0: Fix typo "choosen"
Replace typo "choosen" with correct spelling "chosen"

Change-Id: I58fc894783093f3d68f3b576906695a9ce201adf
CRs-Fixed: 2237731
2018-05-09 15:19:55 -07:00
Jeff Johnson
389e16bd34 qcacld-3.0: Rename fConnected
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename fConnected to align with the Coding
Style.

Change-Id: I5987e3c31aed44448a1f1843d8931daa7dfeb0fe
CRs-Fixed: 2237723
2018-05-09 15:19:51 -07:00
Jeff Johnson
e4c11db22a qcacld-3.0: Fix camelCase in tsap_Config_t
Rename typedef tsap_Config_t and the underlying struct sap_Config to
align with the Linux coding standard.

Change-Id: I6e8f8b5ab9555c7781f1acf12a0475902866300c
CRs-Fixed: 2237721
2018-05-09 15:19:47 -07:00
Jeff Johnson
acad838608 qcacld-3.0: Remove obsolete SAP ioctl structs
The following structs are obsolete so remove them:
- struct sQcSapreq_wpaie
- struct sQcSapreq_wscie

Change-Id: Ie9fdba59cf31e9a2c5e468183c1328aee439709a
CRs-Fixed: 2237720
2018-05-09 15:19:43 -07:00
nshrivas
edf7269a88 Release 5.2.0.76Z
Release 5.2.0.76Z

Change-Id: I64cc682422ab715985698bde3e3c2bda87a7843e
CRs-Fixed: 774533
2018-05-09 08:39:20 -07:00
Visweswara Tanuku
e6b0da58ec qcacld-3.0: RSN IE Update in case of BSS already started
qcacld-2.0 to qcacld-3.0 propagation

Beacon does not show RSN IE after disabling/enabling SAP, hence
stations does not connect back while trying to associate in WPA.

While re-enable SAP from the hostapd_cli, the start_bss is called
twice, first from wps_init which does not populate RSNIE and secondly,
through bss_setup which has RSNIE but getting ignored as the BSS is
already started.

Added the RSN IE in case of BSS already started

Change-Id: I2a67156e66e255e7c007a5925cd81b859009114e
CRs-Fixed: 2144429
2018-05-09 08:39:19 -07:00
nshrivas
b7dac3c947 Release 5.2.0.76Y
Release 5.2.0.76Y

Change-Id: Ib149fff9605831bafae0db4d0741f6db44b1c638
CRs-Fixed: 774533
2018-05-09 06:19:18 -07:00
Abhinav Kumar
ac12c76ea3 qcacld-3.0: Add comment between cases in switch statement
Add /* fallthrough */ comment in __lim_process_sme_deauth_req
as per linux checkpatch script while processing deauth req for
limSmeState 'eLIM_SME_LINK_EST_STATE'.

Change-Id: I38e0520aaec96e2ba35c916b39e79724c453632f
CRs-Fixed: 2233183
2018-05-09 06:19:17 -07:00
nshrivas
8c1cf5cca5 Release 5.2.0.76X
Release 5.2.0.76X

Change-Id: If694408cff7d63f4591718988ea9d0b5f316ca2d
CRs-Fixed: 774533
2018-05-09 01:44:33 -07:00
Vignesh Viswanathan
ad47f0a2a8 qcacld-3.0: Modify callers of ObjMgr APIs to include pdev_id
wlan_objmgr_get_vdev_by_macaddr_from_psoc and wlan_objmgr_get_peer
API's definitions have been changed to include pdev_id as an
argument.

Modify the callers of these APIs to include pdev_id as argument.

Change-Id: I3d0de6a0bc1dfefbe1b3cad51ec23f703baaf3ad
CRs-Fixed: 2210728
2018-05-09 01:44:33 -07:00
nshrivas
3f553c4267 Release 5.2.0.76W
Release 5.2.0.76W

Change-Id: I2584123117390b95729d26c3726ad370114c82e7
CRs-Fixed: 774533
2018-05-08 21:33:22 -07:00
Rajeev Kumar Sirasanagandla
e5582aa7ef qcacld-3.0: Avoid NULL pointer exception in (re)assoc event
In hdd_send_association_event() and hdd_send_re_assoc_event(), there is
no check of pBssDesc against NULL which can lead to NULL pointer exception.
Circumvent this issue by adding NULL check.

Change-Id: Ic3a0142b4ea3f058e8d3993fb491d418ddb8f70d
CRs-Fixed: 2232721
2018-05-08 21:33:21 -07:00
nshrivas
1c887e18aa Release 5.2.0.76V
Release 5.2.0.76V

Change-Id: Iced9a47bae8a40ab20a49ec299fab08e11261a2d
CRs-Fixed: 774533
2018-05-08 13:47:27 -07:00
Manjunathappa Prakash
bfd1276375 qcacld-3.0: Disable TCP delack if GRO is enabled
Takecare to disable TCP delack internally if GRO is enabled.
This is required as enabling both will have adverse effect with
smaller window size and noisy scenario.

Change-Id: If91236620d87287c9b71901e9d8e3d176eebc648
CRs-Fixed: 2172652
2018-05-08 13:47:26 -07:00
Lin Bai
362e52b391 qcacld-3.0: Fix regression of peer map adjustment
Change I8e1b62cd9586f5b2be7acb863a106d2486be1b35 used unassigned
member dp_handle of wlan_objmgr_psoc, that causing failure on DP.

Assign dp_handle properly to avoid it.

CRs-Fixed: 2237072
Change-Id: If230b8a24f5ac9d26ac27f89779c7669cdee5455
2018-05-08 13:47:22 -07:00
Abhinav Kumar
19f593962f qcacld-3.0: Add comment between cases in switch statement
Add /* fallthrough */ comment in sme_qos_add_ts_failure_fnp
as per linux checkpatch script in case of reason
SME_QOS_REASON_REQ_SUCCESS of flow request.

Change-Id: I6ea942e53cd6f0828dbe55cfdd77ecf75cf1cdbb
CRs-Fixed: 2233176
2018-05-08 13:47:19 -07:00
nshrivas
18f519f0b1 Release 5.2.0.76U
Release 5.2.0.76U

Change-Id: I2b7fc981c173b24331bb15c5c9abd22b913d3999
CRs-Fixed: 774533
2018-05-06 23:12:33 -07:00
Will Huang
67ce1e332b qcacld-3.0: Refine PMO wow to support legacy chip
wma_is_service_enabled can't get valid service bitmap if call in
hdd_update_pmo_config, use psoc_ctx->caps.unified_wow instead to check
pattern id per vdev and legacy d0 wow capability.

Change-Id: If7bf316f482c49253fc4b95b94e172727b27ffd1
CRs-Fixed: 2225847
2018-05-06 23:12:33 -07:00
Wen Gong
aa6d55d9e7 qcacld-3.0: Add hdd memory dump feature flag
Add config flag to enable / disable hdd memory dump feature

Change-Id: Id2994f72b595096459e65ef4da5381d6eb3b476b
CRs-Fixed: 2231695
2018-05-06 23:12:29 -07:00
nshrivas
612bc1c5df Release 5.2.0.76T
Release 5.2.0.76T

Change-Id: I1626db6340d43b455327635568b362bd022f2384
CRs-Fixed: 774533
2018-05-06 22:06:22 -07:00
Frank Liu
064ebd4a01 qcacld-3.0: Check sap restart after updated active session
When do re-association, there is obsolete data exists in policy manager
until hdd_association_completion_handler updates the active session.
If check sap restart before this, will access the wrong data.

Change-Id: Ie62f86a5d523e70b6bb81b500bd358b63ae90ea8
CRs-Fixed: 2231675
2018-05-06 22:06:21 -07:00
nshrivas
b1b4bba465 Release 5.2.0.76S
Release 5.2.0.76S

Change-Id: Ie777001ffba20fe1ea65e2365a060c797070e6b2
CRs-Fixed: 774533
2018-05-05 10:49:51 -07:00
Naveen Rawat
a36e2ff1ee qcacld-3.0: Disable CP_STATS component
Disable CP_STATS component till, corresponding all changes are merged.

Change-Id: I1a4e62427db57a5bbbe8d195805137ee64853ee3
CRs-Fixed: 2236751
2018-05-05 10:49:51 -07:00
nshrivas
d21f45f812 Release 5.2.0.76R
Release 5.2.0.76R

Change-Id: Iff9bbfb96391c263dd4a2416d39596416bfb5484
CRs-Fixed: 774533
2018-05-05 09:21:33 -07:00
Sravan Kumar Kairam
86fce778a0 qcacld-3.0: Update IPA uC TXRX stats to SAP adapter stats
Update the queried IPA uC TXRX stats to SAP adapter netdev stats.

Change-Id: I34ded780e6cbeba827c6d06b45720ee16c6be231
CRs-Fixed: 2234379
2018-05-05 09:21:32 -07:00
gaurank kathpalia
d2967a742c qcacld-3.0: Fix OOB write in vdev_mac_map
In the API wma_process_pdev_hw_mode_trans_ind
the host doesnt check the upper limit of
num_vdev_mac_entries received from the firmware,
and fills the same to the host structure
hw_mode_trans_ind, which may cause OOB write.
Fix is to check for the max vdev supported in the
same API and return if the condition is false.

Change-Id: I54a9e12f777b87b49057d6c97c06ab71b9ad1d77
CRs-Fixed: 2221965
2018-05-05 09:21:29 -07:00
nshrivas
28f46b45d6 Release 5.2.0.76Q
Release 5.2.0.76Q

Change-Id: Ia511881ca7e874022840b980f49b0ed635c818e2
CRs-Fixed: 774533
2018-05-05 08:22:56 -07:00
Yun Park
e019632b14 qcacld-3.0: Fix KASAN slab-out-of-bounds in ipa3_release_wdi_mapping
To avoid out-of-bounds access of mem_map_table from htt_rx_hash_deinit
, allocate mem_map_table size the same as maximum number of hash
entries, which is RX_NUM_HASH_BUCKETS * RX_ENTRIES_SIZE.

Change-Id: If25f97b47350196ceb2e8c60e7d5430a1484a01d
CRs-Fixed: 2214158
2018-05-05 08:22:55 -07:00
nshrivas
cb20b1a504 Release 5.2.0.76P
Release 5.2.0.76P

Change-Id: I9a63c1551441687197b5460f3fbecb909a414fc7
CRs-Fixed: 774533
2018-05-05 03:06:17 -07:00
Mahesh Kumar Kalikot Veetil
7fc48292f7 qcacld-3.0: Set proper arch dependency for NAPI
NAPI APIs in HDD are platform specific. So make these API's
conditionally compiled.

Change-Id: Id87c11da13f096d4f9ff735bbd98dcea23d52310
CRs-Fixed: 2235978
2018-05-05 03:06:16 -07:00
nshrivas
9c612d68a7 Release 5.2.0.76O
Release 5.2.0.76O

Change-Id: Ib04c9127aab58de95791b4b635bf137de3cc20ac
CRs-Fixed: 774533
2018-05-04 21:46:42 -07:00
Tushnim Bhattacharyya
89710e3e80 qcacld-3.0: Use WMI_HOST_WLAN_PHY_MODE instead of WLAN_PHY_MODE
Use the enumaration defined in common instead of the legacy one in
cld.

Change-Id: I0ad7659b8d03ae5a14b15ca464395ea3e2571286
CRs-Fixed: 2216803
2018-05-04 21:46:42 -07:00
Rajeev Kumar
3251405396 qcacld-3.0: Initialize packet filter clear rule properly
Initialize packet filter clear rule on stack properly to avoid
using un-initialized member variables.

Change-Id: I03b129e7660ed761b03ac163fdb3e7eee58ec034
CRs-Fixed: 2119208
2018-05-04 21:46:39 -07:00
nshrivas
361216564a Release 5.2.0.76N
Release 5.2.0.76N

Change-Id: I2e1864957fbaf5b18a71b898bc2de6bb20c62f84
CRs-Fixed: 774533
2018-05-04 20:43:01 -07:00
Pragaspathi Thilagaraj
2628343597 qcacld-3.0: Fix possible buffer overread in wma_set_epno_network_list
In the function wma_set_epno_network_list,
req->networks[i].ssid.ssId is copied into the destination
params->networks[i].ssid.mac_ssid. But the ssid length is not
considered while copying and WMI_MAC_MAX_SSID_LENGTH is used as
the length for copying. This might result in possible buffer
overread if the ssid length is not WMI_MAC_MAX_SSID_LENGTH.
Similar issue is seen in wma_pno_start also.

Use pno->aNetworks[i].ssId.length as the size to mem copy the
ssid to the destination ssid buffer.

Change-Id: Id3f579da97e398663b7d583f5f46d4671eabeae3
CRs-Fixed: 2233682
2018-05-04 20:43:00 -07:00