Commit Graph

9593 Commits

Author SHA1 Message Date
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
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
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
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
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
Tushnim Bhattacharyya
0195df4be6 Revert "qcacld-3.0: Change default value of CSN to 4"
This reverts commit I814e10cc7da176dd12c154b8870b4d261ebb4789.

Change-Id: I148e0ffcc6e3de372b0f52dd8fd85f5af5b55b7b
CRs-Fixed: 2247688
2018-05-24 09:03:51 -07:00
nshrivas
ee803159ff Release 5.2.0.79W
Release 5.2.0.79W

Change-Id: I2405b0e11b7c6aeb931a56f1060df2b34389b2a0
CRs-Fixed: 774533
2018-05-24 07:51:50 -07:00
Sandeep Puligilla
36470614c0 qcacld-3.0: Remove unused commands
Remove unused serialization commands like
eSmeCommandEnterStandby
eCsrSmeIssuedReassocToDiffAP

Change-Id: I30b9aeb29702b33d94c0ec61258971120cc09a97
CRs-Fixed: 2245048
2018-05-24 07:51:46 -07:00
nshrivas
a565559aa0 Release 5.2.0.79V
Release 5.2.0.79V

Change-Id: Ifb4d89779afd941bb9c044bc56e937e6bbed45f9
CRs-Fixed: 774533
2018-05-23 22:51:04 -07:00
Jiachao Wu
b1e1ddd414 qcacld-3.0: Clear SOFTAP_INIT_DONE when stop adapter
hdd_stop_adapter frees beacon resouce but doesn't clear SOFTAP_INIT_DONE
flag. If SSR happens in this time, NULL pointer dereference will occur.

Clear flag in hdd_stop_adapter and check NULL pointer when use beacon.

Change-Id: I14be81a4e5fb498948f7ceec9138e9b1c797af1e
CRs-Fixed: 2232511
2018-05-23 22:51:04 -07:00
nshrivas
fedf2dd6b8 Release 5.2.0.79U
Release 5.2.0.79U

Change-Id: Id7de2eb51e94d56720a7b622f89192462bbd452c
CRs-Fixed: 774533
2018-05-23 21:51:22 -07:00
Wu Gao
9daee1a084 qcacld-3.0: Force set channel switch by command
It will reject channel switch command for STA+SAP concurrency case
since not force set channel switch.

Change-Id: Id032d5f931aa78cf24fda7e1fc1cc1d8ec58008f
CRs-Fixed: 2246121
2018-05-23 21:51:21 -07:00
nshrivas
cfd03b1b92 Release 5.2.0.79T
Release 5.2.0.79T

Change-Id: I973728fcf9ecde92acd8955bd219640174cfd82e
CRs-Fixed: 774533
2018-05-23 20:45:30 -07:00
Sandeep Puligilla
63c07ee307 Revert "qcacld-3.0: Don't fill any WMA request if target is not ready"
This reverts commit I358841566f858e115b3b04f12f4d8b70b75d1dfc.

Change-Id: I1701fcf0910d47a0bac91bf20d6271c6f6144590
CRs-Fixed: 2246741
2018-05-23 20:45:29 -07:00
nshrivas
7ba93501b5 Release 5.2.0.79S
Release 5.2.0.79S

Change-Id: Ib53dd8b27b81590f30b929a1715c699e5086ff74
CRs-Fixed: 774533
2018-05-23 19:38:46 -07:00
Ashish Kumar Dhanotiya
759b327f8f qcacld-3.0: Avoid mem leak during con_mode change
If any userspace request is posted using request manager,
memory is allocated for that request using hdd_request_alloc
api. Now when the response of this request comes in the
registered callback, if this response is NULL then callback
returns without doing hdd_request_complete and eventually
request gets timed out and memory is released through
request_put. If the con_mode is changed before this time out
occures, con_mode_handler will try to stop_modules and will
result in mem leak detection as the memory for the request
is not released yet.

To address this issue in con_mode_handler, wait for all the
user space requests to complete before trying to stop modules.

Change-Id: If524580e420d107a1fe6d17b75d4c13e4feb96e1
CRs-Fixed: 2244739
2018-05-23 19:38:45 -07:00
nshrivas
fa9f1b05e7 Release 5.2.0.79R
Release 5.2.0.79R

Change-Id: Ie011e8ada12a9b46f28d961a5923d623abe389f6
CRs-Fixed: 774533
2018-05-23 17:35:08 -07:00
Kiran Kumar Lokere
6c7f3fae12 qcacld-3.0: Add configuration support to enable/disable Tx BF
Add support to dynamically enable/disable the tx beamformee
support.

Change-Id: I205fd352d731e9b26654b8bbbbc459d2798b03be
CRs-Fixed: 2241816
2018-05-23 17:35:07 -07:00
nshrivas
0cbe1791e7 Release 5.2.0.79Q
Release 5.2.0.79Q

Change-Id: Ie7889aa59def8abbf2c6eebc5634ee9d337d163b
CRs-Fixed: 774533
2018-05-22 04:56:57 -07:00
Tiger Yu
baed8cd125 qcacld-3.0: Do not unmap skb_buf if the owner is ipa when vdev flush
Do not unmap the skb_buf if the owner is the ipa module when doing the
ol_txrx_vdev_flush.

For WDI 1.0 MCC TX, the IPA driver will push skb to wlan for transmission.
The skb_buffer has been mapped in the IPA driver before sending to wlan.
So no need to do unmap the skb_buf again in the wlan driver.

Change-Id: I2c1f8e916aca12f3efa73e3540e3d27c434617a1
CRs-Fixed: 2244442
2018-05-22 04:56:57 -07:00
Arunk Khandavalli
354b702aa7 qcacld-3.0: Avoid possible overflow while parsing scan ie
while parsing the QCA_WLAN_VENDOR_ATTR_SCAN_IE there can be possible
overflow overwriting the next ie pointers.

Hence validate the ie length received before memcpy.

Change-Id: Ic503331e6ee35bad5b3b6518cb140914cda2a447
CRs-Fixed: 2231992
2018-05-22 04:56:54 -07:00
Jeff Johnson
2e60a1405a qcacld-3.0: Replace new instance of tQDF_GLOBAL_CON_MODE
Previously change "qcacld-3.0: Use enum QDF_GLOBAL_MODE", Change-Id
I0e806e87a4c4828279dee83450b1fc20a236c9d3, replaced all instances of
tQDF_GLOBAL_CON_MODE to QDF_GLOBAL_MODE in the qcacld-3.0
project. However since tQDF_GLOBAL_CON_MODE was originally defined in
a common project, and not all references to it could be immediately
removed, a legacy definition was left with the expectation that it
would be removed when all references to it had been updated.
Unfortunately a new instance of using tQDF_GLOBAL_CON_MODE has been
subsequently added to the project, so replace it with QDF_GLOBAL_MODE.

Change-Id: Ib8584f1327631d2280666822fa45118c210a3c39
CRs-Fixed: 2245248
2018-05-22 04:56:51 -07:00
Jeff Johnson
36a0abf03b qcacld-3.0: Replace new instances of tQDF_ADAPTER_MODE
Previously change "qcacld-3.0: Use enum QDF_OPMODE", Change-Id
Ic6f663dac11a100f168b2626c7c0fbcaccbfca4f, replaced all instances of
tQDF_ADAPTER_MODE to QDF_OPMODE in the qcacld-3.0 project. However
since tQDF_ADAPTER_MODE was originally defined in a common project,
and not all references to it could be immediately removed, a legacy
definition was left with the expectation that it would be removed when
all references to it had been updated. Unfortunately new instances of
using tQDF_ADAPTER_MODE have been subsequently added to the project,
so replace them with QDF_OPMODE.

Change-Id: I71cead84151cc0411f7cc5cc13a87a281e7502c0
CRs-Fixed: 2245247
2018-05-22 04:56:48 -07:00
nshrivas
89b3d4261b Release 5.2.0.79P
Release 5.2.0.79P

Change-Id: If879929612811e2bc783cc7a88cd20e69cf5db73
CRs-Fixed: 774533
2018-05-22 00:45:32 -07:00
Dundi Raviteja
3aa01be35a qcacld-3.0: Remove ini and iwpriv support for changing SIFS burst mode
Remove support for enabling/disabling SIFS burst mode,
SAP DFS channel SIFS burst and SIFS burst duration through
ini parameter as well as through IOCTL

Change-Id: I3d43afa3c0c85eef470a29b9e7ad812079666278
CRs-Fixed: 2238175
2018-05-22 00:45:28 -07:00
nshrivas
617395b749 Release 5.2.0.79O
Release 5.2.0.79O

Change-Id: Ie711d0010d62f18e3cf8e09da1b2e8cc07511884
CRs-Fixed: 774533
2018-05-21 22:51:28 -07:00
Wu Gao
52084c1fdb qcacld-3.0: Refine disa head files
DISA head files include lots of not used public head files, and cause
compilation issue when disable PMO feature flag.

Change-Id: I287f845a3e9f923d042463c34abaedadb905d3b2
CRs-Fixed: 2243947
2018-05-21 22:51:28 -07:00
nshrivas
440a526abe Release 5.2.0.79N
Release 5.2.0.79N

Change-Id: I00a479a125df769a18dd256b512daf4142054364
CRs-Fixed: 774533
2018-05-21 21:47:55 -07:00
Ryan Hsu
c69185569b qcacld-3.0: populate board version information from wmi event
These board information are stored in the board file while the
calibration process. WMI service ready event will now carry them for host.
Append these board version information to the firmware version string.

Change-Id: Ieb5bc480bd0c2e387fcf6990dd192741f0b7cd6b
CRs-fixed: 2218963
2018-05-21 21:47:54 -07:00
Ryan Hsu
aadba074fa qcacld-3.0: Rearrange hdd_wlan_get_version out of wext files
To keep non-wext function out of wext.[c|h], rearrange it to main.[c|h]

And in order to make the interface more generic, change the interface
to take the buffer and length directly.

Change-Id: I1f64cc235b9dee6c574f871b020b0b61c8b427c8
CRs-fixed: 2228717
2018-05-21 21:47:50 -07:00
nshrivas
73bab848ab Release 5.2.0.79M
Release 5.2.0.79M

Change-Id: I246d4ac1aecb988e69349aeaad168a26b55b4130
CRs-Fixed: 774533
2018-05-21 17:45:33 -07:00
Varun Reddy Yeturu
8e94f725ed qcacld-3.0: Fix mac address check in lim_send_sme_mgmt_frame_ind
Broadcast mac address check is performed on an empty buffer pointer
before it is filled. Use the input frame pointer instead.

CRs-Fixed: 2191063
Change-Id: Ie02dcf05da70d52a0f3532b8d5647a7e8e0bcfe8
2018-05-21 17:45:28 -07:00
nshrivas
9a6afd1a1a Release 5.2.0.79L
Release 5.2.0.79L

Change-Id: I22971ef026221d00d6c12bfbb5599704b40ff4d9
CRs-Fixed: 774533
2018-05-21 10:26:27 -07:00
Tushnim Bhattacharyya
6610ff711f qcacld-3.0: Restrict the force SCC logic for STA+SAP only
Restrict the force SCC logic for STA+SAP only, driver shouldn't
use the force scc logic for STA+P2P GO.

Change-Id: I3e62256bc1d8fd35667e6413219077ddc30f0732
CRs-Fixed: 2243537
2018-05-21 10:26:27 -07:00
Rakshith Suresh Patkar
ee30192439 qcacld-3.0: Fix compilation issue in ol layer
Fix compilation issue seen in ol layer functions
due to mismatch between callback pointer type and
callback function signature.

Change-Id: I46bdf88c0d3e367e15e2a54229b237e2c9416319
CRs-Fixed: 2245498
2018-05-21 10:26:23 -07:00
nshrivas
add17bb45c Release 5.2.0.79K
Release 5.2.0.79K

Change-Id: I41ae1cd2eebeeea30ebc0ddfa1aec184a2264c76
CRs-Fixed: 774533
2018-05-21 08:27:56 -07:00
Himanshu Agarwal
ad4c039d2c qcacld-3.0: Remove force SAP ACS support from driver
Remove force SAP ACS support from driver as it is no longer needed
after hostapd based ACS is enabled permanently from framework.

Change-Id: Ib3b8bac0dcf45562596d89d0aa49e16a03f85499
CRs-Fixed: 2234858
2018-05-21 08:27:56 -07:00
nshrivas
4cef48b3ef Release 5.2.0.79J
Release 5.2.0.79J

Change-Id: I8ff35cf4955b0f402dab12ca2572fe51f94490c2
CRs-Fixed: 774533
2018-05-21 06:05:57 -07:00
Himanshu Agarwal
2785d2459b qcacld-3.0: Process setkey confirmation in sme callback
In a noisy enviornment setkey confirmation in SME queue
is not getting processed due to multiple beacons/probes
getting processed in PE queue which is of higher priority
than SME queue.

Instead of posting a message to SME queue, setkey confirmation
will run to completion using sme callback mechanism.

Change-Id: Ibe536dad13731e7086c5e0a9ed2a19c11f6e9193
CRs-Fixed: 2233210
2018-05-21 06:05:57 -07:00
nshrivas
83a6637820 Release 5.2.0.79I
Release 5.2.0.79I

Change-Id: I65b13bc619a18bd2304ea32c8662d2c06fa21f92
CRs-Fixed: 774533
2018-05-21 03:52:54 -07:00
Sravan Kumar Kairam
dd57ea349e qcacld-3.0: Initialize uninitialized variable
Current code in __hdd_hard_start_xmit function there is a possibility
of one variable uninitialized. Improve the code by initializing the
variable.

Change-Id: Ia2dbed83b35801087b93bbb336d13df95a78a8aa
CRs-Fixed: 2029588
2018-05-21 03:52:53 -07:00
Padma, Santhosh Kumar
4cdbf7d8dc qcacld-3.0: Add QDF_BUG to avoid use after free
There is a chance that cumulative peer_id_ref_cnt of different
peers can exceed peer ref cnt. This can result in use after free
issue during peer unref delete in ol_txrx_peer_remove_obj_map_
entries. Add QDF_BUG to catch such case and avoid access of peer
after delete.

Change-Id: I5a3cecc6a20747fce2fbf36a5ae733c42a3bc88b
CRs-Fixed: 2206589
2018-05-21 03:52:48 -07:00
Kiran Kumar Lokere
0205d84273 qcacld-3.0: Check user config HE caps to update session caps
Check user configuration for HE Tx beamformee and beamformer
while updating the caps into global or session configuration.

Change-Id: Ie355a6f208499dd389117c02b8510094c8fd08fd
CRs-Fixed: 2241779
2018-05-21 03:52:43 -07:00
nshrivas
7ddf7005f8 Release 5.2.0.79H
Release 5.2.0.79H

Change-Id: I4fee96baaf9a1a1fafe3a742c322c61c17238a4c
CRs-Fixed: 774533
2018-05-20 23:25:37 -07:00
Zhu Jianmin
83e8b126e9 qcacld-3.0: Fix memory leak in p2p oper chan change confirm action frame
In lim_oper_chan_change_confirm_tx_complete_cnf, need free frame buf
alloced in lim_p2p_oper_chan_change_confirm_action_frame, or buffer is
leaked.

Change-Id: Ic479427282742fb4fbbe28ab1acdf91e0a511340
CRs-Fixed: 2238603
2018-05-20 23:25:36 -07:00
nshrivas
1fb413e292 Release 5.2.0.79G
Release 5.2.0.79G

Change-Id: I3a4c9297a5ed7cda1d61f37dc1451b95944c9149
CRs-Fixed: 774533
2018-05-20 21:55:45 -07:00
Wen Gong
7952fbd708 qcacld-3.0: Add extscan feature flag
Add config flag to enable / disable extscan feature

Change-Id: Icb5087619964b729041e18127baba1b2796ed911
CRs-Fixed: 2226549
2018-05-20 21:55:45 -07:00
nshrivas
7c92db6da1 Release 5.2.0.79F
Release 5.2.0.79F

Change-Id: I7d8b01823e125611a6ab67ccfdf8121315838137
CRs-Fixed: 774533
2018-05-20 08:15:45 -07:00
Wu Gao
24466e3693 qcacld-3.0: Enable QDF ID allocation API
Enable QDF ID allocation API in Kbuild.

Change-Id: Id43b16175e59f40ad111b03439f34d63ea14c627
CRs-Fixed: 2242753
2018-05-20 08:15:44 -07:00
nshrivas
1e27263c40 Release 5.2.0.79E
Release 5.2.0.79E

Change-Id: I6fac3f325ad09c59002d81aa7f20effd09f6d7e1
CRs-Fixed: 774533
2018-05-19 22:14:31 -07:00
Kiran Kumar Lokere
a48cae1f5f qcacld-3.0: Fix HE Tx beamforming cfg parameter values
HE Tx beamforming config parameter setting fails due to incorrect
value range. Correct the HE Tx beamforming config parameter values

Change-Id: Idb0ada45417467122bd7473cca07d15cf54fd3cc
CRs-Fixed: 2244247
2018-05-19 22:14:30 -07:00
nshrivas
0cf71255e2 Release 5.2.0.79D
Release 5.2.0.79D

Change-Id: Ieea3e5aa7d5201ff5cabbc49dc0ff401a82aa602
CRs-Fixed: 774533
2018-05-19 10:56:46 -07:00
Naveen Rawat
fa2a100bac qcacld-3.0: Add implementation of get_station_stats
Add changes to support get station stats from within cp_stats
component.

Change-Id: Id685e9d94f185ee562f21d12d118e94a737a6a7e
CRs-Fixed: 2210338
2018-05-19 10:56:45 -07:00
nshrivas
306c9f178d Release 5.2.0.79C
Release 5.2.0.79C

Change-Id: If896b55bd349763cac060cc7419d4f0a2d20ae21
CRs-Fixed: 774533
2018-05-18 16:46:51 -07:00
Ashish Kumar Dhanotiya
5e138ea5a2 qcacld-3.0: Avoid NULL check for context in class A stats cb
In hdd_get_class_a_statistics_cb api, context is actually
cookie and it can be NULL if this is the first request. on
class A stats request, when hdd_get_class_a_statistics_cb is
invoked with context as NULL, the NULL check in callback
will not update the latest stats result and will return.

Change-Id: I8c33a0e82d9915a4b3d76e695ceab7ecd9301b89
CRs-Fixed: 2244767
2018-05-18 16:46:51 -07:00
Nachiket Kukade
caa2e84d5e qcacld-3.0: Add a NULL check on channels in IOCTL SETROAMSCANCHANNELS
User sends driver a list of roaming scan channels to set through IOCTL
SETROAMSCANCHANNELS. The parameters include the number of elements in
the array, followed by channel array and then a NULL character. But
when driver loops through the channel array it doesn't have a NULL
check. An erroneous number of elements passed by user may cause buffer
overread.

Add a NULL check on channels passed in IOCTL SETROAMSCANCHANNELS.

Change-Id: I7342aa5cf8e5267b7ed06a4e35b1ed882fb97893
CRs-Fixed: 2227039
2018-05-18 16:46:44 -07:00
Naveen Rawat
ea1564b784 qcacld-3.0: Fix tTxrateinfoflags as per linux coding guidelines
Fix tTxrateinfoflags as per linux coding guidelines, this will later
help move the struct to qcacmn.

Change-Id: I1911d25594aaecc7c166cf36b79111b61e6de457
CRs-Fixed: 2244834
2018-05-18 16:46:40 -07:00
nshrivas
2671c816b1 Release 5.2.0.79B
Release 5.2.0.79B

Change-Id: Ia7b5aa17721bf0da538907de828d1550bd0d23e8
CRs-Fixed: 774533
2018-05-18 12:14:40 -07:00
Nirav Shah
d21a2e3d6c qcacld-3.0: Featurize dp trace
Featurize dp trace to compile out cleanly.

Change-Id: I23b86459af605baa257af4ef62497f010b864215
CRs-Fixed: 2228465
2018-05-18 12:14:39 -07:00
Rajeev Kumar Sirasanagandla
551613d872 qcacld-3.0: Fix event size in GET_WIFI_INFO handler
While processing vendor command QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO,
respective handler wlan_hdd_cfg80211_get_wifi_info() is not allocating
memory for QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX in event buffer
and trying to populate radio_index with nla_put_u32(). Buffer-overflow
is avoided with buffer length check in nla api but error is returned.
Return of error for valid user input is incorrect.

To fix this, add size of radio index in event buffer size calculation.

Change-Id: I39973814ae9b10466b9d5e3492a42b745a7f2a5e
CRs-Fixed: 2230298
2018-05-18 12:14:36 -07:00
Nirav Shah
a3cc7195ef qcacld-3.0: Flow control Resize implementation
Flow control resize implementaion as part of
Genoa enhancements to reduce total desc requirement
from 3600 to 2000.

Change-Id: Iee5d3ff08dcea13c11632cd29e6edba0dc3e979f
CRs-Fixed: 2223553
2018-05-18 12:14:33 -07:00
nshrivas
b310fd7942 Release 5.2.0.79A
Release 5.2.0.79A

Change-Id: If80816d97e49b2bd43c3fe739b2baf8dbe7e3a84
CRs-Fixed: 774533
2018-05-18 03:34:40 -07:00
Dustin Brown
e7e71d3fe3 qcacld-3.0: Remove adapter parameter from start modules
hdd_wlan_start_modules() currently takes an adapter parameter in order
to do management frame event deregistration. Instead, do management
frame event deregistration during adapter stop for symmetry with the
event registration. This allows us to remove the adapter parameter
completely from hdd_wlan_start_modules().

Change-Id: Ifb4619c80a129b8ef4e84c597dd98004d5cd713d
CRs-Fixed: 2240850
2018-05-18 03:34:39 -07:00
nshrivas
953aeb2af4 Release 5.2.0.79
Release 5.2.0.79

Change-Id: I374533c16db40cf766be6147389f3c322d6b39f6
CRs-Fixed: 774533
2018-05-18 02:17:05 -07:00
Jeff Johnson
c97816c244 qcacld-3.0: wma: Fix misspellings
Address the following issues in the core/wma folder:
CHECK: 'accomodate' may be misspelled - perhaps 'accommodate'?
CHECK: 'acess' may be misspelled - perhaps 'access'?
CHECK: 'catagory' may be misspelled - perhaps 'category'?
CHECK: 'chnage' may be misspelled - perhaps 'change'?
CHECK: 'defintions' may be misspelled - perhaps 'definitions'?
CHECK: 'Intialize' may be misspelled - perhaps 'Initialize'?
CHECK: 'Intial' may be misspelled - perhaps 'Initial'?
CHECK: 'proces' may be misspelled - perhaps 'process'?
CHECK: 'progess' may be misspelled - perhaps 'progress'?
CHECK: 'refrence' may be misspelled - perhaps 'reference'?
CHECK: 'Relevent' may be misspelled - perhaps 'Relevant'?
CHECK: 'reponse' may be misspelled - perhaps 'response'?

Change-Id: Idc314b5a3a6945211581e2135cfaf9d0d5f69457
CRs-Fixed: 2241946
2018-05-18 02:17:05 -07:00
Jeff Johnson
698eacd7a7 qcacld-3.0: sme: Fix misspellings
Address the following issues in the core/sme folder:
CHECK 'accomodates' may be misspelled - perhaps 'accommodates'?
 (actually accommodated)
CHECK 'acknowledgement' may be misspelled - perhaps 'acknowledgment'?
CHECK 'becasue' may be misspelled - perhaps 'because'?
CHECK 'becuase' may be misspelled - perhaps 'because'?
CHECK 'catagory' may be misspelled - perhaps 'category'?
CHECK 'explictly' may be misspelled - perhaps 'explicitly'?
CHECK 'failue' may be misspelled - perhaps 'failure'?
CHECK 'fucntion' may be misspelled - perhaps 'function'?
CHECK 'infomation' may be misspelled - perhaps 'information'?
CHECK 'inteface' may be misspelled - perhaps 'interface'?
CHECK 'managment' may be misspelled - perhaps 'management'?
CHECK 'messsage' may be misspelled - perhaps 'message'?
CHECK 'Notifed' may be misspelled - perhaps 'Notified'?

As well as the following spotted during code review:
'sucsess' -> 'success'

Change-Id: Ieaa299d4dbc08c07f10aaf9d967336ac7b11d88d
CRs-Fixed: 2241947
2018-05-18 02:17:01 -07:00
Jeff Johnson
536249f659 qcacld-3.0: Rename csr_roam_save_connected_infomation
Rename csr_roam_save_connected_infomation() to fix spelling error:
'infomation' -> 'information'

Change-Id: I24d92a1dec5aba7599e9e764be4933e52c1f1f52
CRs-Fixed: 2241945
2018-05-18 02:16:58 -07:00
Pragaspathi Thilagaraj
1e5420a974 qcacld-3.0: Fix OOB read in iw_hdd_set_var_ints_getnone
From the IOCTL command WE_POLICY_MANAGER_PCL_CMD, we get the cds
concurrency mode as argument and pass it to cds_get_pcl to get
the pcl channel list. This concurrency mode parameter is used as
the array index to retrive the enum cds_pcl_type. If this value
is greater than CDS_MAX_NUM_OF_MODE an OOB read will occur in
iw_hdd_set_var_ints_getnone.

Add check to validate the input cds mode argument against the macro
CDS_MAX_NUM_OF_MODE. Return error if it is violated.

Change-Id: Iaa79d9698e0074a31a9c3f2396bd06d436d1e349
CRs-Fixed: 2216048
2018-05-18 02:16:55 -07:00