Commit Graph

10434 Commits

Author SHA1 Message Date
Zhu Jianmin
f9e2e2d18f qcacld-3.0: Fix psoc ref count leak in wma_open
In wma_open, first get ref of psoc, then attach wmi, if attach
failed, should release ref of psoc before return

Change-Id: If2e21bbf8b54de865c2b54582685974474ea3c7c
CRs-Fixed: 2250872
2018-06-01 06:34:04 -07:00
nshrivas
e29000582d Release 5.2.0.80R
Release 5.2.0.80R

Change-Id: I0707a9bc78207fbb9ab2d7d6d5eca4f1dfacd315
CRs-Fixed: 774533
2018-06-01 05:26:07 -07:00
Dustin Brown
a22671a594 qcacld-3.0: Remove cds_sys_probe_thread_cback()
The sys-probe feature has been removed. Remove related unused function
cds_sys_probe_thread_cback() as well.

Change-Id: Idb1f090a40c255812e9e8b573cd239503dddac49
CRs-Fixed: 2250488
2018-06-01 05:26:06 -07:00
nshrivas
931bf4a7af Release 5.2.0.80Q
Release 5.2.0.80Q

Change-Id: I8eb71b9399f7c35f38b74ed8aba45982fa8b39ff
CRs-Fixed: 774533
2018-06-01 01:43:17 -07:00
jiad
4f0eae1817 qcacld-3.0: Fix WLAN IPA NULL pointer dereference
When ipa_check_hw_present() returns false, g_ipa_config
is left as NULL pointer. ipa_config_is_enabled() and
ipa_config_is_uc_enabled() will lead to NULL pointer
dereference.

Fix is to check against g_ipa_config NULL pointer
in ipa_config_is_enabled() and ipa_config_is_uc_enabled().

Change-Id: I95da7aede7d72db8591102eea7504cad59686105
CRs-Fixed: 2246224
2018-06-01 01:43:16 -07:00
nshrivas
61bcecc32e Release 5.2.0.80P
Release 5.2.0.80P

Change-Id: I1d22fc46fb218a5c205b4a8e3493cb86684b37b1
CRs-Fixed: 774533
2018-06-01 00:36:27 -07:00
Ashish Kumar Dhanotiya
7353f883cd qcacld-3.0: Avoid NULL pointer access in get version api
There is a possibility of NULL pointer access in
hdd_wlan_get_version api as the check for the version
pointer and version len is incorrect. If the version pointer
is NULL and version_len is non zero, it will result in NULL
pointer derefernce.

To address this issue update the NULL pointer check to return
in both the cases whether the pointer is NULL or the version_len
is NULL.

Change-Id: Iee3ef6d31fac1b5ede4ac3a762157d3c48d5ffc5
CRs-Fixed: 2242148
2018-06-01 00:36:26 -07:00
nshrivas
2dc1e27707 Release 5.2.0.80O
Release 5.2.0.80O

Change-Id: I9dbc4d7d8a442ab85ace28bab74ee8b537b880fa
CRs-Fixed: 774533
2018-05-31 22:30:50 -07:00
Wu Gao
ffb9c72f7b qcacld-3.0: Use PMO macro from public head files
We should use PMO macro from public head files.

Change-Id: Iac533655e85ef85fe86bae19e0bce4967418cc81
CRs-Fixed: 2251499
2018-05-31 22:30:49 -07:00
nshrivas
ca550ef73f Release 5.2.0.80N
Release 5.2.0.80N

Change-Id: Ie4ed6277717bd8719bfe7b79911a305c395f4661
CRs-Fixed: 774533
2018-05-31 21:31:54 -07:00
Dustin Brown
9746bd6a57 qcacld-3.0: Cleanup cds_pre_enable
There are a number of code hygiene issues with cds_pre_enable().
Cleanup some trivial items such as using appropriate logging wrappers,
removing excessive QDF_ASSERTs, using standard naming conventions, etc.

Change-Id: I1a236c4aae9a48195b73943bf83c9498d44501ea
CRs-Fixed: 2249436
2018-05-31 21:31:53 -07:00
nshrivas
b5006059c8 Release 5.2.0.80M
Release 5.2.0.80M

Change-Id: I1995d6897286cd4e8f98088ff95aa4620a471ff1
CRs-Fixed: 774533
2018-05-31 20:31:33 -07:00
Liangwei Dong
858feb14d2 qcacld-3.0: do PLD power off for FTM mode
Remove cds_set_load_in_progress so that the
hdd_wlan_stop_modules can do PLD power off
for FTM mode.
Add con_mode_flag checking for HDD context access
protection.

Change-Id: Ie48443579fcb692fcc806cb9b6bf5782d7764c9f
CRs-Fixed: 2246876
2018-05-31 20:31:32 -07:00
nshrivas
f09d4a3c58 Release 5.2.0.80L
Release 5.2.0.80L

Change-Id: If49ed43e5c1d821e05f3d17d04dc87f904f298ee
CRs-Fixed: 774533
2018-05-31 19:23:07 -07:00
wadesong
cb0ded2438 qcacld-3.0: Add diag event support for ACS
Send ACS diag event when SAP is doing ACS.

Change-Id: I409b57dce98a12796cfee1619c8efe47a403bd1d
CRs-Fixed: 2238666
2018-05-31 19:23:07 -07:00
nshrivas
38d97ab4de Release 5.2.0.80K
Release 5.2.0.80K

Change-Id: I2f9aca6199e1f356deb108f6fcf4c57dff739e55
CRs-Fixed: 774533
2018-05-31 18:21:02 -07:00
jiad
ab8cea0b3a qcacld-3.0: Fix SKB free for WLAN IPA exceptions
There are two types of WLAN IPA exceptions, where WLAN driver is
involved for packet processing.

One is for RX exceptions, such as ICMP or Intra-BSS packets.
The other one is for WDI 1.0 MCC TX SW path, where packet queueing
is happening in WLAN driver.

In both cases, skb is allocated in IPA driver. If NBUF_MEMORY_DEBUG
is defined and qdf_net_buf_debug_acquire_skb() is not invoked for
the skb, qdf_nbuf_free() will trigger ASSERT to report unallocated
buffer.

For early processing of RX exceptions, dev_kfree_skb_any() needs to
be called instead of qdf_nbuf_free() otherwise above ASSERT will be
triggered.
For MCC TX SW path, ipa_free_skb() should be called to free skb to
IPA driver.

Change-Id: I039cb20673ce3aa98056529f7609801f76c4c16a
CRs-Fixed: 2247339
2018-05-31 18:21:01 -07:00
nshrivas
d09b734819 Release 5.2.0.80J
Release 5.2.0.80J

Change-Id: Ib7b62d28ae8c414b1fc7864a308aae3753013c3d
CRs-Fixed: 774533
2018-05-31 17:21:28 -07:00
Tiger Yu
b2395d4306 qcacld-3.0: Fix race condition between start/stop bss for SAP
There might be a race condition between wlansap_stop_bss and
wlansap_start_bss. The tx_flow_control_timer might be created again
after released by hdd_stop_adapter which might cause the memory leak
issue.

Add mutex lock to protect the wlansap_start_bss in the function of
wlan_hdd_cfg80211_start_bss to fix incorrect state of fsm.

Change-Id: Icae4508450f6e1cc13210d49edaf03a8fbd39fe4
CRs-Fixed: 2239832
2018-05-31 17:21:27 -07:00
nshrivas
2a2b7fbd6a Release 5.2.0.80I
Release 5.2.0.80I

Change-Id: Iec63029877fb634c29f4b73bdd4c442edfc02c07
CRs-Fixed: 774533
2018-05-30 15:51:44 -07:00
Yun Park
8da8db6903 qcacld-3.0: Enable METERING feature
Enable METERING feature

Change-Id: I4551e6eb6a660991fdaecc9725711c2216dfccdf
CRs-Fixed: 2247806
2018-05-30 15:51:43 -07:00
nshrivas
9134664eda Release 5.2.0.80H
Release 5.2.0.80H

Change-Id: Ie7fb3d0cad88a23ea8bb0c730756f96cfb675484
CRs-Fixed: 774533
2018-05-30 13:57:16 -07:00
Krunal Soni
8a090df3e5 qcacld-3.0: Pass the arg by reference while calling sme_pdev_set_pcl()
While calling sme_pdev_set_pcl() API, driver is passing the argument
by value. The size of the argument is 280 bytes which is not good
design.

Pass the argument by reference instead of passing it by value to make
design simple.

CRs-Fixed: 2233212
Change-Id: I92849fb125fe864c1c7c7977bce392a7bcfe4121
2018-05-30 13:57:15 -07:00
jiad
a8c542cf7c qcacld-3.0: Fix WLAN IPA event completion timeout
qdf_wait_for_event_completion() needs a timeout value in milliseconds.
msecs_to_jiffies() is not needed to convert timeout value into jiffies.

Change-Id: I95315f937d651fd200f58d89f44eb167c6f29cc8
CRs-Fixed: 2250143
2018-05-30 13:57:13 -07:00
nshrivas
dc1ee6e8cc Release 5.2.0.80G
Release 5.2.0.80G

Change-Id: I998b295d4d5cd7af9bc02292272e4dd8a8597f99
CRs-Fixed: 774533
2018-05-29 14:38:43 -07:00
Sravan Kumar Kairam
ff44dc3e2a qcacld-3.0: Update SMMU mem table for each rx nbuff
Currently SMMU mem map table allocation size is very high and may
lead to allocation failure if system memory is fragmented or in low
memory cases. Do not allocate SMMU mem table buffer instead update
for each rx nbuff.

Change-Id: Ib48199387abc942980cef1ef57a00e44c729e95f
CRs-Fixed: 2238629
2018-05-29 14:38:43 -07:00
nshrivas
a369a31c78 Release 5.2.0.80F
Release 5.2.0.80F

Change-Id: I0a5fed404520c4d5b6215462765a28d9798ea0c3
CRs-Fixed: 774533
2018-05-29 13:34:30 -07:00
Krunal Soni
3e4a3b62f7 qcacld-3.0: Add null check in lim_populate_vht_mcs_set() API
session_entry pointer has been dereferenced without checking against
NULL.

Add NULL check before dereferencing it.

CRs-Fixed: 2232738
Change-Id: I899a5da2affd70acf274bdceca11e9d47c7659b5
2018-05-29 13:34:29 -07:00
Krunal Soni
e2c45a9aa6 qcacld-3.0: Fix uninitialized variable in lim_handle_csa_offload_msg()
Fix uinitialized variable in lim_handle_csa_offload_msg() API.

CRs-Fixed: 2232736
Change-Id: Ie9e918780af2407796359cfc293bf227a69385b2
2018-05-29 13:34:26 -07:00
nshrivas
360db7cc09 Release 5.2.0.80E
Release 5.2.0.80E

Change-Id: I35c87fc2bf1cb29fff0247f9703422da614c037d
CRs-Fixed: 774533
2018-05-29 12:27:33 -07:00
Tushnim Bhattacharyya
4e4be911ba qcacld-3.0: Initialize variable sap_ap_event in sap_signal_hdd_event
Initialize variable sap_ap_event to avoid use of uninitialized value
of sap_ap_event.sapHddEventCode when calling sap_ctx->pfnSapEventCallback.

Change-Id: Idcf18b6c95ffcef59f0db764d0071fcb4909ea2e
CRs-Fixed: 2232749
2018-05-29 12:27:33 -07:00
Dustin Brown
c30f3933ff qcacld-3.0: Remove wlan_sys_probe
wlan_sys_probe has been superseded by the scheduler thread watchdog.
Since it is no longer needed, remove wlan_sys_probe.

Change-Id: I31e7cf0021774d074a6c94eb6a636e1f87452923
CRs-Fixed: 2249435
2018-05-29 12:27:30 -07:00
Dustin Brown
b309cf139a qcacld-3.0: Refactor CDS logging wrappers
Refactor the CDS logging wrappers to use the new per-level logging APIs.

Change-Id: I13e6d0676250348c07a3abb256d5220b48f77737
CRs-Fixed: 2249432
2018-05-29 12:27:27 -07:00
nshrivas
17c2cc2a58 Release 5.2.0.80D
Release 5.2.0.80D

Change-Id: I0e6f5244262acbd5d878c6e1d7973e3486a6ecf4
CRs-Fixed: 774533
2018-05-29 06:50:59 -07:00
wadesong
78cb3c231f qcacld-3.0: Fix a memory leak during driver init
When WMI attaching fails in wma_open, the memory allocated
during invokation of target_if_open should be freed to
avoid a memory leak.

Change-Id: I64e5bbc9714199a1598df55e00586786a30aad35
CRs-fixed: 2237068
2018-05-29 06:50:59 -07:00
nshrivas
6accb7ff6e Release 5.2.0.80C
Release 5.2.0.80C

Change-Id: I944577c2537970ec78601c7967ea3083ce7593f1
CRs-Fixed: 774533
2018-05-27 13:55:28 -07:00
Pragaspathi Thilagaraj
c81ad0e88c qcacld-3.0: Fix misspellings in wlan_hdd_wext.c
Address the following issues in wlan_hdd_wext.c:
CHECK:'recieved' may be misspelled - perhaps 'received'?
CHECK: parenthesis alignment in iw_get_policy_manager_ut_ops

CRs-Fixed: 2245341
Change-Id: I25c1e4310739e934d49dc7b4fc3890e5ab16e5e0
2018-05-27 13:55:28 -07:00
nshrivas
cf8f6de4a6 Release 5.2.0.80B
Release 5.2.0.80B

Change-Id: Iac11201f74844ca634fe15c46df542d89a026a26
CRs-Fixed: 774533
2018-05-25 08:21:33 -07:00
Pragaspathi Thilagaraj
961a8b8077 qcacld-3.0: Fix potential NULL dereference in hdd_hostapd_sap_event_cb
In the function hdd_hostapd_sap_event_cb, stainfo is obtained
from hdd_get_stainfo(). This stainfo is dereferenced later to
retrive dhcp_phase later. If the stainfo returned from the
function hdd_get_stainfo is NULL, then a possible NULL pointer
dereference could occur.

Add check to validate stainfo is not NULL.

Change-Id: Ia428142b6ae2545528c5998dcde63845ca592b56
CRs-Fixed:  2233870
2018-05-25 08:21:32 -07:00
nshrivas
1b32d9cf5e Release 5.2.0.80A
Release 5.2.0.80A

Change-Id: I5e725d7f87a5dea17021c0655bce490bd406e06b
CRs-Fixed: 774533
2018-05-24 21:13:10 -07:00
Tiger Yu
dea56deb58 qcacld-3.0: Remove redundant tx flow control register in sap event cb
Remove the redundant tx flow control register in sap event cb, which has
been registered already when adapter started.

Change-Id: Ia48249ed6b6de0a1af642d920f9589c600015ed3
CRs-Fixed: 2239832
2018-05-24 21:13:09 -07:00
Dustin Brown
dd4e50fad1 Revert "qcacld-3.0: Fix resource leaks when change con_mode"
This reverts change If06be4c9627eb345fb52609351417b155d336a4e for the
following reasons:
 1) hdd_debug_domain_set() should never be called outside of module
    start/stop
 2) It effectively reverts I2fade59d1e4a27620cecadb91f69866e79c85612

Change-Id: Id132c516dd2600110912539df37eb1932730fef1
CRs-Fixed: 2248600
2018-05-24 21:13:06 -07:00
nshrivas
f2d16985f3 Release 5.2.0.80
Release 5.2.0.80

Change-Id: Ie183c74efdb2d06fdd97e60cd705a6bcec85d910
CRs-Fixed: 774533
2018-05-24 17:37:10 -07:00
Yue Ma
91e1c004a5 qcacld-3.0: Add condition to enable emulation flag
Enable driver emulation compilation flag based on kernel defconfig
settings.

Change-Id: If5e157f67ebfbf7caf19127ba5ce7813ca13a524
CRs-fixed: 2248407
2018-05-24 17:37:10 -07:00
nshrivas
2a2daa8194 Release 5.2.0.79Z
Release 5.2.0.79Z

Change-Id: Iccc7e4940ba6a883ec15a009a6bb629931975bd0
CRs-Fixed: 774533
2018-05-24 13:32:23 -07:00
Dustin Brown
ea82d5638b qcacld-3.0: Fix use-after-free in hdd_we_set_11d_state
In hdd_we_set_11d_state(), @sme_config is accessed immediately after
being freed. Avoid accessing freed memory.

Change-Id: I7ad19f6846bce1d0f99b7712f1036c81ea363815
CRs-Fixed: 2247652
2018-05-24 13:32:23 -07:00
nshrivas
200ae56129 Release 5.2.0.79Y
Release 5.2.0.79Y

Change-Id: I2163feae7e9ce2e94a50470534d38e065fc32c2d
CRs-Fixed: 774533
2018-05-24 11:13:33 -07:00
Zhu Jianmin
c147a544b7 qcacld-3.0: Get rid of camelCase pSapContext
Replace all pSapContext with sap_context

Change-Id: I79e29f4921be0b81b101297d1b976ba711fef0e6
CRs-Fixed: 2230873
2018-05-24 11:13:33 -07:00
Zhu Jianmin
436827dd13 qcacld-3.0: Use same sap_context for different SAP wrongly
When receive dfs event, if no available channel,  stop all AP,
but send eSAP_STOP_BSS_DUE_TO_NO_CHNL to same AP for 2 times
wrongly during SAP+SAP concurrency, init and schedule same work
queue sap_stop_bss_work 2 times at nearly same time, deadlock
happens

Change-Id: I86cf0ed578e81b3bc1941e057e91c9d952893e07
CRs-Fixed: 2230873
2018-05-24 11:13:27 -07:00
nshrivas
7fe4fe34d7 Release 5.2.0.79X
Release 5.2.0.79X

Change-Id: Id7e8e9304ccd83dfd65888f32536ce4533aeea8e
CRs-Fixed: 774533
2018-05-24 09:03:52 -07:00