Commit-Graf

24517 Incheckningar

Upphovsman SHA1 Meddelande Datum
Zhaoyang Liu
2b640ea7f9 qcacld-3.0: extend the value range for chainmask setting
To support QCN7605 DBS chip, which has 3 RF chains, chain0 is for 2G,
chain1 is for 2G/5G, and chain2 for 5G. So it need 3 bits to
indicate RF chainmask for DBS mode. This is to extend the value
range for 2g/5g chainmask setting for QCN7605 DBS mode.

Change-Id: I43ee3393c121b6e9609223af1db0059158d44078
CRs-Fixed: 2933722
2021-11-30 04:40:13 -08:00
Madan Koyyalamudi
b1aa752792 Release 5.2.1.2R
Release 5.2.1.2R

Change-Id: I8d100902a13fbc4df3f2a30202f1409d915ae3ea
CRs-Fixed: 774533
2021-11-29 07:33:55 -08:00
Karthik Kantamneni
a8ffe9a11f qcacld-3.0: Control netif sub queues with sub queue pause mask
Currently global pause mask is used for controlling individual
AC based sub queues and even all the network queues, due to this
mask is set/reset improperly which is not giving actual global
queue status representation. To avoid this introduced new sub queue
mask which is used while controlling individual network sub queues
and global mask is over for overall network queues.

Change-Id: I6632a1831cbea84c23441dbb67473c94b487109a
CRs-Fixed: 3081060
2021-11-29 07:33:55 -08:00
Madan Koyyalamudi
aac2d986e0 Release 5.2.1.2Q
Release 5.2.1.2Q

Change-Id: I0292474ca0da018942d6b01233e92efff7286b6f
CRs-Fixed: 774533
2021-11-28 22:16:57 -08:00
Vulupala Shashank Reddy
5c72b5aded qcacld-3.0: Change ops from vdev specific to psoc level
Currently in packet capture component the tx and rx ops are
stored in vdev but the ops should be only per psoc and
the ops will be registered only once per psoc. So change
tx and rx ops from vdev specific to psoc level.

Change-Id: I09e9dd5d83e7b10c86e80ebf2584469071060813
CRs-Fixed: 3049207
2021-11-28 22:16:57 -08:00
Madan Koyyalamudi
bb9b2be285 Release 5.2.1.2P
Release 5.2.1.2P

Change-Id: Ic7b3d46c20a1051cc809daa75a75816956d4db13
CRs-Fixed: 774533
2021-11-27 03:11:23 -08:00
Utkarsh Bhatnagar
98fd330171 qcacld-3.0: Covert fw_phy_id to policy_mgr mac_id
In HW mode transition event for mac_freq_mapping,
fw sends pdev id for identifying mac in following
format:
	WMI_PDEV_ID_1ST 1 /* first pdev  (pdev 0) */
	WMI_PDEV_ID_2ND 2 /* second pdev (pdev 1) */
	WMI_PDEV_ID_3RD 3 /* third pdev  (pdev 2) */
Covert these PDEV_ID to the ones used in policy manager
used for filling current mac frequencies

Change-Id: I745de0278b1ddf627062163364b684745df5e4e7
CRs-Fixed: 3083289
2021-11-27 03:11:23 -08:00
Madan Koyyalamudi
be124588ab Release 5.2.1.2O
Release 5.2.1.2O

Change-Id: Iecca0a07b8661773133e34819838e95ba06a074a
CRs-Fixed: 774533
2021-11-26 15:08:26 -08:00
Ashish
86ceade63b qcacld-3.0: Enable Thermal mitigation control by default
Based on new requirement enable gThermalMitigationEnable
by default from code.

Change-Id: Ib353b75c18d13cea9982061558f1d125b0b3d411
CRs-Fixed: 3080737
2021-11-26 15:08:25 -08:00
Madan Koyyalamudi
6bc7a0371c Release 5.2.1.2N
Release 5.2.1.2N

Change-Id: Ibc4242d9a8b69e560b5f5766f3da91fc6a231f47
CRs-Fixed: 774533
2021-11-26 10:12:57 -08:00
Ashish
4289293186 qcacld-3.0: Add support for new argument 1 for SET_FCC_CHANNEL
Currently there is no support for argument 1 for SET_FCC_CHANNEL
command, with this change add support for argument 1 for
SET_FCC_CHANNEL command.

Change-Id: I2ceab2459b1798042412e3d3bbadbbf24004451f
CRs-Fixed: 3079545
2021-11-26 10:12:57 -08:00
Madan Koyyalamudi
d7100793b7 Release 5.2.1.2M
Release 5.2.1.2M

Change-Id: I7215c962053a6f05839023c9ffc490b379d15240
CRs-Fixed: 774533
2021-11-26 03:19:17 -08:00
Jinwei Chen
0af30cef66 qcacld-3.0: Fix FISA dp_rx_sw_ft_lock uninitialized issue
Currently if INI dp_rx_fst_in_cmem is not enabled and FW not report
the capability of FSE in CMEM, FISA dp_rx_sw_ft_lock will not be
initialized which lead to panic.

initialize FISA dp_rx_sw_ft_lock by default if FISA is supported

Change-Id: I515b151b9a02665f51c30263ef6c6c9929edb392
CRs-Fixed: 3082642
2021-11-26 03:19:16 -08:00
Jianmin Zhu
e327eadc63 qcacld-3.0: Fix allowlist roaming failure
For allowlist roaming, EAPOL isn't offloaded for PMK changed, then
RSO is stopped and allowlist ssid is cleared in F/W, but when RSO
is restarted after EAPOL finished, allowlist ssid isn't reset to F/W,
so allowlist roaming will fail after that.

To fix it, when roam start or update cmd is sent to F/W: update
allowlist ssid and denylist to F/W.

Change-Id: Ia8ddc251767dfc04d9a6cfd1e7c1074ab0e88e96
CRs-Fixed: 3081226
2021-11-26 03:19:12 -08:00
Madan Koyyalamudi
1b77284519 Release 5.2.1.2L
Release 5.2.1.2L

Change-Id: Ie2ae308f439d48cc0708879e80e4bdcaff2bf5c6
CRs-Fixed: 774533
2021-11-25 20:04:51 -08:00
Aditya Kodukula
cefd0f71e9 qcacld-3.0: Remove ADDBA_REQ to avoid overwriting spec_mgmt
As per the current implementation, the ADDBA_REQ bitmap setting
overwrites DROP_SPEC_MGMT_ACTION_FRAME_BITMAP. Hence, to avoid it,
remove the ADDBA_REQ bitmap setting.

Change-Id: I1135a64de99248b67e477d3276b217c128c1a721
CRs-Fixed: 3081291
2021-11-25 20:04:50 -08:00
Madan Koyyalamudi
3fc8b5924f Release 5.2.1.2K
Release 5.2.1.2K

Change-Id: I07664b77f785535aa510ada6cb914c60f0246d95
CRs-Fixed: 774533
2021-11-24 20:31:09 -08:00
Jinwei Chen
08460fc2b7 qcacld-3.0: Fix different flow RX packet aggregating on same fisa flow
Flow A packet is waiting napi_id 1 lock as it has passed metadata
and reo_id check in dp_add_nbuf_to_fisa_flow(), another flow B packet
FSE hash pointed to same FSE flow as flow A, but flow B packet is
coming from napi_id 2, current FISA LRU logic will allow flow B packet
hold napi_id 1 lock and update FSE flow to napi_id 2, then release
napi_id 1 lock. flow A and B packet will be added to same fisa flow,
skb double free or other issue will hit.

Move napi_id lock acquring before sanity check in
dp_add_nbuf_to_fisa_flow(), then different napi flow packet will
not be added to same FISA flow.

Change-Id: I2679972a0923d8cfba4f9d22182c1cc193b3f34f
CRs-Fixed: 3080877
2021-11-24 20:31:08 -08:00
Madan Koyyalamudi
1016ea0595 Release 5.2.1.2J
Release 5.2.1.2J

Change-Id: Idd6fc5ab07786a9480a046a605bb02c7c33488d2
CRs-Fixed: 774533
2021-11-24 19:22:14 -08:00
Liangwei Dong
f2eec44f25 qcacld-3.0: optimization of p2p miracast connecting time
Add new parameter 128/129 for miracast command to enable/disable
p2p connection time optimization. The command needs to be issued
before p2p negotiation/invitation/connecting, the driver will do some
necessary configuration to reduce the p2p connecting time. At present,
disabling IMPS is the only configuration to achieve it.

Change-Id: I518b0027290d0254313031fe23315b718565e04b
CRs-Fixed: 3031461
2021-11-24 19:22:14 -08:00
Madan Koyyalamudi
b0b0fbe925 Release 5.2.1.2I
Release 5.2.1.2I

Change-Id: I6dd51829666cefa2d2e0c784caff7d8862ca6590
CRs-Fixed: 774533
2021-11-24 15:39:28 -08:00
Rongjing Liao
7d30fea1c8 qcacld-3.0: support 2.4G 1x1 + 5G 1x1 DBS config for FW
Currently host doesn't support below configuration for FW:
gEnable2x2=0 (disable 2x2 mode)
dual_mac_feature=0(ENABLE_DBS_CXN_AND_SCAN)
tx_chain_mask_2g=0x1
rx_chain_mask_2g=0x1
tx_chain_mask_5g=4
rx_chain_mask_5g=4
disable_rx_mrc_2g=1
disable_tx_mrc_2g=1
disable_tx_mrc_5g=1
disable_rx_mrc_5g=1
gSetTxChainmask1x1=0
gSetRxChainmask1x1=0

Now there is a new requirement for QCA6595:
1. RF chain0: WLAN 2.4G with 1x1 antenna
2. EF chain1: WLAN 5G with 1x1 antenna
3. RF chain1: BT 2.4G with 1x1 antenna

To support this new requirement, need to exclude the case in
condition check when gEnable2x2=0 and dual_mac_feature=0.

Change-Id: Ic08a4b7f5eb4beece867d7d7b4ae1796e67eae85
CRs-Fixed: 3074098
2021-11-24 15:39:28 -08:00
Madan Koyyalamudi
fa552ccc09 Release 5.2.1.2H
Release 5.2.1.2H

Change-Id: I4565a7d074b32f85f1b422face6c7ae19516cdc9
CRs-Fixed: 774533
2021-11-24 06:40:53 -08:00
Aleti Nageshwar Reddy
268acccd8f qcacld-3.0: Update thermal mitigation policy table
Update thermal mitigation policy table to fix the issue related to
thermal subcmd invoked from userspace

Change-Id: I5beb82d68253651736657d3131f4571e877d6042
CRs-Fixed: 3070375
2021-11-24 06:40:53 -08:00
Madan Koyyalamudi
789d49e5b4 Release 5.2.1.2G
Release 5.2.1.2G

Change-Id: I6f0d7ee3e1b0ffb0625a20e30ca0eda5df4e6e18
CRs-Fixed: 774533
2021-11-24 02:43:52 -08:00
Bapiraju Alla
5cf970b5c7 qcacld-3.0: Derive NDP peer multicast address from peer MAC address
Currently, driver is depending on NS frame to be received to configure
peer multicast address for an NDP session. If there is a delay in NS
frame reception, peer multicast address list will be configured to the
FW without actual peer multicast address. Because of this, FW will drop
the NS frame from NDP peer.

To address this, derive peer multicast address from peer MAC address
and include it in multicast address list that is configured to the FW.

Change-Id: I92a575352d592b4001dc4f061e31eb7f592f8445
CRs-Fixed: 3066990
2021-11-24 02:43:52 -08:00
Madan Koyyalamudi
dbf9361d32 Release 5.2.1.2F
Release 5.2.1.2F

Change-Id: I1fc79dbb95772e296020e0115a6bebea1d15583d
CRs-Fixed: 774533
2021-11-24 01:14:18 -08:00
Nakul Kachhwaha
aabf3d74ff qcacld-3.0: Fix Switch Case fallthrough compiler error
Adding fallthrough statement in switch case to
suppress compile time errors.

Change-Id: I948e87090dd68d2f5cf342e2115d672d2d772b6f
CRs-Fixed: 3079848
2021-11-24 01:14:18 -08:00
Rakesh Pillai
c613af5c5e qcacld-3.0: Disable timer irq for CE in WCN7850
Kbuild change to
- Disable timer irq for CE in WCN7850
- Disable status ring timer WAR in WCN7850

Change-Id: I59a247bf14450c5e1ec194c505f3a00eb5f3619f
CRs-Fixed: 3075871
2021-11-24 01:14:14 -08:00
Madan Koyyalamudi
93e0033111 Release 5.2.1.2E
Release 5.2.1.2E

Change-Id: I2c5683b64a7f98bb24bc6b847eaaea31fe68dc5c
CRs-Fixed: 774533
2021-11-23 18:17:44 -08:00
Surabhi Vishnoi
2634d52576 qcacld-3.0: Add support for beacon filters in packet capture mode
Add support to send beacon received from firmware on STA interface
to mon interface based on management rx filters set by user in
vendor command.

Change-Id: I186ab0d697da831894854d7680265e82dd3adcef
CRs-Fixed: 3073478
2021-11-23 18:17:43 -08:00
Gururaj Pandurangi
80969617dd qcacld-3.0: Add psoc ptr arg in get 6G power type for ctry API
Pass psoc ptr as argument in addition to existing args in
wlan_reg_get_6g_power_type_for_ctry API to support new APIs
like wlan_cm_get_check_6ghz_security that are invoked within.

Change-Id: I9615c5d2cb509a0c9f8e10073c0928ab38f179f8
CRs-Fixed: 3080203
2021-11-23 18:17:39 -08:00
Arun Kumar Khandavalli
f61a0e0cea qcacld-3.0: Cache set HW mode response status
Currently, Host is not caching the response status for the set HW mode
request. Without this status, it is difficult to debug HW mode mismatch
between host and FW when the logs are not available during the set HW
mode command.

To address this, cache the set HW mode response status.

Change-Id: I61b935d54648bc80901bfe7127227ffaa8d7cd7b
CRs-Fixed: 3076445
2021-11-23 18:17:34 -08:00
Madan Koyyalamudi
f4f5ab2df5 Release 5.2.1.2D
Release 5.2.1.2D

Change-Id: Ib6c6599a958fac84f25fea6c2d1ae3e7f90bd44f
CRs-Fixed: 774533
2021-11-23 16:56:47 -08:00
Vulupala Shashank Reddy
aa2bded170 qcacld-3.0: Change enum pkt_capture_mode to bit map
In packet capture component change enum pkt_capture_mode
from value to bit map.

Change-Id: Ic777b5091e85ed8c906d7e855b5cadb0fa3319d5
CRs-Fixed: 3048502
2021-11-23 16:56:47 -08:00
bings
ff725f42b2 qcacld-3.0: Add API to get phy stats
Implement API to get phy stats for EasyMesh.

Change-Id: I3ac8168c6217f101ee152c396f8576628f7508b8
CRs-Fixed: 3044722
2021-11-23 16:56:41 -08:00
Madan Koyyalamudi
c4c4cde38b Release 5.2.1.2C
Release 5.2.1.2C

Change-Id: Ie92db42759f5d4dbf5f483f82c8e47f135d94836
CRs-Fixed: 774533
2021-11-23 15:25:04 -08:00
sandhu
4938a636b7 qcacld-3.0: Add path of cleaned-up HW header files
Add path of final version (E3.0 R38) of cleaned up HW header files
with comments removed and appropriate copyright added.

Change-Id: I5b65141d68672da6368f71132ad583ed1fc3db53
CRs-Fixed: 3076670
2021-11-23 15:25:04 -08:00
Madan Koyyalamudi
176c7b04b6 Release 5.2.1.2B
Release 5.2.1.2B

Change-Id: Ibcbde1856fa5370a4b471f6729b268c76e4e3d5a
CRs-Fixed: 774533
2021-11-23 03:54:59 -08:00
Jinwei Chen
21e1618550 qcacld-3.0: CLD change for cdp_pdev_attach
CLD change for cdp_pdev_attach

Change-Id: Ib4c536bc5d4a94ed0456e976cfc32b0ccdc9aa65
CRs-Fixed: 3077258
2021-11-23 03:54:59 -08:00
Madan Koyyalamudi
6e562eab62 Release 5.2.1.2A
Release 5.2.1.2A

Change-Id: I6a2d0c6405f2471b363eb803a0a42dfa624146ab
CRs-Fixed: 774533
2021-11-23 01:31:14 -08:00
Lincoln Tran
c0290cada6 qcacld-3.0: Don't notify userspace about link peer
In security association scenario, if userspace gets notified about the
link peer first, it will cancel the connection because it doesn't
contain RSN IEs. Skip notifying userspace about this STA because it is
not needed.

Change-Id: I726583ade6d463bf7eed79d83afc0bcd1ae8192f
CRs-fixed: 3075695
2021-11-23 01:31:13 -08:00
Jinwei Chen
1e0e8f5424 qcacld-3.0: Use right macro to enable eapol dest_mac check
For MLO connection, host will use MLD mac address as eapol
dest_mac address check condition, but currently the macro
used is not the right one, so the check always return failure
and RX eapol frame is dropped in SAP HDD.

Use right macro WLAN_FEATURE_11BE_MLO to enable this check

Change-Id: I5e9e265583d9c39899c6604f1a16bde2f08484a9
CRs-Fixed: 3074632
2021-11-23 01:31:08 -08:00
Jianmin Zhu
62562f2527 qcacld-3.0: Avoid spin_lock_bh in ipa wlan rx callback
Spin_lock_bh is introduced in ipa wlan rx path by security fix
I0c0bc6e60efa193126ba1e3eca36c5e02f7f76a3,
wlan_ipa_w2i_cb->cdp_peer_state_get->dp_get_peer_state->
dp_peer_find_hash_find->qdf_spin_unlock_bh(&soc->peer_hash_lock),
which make rx pkt aggregation failed, for each rx pkt, once
put into backlog queue, net_rx soft irq is scheduled to handle it.
which make rx throughput failed to meet KPI.

TO avoid spin_lock_bh don't call cdp_peer_state_get for each rx pkt,
only call 1 time, and save peer auth state in IPA context, for following
pkts, just get peer auth state from IPA context without spin_lock_bh.

Change-Id: I36196bab4626194bda254219c4c44dc4f029cff0
CRs-Fixed: 3076978
2021-11-23 01:31:02 -08:00
Madan Koyyalamudi
4865b44352 Release 5.2.1.2
Release 5.2.1.2

Change-Id: Ia46d52d1b3fe392ad21a7cd9150d850cc25887b6
CRs-Fixed: 774533
2021-11-22 15:09:37 -08:00
Mohit Khanna
f81d89ccca qcacld-3.0: Use CONFIG_SLUB_DEBUG_ON to enable debug flag
Use CONFIG_SLUB_DEBUG_On to enable certain flags. This ensures that
these flags are not enabled for PERF builds.

Change-Id: I8c8e032ca1a0344f12fbad4dca543e333d601916
CRs-Fixed: 3045963
2021-11-22 15:09:37 -08:00
Mohit Khanna
49760b669f qcacld-3.0: Set PM_QOS for non-offloaded TX at V_HIGH
Set system PM_QOS with low latency only for "very-high" throughput levels
in TX case. Currently, its being done for "high" throughput levels.
In less than "very-high" throughput cases, this allows CPU cores to
enter low power modes. This is done only for non-offloaded packets e.g.
UDP.

Change-Id: Idf1dd2968b7dd8b4ef9f4061ee862de03d962c6e
CRs-Fixed: 3045963
2021-11-22 15:08:27 -08:00
Mohit Khanna
1b920619fb qcacld-3.0: Refactor TX/RX tuning in bus BW worker
Refactor tuning done in hdd_pld_request_bus_bandwidth for TX and RX.

Change-Id: I1e994394d286c3152b5a01f3e0747e06d56e811b
CRs-Fixed: 3045963
2021-11-22 15:08:21 -08:00
Madan Koyyalamudi
2f5862c059 Release 5.2.1.1Z
Release 5.2.1.1Z

Change-Id: I14028e4a79e5424f727539ef782e2a11489c8b27
CRs-Fixed: 774533
2021-11-22 13:36:14 -08:00
Arun Kumar Khandavalli
4c00a29780 qcacld-3.0: Use skb_alloc instead of qdf_nbuf_alloc for control port
Whenever a eapol packet is received over the control port driver
allocated using the qdf_nbuf_alloc and passes it over to the
hard_start_xmit which again tries to add the skb to the qdf nbuf
tracking list these operations result in the false positive warning
message of double allocation from the nbuf debug framework.

So, use the skb_alloc api instead of qdf_nbuf_alloc, so the skb
can be tracked in the hard_start_xmit and  avoid the warning from
the debug framework

Change-Id: I7cdb54fa6ef49f313cfb5ff48221aaf742e18a1f
CRs-Fixed: 3079746
2021-11-22 13:36:14 -08:00