Commit Graph

11202 Commits

Author SHA1 Message Date
nshrivas
45530e7ce9 Release 5.2.0.90M
Release 5.2.0.90M

Change-Id: Ide69bd005ae7c81426010f0a12503508d3719006
CRs-Fixed: 774533
2018-07-30 16:34:07 -07:00
Jun Wang
92cd83692b qcacld-3.0: remove time-consuming debug log
print format "pS" in module will call module_address_lookup in
kernel, which will disable preempt. This could result in some
performance issues, like block rt task vsync_retire_work and
then cause janks.

Change-Id: I524b03315df7b1f6464912d2c9ce74b8dc33ea1a
CRs-Fixed: 2267779
2018-07-30 16:34:06 -07:00
nshrivas
1c1d573ae6 Release 5.2.0.90L
Release 5.2.0.90L

Change-Id: Ibba84e234674417a474d24f6a6fc917c1934fe3b
CRs-Fixed: 774533
2018-07-30 14:08:30 -07:00
Liangwei Dong
4bfffb4487 qcacld-3.0: Fix SAP 11g no ht protection failure
1.Scan entry uses MGMT_SUBTYPE_BEACON to specify
the frame type. Correct lim_handle_sap_beacon
to use MGMT_SUBTYPE_BEACON to check frame type.

2.lim_allocate_and_get_bcn return corrected
pkt and pkt info.

Change-Id: I607be66a376f5121d100db52a55faf32c088a94a
CRs-Fixed: 2282274
2018-07-30 14:08:29 -07:00
nshrivas
407ed04a41 Release 5.2.0.90K
Release 5.2.0.90K

Change-Id: If8c9e4e2c8f0bf954a9600c37e298905b4997e23
CRs-Fixed: 774533
2018-07-30 09:53:13 -07:00
Vignesh Viswanathan
cbbc358095 qcacld-3.0: Modify Default value for Switch to 11n OUI ini
Currently defined default value for gActionOUISwitchTo11nMode leads
to vendor APs which don't require the WAR also to be identified
for forcing 11n connection.

Fix the default value to limit the WAR to only the required vendor
AP.

Change-Id: Icecd5a3a92a35eb4d0a7eb4ae156aed7dcfbfb86
CRs-Fixed: 2276057
2018-07-30 09:53:13 -07:00
Jianmin Zhu
a0d8e00d02 qcacld-3.0: Fix double free in csr_roaming_state_config_cnf_processor
The beacon ie of AP to connect in sme cmd may be freed and set to
NULL in csr_roam if csr_roam_issue_join failed,
scan_result->Result.pvIes may be different in start and end of
csr_roaming_state_config_cnf_processor.

Fixed by using a local bool val to mark whether beacon ie is new
malloced and need free.

Change-Id: I04ec952273a28a3b8a215dd6812bba213ff5309a
CRs-Fixed: 2284311
2018-07-30 09:53:10 -07:00
nshrivas
5d54cb1ba4 Release 5.2.0.90J
Release 5.2.0.90J

Change-Id: If4bf0838f82fb5bec7eafe3999d57504f8aabf66
CRs-Fixed: 774533
2018-07-30 02:53:32 -07:00
Dundi Raviteja
e232cf1691 qcacld-3.0: Use request manager framework for LL stats response event
We are transitioning the usage of LL stats response event
to request manager framework.

Change-Id: Ice8b3d53beb47b345ed569f2b4bf790e9f5ce506
CRs-Fixed: 2274933
2018-07-30 02:53:31 -07:00
nshrivas
afb27b7d6c Release 5.2.0.90I
Release 5.2.0.90I

Change-Id: Ifad7bd6264088058521f817f7ab2a00f916fa579
CRs-Fixed: 774533
2018-07-30 00:49:03 -07:00
Ashish Kumar Dhanotiya
2853ba04f7 qcacld-3.0: Implement GET_DISABLE_CHANNEL_LIST driver command
Propagation from prima to qcacld-3.0

Implement GET_DISABLE_CHANNEL_LIST driver command to get disable
channel list programed by SET_DISABLE_CHANNEL_LIST driver command.

Change-Id: Ib741e1cd23cef105314325aaec86feb50f36a181
CRs-Fixed: 2206336
2018-07-29 10:11:51 -07:00
nshrivas
41dbf327c7 Release 5.2.0.90H
Release 5.2.0.90H

Change-Id: I276414694d189b280ddaf89343ffe4a24aecae8d
CRs-Fixed: 774533
2018-07-27 12:35:00 -07:00
Dundi Raviteja
cc95c56e15 qcacld-3.0: Remove hdd context validation in wlan_hdd_disconnect
If driver is removing while STA is in connected state, disconnect
is not happening because hdd context validation will not be success
while driver unload is in progress.

To address this issue, remove validation of hdd context in
wlan_hdd_disconnect to allow disconnection while driver unload
is in progress.

Change-Id: Ia10aa9237a30490f3085458ab38ce27c4eeebaf0
CRs-Fixed: 2284198
2018-07-27 12:35:00 -07:00
Ajit Pal Singh
8184e939b6 qcacld-3.0: Init tx_mutex in pdev_attach
Initialise spinlock: tx_mutex in pdev_attach instead of
pdev_post_attach as it may be accessed
in ol_tx_flow_ct_unpause_os_q() just after FW download.

Change-Id: I9de2eacd573420d23bc3a71a52dfb27bc1cfdab5
CRs-Fixed: 2285503
2018-07-27 12:34:57 -07:00
nshrivas
1449648511 Release 5.2.0.90G
Release 5.2.0.90G

Change-Id: I73d219578f50ed8109899b35b0cf0d120273ce77
CRs-Fixed: 774533
2018-07-27 09:09:43 -07:00
Nirav Shah
790d943594 qcacld-3.0: Add per module logging macros without function/line info
Add per module logging macros without function/line info
to avoid adding function/line info where it is not required.

Change-Id: Id808fef623b82cec38fc31071ef384f3ff0c92da
CRs-Fixed: 2278874
2018-07-27 09:09:42 -07:00
Ashish Kumar Dhanotiya
3f78e68b92 qcacld-3.0: Add support to disable channel list
Propagation from prima to qcacld-3.0

Add support to disable channel list received with command
"SET_DISABLE_CHANNEL_LIST".

As part of this command, number of channels and list
of that many channels should be given. When SAP comes up, disable
the channels received in the command. If any of the interface
is up on any of the channel from the list, first disconnect
the interface and start the interface on the new channel.

Change-Id: I3c7810bfde78878a3e60570a13bf2741e1da599b
CRs-Fixed: 2205305
2018-07-27 09:09:37 -07:00
nshrivas
dbd9972463 Release 5.2.0.90F
Release 5.2.0.90F

Change-Id: I9ffa1f0e531f6354cb016a3fcecdcc493a09b82e
CRs-Fixed: 774533
2018-07-27 06:42:10 -07:00
Ashish Kumar Dhanotiya
7e345d04dd qcacld-3.0: Add data validation for avoid frequency command
Currently in avoid frequency vendor command, data validation
is not being done, since this data comes from userspace driver
should not be using this data pointer without validation.

To address this issue add validation for data pointer and data
length received in driver.

Change-Id: I7b56e2ddcbcb5e98dd93d152033db48063e772d3
CRs-Fixed: 2252793
2018-07-27 06:42:10 -07:00
nshrivas
b256327523 Release 5.2.0.90E
Release 5.2.0.90E

Change-Id: I8e051111deb91d4db8fb86d3933c2697791a7e31
CRs-Fixed: 774533
2018-07-26 15:36:53 -07:00
Pragaspathi Thilagaraj
b37dad385f qcacld-3.0: Serialize the command eSmeCommandDelStaSession
The command eSmeCommandDelStaSession issues vdev delete to
firmware. As this command eSmeCommandDelStaSession is not
serialized, this may issue delete vdev before the peers for the
vdev are deleted, resulting in fw assert. Serialization should
be brought in for this command, so that first eSmeCommandRoam
command will do vdev_stop-->remove_peer-->vdev_down and then
eSmeCommandDelStaSession will be processed which will send vdev
delete.

Post the command eSmeCommandDelStaSession to the serialization
module and WMA_DEL_STA_SELF_REQ will be posted from the sme
eSmeCommandDelStaSession handler.

Change-Id: I60fcbf622b961162c647db3638b5e019c5231971
CRs-Fixed: 2270982
2018-07-26 15:36:53 -07:00
nshrivas
13f092aea5 Release 5.2.0.90D
Release 5.2.0.90D

Change-Id: I0a6403de38f56a7bb3fc762636cf41fd261236d8
CRs-Fixed: 774533
2018-07-26 12:23:20 -07:00
Jeff Johnson
bffd274ba3 qcacld-3.0: Remove session_id from nan_datapath_peer_ind (Step 2)
Currently struct nan_datapath_peer_ind contains the following:
	uint8_t session_id;

This is problematic since "session_id" is a legacy concept and should
not be used in the converged project. Fortunately this field does not
actually serve any purpose. But in order to cleanly remove it a 3-step
approach is required.

Step 1 (qcacld Change If6cf48ccbfe87b23b275720df51c6cc26af9fa5e):
Remove the logic from the converged NAN code which currently reads
this field and logs the value.

Step 2 (this change):
Remove the logic from the legacy NAN code which sets this field.

Step 3 (qcacld Change Ibeb8007c96ae1a902bfd7dd99a42ba4a291a1dc6):
Remove the session_id field from struct nan_datapath_peer_ind.

Change-Id: I2819556d48a9dd901158aaa04d6bda9c36f33012
CRs-Fixed: 2284400
2018-07-26 12:23:19 -07:00
nshrivas
4cfe234197 Release 5.2.0.90C
Release 5.2.0.90C

Change-Id: Ibdc15249bd77d5c5ccac285042ccde81132e85fa
CRs-Fixed: 774533
2018-07-25 22:57:58 -07:00
Jianmin Zhu
d46bc4657f qcacld-3.0: Avoid buffer overflow in wma_process_bip
If 11w is enabled, mmie should be included in broadcast
multicast rmf, length check need consider it to avoid buffer
overflow

CRs-Fixed: 2270117
Change-Id: I6c2ebe18fb5b6e4246ba6d28c1dbc55175279e30
2018-07-25 22:57:58 -07:00
nshrivas
96dca9e04b Release 5.2.0.90B
Release 5.2.0.90B

Change-Id: Ie7c9aad55985811dffe1930c639aec8d83fc674a
CRs-Fixed: 774533
2018-07-25 14:43:34 -07:00
Dustin Brown
29533f2ca1 qcacld-3.0: Check for vdev/pdev leaks during SSR
Currently, all resource leaks are skipped during the SSR reinit stage.
However, recently added vdev and pdev leak checks apply equally as well
to SSR reinit. During SSR do as many resource leak checks as possible,
while retaining the entire set for normal use cases.

Change-Id: I33248a9fb0fbacddf9ea8682ff984290712c29d3
CRs-Fixed: 2284384
2018-07-25 14:43:33 -07:00
nshrivas
a935b1377f Release 5.2.0.90A
Release 5.2.0.90A

Change-Id: Ic45fe0b3253c9999aac494306a4f5c255602cb3e
CRs-Fixed: 774533
2018-07-25 11:52:11 -07:00
jiad
3a321f3cfb qcacld-3.0: Fix WLAN IPA disconnection handling
When wlan driver unloading is in progress, IPA_OPCODE_TX/RX_SUSPEND
will not be processed and resource_unloading may be left as true.
Moroever since driver will be unloaded, IPA_OPCODE_TX/RX_SUSPEND
interaction between Host and FW will not be necessary.

Fix is to disable IPA pipes directly when handling disconnection
if wlan driver unloading is in progress.

Change-Id: Ia4af1ab04052b1a9bab44105760de50ad6263dbb
CRs-Fixed: 2279044
2018-07-25 11:52:11 -07:00
Nachiket Kukade
ef86101690 qcacld-3.0: Remove code handling blacklist and whitelist OUI
This is an older implmenetation of handling blacklist and whitelist
OUI's. Hostapd doesn't send this information in start_ap now. There
is a possible out of bound memory access happening while parsing an
IE with this code. Remove the code to avoid security risk.

Remove redundant code handling blacklist and whitelist OUI IE's.

Change-Id: Ib16d26d6766bcffb53de34dca77073a3e986eee2
CRs-Fixed: 2239897
2018-07-25 11:52:08 -07:00
nshrivas
6ca91d61e1 Release 5.2.0.90
Release 5.2.0.90

Change-Id: I2e1443baee607e7b366a24a1eed5a1dc680c87e5
CRs-Fixed: 774533
2018-07-25 09:40:44 -07:00
Rachit Kankane
154559caad qcacld-3.0: Reduce MAX_BBS and MAX_PEERs for Genoa
Max 3 BSS sessions and 10 peers are required in Genoa.
To support this, reduce SIR_MAX_SUPPORTED_BSS to 3 and
SIR_SAP_MAX_NUM_PEERS to 10.

Change-Id: Ic773b5b38193d446288321c2dfd740f6de57704e
CRs-Fixed: 2283825
2018-07-25 09:40:43 -07:00
Pragaspathi Thilagaraj
ea97fe9ff1 qcacld-3.0: Fix mem leak in wma_roam_synch_frame_event_handler
The function wma_roam_synch_frame_event_handler, memory is
allocated for iface->roam_synch_frame_ind.bcn_probe_rsp,
iface->roam_synch_frame_ind.bcn_reassoc_req,
iface->roam_synch_frame_ind.bcn_reassoc_rsp when the wmi event
WMI_ROAM_SYNCH_FRAME_EVENT is received. This event is followed
by a WMI_ROAM_SYNCH_EVENT from the firmware where the host
copies the bcn_probe_rsp, bcn_reassoc_req, bcn_reassoc_rsp to
the structure roam_synch_ind_ptr and frees the allocated memory.
In this flow memory leak can happen in following cases:
 1. Firmware sends multiple cascade of WMI_ROAM_SYNCH_FRAME_EVENT
the host allocates bcn_reassoc_req, bcn_reassoc_rsp and
bcn_probe_rsp with out freeing the previous instance.
 2. Firmware sends WMI_ROAM_SYNCH_FRAME_EVENT with either
bcn_reassoc_req or bcn_reassoc_req or bcn_probe_rsp NULL or all
the three are NULL.
 3. Firmware sends WMI_ROAM_SYNCH_FRAME_EVENT having
bcn_reassoc_req bcn_reassoc_req and bcn_probe_rsp. Then it sends
the WMI_ROAM_SYNCH_EVENT with non zero bcn_reassoc_req_len or
bcn_reassoc_rsp_len or bcn_probe_rsp length.
 4. Host doesn't free the allocated memory in
wma_roam_synch_frame_event_handler during failure cases.

Check if received iface->roam_synch_frame_ind has non NULL
bcn_probe_rsp, bcn_reassoc_req, bcn_reassoc_rsp and free the
same before allocating new memory. Also free the allocated
bcn_probe_rsp, bcn_reassoc_req, bcn_reassoc_rsp in failure
return cases.

Change-Id: I2b76769d09fd61929f7837cb8661d778cd2f881a
CRs-Fixed: 2282413
2018-07-25 09:40:39 -07:00
Ajit Pal Singh
cf33f9653b qcacld-3.0: sdio: Control HL flow control through defconfigs
Do not enable HL Flow Control config flags in Kbuild.
Instead depend on defconfig settings to enable/disable HL Flow
control flags.

Change-Id: I734c4cd26d056ce28ce064e8d353075ad22e39ee
CRs-Fixed: 2284686
2018-07-25 09:40:36 -07:00
Nirav Shah
d6fa0f8cd8 qcacld-3.0: Add compilation flag for enter/exit macros
Map all enter/exit log macros to enter/exit QDF TRACE macro
to provide option to compile out enter/exit logs if required.

Change-Id: I0c6cd633705e820fcfeb47e3f81a3522c9ef1974
CRs-Fixed: 2274850
2018-07-25 09:40:33 -07:00
nshrivas
9151602490 Release 5.2.0.89Z
Release 5.2.0.89Z

Change-Id: Ia0ac605b12c874a1d33be20078aeb3c645dd2fc3
CRs-Fixed: 774533
2018-07-25 07:49:49 -07:00
Vignesh Viswanathan
6177c7e8ec qcacld-3.0: Disable sending of solicited BTM query frame by default
Change the btm_offload_config INI default to disable the sending of
solicited BTM query frame from the host.

Change-Id: Ie1d1eeff268e445ed19c62413712ab2178c7ba54
CRs-Fixed: 2279249
2018-07-25 07:49:49 -07:00
nshrivas
412ddb6b0a Release 5.2.0.89Y
Release 5.2.0.89Y

Change-Id: I10ea03bebf949d267f8634d756b48490903355bf
CRs-Fixed: 774533
2018-07-25 01:24:21 -07:00
Nirav Shah
ef7edb94b6 qcacld-3.0: Compile mp_dev.c file only in pci/snoc builds
Compile mp_dev.c file only in pci/snoc builds.

Change-Id: I471914a904862d3fdf8c9e37df09629f32091dfc
CRs-Fixed: 2280690
2018-07-25 01:24:20 -07:00
Dundi Raviteja
eab3b8d472 qcacld-3.0: Add support to send MWS-COEX configurations to FW
Add support to send below two MWS-COEX configurations to FW
1. Enable/disable MWS-COEX 4G (LTE) Quick FTDM
2. Set MWS-COEX 5G-NR power limit

Change-Id: I14656ced91c9dec2be85590e6f6c1e7497505a28
CRs-Fixed: 2265352
2018-07-25 01:24:17 -07:00
nshrivas
5b33d62a25 Release 5.2.0.89X
Release 5.2.0.89X

Change-Id: Ibdf489cb32c474c56c78e55057067d14d66c9793
CRs-Fixed: 774533
2018-07-24 18:52:53 -07:00
Dustin Brown
da351e3db0 qcacld-3.0: Remove %pS from wlan_hdd_validate_context
The %pS format specifier causes a symbol lookup which disables
preemption in the Linux kernel. As such it is advisable to never use %pS
where __func__ could be used instead. Replace usage of %pS in
wlan_hdd_validate_context() with __func__ passed from the caller
instead.

Change-Id: I2b170bd6098f4acf2a4ccab537f546ba8de154ba
CRs-Fixed: 2283619
2018-07-24 18:52:52 -07:00
Wu Gao
4a1ec8cc7a qcacld-3.0: Cleanup roc and tx action before suspending mc thread
Scheduler thread enter suspend state when calling p2p callback from
pmo, and it can't execute cleanup task on time in p2p suspend handler.
So, cleanup roc and tx action frame before suspend mc thread. Add
cleaning up tx action frame by vdev in hdd layer.

Change-Id: Ib0ef1cb3a73c5a48b3c365935a6d5b9307d2aae0
CRs-Fixed: 2283298
2018-07-24 18:52:49 -07:00
nshrivas
621616f201 Release 5.2.0.89W
Release 5.2.0.89W

Change-Id: I405ec914f44252b52b77c9c09e6ba6293712daaf
CRs-Fixed: 774533
2018-07-24 16:58:25 -07:00
Wu Gao
bdb7f27bde qcacld-3.0: Enable TDLS configures based on converged CFG component
Enable TDLS configures based on converged cfg component and remove
legacy codes.

Change-Id: I77221a8493c8a20efdae9e714a98da74f5c6b6ed
CRs-Fixed: 2277572
2018-07-24 16:58:25 -07:00
Abhinav Kumar
85a4bb876a qcacld-3.0: Host sends VDEV_DELETE cmd to fw before stop_bss
When stop_ap command comes from userspace, __wlan_hdd_cfg80211_stop_ap
calls sap_fsm to change the states of SAP from started to disconnect.
In order to change SAP states, __wlan_hdd_cfg80211_stop_ap sends
WMI_VDEV_STOP_CMDID followed by WMI_VDEV_DOWN_CMDID and
WMI_VDEV_DELETE_CMDID to fw. After the successful change in state of
SAP machine, driver invokes an HDD callback, hdd_hostapd_sap_event_cb
for cleanup and subsequently invokes hdd_softap_stop_bss to reclaim all
resources. This API sends IPA_OFFLOAD_ENABLE_DISABLE cmd to fw for the
VDEV on which SAP started. Which results assert in firmware as host
sends HDD IPA event for the VDEV which is already deleted while changing
the state of SAP.

Fix is to send HDD_IPA_AP_DISCONNECT IPA events before stop BSS.

Change-Id: Ief9318bb476b480fd52f4155a0788a34c1e2ed53
CRs-Fixed: 2276125
2018-07-24 16:58:21 -07:00
nshrivas
f573558c00 Release 5.2.0.89V
Release 5.2.0.89V

Change-Id: I9d016127012bebe4d0a7fda12d98babe6a6276aa
CRs-Fixed: 774533
2018-07-24 15:10:50 -07:00
Jeff Johnson
62cd6803a7 qcacld-3.0: Remove tHalStopType
There are multiple places where a tHalStopType parameter is passed but
unused. This is a historical artifact, so remove all instances of it.

Change-Id: Iebcbbac580495a376b7456b3a2901f33c2474f83
CRs-Fixed: 2283460
2018-07-24 15:10:49 -07:00
Jiachao Wu
52c060a2c4 qcacld-3.0: Check wma handler when get phy mode
Check NULL pointer in wma_chan_phy_mode.

Change-Id: I137433aa55cba182651f9e12bc5edca80b0b3bb7
CRs-Fixed: 2283243
2018-07-24 15:10:46 -07:00
Nirav Shah
9272dbbcba qcacld-3.0: Compile wlan_cfg.c file only in case of lithium dp
Compile wlan_cfg.c file only in case of lithium dp.

Change-Id: If86345f82ac10d26ff4493c21e6942cb33d5acf5
CRs-Fixed: 2280694
2018-07-24 15:10:43 -07:00