Commit Graph

29409 Commits

Author SHA1 Message Date
Rahul Choudhary
a90c3498d8 Release 5.2.1.71Y
Release 5.2.1.71Y

Change-Id: I91d094beed41c57c72ea67a93f3f6483bcf2fa4b
CRs-Fixed: 774533
2023-06-26 10:28:54 -07:00
Will Huang
80ef10bfc3 qcacld-3.0: Skip ACS scan if partial scan channel not in ACS range
If determine to do partial ACS scan but partial scan channel range is
out of ACS range, sap_get_freq_list() will not return any channel list
and ACS will fail.

In this case if no additional scan needed, can skip this partial ACS
scan and continue to select channel.

Change-Id: I283351fc385b44e65e381d06e3ae5058d4ead443
CRs-Fixed: 3522055
2023-06-26 10:28:53 -07:00
Rahul Choudhary
f3c7377368 Release 5.2.1.71X
Release 5.2.1.71X

Change-Id: I50fae5da6d857a9f72dc7aecc5aa0edd9f1a1a1c
CRs-Fixed: 774533
2023-06-26 06:57:07 -07:00
jinbao liu
3415d49767 qcacld-3.0: Fix an array size issue
Currently, a MACRO is defined used to record the array size. However,
This has a potential risk if the array size changes but the corresponding
ARRAY_SIZE MACRO is not modified accordingly. To solve this issue, this
change uses QDF_ARRAY_SIZE(_arr) to express the array size, so that the
value of QDF_ARRAY_SIZE(_arr) will always represent the size of the array.

Change-Id: I7108a21a91224fe25cfac95dc5801f83aee0a651
CRs-Fixed: 3501175
2023-06-26 06:57:07 -07:00
Rahul Choudhary
6a38fa8945 Release 5.2.1.71W
Release 5.2.1.71W

Change-Id: I8534dbc939b9aac46da90685dd947d4fb4bfa988
CRs-Fixed: 774533
2023-06-26 03:21:38 -07:00
Krupali Dhanvijay
026c0f435f qcacld-3.0: Reset CPU frequency in HO failure
CPU min frequency is boosted to maximum once roam start is received.

Add API to reset CPU frequency in case of HO failure.

Change-Id: Ib59d4d69a68f311dbb01609e7f5f64c307fcedc2
CRs-Fixed: 3522942
2023-06-26 03:21:37 -07:00
Rahul Choudhary
088906f133 Release 5.2.1.71V
Release 5.2.1.71V

Change-Id: I47d8ee63a836a99db4b2b48322987a78b37a900a
CRs-Fixed: 774533
2023-06-24 13:31:05 -07:00
Rakesh Pillai
cd12cecff9 qcacld-3.0: Remove dp_soc usage (all but one) from FISA
Currently FISA accesses the dp_soc (converged DP soc handle)
for various misc info (like hal_soc handle etc). Since these
information are now stored in the non-converged DP component,
there is no need to access dp_soc.

Cleanup the access to dp_soc (converged DP soc handle) in
the FISA path.

Change-Id: I6f373eb1ee57933d631237f7281c99bfceb100c3
CRs-Fixed: 3512048
2023-06-24 13:31:05 -07:00
Rakesh Pillai
c96c1a88d9 qcacld-3.0: Fetch rx_pkt_tlv size via CDP API
Add support to fetch rx_pkt_tlv size from the
converged DP using CDP APIs.

Change-Id: Ibd992d776e8e5e3ff87acb0e9b80d147064747e4
CRs-Fixed: 3512046
2023-06-24 13:30:59 -07:00
Rakesh Pillai
4c897fe85d qcacld-3.0: Add support to send FISA HTT msg using CDP
Add CDP APIs to send FISA related HTT msgs from the
non-converged DP component.

Change-Id: Ie8dcb5d68497ac0de4c0781c981ede2239df0a78
CRs-Fixed: 3512045
2023-06-24 13:30:54 -07:00
Rakesh Pillai
5c54710c38 qcacld-3.0: FISA move data structure
Move the FISA related non-converged data structures
to DP component.

Change-Id: I86b08bd85fa97424046e1187cc5189d0f1354e93
CRs-Fixed: 3512044
2023-06-24 13:30:49 -07:00
Rakesh Pillai
87a3b842c6 qcacld-3.0: FISA ini movement
Move the non-converged FISA related INIs to the
DP component.

Change-Id: Ifaea7a6652d556168b3f232ecfe9b3579c31ed4f
CRs-Fixed: 3512043
2023-06-24 13:30:44 -07:00
Rakesh Pillai
7dde156e8d qcacld-3.0: FISA suspend/resume code movement
Move the suspend/resume related handlers for FISA
in the DP component.

Change-Id: Iba2bcf313f0a6f94a8bd8ff3c6cb29e8ef58f225
CRs-Fixed: 3512042
2023-06-24 13:30:39 -07:00
Rakesh Pillai
1fe1ac7688 qcacld-3.0: FISA init code movement
Move the FISA initialization code to DP
component.

Change-Id: Idaf0d195ea3f24f8d4294eba19d71d5cc9dbc528
CRs-Fixed: 3512041
2023-06-24 13:30:34 -07:00
Rahul Choudhary
aea9c6967c Release 5.2.1.71U
Release 5.2.1.71U

Change-Id: I14fc21b501df81a2dd867224526639344444728b
CRs-Fixed: 774533
2023-06-24 00:28:59 -07:00
Asutosh Mohapatra
d5580e4c4c qcacld-3.0: Handle wlan_logging_sock_init_svc failure gracefully
Currently as part of hdd init host invokes
wlan_logging_sock_init_svc. This API returns error
if any memory allocation failure occurs, but in
hdd_init this error case is not handled.

To address this issue, add support to handle
wlan_logging_sock_init_svc failure.

Change-Id: I6ea90ae6c23e75f266ece22f08042b16152ae570
CRs-Fixed: 3532384
2023-06-24 00:28:59 -07:00
Jianmin Zhu
a0cd2ab42d qcacld-3.0: Add OUI config to enable CTS2SELF with QoS null frame
Add gActionOUIEnableCTS2SelfWithQoSNull to enable CTS2SELF with QoS null
frame for specified IoT APs.

Change-Id: Ia0bccd02f4491e106413728d1a54d76265c80249
CRs-Fixed: 3533505
2023-06-24 00:28:54 -07:00
Asutosh Mohapatra
81386d4ba0 qcacld-3.0: Cache wifi standard after eht cap stored in psoc_mlme_obj
Currently wifi standard is cached into cds config before eht_cap
cfg item is copied into psoc_mlme_obj and host is sending incorrect
wifi standard to fw as part of WMI_PDEV_FEATURESET_CMDID.
To address this issue, cache wifi standard into cds config after
psoc_mlme_cfg is initialized.

Change-Id: I866d919b5c44ad32f520464359e3afb766c5f889
CRs-Fixed: 3530207
2023-06-24 00:28:49 -07:00
Rahul Choudhary
09fc2aa51c Release 5.2.1.71T
Release 5.2.1.71T

Change-Id: If7a59c4853bab20a5a03f286c7b5c76af4d8fe79
CRs-Fixed: 774533
2023-06-23 12:17:14 -07:00
Vinod Kumar Pirla
27148d7774 qcacld-3.0: Refactor hdd_roam_register_sta() API
Use link info pointer to register STA on connection success
on each VDEV corresponding to the link info pointer.
Move existing callers to deflink pointer.
Skipped DP tx/rx functions registration for non vdev_id matching
DP interface

Change-Id: I6bd7b7be547efa58962f8b2e2c0b65eb48065769
CRs-Fixed: 3522205
2023-06-23 12:17:14 -07:00
Vinod Kumar Pirla
f08f0dff0c qcacld-3.0: Refactor wlan_hdd_cm_issue_disconnect() API
Pass link info pointer as function argument to initiate
disconnect on the VDEV corresponding to the link info.
Existing callers moved to deflink pointer.

Change-Id: Ia1d0d7a5a7f7d6e7b83d278369c7541d0600a4ff
CRs-Fixed: 3522166
2023-06-23 12:17:08 -07:00
Vinod Kumar Pirla
888716156d qcacld-3.0: Refactor APIs related to hdd_sme_roam_callback()
Modify the APIs below to pass link info pointer as function argument
for the corresponding VDEV to call these function on per link.
Existing callers moved to deflink pointer.

1) hdd_sme_roam_callback()
2) wlan_hdd_sae_copy_ta_addr()
3) wlan_hdd_sae_update_mld_addr()
4) wlan_hdd_sae_callback()
5) hdd_roam_mic_error_indication_handler()
6) hdd_indicate_unprot_mgmt_frame()
7) hdd_ndp_event_handler()

Change-Id: I67aad093e1318478ee188cc6c7dd113dc458a711
CRs-Fixed: 3522016
2023-06-23 12:17:02 -07:00
Vinod Kumar Pirla
423620c194 qcacld-3.0: Refactor cache_station_stats_cb() API
Iterate through all the active links in adapter in the AP to
find the match for stats VDEV.

Change-Id: I1bc2ad7cf920eef5d6e840a2aec993a049159f1f
CRs-Fixed: 3521681
2023-06-23 12:16:57 -07:00
Vinod Kumar Pirla
3835cb8b24 qcacld-3.0: Refactor APIs related to link Layer stats
Change the following APIs to use link info pointer as
function argument to retrieve and save link layer stats
on per link. The existing callers moved to deflink pointer.

1) hdd_debugfs_process_iface_stats()
2) wlan_hdd_ll_stats_get()
3) hdd_cache_ll_iface_stats()
4) hdd_link_layer_process_iface_stats()
5) wlan_hdd_cfg80211_link_layer_stats_callback()
6) wlan_hdd_handle_ll_stats()
7) wlan_hdd_set_station_stats_request_pending()
8) wlan_hdd_send_ll_stats_req()
9) hdd_debugfs_process_ll_stats()

Change-Id: Ief6c814c5a976022688b3cc44f941d3a8c06a158
CRs-Fixed: 3521669
2023-06-23 12:16:52 -07:00
Rahul Choudhary
e730911351 Release 5.2.1.71S
Release 5.2.1.71S

Change-Id: I624d1be828d3bf116d4e9817fbeefbb683670bfc
CRs-Fixed: 774533
2023-06-23 08:29:33 -07:00
Vinod Kumar Pirla
1d8b3d1f93 qcacld-3.0: Refactor wlan_spectral_update_rx_chainmask() API
To update per link chainmask in corresponding VDEV, modify the
API to take link info pointer as function argument.
Existing callers moved to deflink pointer.

Change-Id: I1f9e9b9c79c2a7237656c00076febb3f5413849c
CRs-Fixed: 3521632
2023-06-23 08:29:33 -07:00
Vinod Kumar Pirla
5f3d589db4 qcacld-3.0: Refactor station info and context APIs
Modify the following list of APIs to take link info
pointer as function argument to get the station context
which is per link data structure. Callers can pass link info
corresponding to VDEV to get/set data.
Existing callers moved to deflink pointer.

1) hdd_get_station_assoc_fail()
2) hdd_add_tx_bitrate()
3) hdd_add_sta_info()
4) hdd_add_link_standard_info()
5) hdd_populate_station_info_skb()
6) hdd_get_station_info()
7) hdd_get_connected_station_info()
8) hdd_get_station_remote()

Change-Id: Icf12eb6118d7bcb7fccee3b6228727ebd70383cf
CRs-Fixed: 3521620
2023-06-23 08:29:28 -07:00
Vinod Kumar Pirla
1ee9d909eb qcacld-3.0: Refactor NSS update APIs
Modify the following APIs to take link info pointer
as function argument to update/set the NSS config
for corresponding VDEV in link info pointer.
The existing callers moved to deflink pointer.
1) hdd_update_nss_in_vdev()
2) hdd_set_sap_nss_params()
3) hdd_set_nss_params()

Change-Id: I8f51d148d234bece51cb5ba4fcae1db46f366b81
CRs-Fixed: 3521589
2023-06-23 08:29:22 -07:00
Vinod Kumar Pirla
972c244109 qcacld-3.0: Refactor Tx/Rx NSS config get APIs
Modify the following APIs to take link info as function
argument to get the per link Tx/Rx NSS configuration
of the corresponding VDEV.
The existing callers moved to deflink pointer.
1) hdd_get_tx_nss()
2) hdd_get_rx_nss()

Change-Id: Id78d3c90783d443ffa27a499b5d60c0362cb7536
CRs-Fixed: 3521577
2023-06-23 08:29:17 -07:00
Vinod Kumar Pirla
bd1f07ea32 qcacld-3.0: Refactor NSS and antenna mode config APIs
Change the following APIs to take link info pointer as
function argument to support per link configuration.
Existing callers moved to deflink.

1) hdd_update_nss()
2) hdd_set_dynamic_antenna_mode()
3) hdd_set_antenna_mode()

Change-Id: Ic1f29cf3b8aa08d9c58b2e5bb65370114f8bfa41
CRs-Fixed: 3521567
2023-06-23 08:29:11 -07:00
Vinod Kumar Pirla
bb5fbd546f qcacld-3.0: Refactor config_getter_fn APIs
Change get configuration handlers function prototype
to use link info pointer as function argument.
Existing callers moved to deflink pointer.

Change-Id: Ie3bfac53e588bbd685435251481682cd4781b5bf
CRs-Fixed: 3521517
2023-06-23 08:29:06 -07:00
Vinod Kumar Pirla
dbe7e5b2a8 qcacld-3.0: Refactor setint_getnone_fn callback functions
Modify the function prototype to accept link info pointer as
function argument to get/set the per link info. The existing
callers moved to deflink pointer.

Change-Id: I8088e1c4b232523b4421be2a005af1a45d28837c
CRs-Fixed: 3521477
2023-06-23 08:29:00 -07:00
Vinod Kumar Pirla
df588dfdbe qcacld-3.0: Refactor independent and interdependent callback APIs
Modify the APIs to accept link info pointer as function argument.
Existing callers moved to deflink pointer in adapter.

Change-Id: Ieb519156539344aaa473886b682fad69ae9f5e18
CRs-Fixed: 3521357
2023-06-23 08:28:55 -07:00
Vinod Kumar Pirla
bd7e4a3111 qcacld-3.0: Refactor IOCTL get/set APIs
Modify the APIs which handle the IOCTL get/set commands in the driver.
Use link info pointer as function argument. Existing callers moved
to deflink pointer in adapter.

Change-Id: I39aed211a49fde4f21a859e11595af0e8ba399c5
CRs-Fixed: 3521228
2023-06-23 08:28:50 -07:00
Rahul Choudhary
2720026f9d Release 5.2.1.71R
Release 5.2.1.71R

Change-Id: I87de087d00f1fa42b323337218bb5e61753f609d
CRs-Fixed: 774533
2023-06-23 04:36:33 -07:00
Vinod Kumar Pirla
e1becbe77c qcacld-3.0: Refactor wlan_hdd_get_linkspeed_for_peermac() API
To request linkspeed on per link from the BSSID saved in the station
context of each link, change the function prototype to accept link info
pointer as argument. The station context will later is accessed from
this link info pointer to send request to FW on that particular VDEV.
Existing callers moved to deflink pointer in adapter.

Change-Id: I87207455d71967c69dcdfa7680c716b4da5d5e8a
CRs-Fixed: 3520911
2023-06-23 04:36:33 -07:00
Rahul Choudhary
e35d3aa03f Release 5.2.1.71Q
Release 5.2.1.71Q

Change-Id: I8d602a6d9cbeb2ab3d8a0cc39d0079383af6ec49
CRs-Fixed: 774533
2023-06-22 22:01:48 -07:00
Vinod Kumar Myadam
2b5d708b98 qcacld-3.0: Fix for pre-cac crash in cleanup
Vendor command pre_doit holds wiphy lock inside kernel and calls
into driver vendor command handler and from driver vendor command handler
if unregister_netdevice() is called it will try to acquire same wiphy lock
inside kernel cfg80211_netdev_notifier_call() and deadlock.

To fix this issue from driver vendor command handler for pre CAC adapter
stop call cfg80211_unregister_netdevice to avoid recursive wiphy locking.

Change-Id: I24d790f86bf8fb5482fbf56c56d0ce4be50a3aec
CRs-Fixed: 3535131
2023-06-22 22:01:47 -07:00
Amit Mehta
9eb4baa9eb qcacld-3.0: Enable per link stats for kiwi v2
Enable per link stats support for kiwi v2 target

Change-Id: Ic97c562154e812d939394e3fe5173a63beecc191
CRs-Fixed: 3446807
2023-06-22 22:01:42 -07:00
Jyoti Kumari
adf22d9ae4 qcacld-3.0: Fix policy_mgr_is_6G_chan_valid_for_ll_sap() api
Remove only 6 GHz using policy_mgr_is_6G_chan_valid_for_ll_sap()
if WLAN_FEATURE_LL_LT_SAP_6G_SUPPORT is not defined.

Change-Id: I828c61adf3c88c2a5100fff603a007d8a6c85a88
CRs-Fixed: 3532992
2023-06-22 22:01:36 -07:00
Rahul Choudhary
fca6594d76 Release 5.2.1.71P
Release 5.2.1.71P

Change-Id: I58f52753640e87fe14cf9c2d669f24658c5820b3
CRs-Fixed: 774533
2023-06-22 16:03:10 -07:00
Vijay Raj
03827cfd24 qcacld-3.0: Remove dereferencing freed pointer in channel stat request
In api mlme_connected_chan_stats_request(), dereferencing
of freed pointer is observed by static analysis tool.

Remove dereferencing of the freed pointer in the api
mlme_connected_chan_stats_request().

Change-Id: Ic09b68395a9c3c67aab4a704a915b0d92a00e16d
CRs-Fixed: 3530020
2023-06-22 16:03:09 -07:00
Jianmin Zhu
44d20ce3a6 qcacld-3.0: Fix dual sta roaming failure
MLO sta + 2nd sta case, 2nd sta got pcl type: PM_NONE, total pcl
freq num 0, but dual sta follow pcl strictly, so PCL 0 is sent to F/W,
failed to roam to any freq.

To fix it, for PM_NONE and PCL freq num 0 case, don't follow pcl strictly,
send all valid freq as PCL to F/W.

Change-Id: Ie3529fd85dcfcfd3cc44ed6c25fc8fefe7a6c769
CRs-Fixed: 3534201
2023-06-22 16:03:04 -07:00
Ashish Kumar Dhanotiya
a57d5016d7 qcacld-3.0: Allow NAN+SAP SCC on unsafe channel
Currently host driver does not allow NAN+SAP SCC on unsafe channel.
With this change add support to allow NAN+SAP SCC on unsafe channel
if g_nan_sap_scc_on_lte_coex_chan ini is enabled.

Change-Id: Iccc37f28d8523cd335cce5fcfb0293f3f8cc8959
CRs-Fixed: 3531489
2023-06-22 16:02:58 -07:00
Rahul Choudhary
d9b6d94645 Release 5.2.1.71O
Release 5.2.1.71O

Change-Id: I26583ed26107211355508f5b14438fd1eab9063d
CRs-Fixed: 774533
2023-06-22 12:49:06 -07:00
Karthik Kantamneni
e5110fabef qcacld-3.0: Avoid dp_ops access during FTM mode on failure
During FTM mode start modules there is possibility  from recovery path
bus bw timer stop is being called before dp_ops gets initialized.
This will lead to accessing uninitialized dp_ops access, to avoid this
check for conn mode before accessing the dp_ops and skip timer stop.

Change-Id: I3aef52f70bc0ea6294c87e7cd889ec63a4a6e3a4
CRs-Fixed: 3531437
2023-06-22 12:49:06 -07:00
Surya Prakash Sivaraj
8169b54f12 qcacld-3.0: Parse SSID IE properly during roam
The roam candidate frame event gives the beacon of
the roam candidate. The SSID IE check expects minimum
size of the SSID to be 2 bytes. Because of this, the
candidate with ssid size 2 or less is not cached to
the scan table.

Fix this by not considering the size of the SSID IE.

Change-Id: Ifbe36ac8cf0f9c75a3830a2826f5330fa300df5b
CRs-Fixed: 3512310
2023-06-22 12:49:01 -07:00
Rahul Choudhary
1b64d5fdf0 Release 5.2.1.71N
Release 5.2.1.71N

Change-Id: I2cd14f82e4227e70a4033a51d8f514aea5fbb061
CRs-Fixed: 774533
2023-06-22 09:10:10 -07:00
Srinivas Dasari
db403bc9de qcacld-3.0: Allow CSA to DFS channel only if PCL list has it
Currently, PCL returns all 5 GHz channel and SCC channel for SAP
when an ML-STA is present. But this may lead to a case
where the CSA request might be for a DFS channel which needs CAC.

This needs a dedicated mac and ML-STA can't move to MLMR in such
cases. When firmware attempts to move STA to MLMR from MLSR,
firmware asserts as the other mac is occupied by DFS SAP for
CAC operation.
So, allow CSA to a DFS channel only if the channel is present in
PCL list as it covers the supported channel list anyway. Fix
policy mgr table entries also by allowing SCC channels only.

Change-Id: I079fa6beea97fcd7c926ad4bd2bf928a0442d146
CRs-Fixed: 3484572
2023-06-22 09:10:10 -07:00
Rahul Choudhary
874fc8ea91 Release 5.2.1.71M
Release 5.2.1.71M

Change-Id: I5d1d00fa77f34db9d66f5437a2d441e222ab47da
CRs-Fixed: 774533
2023-06-22 06:06:33 -07:00