Commit Graph

29176 Commits

Author SHA1 Message Date
Rahul Choudhary
b8dbabc292 Release 5.2.1.69N
Release 5.2.1.69N

Change-Id: Ie1a8d15b0b27e2e12d01b15f76fe64d3a873049c
CRs-Fixed: 774533
2023-06-03 06:56:42 -07:00
Srikanth Marepalli
e2bf430ebf qcacld-3.0: Use proper vdev ID while processing the OP mode update
While enqueuing the WMA_UPDATE_OP_MODE, session ID is filled with
the index where the BSSID entry matched in PE session. And after
dequeuing it this session ID is used as vdev ID and sent to FW in
WMI_PEER_SET_PARAM_CMDID, which results in sending an update for
an invalid vdev ID.
Hence use the smeSessionId value from PE session.

Change-Id: I1b550be2c98c3eb0f3716a953408ee2c217e8d9b
CRs-Fixed: 3510396
2023-06-03 06:56:42 -07:00
Rahul Choudhary
dc4cf3742f Release 5.2.1.69M
Release 5.2.1.69M

Change-Id: Ie36f4c02d9f58825175e641191ea155b0667747c
CRs-Fixed: 774533
2023-06-03 04:27:32 -07:00
Alan Chen
b7a90ba009 qcacld-3.0: Convert configs to feature
Create a new header file that has all configs converted to features.

Change-Id: I6f15d4746f636e0ac139858b23934f0150e6d9eb
CRs-Fixed: 3492624
2023-06-03 04:27:32 -07:00
Rahul Choudhary
08cd46d80e Release 5.2.1.69L
Release 5.2.1.69L

Change-Id: I3048dc6dc09cba890709977ab3be8a0a1e17d101
CRs-Fixed: 774533
2023-06-03 01:02:29 -07:00
Vinod Kumar Pirla
bc9576374d qcacld-3.0: Use link info pointer to cleanup VDEV ROC
To obtain VDEV reference to cleanup the ROC, change the
function argument of wlan_hdd_cleanup_remain_on_channel_ctx()
API to take link info pointer instead of adapter.
Existing references are changed to deflink.

Change-Id: I032c04d18f6d3e962ee767e621d418ad71609139
CRs-Fixed: 3462405
2023-06-03 01:02:29 -07:00
Vinod Kumar Pirla
d4e9094d48 qcacld-3.0: Refactor wlan_hdd_cleanup_actionframe() API
To cleanup the P2P action frame for a specific VDEV use
link info pointer to get VDEV reference instead of adapter.
Existing callers are changed to deflink.

Change-Id: I22bfe9170988f58456622ca7da321a4447b8234e
CRs-Fixed: 3462371
2023-06-03 01:02:23 -07:00
Vinod Kumar Pirla
7d4252496e qcacld-3.0: Refactor hdd_get_pmf_bcn_protect_stats_len() API
Move the function argument of hdd_get_pmf_bcn_protect_stats_len()
API to link info pointer to get status of beacon protected stats
of each link.
Existing references are changed to deflink.

Change-Id: If47edc82461269fe6612302dc39f21a9a9d998bd
CRs-Fixed: 3462350
2023-06-03 01:02:17 -07:00
Rahul Choudhary
7f69e5b644 Release 5.2.1.69K
Release 5.2.1.69K

Change-Id: I37a5f358ed2d0fd6e609c28c61459afdcb65672c
CRs-Fixed: 774533
2023-06-02 22:48:23 -07:00
Vinod Kumar Pirla
670b2b7da0 qcacld-3.0: Refactor hdd_wlan_fill_per_chain_rssi_stats() API
To obtain the per chain rssi stats for each link in adapter,
change the hdd_wlan_fill_per_chain_rssi_stats() API to pass
link info pointer as argument instead of adapter.
Existing references are changed to deflink.

Change-Id: I7be0b69f53c87966e38846fb93a71a78fb75d63e
CRs-Fixed: 3462314
2023-06-02 22:48:23 -07:00
Vinod Kumar Pirla
986d5834fc qcacld-3.0: Use link info wlan_hdd_refill_actual_rate() API
To get the per link rate details, change the function parameter
of wlan_hdd_refill_actual_rate() API to link info pointer to
fetch from hdd stats in that link.
Existing references are changed to deflink.

Change-Id: I9129638933337ca0d71d68beb983d553860dcfe1
CRs-Fixed: 3462300
2023-06-02 22:48:17 -07:00
Vinod Kumar Pirla
92f3779183 qcacld-3.0: Refactor hdd_get_max_tx_bitrate() API
To maintain the stats of each link, hdd_stats is moved
to per link data structure. To update the Tx parameters
for a specific link, change the hdd_get_max_tx_bitrate()
API function argument to take link info pointer.
Existing callers moved to deflink.

Change-Id: I095094b19e02b0f60c7f63ef25d8d684fe198327
CRs-Fixed: 3462230
2023-06-02 22:48:11 -07:00
Vinod Kumar Pirla
634b8106df qcacld-3.0: Use link info to fetch BW and oper channel APIs
The BW and operating channel will be present in each link's session.
Refactor the below two APIs to take link info as function argument
instead of adapter to get each link's data.

The following APIs are renameed and existing callers moved to deflink.
1) hdd_get_adapter_width() => hdd_get_link_info_width()
2) hdd_get_adapter_home_channel() => hdd_get_link_info_home_channel()

Change-Id: Iccf3ea693b7022fdb2e96b60f0c5b80abe846044
CRs-Fixed: 3462164
2023-06-02 22:48:05 -07:00
Rahul Choudhary
7499e7dbe2 Release 5.2.1.69J
Release 5.2.1.69J

Change-Id: I24a6996e48154fc966ea11ab429e61cc322d102a
CRs-Fixed: 774533
2023-06-02 20:37:43 -07:00
Vinod Kumar Pirla
eaf38a2331 qcacld-3.0: Use link info pointer to get VDEV conn state
To get the connection state of the each VDEV change
function argument of hdd_is_vdev_in_conn_state() API
to link info pointer to corresponding VDEV instead of
adapter. Existing callers moved to deflink.

Change-Id: Icc49c274ce25efc081d5e89a5c7180ff38438c63
CRs-Fixed: 3461406
2023-06-02 20:37:43 -07:00
Vinod Kumar Pirla
88243638b9 qcacld-3.0: Use link info in hdd_report_max_rate() API
As VDEV is per link specific change the function argument
to link info instead of adapter. The existing callers
moved to deflink.

Change-Id: I795566b6586f4441eb33da293ed5ac0527c2894b
CRs-Fixed: 3461371
2023-06-02 20:37:37 -07:00
Vinod Kumar Pirla
3bf1e26c99 qcacld-3.0: Move link layer stats holder to per link
To save/retrieve link layer stats on per link, move
the ll_iface_stats member from adapter to link info.
Move the references of this field to deflink.

Change-Id: I386f11ea6aeb0e0058f3f759060582d04acd39e2
CRs-Fixed: 3452552
2023-06-02 20:37:31 -07:00
Sheenam Monga
f2c84fdaac qcacld-3.0: Clean up roam_scan_period_after_inactivity
Cleanup roam scan period after inactivity timer.

Change-Id: Idba15ef9c41fdfe339e24df4ec87a66277986ee3
CRs-Fixed: 3515188
2023-06-02 20:37:26 -07:00
Rahul Choudhary
6a3ebea45e Release 5.2.1.69I
Release 5.2.1.69I

Change-Id: I429673bc4289d44c44f09acf2cc474cd8ee0c614
CRs-Fixed: 774533
2023-06-02 16:48:11 -07:00
Karthik Kantamneni
b3c3861f64 qcacld-3.0: Add changes to support DP memory profile
Introduce DP memory profile selection based on H.W
capabilities supported. Based on H.W capabilities
decide kind of memory profile required for DP operations
and select that profile for resource allocation, so that
resource/memory allocation will be done effectively.

Change-Id: Iffbea0cfd9e6b79f0c1ad9526217ba6922f6cdb6
CRs-Fixed: 3504128
2023-06-02 16:48:10 -07:00
Mohammed Ahmed
c818fbff21 qcacld-3.0: Add missing configs to Kconfig
Currently Kconfig is missing configs, fix this by adding
missing config values.

Change-Id: I72e3ababd35281262302a3eaa91ec573fb613984
CRs-Fixed: 3495369
2023-06-02 16:48:05 -07:00
abhinav kumar
2c3cec439d qcacld-3.0: Report scan info for total NUM_CHANNELS to upper layer
Host allows scan for any channels allowed in the 2 GHz band or
channels allowed in the 5 GHz band or channels allowed in the 6 GHz
band. So the total number of frequencies allowed for the scan is
MAX_CHANNEL (NUM_CHANNELS - 1) defined in enum channel_enum.

Currently on receiving WMI_CHAN_INFO_EVENTID per channel, host
updates the channel info buffer for SIR_MAX_NUM_CHANNELS(64) only.
This result host fails to send channel info for frequencies present
at index MAX_CHANNEL - SIR_MAX_NUM_CHANNELS.

The fix is to allow the host to fill the channel info buffer till
the max allowed (MAX_CHANNEL) channel index.

Change-Id: Ic366d9fc832f06b096b934815464689d6279ec43
CRs-Fixed: 3502553
2023-06-02 16:48:01 -07:00
abhinav kumar
966ceefe89 qcacld-3.0: Process get cu_req for 2 GHz band connection
Process GET_CU_FOR_EACH_SUB_BW request from the upper
layer in case DUT is connected with a channel width
of 40 MHz and the connected frequency is in the 2 GHz
band.

Change-Id: Idc748f83af72baed946340c61d5c6a0bba1baf00
CRs-Fixed: 3506871
2023-06-02 16:47:56 -07:00
Liangwei Dong
e563cf7379 qcacld-3.0: Add northbound link reconfig notification
When link removal TBTT expires, indicate the link removal
info to upper layer by vendor event.

Change-Id: Iccc13898f76648bfa2167669c966538d95df5fe3
CRs-Fixed: 3482159
2023-06-02 16:47:51 -07:00
Srinivas Girigowda
63dfb1a98c qcacld-3.0: Support local packet capture for pineapple
Support local packet capture for pineapple.

Change-Id: Ib0d5ccc439fe86f6be5de3812cf8667ec49ba1e3
CRs-Fixed: 3517167
2023-06-02 16:47:46 -07:00
Sheenam Monga
40c579a3ad qcacld-3.0: Send configured MLO TP percentage to FW
Send configured value of MLO TP preference percentage
via ini mlo_tp_preference_percentage to FW, so that FW
can consider provided value during score calculation
while roaming.

Change-Id: Iac8c82b525f9b37ff6d7eb86df369bd1efb375e3
CRs-Fixed: 3514938
2023-06-02 16:47:41 -07:00
Sheenam Monga
102d99de96 qcacld-3.0: Add cfg for MLO preference percentage
Add support to boost or reduce MLO scoring with
mlo_tp_preference_percentage ini.

Change-Id: I0a1280fe259d9e65e5f0f991d456f650b9d1be69
CRs-Fixed: 3456412
2023-06-02 16:47:36 -07:00
Rahul Gusain
54c2fe240a qcacld-3.0: Block NDP_END_ALL req till last NDP_END is received
Firmware sends NDP_HOST_UPDATE event as an immediate response to this
request and starts cleaning peers one by one. Once an NDP session is
ended (indicating NDP_END to peer + internal cleanup), firmware sends
NDP_END_IND to host.
Currently, host driver stops the wait timer and change state from NDP
end to disconnected upon receiving the NDP_HOST_UPDATE. But firmware
might still be in the process of NDP cleanup. As the NDP_END_ALL
context is unblocked, driver may send NAN disable request to firmware.
This may cause inconsistency in firmware state machine and firmware may
drop the ongoing NDP_END request. So, peer doesn't get the NDP_END frame
in such cases.

Unblock the NDP_END_ALL-wait call only upon last NDP_END indication to
avoid such issues. This change moves the major functionality of
NDP_HOST_UPDATE processing to last NDP_END indication. Cleanup/remove
the processing of NDP_HOST_UPDATE as it's not needed anymore.

Change-Id: I19d3e40700c1c0501b9c809820262472bf9bdba4
CRs-Fixed: 3512847
2023-06-02 16:47:31 -07:00
Rahul Choudhary
9df82708b2 Release 5.2.1.69H
Release 5.2.1.69H

Change-Id: Ie471e69063864413db794191bc6cd04473104fd9
CRs-Fixed: 774533
2023-06-02 06:28:39 -07:00
Vinod Kumar Pirla
989a5cded6 qcacld-3.0: Move vendor ACS event flag to per link
The VENDOR_ACS_RESPONSE_PENDING event flag is used
for tracking ACS request for SAP/P2P-GO modes, hence
move this flag to per link.
The references of this event flag are moved to deflink.

Change-Id: I54a3e9f592563cfe40ff68d5527d974eb84fe692
CRs-Fixed: 3452545
2023-06-02 06:28:38 -07:00
Vinod Kumar Pirla
dd706b688f qcacld-3.0: Move SOFTAP_INIT_DONE event flag to per link
This event flag is used in SAP/P2P-GO modes which
will be per link.
The references of this event flag are moved to deflink.

Change-Id: Ia3dd0970ca82e6d4988b0f19dfcef9e100c064a2
CRs-Fixed: 3452540
2023-06-02 06:28:32 -07:00
Vinod Kumar Pirla
fb8255fe08 qcacld-3.0: Move SOFTAP_BSS_STARTED event flag to per link
The flag determines the state of softap bss,
hence move it to per link flags.
The references of this event are moved to deflink.

Change-Id: I1838cdf6067eb93421b424c4965258a9a497923d
CRs-Fixed: 3452220
2023-06-02 06:28:27 -07:00
Rahul Choudhary
505bbc1edb Release 5.2.1.69G
Release 5.2.1.69G

Change-Id: Ib839be976c28c28db80d8dbfc6a0cf1124439505
CRs-Fixed: 774533
2023-06-02 01:28:06 -07:00
Vinod Kumar Pirla
85db1a4847 qcacld-3.0: Introduce new enum to hold link specific events
To keep track of events on each links, some of the flags
which are in adapter level will be moved to per link.

Move SME_SESSION_OPENED flag to the new link info enum.
Existing callers will be moved to deflink pointer.

Change-Id: I13d901a48b4a92c5a28d9edd21ca25e93a869706
CRs-Fixed: 3452196
2023-06-02 01:28:05 -07:00
Vinod Kumar Pirla
906c11ce52 qcacld-3.0: Move MSCS related fields to per link struct
The action frames can per sent on per link, hence move
to link info in adapter.
Existing callers moved to deflink pointer.

Change-Id: Ia8d8284017cd8d5564ae9ea4f1f8d67299e9cc70
CRs-Fixed: 3452185
2023-06-02 01:28:00 -07:00
Rahul Choudhary
e558bc2d73 Release 5.2.1.69F
Release 5.2.1.69F

Change-Id: Ia1da756b6b876c2bfcf1e20a12beb4d549ebf052
CRs-Fixed: 774533
2023-06-01 23:19:18 -07:00
Vinod Kumar Pirla
fe564c7440 qcacld-3.0: Move channel switch progress variable to ap context
The variable is used in SAP/P2P-GO modes, so move this variable
to ap_ctx.
Existing callers are moved to deflink pointer.

Change-Id: I9acc20d3fb397c241adaf85daecff099cc236897
CRs-Fixed: 3452166
2023-06-01 23:19:17 -07:00
Vinod Kumar Pirla
529eb875d6 qcacld-3.0: Move acs_complete_event to per link info
The variable is used for notifying ACS completed event for
SAP/P2P-GO modes, so move this variable to link info.
Existing callers moved to deflink pointer.

Change-Id: I93463536469d67bc8dc3bcd27879cccab0dba025
CRs-Fixed: 3452137
2023-06-01 23:19:12 -07:00
Rahul Choudhary
90dd3aa4ce Release 5.2.1.69E
Release 5.2.1.69E

Change-Id: I86851bc3858135c0a5930ba6e41d74355ddbfd0e
CRs-Fixed: 774533
2023-06-01 21:12:20 -07:00
Pragaspathi Thilagaraj
116e201f3e qcacld-3.0: Fix null pointer dereference in tdls_set_ct_mode
Fix null pointer dereference of tlds_soc_obj if
tdls_get_vdev_objects() returns failure.

Change-Id: Ibd6e38b834d7182b240a9bfaf176dbf47b32b1b7
CRs-Fixed: 3491244
2023-06-01 21:12:20 -07:00
Paul Zhang
b1fb8f6257 qcacld-3.0: Add dot11f support to handle EPCS action frames
Add dot11f support to handle EPCS action frames, such as
request, response, and teardown action frames.

CRs-Fixed: 3511067
Change-Id: I1896d7fcf89a8dd9b60a89f2902567bc60667972
2023-06-01 21:12:15 -07:00
Rahul Choudhary
c148b9d2c7 Release 5.2.1.69D
Release 5.2.1.69D

Change-Id: I71375b018b2c230630c8cd5f7b2fe74ab4190565
CRs-Fixed: 774533
2023-06-01 09:39:05 -07:00
Deeksha Gupta
1c29ae50af qcacld-3.0: Update assoc_link_id in case of single link MLO connection
Currently, in cm_vdev_join_req, driver does not update the assoc_link_id
when connection is SLO.

Fix is, driver should update the assoc_link_id in case of SLO.

Change-Id: I50e4834b77e87df34327f6825778fc460641afa9
CRs-Fixed: 3509965
2023-06-01 09:39:04 -07:00
Surya Prakash Sivaraj
da7b96abf5 qcacld-3.0: Handle RSO SM for ML concurrency cases
In ML-STA + STA concurrency currently, when legacy STA is being
brought up the RSO of existing ML-STA is stopped and not re-enabled
later. Therefore, ML-STA cannot roam after concurrent STA bringup.

Modify the RSO enable logic for ML-STA as follows:
1. All the links should be up.
2. The vdev should be an assoc vdev
3. The if_mgr_enable_roaming should happen on an interface other
than ML-STA links.

The condition-3 prevents enabling RSO for the assoc vdevs when the
link vdev connect complete event is processed.

Change-Id: If86a81b99d18eaa99a25e419c85197d9d0d826ac
CRs-Fixed: 3493333
2023-06-01 09:38:59 -07:00
Zhiwei Yang
b5cb91eed4 qcacld-3.0: Add Kbuild configuration
Add QCA_PADDR_CHECK_ON_3RD_PARTY_PLATFORM configuration
in Kbuild.

Change-Id: I1a0c2e5666ba1d608f56767c15591e8f4a367363
CRs-Fixed: 3459203
2023-06-01 09:38:54 -07:00
Sheenam Monga
57885ae406 qcacld-3.0: Advertise AP_ALLOWED_FREQ_LIST flag
initially, if hotspot starts in world mode, it can come up in
2.4 GHz only. Later, the correct regulatory domain gets configured
in the host driver.

Even if this new reg domain supports higher bands and better channels,
the SAP will not be able to move since the ACS list configured
initially is for world mode(only 2.4 GHz channels).

To fix this issue AP_ALLOWED_FREQ_LIST will be sent by upper layer
based on band selected by user and host can select higher band on
country change if present in allowed freq list. AP_ALLOWED_FREQ_LIST
will be sent only if host advertises AP_ALLOWED_FREQ_LIST flag.
so, advertise AP_ALLOWED_FREQ_LIST flag to get frequency list via
set wifi command.

Change-Id: I3431b73f23d55113f95ff5fdf92de9865878d182
CRs-Fixed: 3455281
2023-06-01 09:38:50 -07:00
Rahul Choudhary
a8e7c44cbd Release 5.2.1.69C
Release 5.2.1.69C

Change-Id: I9481cc5a847d6d030eb5092ce1143dc41c58d9a5
CRs-Fixed: 774533
2023-06-01 07:30:32 -07:00
Vinod Kumar Pirla
0f7b4484f7 qcacld-3.0: Move hdd_stats to per link struct
To save stats for each link separately, move the
hdd_stats member from adapter to per link data
structure.
Existing user moved to deflink pointer.

Change-Id: I35c6e4a0e95ccf77d28a8768444d702a56f23383
CRs-Fixed: 3452115
2023-06-01 07:30:31 -07:00
Vinod Kumar Pirla
cdd3d51fdb qcacld-3.0: Move estimated_linkspeed to per link struct
To obtain linkspeed on per link basis, move
estimated_linkspeed member from adapter to link info.
Existing callers moved to deflink.

Change-Id: Ifeba9890c164176b54ebe669001d1f04064bf511
CRs-Fixed: 3452100
2023-06-01 07:30:26 -07:00
Rahul Choudhary
c318d7e957 Release 5.2.1.69B
Release 5.2.1.69B

Change-Id: I4cfb3f4819f1fc47fc9482da26733307e7dfbd76
CRs-Fixed: 774533
2023-06-01 05:13:26 -07:00