Commit Graph

21623 Commits

Author SHA1 Message Date
Ashish Kumar Dhanotiya
440c4213e4 qcacld-3.0: Move DFS_BANGRADAR from common code to WIN
MCC does not use DFS_BANGRADAR feature so move common code
related to DFS_BANGRADAR to WIN specific code and as part of
this remove dfs_full_offload.c file from MCC compilation.

CRs-Fixed: 2837274
Change-Id: Ie28568a317787a0fb43dd94058f7b3e425bc3929
2020-12-15 09:50:11 -08:00
snandini
dd580e1b0d Release 5.2.0.214F
Release 5.2.0.214F

Change-Id: Iaf3658c8fa3a401996b228668fcae213872ccd32
CRs-Fixed: 774533
2020-12-15 05:49:55 -08:00
Bapiraju Alla
549f5cb438 qcacld-3.0: Fix deadlock when SAP interface down during pre_cac failure
While pre cac is in progress and if the SAP is stopped from UI, It may
lead to dead-lock due to rtnl lock. This is because, stopping SAP will
trigger the stop_ap first and then hostapd_stop. Stop_ap will schedule
a work to handle pre_cac failure (Thread1). hostapd_stop will be
triggered in parallel (Thread2). This will result in a below dead-lock
scenario.
   Thread1: Waiting to acquire rtnl_lock to unregister pre_cac adapter.
   Thread2: Acquired the rtnl_lock and waiting for Thread1 to complete

To resolve this dead-lock, unregister pre_cac_adapter during
hostapd_stop without requesting for rtnl_lock.

Change-Id: I222df9ee0d75b16f79c28b7cdd86369c340a15c2
CRs-Fixed: 2832256
2020-12-15 05:49:55 -08:00
snandini
c978d122d3 Release 5.2.0.214E
Release 5.2.0.214E

Change-Id: I7bf45c8d69e11c870dced13949d8758aeb035053
CRs-Fixed: 774533
2020-12-14 23:40:07 -08:00
Jianmin Zhu
565620495b qcacld-3.0: Fix WAPI IoT issue
DUT can't connect some WAPI AP by ASCII due to
lim_process_assoc_rsp_frame: received Re/AssocRsp frame failure code:
40.
Current Some WAPI AP cannot accept Vendor Element ID:  221  length > 11,
and  reply reject ASSOC resp by reason code 40.
Because we extend Vendor Specific element to include MCS12/13 from HSP.
So only HSP meet this IOT issue.
Qualcomm Inc. - Specific
    Element ID:         221  Vendor Specific [71]
    Length:             15 [72]
    OUI:                8C-FD-F0 [73-75]
    Value:              (12 bytes) [76-87]  01 01 02 01 00 02 01
	    01 09 02 03 00

Change-Id: If766ef280b685100ff4a409309d56ead717f251b
CRs-Fixed: 2836011
2020-12-14 23:40:07 -08:00
snandini
9e8cb783ca Release 5.2.0.214D
Release 5.2.0.214D

Change-Id: I61d9978104ba810d1480a5dc1d16a482fa44e27e
CRs-Fixed: 774533
2020-12-14 20:47:47 -08:00
Abhinav Kumar
f57af135ba qcacld-3.0: Print roam message info for no scan case
For no scan case, FW sends 3 more tlv to host along
with 11kv info. This info helps user in debugging/
understanding the scenario when roam failure happens.

Print the info received related to btm,scan type,
trigger_id into into kmsg for no scan case.

Change-Id: I699a22cf344e6a554349bd5338471951d3dd3b4a
CRs-Fixed: 2835759
2020-12-14 20:47:47 -08:00
snandini
8da0e0d379 Release 5.2.0.214C
Release 5.2.0.214C

Change-Id: Id7ee6d59e12656df5e0d6dd866a5e930067ed76c
CRs-Fixed: 774533
2020-12-14 13:39:13 -08:00
Vulupala Shashank Reddy
5ef1acf9f8 qcacld-3.0: Bool variable should be filled with true or false
Bool variable should be filled with true or false not zero.

Change-Id: I35bf35fff2d10ae49c34ffa50e49d3551e2a6a7a
CRs-Fixed: 2836063
2020-12-14 13:39:13 -08:00
snandini
10f4312355 qcacld-3.0: Modify IEs for 6 GHz processing
Modify IEs for 6 GHz processing.

Country IE - Make the first triplet mandatory and keep
rest of the triplets as optional as 6ghz channels are
denoted by operating class/subband sequence and the
triplet field will have details about it.

transmit_power_env IE - Rename vht_transmit_power_env to
transmit_power_env and add 3 new subfields-
Max tx_pwr_count - indicates the number of local max tx
power For X MHz fields (where X = 20, 40, 80, or 160/80+80)
minus 1 in max tx pwr field of the TPE element.
Max tx_pwr_interpret - indicates the contents of max tx power
field (local EIRP, Local EIRP PSD etc) and interpretation of
the max tx power count field.
Max tx_pwr_category - indicates a category for which max
tx powers apply. A value of 0 indicates the default category;
the interpretation of other values depends on the country.

HE Ops IE - Addition of a 3-bit subfield Regulatory info,
reg_info indicates TYPE of the 6GHZ AP that is carrying this
IE in the beacon: this would typically be SP, LPI or VLP.

Change-Id: If6fbb8a92a6f80b6bcf18906494d08ff048d68a4
CRs-Fixed: 2822657
2020-12-14 13:39:08 -08:00
snandini
da1a49ea1b Release 5.2.0.214B
Release 5.2.0.214B

Change-Id: I53080c786451093c4f5111b48fd19edc75e39893
CRs-Fixed: 774533
2020-12-14 09:29:45 -08:00
Subrat Dash
fec051ecae qcacld-3.0: Add support to enable TWT roles
There are cases where only a few TWT roles may be required
to be enabled. For example TWT Requestor role alone or
TWT Respondor role alone. Also, it could be unicast TWT only
and disable broadcast TWT.

Support broadcast TWT  configuration in requestor and responder
role by adding new INI.
Extend the use of existing requestor and responder INIs to further
enable requestor and responder roles itself.

Change-Id: I3dfa196edfda9cafd01fa56c0bb6ce73e27b4144
CRs-Fixed: 2828718
2020-12-14 09:29:44 -08:00
Pragaspathi Thilagaraj
d0af3d781f qcacld-3.0: Increase the number of TWT peer to 32
Increase the number of TWT peers allowed to 32 from current
default value of 2.

Change-Id: I9c081f602af059c940223ea2f66ea257a7d44f07
CRs-Fixed: 2825861
2020-12-14 09:29:39 -08:00
snandini
a3ced31f44 Release 5.2.0.214A
Release 5.2.0.214A

Change-Id: I41969d6590cf5dd07ab39df2f5445a63a5a4186a
CRs-Fixed: 774533
2020-12-14 05:40:53 -08:00
Chaoli Zhou
58ebf67ea7 qcacld-3.0: HST: Support 2.4G sap with 1x1+2x2 DBS config
In the customer platform, the chain0 for 2.4G is disabled,
it just only support 1x1 2.4G + 2x2 5G for hasting. With
such kind of configuration, 2.4G SAP start failure due to
policy_mgr_is_hw_dbs_required_for_band return false with
following config, which block switching hw mode from single
mac(single mac just only support 5G) to dual mac and then
make start 2.4G SAP failure on single mac configuration

[0]-MAC0: tx_ss:2 rx_ss:2 bw_idx:5 band_cap:2
[0]-MAC1: tx_ss:0 rx_ss:0 bw_idx:0
[0] DBS:0 SBS:0 hw_mode_id:0
[1]-MAC0: tx_ss:2 rx_ss:2 bw_idx:5 band_cap:2
[1]-MAC1: tx_ss:1 rx_ss:1 bw_idx:4
[1] DBS:1 SBS:0 hw_mode_id:1

Change-Id: If9e76fb47743c32c313eacf150146ba8fa60eb2d
CRs-Fixed: 2833620
2020-12-14 05:40:53 -08:00
snandini
a42b772027 Release 5.2.0.214
Release 5.2.0.214

Change-Id: I955664d8a9be59016bbb8c56879847056979a1a2
CRs-Fixed: 774533
2020-12-14 03:42:18 -08:00
Ashish Kumar Dhanotiya
1e0cbc3788 qcacld-3.0: Enable connect/disconnect flow for connection manager
Currently connect/disconnect flow is not enabled for connection
manager, enable connect/disconnect path for the connection
manager.

Change-Id: Ibe83639fb7191169aa6be819edbc94ff086c9f5d
CRs-Fixed: 2830693
2020-12-14 03:42:18 -08:00
Ashish Kumar Dhanotiya
44625bfc47 qcacld-3.0: Update max he mcs index correctly
Currently driver does not consider kernel version
when it updates max he mcs index, kernel version
prior to 5.4 supports max he index as 11 and while
5.4 kernel version onwards max he index 14 is
supported. In current implementation driver might
update max he index more than 11 for kernel version
less than 5.4 also which is an invalid value for kernel
version less than 5.4.

To address above issue update correct max he mcs index based
on kernel version.

Change-Id: Ic011f647dcdfa6c039a3f1299364ac337820a656
CRs-Fixed: 2826282
2020-12-14 03:42:14 -08:00
snandini
70c61f39a8 Release 5.2.0.213Z
Release 5.2.0.213Z

Change-Id: Ice1d542a6c48049257eda09cfa677e2b287fad41
CRs-Fixed: 774533
2020-12-14 01:43:02 -08:00
Wu Gao
f1d9812ccd qcacld-3.0: Release WLAN_TDLS_SB_ID when teardown TDLS connection
It doesn't handle failed case about getting vdev or tdls vdev object
when teardown tdls connection. Which causes reference count of psoc
leak.

Change-Id: Ie4e7966c0a07f378483cd5e6344599645c75ac68
CRs-Fixed: 2836949
2020-12-14 01:43:02 -08:00
Liangwei Dong
205f43d7a0 qcacld-3.0: Report thermal target shutdown level
Target added a new thermal level - THERMAL_SHUTDOWN_TARGET
to indicate that target will shutdown entirely.
Report QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY to upper layer
for equal or above of THERMAL_SHUTDOWN_TARGET.

Change-Id: Ic617411cda326b954511d2d41a595685b379447b
CRs-Fixed: 2835959
2020-12-14 01:42:58 -08:00
snandini
20b46657dc Release 5.2.0.213Y
Release 5.2.0.213Y

Change-Id: Ib0f2eadad9daa8007c570b000a3f9bd1e3ef28be
CRs-Fixed: 774533
2020-12-13 23:38:12 -08:00
Srinivas Dasari
a9a53ee19c qcacld-3.0: Handle NAN+STA reconnect concurrency
Currently, STA reconnect (e.g. reconnect to same BSSID) is handled
as STA+STA as part of NAN concurrency checks. This results in NAN
disable when reconnect is issued.
Check if the current incoming connection is on same vdev as
previous sta connection instance and disable NAN only if it's
different.
Handle NAN+SAP reenable in similar way.
Also, remove the redundant usage of NDI cleanup API
ucfg_nan_check_and_disable_unsupported_ndi in
if_mgr_connect_start.

Change-Id: Ia063a69bb2efdf1d51c6988b8905ceac0f454dab
CRs-Fixed: 2821352
2020-12-13 23:38:12 -08:00
snandini
6b5d968503 Release 5.2.0.213X
Release 5.2.0.213X

Change-Id: I0df966a2ddfdd5c0b277fe9886cbc80e64ad796a
CRs-Fixed: 774533
2020-12-11 18:49:18 -08:00
Jianmin Zhu
ac8b95e887 qcacld-3.0: Clear whole operations bitmap when RSO deinit
To avoid roaming enable failed for operations bitmap set/clear mismatch for
SAP+STA or STA+STA concurrency, clear whole operations bitmap when RSO
deinit, then roaming can be enabled again after STA disconnect and
reconnect.

Add log when set/get operations bitmap to help debug.

Change-Id: Ie1f1a213dcdefb393ec3e1e2c6a8a71ab17b226c
CRs-Fixed: 2834199
2020-12-11 18:49:18 -08:00
snandini
84a16ef8c3 Release 5.2.0.213W
Release 5.2.0.213W

Change-Id: Icf679722d1ed67de470b5e0a07b1cc99de6bed75
CRs-Fixed: 774533
2020-12-11 11:28:00 -08:00
Abhishek Ambure
8f9ca8e62c qcacld-3.0: Update peer delete indication to hostapd
As a part of SAP CSA, host deletes all peers if the new channel needs
CAC. Host deletes all peers from lim and doesn't give STAs delete
indication to hostapd. Hence after deleting all peers from LIM, update
stations delete indication to hostapd.

Change-Id: I833cf7b39b78c20f9a972a47461401baa485d101
CRs-Fixed: 2825720
2020-12-11 11:27:59 -08:00
snandini
ad558e24e5 Release 5.2.0.213V
Release 5.2.0.213V

Change-Id: I0a48462cd7ea405612f108bc424816d07a6a027c
CRs-Fixed: 774533
2020-12-11 09:29:28 -08:00
Vevek Venkatesan
0f457cd140 qcacld-3.0: free fisa rx element from fst_update_list in deinit
During dp_rx_fst_cmem_deinit, free dp_fisa_rx_fst_update_elem
from the fst_update_list.

Change-Id: Ie3445bc4b06cba3e72cf44fe09417b9528115c1e
CRs-Fixed: 2833805
2020-12-11 09:29:27 -08:00
snandini
669de38140 Release 5.2.0.213U
Release 5.2.0.213U

Change-Id: I1e50c020990d31375026c4331dfcb3613e0c24c0
CRs-Fixed: 774533
2020-12-11 05:30:19 -08:00
Jyoti Kumari
d4884cf356 qcacld-3.0: Use proper API to calculate opclass in OCI frame
Operating class is not calculated properly due to which bandwidth
is getting mismatched in OCI frame.
Because of this ref sta is getting disconnected with SAP.

Replace wlan_reg_dmn_get_opclass_from_channel() with
lim_op_class_from_bandwidth() to calculate opclass.

Change-Id: Ic1d7e59692362130bf1b8205585b5ecd182d4dff
CRs-Fixed: 2806146
2020-12-11 05:30:18 -08:00
snandini
3decee836c Release 5.2.0.213T
Release 5.2.0.213T

Change-Id: Icf791df7a7f86ec74bb290199fa41cd6db8c0c59
CRs-Fixed: 774533
2020-12-10 17:43:31 -08:00
Pragaspathi Thilagaraj
ce40cd5dd8 qcacld-3.0: Don't disable btm offload for open mode connection
Currently driver disables btm offload to firmware if connected AP
supports MBO-OCE and the connection is not PMF enabled. But the
pmf will always be disabled for open mode connection, so BTM
offload is disabled with open mode MBO-OCE enabled AP always.

Check if the connection is open mode connection and allow
BTM offload config.

Change-Id: I8fe9b43c07700dca02cf7bb874e1c5c509b120f7
CRs-Fixed: 2831463
2020-12-10 17:43:31 -08:00
Rajeev Kumar
21c27f3b2e qcacld-3.0: Avoid target wake up for multiple get stats req
If get stats request has been fetched recently then avoid target
wake up for next subsequent get stats req by returning cached
station stats.

Change-Id: I3aba4fdc7966a5e9e4ff38003bb80ebd7a3178f1
CRs-Fixed: 2833838
2020-12-10 17:43:25 -08:00
Sandeep Puligilla
4acb775140 qcacld-3.0: Duplicate peer create command
Host sent peer create command to firmware
before the previous peer delete response
is received for the same client.

In failure scenario, lim is not waiting for the peer
delete response and removing the sta ds entry from
the session. If new association request is received
from same client then host is trying to send peer
create command to firmware.

Change-Id: I63fa2b3290ffc0592d2c8c12ff3a144e513dc5f2
CRs-Fixed: 2829911
2020-12-10 17:43:20 -08:00
Arun Kumar Khandavalli
c9364b98d6 qcacld-3.0: register callbacks for bus failure register dump
Whenever there is a recovery triggered, if there is a
failure in reading the bus id collect the bus specific
registers to understand the reason for the failures.
Register the callbacks for updating the reason code and register
dump.

Change-Id: I4eb5327a806691737f605d3d3c83d2c28d1fe935
CRs-Fixed: 2835341
2020-12-10 17:43:15 -08:00
snandini
8e4d35f4c5 Release 5.2.0.213S
Release 5.2.0.213S

Change-Id: Ia57ee82ddd7e2e9512981675345fc3c539d8fd64
CRs-Fixed: 774533
2020-12-10 15:45:07 -08:00
Tiger Yu
8b3cd3b4b8 qcacld-3.0: Enable athdiag live debug mode in debug version
Enable the athdiag live debug mode when CNSS2_DEBUG or SLUB_DEBUG_ON
enabled to enhance host debug.

Change-Id: I5241d60ff7e4e02acc74db312640aa299e5a356b
CRs-Fixed: 2831288
2020-12-10 15:45:07 -08:00
snandini
3dfe6c6868 Release 5.2.0.213R
Release 5.2.0.213R

Change-Id: I4053610c6386bd072a659e295e72877fec2224c9
CRs-Fixed: 774533
2020-12-10 13:37:18 -08:00
Wu Gao
67d68a5872 qcacld-3.0: Enable SMMU for IPA on SDXLEMUR
Required to enable SMMU for IPA on SDXLEMUR.

Change-Id: I0149d3e68a521c97ba417019c9485ec01b55cc01
CRs-Fixed: 2835024
2020-12-10 13:37:18 -08:00
snandini
1f3241eb67 Release 5.2.0.213Q
Release 5.2.0.213Q

Change-Id: I8ec7fd7ec9b463d380f2dc8ded594ea4f2bea3a2
CRs-Fixed: 774533
2020-12-10 10:55:13 -08:00
Mohammed Siddiq
76ca8c9fc1 qcacld-3.0: Add pld api to get PCI reg dump on SSR
Add pld api to get PCI register dump on FW crash due
to PCI bus failure.

Change-Id: Ie30edbe2c60b0e71912667491c9fadbbe92373c4
2020-12-10 10:55:12 -08:00
snandini
0523a453c5 Release 5.2.0.213P
Release 5.2.0.213P

Change-Id: If6d940cbe17143930c653844f328b1105099c778
CRs-Fixed: 774533
2020-12-10 06:47:03 -08:00
Abhinav Kumar
0e0e63194e qcacld-3.0: Update mscs action frame as per spec
Currently, Host sends classifier type and classifier
mask part of TCLAS Mask OPIE only with tag length of
2 bytes.

As per spec tag length for TCLAS Mask OPIE should be 18.
Ext Tag: TCLAS Mask
   Ext Tag Number: TCLAS Mask (89)
   Ext Tag length: 18
   Classifier Type: 4
   Classifier Mask: 0x5f
   Reserved:00000000000000000000000000000000

Fix is to add a reserved parameter in TCLAS Mask OPIE
of length 16 bytes and set it to NULL.

Change-Id: I54cd896a4ffad16581c14fc254575bcec8e6f6d7
CRs-Fixed: 2822616
2020-12-10 06:47:03 -08:00
snandini
0895775b0b Release 5.2.0.213O
Release 5.2.0.213O

Change-Id: If071066f7ff738b927c523390c8fd1e57316c491
CRs-Fixed: 774533
2020-12-09 21:56:01 -08:00
gaurank kathpalia
5028327b50 qcacld-3.0: Overide blacklist and connect to AP
Currently the connection manager queries the
blacklist manager about the action to be taken
and if all the candidates of a certain SSID are
blacklisted then the connection would be rejected.
there are various types of blacklisting, some
can be overided and some have to be strictly
followed.

Fix is to overide the blacklist candidate and
connect to it if no other candidates are suitable
for connection.

Change-Id: Id47fd214130411179d9a53005841786d6d14ce81
CRs-Fixed: 2831535
2020-12-09 21:56:00 -08:00
snandini
b8b04f1ba2 Release 5.2.0.213N
Release 5.2.0.213N

Change-Id: I80c2d5f58a8b89d68736f62783d41899cca85363
CRs-Fixed: 774533
2020-12-09 15:29:11 -08:00
Yu Wang
a79e0ec623 qcacld-3.0: reset crypto params for vdev when disconnect from AP
Reset crypto params for vdev when disconnect from AP in STA mode,
otherwise, the params may be used in the next connection, which
may result in unexpected behaviors.

Change-Id: I144f360dc53f6717ad7a2b99ed3ae7c5574557df
CRs-Fixed: 2831488
2020-12-09 15:29:11 -08:00
snandini
2e3cce578b Release 5.2.0.213M
Release 5.2.0.213M

Change-Id: I1b585a6619d6879f6a7ec951f23f1ceffa15b7ae
CRs-Fixed: 774533
2020-12-09 13:28:27 -08:00
Deeksha Gupta
2a2bc94351 qcacld-3.0: Don't allow SAP to switch to DFS channel if master mode is disable
Previously, if force SCC is enabled and Standalone SAP starts
on non-DFS channel, it starts with master mode Disable. If it
is switched to DFS channel it will switch without CAC.

As a fix, if SAP is started on non-DFS channel with force SCC,
don't allow it to switch to DFS channel if master mode is disabled.

Change-Id: I1822f67a5480d6c16fa980c9c6b262341af7c2de
CRs-Fixed: 2827237
2020-12-09 13:28:26 -08:00