Commit Graph

19262 Commits

Author SHA1 Message Date
Pankaj Singh
9dcc7e0e82 qcacld-3.0: Tdls avoid peer access after peer deletion
Currently, peer can be accessed after deletion in hdd because
cdp_clear_peer called via tdls_process_del_peer_rsp
tries to remove peer from physical device after deletion of
peer in datapath.

Fix is to remove cdp_clear_peer from hdd as it is handled by
cdp_peer_delete.

Change-Id: Ibdeb9a2a8dcf3318d66a48b9e9c7ca4d5cd74cb3
CRs-Fixed: 2663555
2020-04-24 17:09:36 -07:00
Abhinav Kumar
23671b27af qcacld-3.0: Fix uninitialized parameters
Remove unused parameter "pmkid_index" in
csr_lookup_pmkid_using_bssid().

Change-Id: Ieb8d0c8225fce65e25d6e3d97b5d0bd05d1a7154
CRs-Fixed: 2668234
2020-04-24 17:09:30 -07:00
Pankaj Singh
8e2e7b47a3 qcacld-3.0: Don't send peer update after peer delete
During tdls peer delete, wmi command WMI_PEER_DELETE has been
send but later on from driver wmi command for peer update is
send without checking for peer reference before sending to fw.

Fix, to check for peer reference before posting the cmd to fw.

change-ID: I216d1ad726af3369c227ae566e22949cadb8300c
CRs-Fixed: 2667811
2020-04-24 17:09:25 -07:00
Mohammed Siddiq
b59cdd31cd qcacld-3.0: Add pld pcie code to handle hang event data info
Add code in pld pcie to handle hang event data and length received
from platform driver.

Change-Id: Ibc1b667b6127e2ce6b666e9007bf725ea7e07760
2020-04-24 17:09:19 -07:00
sheenam monga
ea09f91ec3 qcacld-3.0: Update beacon rpt error code
Currently, There is no check for new report to find if
previous beacon report request is in progress.
So whenever a new beacon report request comes,
it is processed without consideration of any ongoing
beacon request processing.

Fix is to add a check of request in progress and append
err code BCN_RPT_ERR_PREVIOUS_REQUEST_PROGRESS in
measurement report response. To find that curr report
request is in progress, add a check
mac_ctx->rrm.rrmPEContext.pCurrentReq[index]. For valid
mac_ctx->rrm.rrmPEContext.pCurrentReq[index] err vsie
will append.

Change-Id: I91127c5c9ccaa19f20c29c85524b89b873e02e17
CRs-Fixed: 2668127
2020-04-24 17:09:13 -07:00
nshrivas
4731023597 Release 5.2.0.183
Release 5.2.0.183

Change-Id: Ic7bf753cc0497e84d4bb2895d9a1c65a61efb586
CRs-Fixed: 774533
2020-04-24 08:57:30 -07:00
Dundi Raviteja
259898237f qcacld-3.0: Check rmf status only for required frames
rmf status is applicable only for action/deauth/disassoc frames,
so check rmf status only for those frames, this can reduce
overhead of checking rmf status for each and every management frame.

Change-Id: I4fccf921051d624d01e94ee6ef8d9a6b170c7675
CRs-Fixed: 2656967
2020-04-24 08:57:30 -07:00
nshrivas
546b2212ab Release 5.2.0.182Z
Release 5.2.0.182Z

Change-Id: I1b80a52e74c222edd46e8259d587c92fffdc12b5
CRs-Fixed: 774533
2020-04-24 03:40:16 -07:00
sheenam monga
89a452fb6d qcacld-3.0: Conditional compilation of akm suites
Currently, in hdd_sta_akm_suites akm suites are added
without verifying that these are supported by kernel
or not. Support for WLAN_AKM_SUITE_8021X_SUITE_B and
WLAN_AKM_SUITE_8021X_SUITE_B_192 akm suites is added
from kernel 4.12 that can cause compilation issue for
kernel version lesser than 4.12.

Fix is to add a check of  kernel version for
WLAN_AKM_SUITE_8021X_SUITE_B and
WLAN_AKM_SUITE_8021X_SUITE_B_192 suites before adding
as an element in hdd_sta_akm_suites.

Change-Id: Id8c5d1e01da62d63cfe99353e5f9dae5814baaf9
CRs-Fixed: 2667625
2020-04-24 03:40:16 -07:00
nshrivas
932afb3474 Release 5.2.0.182Y
Release 5.2.0.182Y

Change-Id: I5b098f5e6270e813d417b049b021db2cec262416
CRs-Fixed: 774533
2020-04-23 22:41:53 -07:00
Jianmin Zhu
6f122afe83 qcacld-3.0: Validate wma handle before using it
Validate wma handle before using it

Change-Id: I3c78a21bc515422d5443bdac7c2fc897e6d51cff
CRs-Fixed: 2668303
2020-04-23 22:41:52 -07:00
nshrivas
ee7e929a8b Release 5.2.0.182X
Release 5.2.0.182X

Change-Id: I9b904e89c3771a5a24a70be69d9146c433b497c3
CRs-Fixed: 774533
2020-04-23 16:26:35 -07:00
gaurank kathpalia
40d08f88c4 qcacld-3.0: Do not send BLM list to FW if recovering
Do not send the reject AP list to FW if the driver
is in recovering state (SSR) as the FW is already
down.

Change-Id: I31d815e215ca703574348a287f294da46937670f
CRs-Fixed: 2667934
2020-04-23 16:26:35 -07:00
nshrivas
97d3665532 Release 5.2.0.182W
Release 5.2.0.182W

Change-Id: I5b972a0ef8281dfddea324840f51456c603e963a
CRs-Fixed: 774533
2020-04-23 13:12:24 -07:00
Jingxiang Ge
638ff0c744 qcacld-3.0: Supsend fw firstly when ready event timeout
In case wait for ready event timeout from fw, need to
suspend fw firstly, otherwise fw is not aware host
will free resources.

Change-Id: Ifb7ab7fcf0cf468d59dc462dfdb27851fa4e596e
CRs-Fixed: 2669433
2020-04-23 13:12:24 -07:00
nshrivas
727dd8191b Release 5.2.0.182V
Release 5.2.0.182V

Change-Id: Ia366de8aea027f7e8f7ecbc32395bea317d678d3
CRs-Fixed: 774533
2020-04-23 11:32:15 -07:00
gaurank kathpalia
3935335687 qcacld-3.0: Start the SAP if force SAP ini is set
Currently, the driver trims the channel list with
the PCL if external acs policy ini is set, and
if the channels are unsafe then that can lead
to 0 channels and the SAP can fail.

Fix is to check whether the force SAP start ini
is set and override the channel.

Change-Id: If245bf27deda0f6022343d7a175520fdd92d106b
CRs-Fixed: 2667742
2020-04-23 11:32:14 -07:00
nshrivas
472b23379b Release 5.2.0.182U
Release 5.2.0.182U

Change-Id: Ib8c6796a2814c90e30c4c63fb46a435b124e9431
CRs-Fixed: 774533
2020-04-23 07:42:26 -07:00
Alan Chen
ecb37344d6 qcacld-3.0: Add debug panic if FW ready event is timed out
If FW ready event is timed out, then add debug panic such that we can
collect FW ram dump reliably.

Change-Id: I61f19023675ec6d7bb4ff882d4a08f0ffcee1607
CRs-Fixed: 2670314
2020-04-23 07:42:26 -07:00
nshrivas
df6084fb28 Release 5.2.0.182T
Release 5.2.0.182T

Change-Id: I7f24ddbfa9122a56731d8a2d4f922346ae4ce681
CRs-Fixed: 774533
2020-04-23 04:44:49 -07:00
Utkarsh Bhatnagar
d84070d054 qcacld-3.0: KW issue in wma_update_phymode_on_roam
vdev_mlme was not checked for null before getting dereferenced

Change-Id: I09a696b66304cce525ca6ec382f51799b1b64daf
CRs-Fixed: 2669335
2020-04-23 04:44:49 -07:00
Will Huang
15dcf8301f qcacld-3.0: Fix Static Analyze defect in sme_qos_ft_handoff_required()
In function sme_qos_ft_handoff_required(), CSR_GET_SESSION() is
possible to return NULL pointer, so add check before de-reference it.

Change-Id: Iee4e1d03da550969b4da1b746e4325f59ab72146
CRs-Fixed: 2669223
2020-04-23 04:44:32 -07:00
nshrivas
1cb202c8c9 Release 5.2.0.182S
Release 5.2.0.182S

Change-Id: I508afc97ab7a9aaeea724f070f7ecddc1b2abd48
CRs-Fixed: 774533
2020-04-22 23:59:35 -07:00
Gururaj Pandurangi
8ccb6a72e2 qcacld-3.0: Add support for peer_delete_all in sap
Currently, only broadcast disassociation is supported
and deauth is sent in a unicast manner.
With peer delete all support, HDD sends a single call
to PE for broadcast deauth request. PE module sends a
single broadcast deauth frame and on TX completion,
calls vdev_mgr_peer_delete_all_send. This issues the
new WMI_VDEV_DELETE_ALL_PEER_CMDID to FW to cleanup
peers entries corresponding to VDEV ID and also flush
TIDS internally.
On receiving the peer delete all response, target_if
cleans object manager entries and datapath cleans up.
But PEER unmap is done iterating through all peer entries
individually. After this a single eSAP_STA_DISASSOC_EVENT
is received in HDD signalling the completion of broadcast
deauth procedure.

Change-Id: I928461606154380eef21a02cc7306921ceb9e16e
CRs-Fixed: 2585005
2020-04-22 23:59:18 -07:00
Rajasekaran Kalidoss
62a62e6d78 qcacld-3.0: Reject assoc_req with RSNIE in SAP open network
If STA sends RSN IE in assoc_req for SAP in open network
then check this scenario and reject the request. This prevents
Host from sending WMI_PEER_NEED_PTK_4_WAY in peer
flags which results in a firmware assert.

Change-Id: I8696c9ae33670d019a9c662a3fa9420311fa0629
CRs-Fixed: 2625911
2020-04-22 23:59:00 -07:00
nshrivas
fe42f5d598 Release 5.2.0.182R
Release 5.2.0.182R

Change-Id: I336b494c3856c5ceb1234665c66eab6277711148
CRs-Fixed: 774533
2020-04-22 21:51:53 -07:00
Aditya Kodukula
91b7d01c3f qcacld-3.0: Align feature flag WLAN_POWER_DEBUG properly for power stats
The WLAN_POWER_DEBUG feature flag for power stats is not properly aligned
in the commit Ic395f393580fcd59faa4e4676f67a39ff37bdd1a and hence it is
addressed in this change.

Change-Id: I40236efa31e1d832884984536597122c04ecc269
CRs-Fixed: 2668142
2020-04-22 21:51:53 -07:00
nshrivas
6160bcb575 Release 5.2.0.182Q
Release 5.2.0.182Q

Change-Id: I9becb6ace060d66d05eb5d43f8376031e4ae5610
CRs-Fixed: 774533
2020-04-22 14:02:26 -07:00
Nirav Shah
851c4068eb qcacld-3.0: Enable inline sw_index update for QCN7605
Enable inline sw_index update for QCN7605 as download complete
interrupt is disabled.

Change-Id: Id769275fdbd28a3af6323f2d98de519f8cf1970b
CRs-Fixed: 2649842
2020-04-22 14:02:26 -07:00
nshrivas
b38d91ca2a Release 5.2.0.182P
Release 5.2.0.182P

Change-Id: Iae3b3257b2bc131e4a1b37f817347f69c6f42aac
CRs-Fixed: 774533
2020-04-22 06:22:40 -07:00
Liangwei Dong
61c24d2129 qcacld-3.0: Fix SAP start failure on 5G 160Mhz
Set NL80211_RRF_AUTO_BW flags for all regrules.
Kernel will calculate max supported bandwidth based on
the NL80211_RRF_AUTO_BW flag for adjacent frequency
ranges dynamically.

Change-Id: I86e6dee2c58f92b6cf4d8a2c11f510cef948243b
CRs-Fixed: 2661969
2020-04-22 06:22:31 -07:00
nshrivas
51dec1714a Release 5.2.0.182O
Release 5.2.0.182O

Change-Id: I25aae75fdea5bdca4ca679148d3b5f860008ac81
CRs-Fixed: 774533
2020-04-22 04:21:44 -07:00
Bapiraju Alla
03e71a88f3 qcacld-3.0: Update check for disabling auto ps timer
Currently auto ps timer is disabled when device mode is not monitor mode.
This is causing issue when device mode is FTM when ps timer won't be
started.

To resolve this, add check for FTM mode also before disabling auto ps
timer.

Change-Id: I7cf493f10676e170fcb7e50e343bb0d20de4d89c
CRs-Fixed: 2667942
2020-04-22 04:21:44 -07:00
nshrivas
20cd5b4242 Release 5.2.0.182N
Release 5.2.0.182N

Change-Id: Id26006bd43f985fe91e70c9bdb48ea55a14042b6
CRs-Fixed: 774533
2020-04-22 02:14:59 -07:00
nshrivas
f44ba90a0b qcacld-3.0: Remove sta_sap_scc_on_dfs_chan
sta_sap_scc_on_dfs_chan isn't used in the module.
Hence, Removed from mac_context and csr_config_param.

Change-Id: I10321c26d2244b3619b062a04f73f57105a81685
CRs-Fixed: 2666696
2020-04-22 02:14:58 -07:00
Utkarsh Bhatnagar
bc3f1bfbb8 qcacld-3.0: Changed the CFG_HE_TRIG_PAD default value to 16 us
Made the default value to advertise trigger frame padding
duration as 16 us so as to honor HE MAC capabilities sent by FW

Change-Id: I1bf75965f1b9b46d61c94997273621a6e9de46c1
CRs-Fixed: 2667623
2020-04-22 02:14:17 -07:00
nshrivas
8cac36242e Release 5.2.0.182M
Release 5.2.0.182M

Change-Id: I3e6ccc36577ce675b68e6711c4b7d516ba96ef97
CRs-Fixed: 774533
2020-04-21 22:24:19 -07:00
Bapiraju Alla
3416ac0dff qcacld-3.0: Add APIs to configure firmware params using fwol component
Currently these params are sent to fw from hdd. By design, this
should be done by fwol component. Add fwol APIs to achieve this.

Change-Id: Ifcc67fe15e76a32c28819267b0639edae1032093
CRs-Fixed: 2665749
2020-04-21 22:24:19 -07:00
nshrivas
a74e383206 Release 5.2.0.182L
Release 5.2.0.182L

Change-Id: I8e0bf6cc6b4a42bf3b6c888c9bd28ac32407b6f4
CRs-Fixed: 774533
2020-04-21 18:48:18 -07:00
Yue Ma
1511587e7f qcacld-3.0: Use HIF runtime PM APIs from HDD
CLD driver should always use HIF runtime PM wrapper APIs so that
the stats can be recorded properly.

Change-Id: I0cd9ac363c3d2dacd326d53e3f5d09887e7f3ed0
CRs-fixed: 2666953
2020-04-21 18:48:18 -07:00
nshrivas
7bd13cabe0 Release 5.2.0.182K
Release 5.2.0.182K

Change-Id: I35dee490e9af236f68c0bbd84c0e142aa273e303
CRs-Fixed: 774533
2020-04-21 16:55:07 -07:00
Rakesh Pillai
a1b85ad256 qcacld-3.0: Enable flag for increased Tx descs in QCA6390
Enable the increased tx descriptors flag for qca6390.
Based on 1Tx:8Rx NAN test case experiment, it requires
increase in Tx descriptors to burst trafficto each Rx device.

Change-Id: I7978732fda7149bf4c6ffaf4ea29f4e5dd30fd95
CRs-Fixed: 2665503
2020-04-21 16:55:07 -07:00
Manjunathappa Prakash
4fd77c6d83 qcacld-3.0: Add flag for increased Tx descs
Add flag for increased Tx descs. And Enable the flag for qca6490.
Based on 1Tx:8Rx NAN test case experiment, it requires increase in
Tx descriptors to burst trafficto each Rx device.

Change-Id: I364ada1ee80afcaf3db3d50efa16a95054a4f7f4
CRs-Fixed: 2658549
2020-04-21 16:54:52 -07:00
nshrivas
d9b8c67850 Release 5.2.0.182J
Release 5.2.0.182J

Change-Id: I60690ec3558197d055da5818bf087de357c40488
CRs-Fixed: 774533
2020-04-21 14:04:30 -07:00
Jianmin Zhu
c310b00031 qcacld-3.0: LFR2 failed for stuck in ROAM_DEINIT
With Change-Id: I02f207cdde9d8fb68cd91fab07572baa9e7ac50d,
Ini roam_trigger_bitmap is only initialized when LFR3 enabled.

In LFR2 case, without disconnect, roam_trigger_bitmap is set as
0, vdev roame state is stuck in ROAM_DEINIT for 0 bitmap, can't
switch to ROAM_INIT and ROAM_RSO_STARTED any more, can't enable
roam scan offload in F/W,  so no roam scan and better AP event
is reported to host from F/W even RSSI low or beacon miss
happens.

change-Id: I95cb6c892a67816cf47c8dada9b542ae6aefe7f3
CRs-Fixed: 2662880
2020-04-21 14:04:30 -07:00
Kai Liu
5a3d4987fa qcacld-3.0: pass supported device id list to platform driver when loading
Wlan driver is built to support different chipset, while on QC platform
function driver and device probe happened in CNSS platform driver,
so when loading wlan driver, need parse supported id list to platform
driver to check if this wlan driver can be loaded in current platform.

Change-Id: I91e87ffa32d77e2bab15fca09514cdefb1075c71
CRs-Fixed: 2644233
2020-04-21 14:04:18 -07:00
nshrivas
95dfaed58c Release 5.2.0.182I
Release 5.2.0.182I

Change-Id: I13a6bf642414a07bdde4bf88a6f46e51a5745997
CRs-Fixed: 774533
2020-04-21 07:54:28 -07:00
Abhishek Ambure
716952641d qcacld-3.0: Update max tx pwr allowed received from fw
Wlan firmware updates "max tx pwr allowed" to host in vdev start response
event and roam sync indication event. Host uses this value to update
power constraint ie in assoc request and TPC query response.

Host updates "max tx pwr allowed" value to firmware after association
completion, so that firmware uses the same max power to transmit mgmt and
data frames.

Change-Id: Ifd8d47fd830bd02bdde2633c22ea82820adf73a0
CRs-Fixed: 2652690
2020-04-21 07:54:28 -07:00
nshrivas
2ddc9adecb Release 5.2.0.182H
Release 5.2.0.182H

Change-Id: Icf9d128dd455f7cf2b1fd5e63ba225e0a7693cbe
CRs-Fixed: 774533
2020-04-21 01:45:54 -07:00
Utkarsh Bhatnagar
03701c359a qcacld-3.0: Cleaning up duplicate variable lteCoexAntShare
Replacing all occurences of mac_context->lteCoexAntShare
with mac_context->mlme_cfg->gen.as_enabled

Change-Id: I8c86d1d082446e9dc63fc35d478b2e59768dae95
CRs-Fixed: 2665255
2020-04-21 01:45:53 -07:00