Commit Graph

10357 Commits

Author SHA1 Message Date
Sandeep Puligilla
a894ffc75c qcacld-3.0: Remove associated peers during SAP stop
SAP failed to remove all the associated peers during
shutdown which triggered assert at WMA.

Cleanup all the associated peers as part of the
stop bss at LIM to avoid the assert.

Change-Id: I3610590fd443f807d20f61bb050124506794cc2b
CRs-Fixed: 2251399
2018-06-03 23:39:26 -07:00
nshrivas
940b053e9a Release 5.2.0.81B
Release 5.2.0.81B

Change-Id: If0d8c241edcbbb20bd4a45b4af8cf50a8c7a1112
CRs-Fixed: 774533
2018-06-03 22:15:27 -07:00
Hanumanth Reddy Pothula
89b0dce2fb qcacld-3.0: Process DO_ACS vendor command only in SAP/P2P_GO mode
While processing DO_ACS vendor command session context, which is
of type union holds either station's or SAP's session, is updated
without checking adapter’s mode. This may lead to corrupt station's
session context if DO_ACS is invoked with station adapter.

Validate adapter mode and process DO_ACS vendor commands only if the
mode is SAP/P2P_GO.

Change-Id: Id99ba126fcfa1f06f68b89d4627c029948a201c5
CRs-Fixed: 2237661
2018-06-03 22:15:26 -07:00
nshrivas
8ff35eb427 Release 5.2.0.81A
Release 5.2.0.81A

Change-Id: I80dba2d78f2210c28bfad0f7273d72019b0d4d99
CRs-Fixed: 774533
2018-06-03 21:04:31 -07:00
Lihua Liu
15f6e45a5c qcacld-3.0: Fix potential NULL reference in wlan_ipa_uc_loaded_handler
In function wlan_ipa_uc_loaded_handler,the qdf_dev is as return of
wlan_psoc_get_qdf_dev(),which maybe NULL,then NULL reference could
occur later.

Change-Id: I3c6d5af35934deef643cb600b1966c22769c71ed
CRs-Fixed: 2250977
2018-06-03 21:04:31 -07:00
nshrivas
5ac9c22fe9 Release 5.2.0.81
Release 5.2.0.81

Change-Id: I214bff749a3ba682e509a9dd3cdbb3fea671c7a1
CRs-Fixed: 774533
2018-06-02 10:26:12 -07:00
Dundi Raviteja
bb06d022d6 qcacld-3.0: Change SIFS burst default value to 1
Change the value of HDD_ENABLE_SIFS_BURST_DEFAULT from 0 to 1.

Change-Id: I38fc4ebfcf507a53ed5ef9885c825d1eb9e90adb
CRs-Fixed: 2251821
2018-06-02 10:26:11 -07:00
nshrivas
24124739f6 Release 5.2.0.80Z
Release 5.2.0.80Z

Change-Id: I9783391fda7d2e40f0f9374904d2e7c159ef13ea
CRs-Fixed: 774533
2018-06-01 21:02:46 -07:00
Kiran Kumar Lokere
678ad346b1 qcacld-3.0: Fix issue with get channel list command
Set the band end channel to SRD channel range so that if the SRD
channels are enabled then get channel list command returns the
SRD channels in the output.

Change-Id: I26ec92cf842e62e2b113f38dc4ac4d1c5d7cbe22
CRs-Fixed: 2161849
2018-06-01 21:02:46 -07:00
Krunal Soni
ee5d1ad681 qcacld-3.0: Add debug log to capture vdev attach and detach events
There are certain stability issues reported and from the logs, it
has been concluded that vdev detach is missing which causes memory
leaks.

Add debug logs around vdev attach and detach paths to recognize any
memory leaks.

CRs-Fixed: 2244033
Change-Id: I9ee751fff8f51c7ad2ca2d7ec1e894cbbf60d201
2018-06-01 21:02:43 -07:00
nshrivas
f8b3f81508 Release 5.2.0.80Y
Release 5.2.0.80Y

Change-Id: I3e47fd2e3448959ebe58dde508197f7968672851
CRs-Fixed: 774533
2018-06-01 19:44:40 -07:00
Himanshu Agarwal
4ecf6ca43a qcacld-3.0: Break gAP11ACOverride for SAP and P2P GO
Presently, gAP11ACOverride is used to do 11ac override for both SAP and
P2P GO. So, enabling 11ac override in SAP and disbaling it in P2P GO or
vice versa is not possible as per current design. This causes issue in
the latest framework where 11ac override is not needed for SAP but is
required for P2P GO.

Break gAP11ACOverride into 2 inis, one for SAP and one for P2P GO to
have better control over the functionality.

Change-Id: I3809b91a80077d6d9958fe8e0bb770f960b691d6
CRs-Fixed: 2240387
2018-06-01 19:44:40 -07:00
nshrivas
0d2f94b81a Release 5.2.0.80X
Release 5.2.0.80X

Change-Id: Ia8efe10b820216ae0223d136d24a3b4f6bd6f4ad
CRs-Fixed: 774533
2018-06-01 18:24:23 -07:00
Wu Gao
6b81fc5f9c qcacld-3.0: Clear SOFTAP_BSS_STARTED flag for P2P GO SSR case
In SSR case, stop BSS fail with P2P GO since session invalid, and
then blocking to start next P2P GO.

Change-Id: I6bb387480e6a08e082771598b649c5ac240aff2e
CRs-Fixed: 2244698
2018-06-01 18:24:22 -07:00
nshrivas
3c1064567d Release 5.2.0.80W
Release 5.2.0.80W

Change-Id: I84640311dda3f915c362c61a0a14ed3d8cff97da
CRs-Fixed: 774533
2018-06-01 12:58:44 -07:00
Dustin Brown
b1c8990ec8 qcacld-3.0: Set unloading before grabbing lock
In wlan_hdd_pld_remove(), a global mutext is grabbed before setting the
global "unloading" flag. In the case of __hdd_open(), this flag is
checked before also grabbing the same lock. Ultimately this can lead to
deadlocks when other shared locks are involved. As a short-to-medium
term work around, set the unloading flag before waiting for external
threads to exit. After external threads have exited, then grab the lock
to avoid deadlocking with external threads like those invoking
__hdd_open(). Effectively, this does a stop-and-flush on external
threads into the driver before unloading.

Change-Id: Iaaf52d730807abd9a99950970988ec58a1abb87d
CRs-Fixed: 2251271
2018-06-01 12:58:43 -07:00
nshrivas
41e5af383b Release 5.2.0.80V
Release 5.2.0.80V

Change-Id: I11612be1792170ecd16f4c2a677d59c89e4fcb40
CRs-Fixed: 774533
2018-06-01 12:02:35 -07:00
Dundi Raviteja
3bcf3a89e3 qcacld-3.0: Use request manager to get NUD stats
Use request manager for handling get NUD stats

Change-Id: Ie1a15de440803d007d16568138d4a8e7692a30d4
CRs-Fixed: 2246435
2018-06-01 12:02:35 -07:00
nshrivas
396dbdfe01 Release 5.2.0.80U
Release 5.2.0.80U

Change-Id: I40461c6ca34002a3edf7081d8f491ea926858255
CRs-Fixed: 774533
2018-06-01 10:57:17 -07:00
Jeff Johnson
cba3b465d2 qcacld-3.0: Rename struct _cds_context_type
Currently struct _cds_context_type is poorly named and poorly defined.
Rename it to struct cds_context to better align with expected naming,
and define it separately from the typedefs which reference it in
anticipation of removing those typedefs in the near future.

Change-Id: Icd096b7e99f13402fb7dab53493e6c55dda4d764
CRs-Fixed: 2250666
2018-06-01 10:57:16 -07:00
nshrivas
ae1ac2b0fd Release 5.2.0.80T
Release 5.2.0.80T

Change-Id: I25a41367d726d3aa8045337bd21abff01c0d2a56
CRs-Fixed: 774533
2018-06-01 07:31:44 -07:00
Abhinav Kumar
7ae9b7bed4 qcacld-3.0: Fix mem leak in hdd_wlan_start_modules
In function hdd_wlan_start_modules, when hdd_configure_cds
return error, driver does not free memory buffer
hdd_ctx->target_hw_name in hdd_update_hw_sw_info, which is
allocated when the driver is in the open state.

Fix is to free the memory for hdd_ctx->target_hw_name buffer
and set to NULL.

Change-Id: Ib8bee8d4df51404e848cfd4da628ebf3f7ff718d
CRs-Fixed: 2159490
2018-06-01 07:31:44 -07:00
nshrivas
43e8dffc25 Release 5.2.0.80S
Release 5.2.0.80S

Change-Id: Ib0274a1822ac82c3fa664fdd5acd0ba2a992ee20
CRs-Fixed: 774533
2018-06-01 06:34:04 -07:00
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