Commit Graph

25089 Commits

Author SHA1 Message Date
Alan Chen
c9999b3b40 qcacld-3.0: Use hdd_enter_dev() instead of hdd_enter() to set APF offload
Use hdd_enter_dev() instead of hdd_enter() to set APF offload so that
it will print out which vdev it is coming from.

Change-Id: If75d835f39c86f149c1f42c4289b45083fa84f09
CRs-Fixed: 3133175
2022-02-23 11:10:13 -08:00
Ashish
1b0ec920c5 qcacld-3.0: Get netdev from wdev instead of iface name
Currently driver uses iface name to get netdev when it processes
ndp responder request. There is a possibility that framework does
not know the iface name when it sends the error response.

if driver does not receive iface name it fails to get the netdev
and fails to perform the dsc operation, because of which driver
drops the ndp responder request command.

To address this issue, use wdev to get netdev instead of iface name.

Change-Id: Ie230f19dbd895f81a4730160cbc9a2de3cc3179d
CRs-Fixed: 3136089
2022-02-23 11:10:07 -08:00
Madan Koyyalamudi
93daf4ec82 Release 5.2.1.11K
Release 5.2.1.11K

Change-Id: I34572dfdc567e0bbcc8a12cf0e6f44094be6bac3
CRs-Fixed: 774533
2022-02-23 09:50:18 -08:00
Vinod Kumar Myadam
d24c25f0e4 qcacld-3.0: Optimize log prints
Remove redundant log prints in policy_mgr_dump_connection_status_info().

Change-Id: I9fb9b5fd6b5c8e1cc93b9adc6ec84fddd2bf90bc
CRs-Fixed: 3134762
2022-02-23 09:50:18 -08:00
Divyajyothi Goparaju
929acb44fb qcacld-3.0: Remove duplicate logs from set_sch_edca_params
Remove debug prints from set_sch_edca_params function
as sch_qos_update_broadcast function is already printing the same

Change-Id: I17cf8d2cc101ec01d07c0fc1e317b71efe02c162
CRs-Fixed: 3134774
2022-02-23 09:50:13 -08:00
Divyajyothi Goparaju
66982241c5 qcacld-3.0: Optimize logs in sme_qos_get_acm_mask
Remove ACM prints from sme_qos_is_acm function
as mask value in sme_qos_get_acm_mask indicates the same

Change-Id: I7c5e9f4cca78fc7a99459f7662184670371a6313
CRs-Fixed: 3134776
2022-02-23 09:50:07 -08:00
Madan Koyyalamudi
e5fa73b0c8 Release 5.2.1.11J
Release 5.2.1.11J

Change-Id: Iba366e279c42a7ec086bb4d47dba90b02ad6026c
CRs-Fixed: 774533
2022-02-23 08:36:57 -08:00
Zhaoyang Liu
34547a4a8d qcacld-3.0: add wiphy flag to enable net namespace
On LXC platform, network namespace is used to setup containers
or virtual environments. To allow network namespace manages WLAN
device, enable wiphy NETNS flag is necessary.

Change-Id: Ib44a4a8f1ca6b5f1b31ff071651d9a66e545eccb
CRs-Fixed: 3132522
2022-02-23 08:36:57 -08:00
Naman Padhiar
c2c7d6e1a5 qcacld-3.0: Add CONFIG_CNSS_OUT_OF_TREE flag
Use CONFIG_CNSS_OUT_OF_TREE to control if ICNSS family drivers are
built from in-kernel-tree source or out-of-kernel-tree source since
the exposed header files will be in different paths. This is also
for backward compatibility.

Change-Id: I21f40fdfc2d9551769fbb7d027a383162aaaddef
2022-02-23 08:36:51 -08:00
Rachit Kankane
65de143362 qcacld-3.0: Route GENERIC commands to SON
Route below vendor commands with GENERIC attributes to SON module:
1. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION
2. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION

Change-Id: I3646204a2af9b703190aff0c10f84cbd02ce30ab
CRs-Fixed: 3123141
2022-02-23 08:36:45 -08:00
Surya Prakash Sivaraj
08bdec292e qcacld-3.0: Cleanup SAP flow in CSR
Remove redundant structures in CSR for SAP functionality
and add a new flow to post SAP requests from SAP module to
LIM.

Change-Id: If3339cf138140ea148bbd263960907fb3a01de43
CRs-Fixed: 3123072
2022-02-23 08:36:37 -08:00
Qun Zhang
eed1953b12 qcacld-3.0: Update LFR2 self reassoc failure processing
Update LFR2 self reassoc failure processing:
1. remove lim_send_switch_chnl_params() from
lim_restore_pre_reassoc_state() when self reassoc failure
to avoid this race condition: one one hand host let FW do
restart, and on the other hand VDEV sm transition to stop
state. Otherwise VDEV sm cannot handle EV_START_RESP event
correcly.
2. register .mlme_vdev_sta_disconn_start callback with
cleanupTrigger eLIM_HOST_DISASSOC.
3. when self reassoc fail, notify reassoc failure reason
to CM SM so that CM SM can trigger CM_DISCONNECT_REQ, then
invoke .mlme_vdev_sta_disconn_start doing cleanup action.

Change-Id: Icb68202e9f72fcbe3e0e4d3e9006a65a73123692
CRs-Fixed: 3109987
2022-02-23 08:36:31 -08:00
Madan Koyyalamudi
257d0fd308 Release 5.2.1.11I
Release 5.2.1.11I

Change-Id: Ifee9dead3b87a0063e2d7ccb25d70210029ec4dc
CRs-Fixed: 774533
2022-02-23 07:18:11 -08:00
Ashish
b9745bd455 Revert "qcacld-3.0: Get netdev from wdev instead of iface name"
This reverts commit Idf394f4a22ace8757f947b2ef8e4a7d22e66d65e
which is causing termination of NDP session immediately after
formation.

Change-Id: I88a9c4ab80b727e5bda7a9f9c7e8b48399f98a34
CRs-Fixed: 3133498
2022-02-23 07:18:10 -08:00
Madan Koyyalamudi
ddafba8d92 Release 5.2.1.11H
Release 5.2.1.11H

Change-Id: If4ed3d9a080ed976a0f4be6704848ae4494c7bba
CRs-Fixed: 774533
2022-02-22 04:54:33 -08:00
chunquan
64fb0c9f8a qcacld-3.0: Disable monitor mode on sdxlemur platform
Disable monitor mode on sdx65, it will save 5MB buf,
and improve iperf performance.

Disable WIFI_MONITOR_SUPPORT for pdev/vdev/peer do
nothing of monitor mode.

Enable MONITOR_MODULARIZED_ENABLE for monitor_soc
attach do nothing.

Disable QCA_MONITOR_PKT_SUPPORT for monitor ring
which are not initialized in dp_queue_mon_ring_stats.

Change-Id: I9865ad38dbbee56abee567fded17f39ee299ac42
CRs-Fixed: 3069269
2022-02-22 04:54:32 -08:00
Madan Koyyalamudi
822211205c Release 5.2.1.11G
Release 5.2.1.11G

Change-Id: I1415676f60f7022c876f3b0be2ace0c0d56cd039
CRs-Fixed: 774533
2022-02-21 18:42:47 -08:00
Bing Sun
7ac3d88ce3 qcacld-3.0: Fix some KW issues im mlo related code
Fix some KW issues in multiple MLO related code.

Change-Id: Iedd5f404cc39070adcd83e087b4c5689f6f7264b
CRs-Fixed: 3126555
2022-02-21 18:42:47 -08:00
Madan Koyyalamudi
f8a10f3f6c Release 5.2.1.11F
Release 5.2.1.11F

Change-Id: Id4ffea8c469ff87225756b1b53e527c31c38c2c6
CRs-Fixed: 774533
2022-02-21 14:45:25 -08:00
Bapiraju Alla
e76389eb65 qcacld-3.0: Start link adapter after SSR
Currently, Link adapter is not being started after SSR. Because of
this, Partner VDEV is not being created after SSR.

To resolve this, start link adapter after SSR.

Change-Id: Id7cf2b39333dd76444e5f3b5519f9052b9a41e4f
CRs-Fixed: 3133366
2022-02-21 14:45:25 -08:00
Madan Koyyalamudi
ce64831027 Release 5.2.1.11E
Release 5.2.1.11E

Change-Id: If4a1deed3162890309d6787e829057aa76c94dd5
CRs-Fixed: 774533
2022-02-21 06:41:12 -08:00
nakul kachhwaha
6343e7e90d qcacld-3.0: Add son os_if tx/rx registration APIs
Add APIs to register SON callback with os_if/lmac_if.
Export os_if APIs called by SON KO.

Change-Id: Ia19dd1822bfba1b41744505a2af52b4b7e0c01f5
CRs-Fixed: 3118965
2022-02-21 06:41:12 -08:00
Madan Koyyalamudi
7cd8d12cea Release 5.2.1.11D
Release 5.2.1.11D

Change-Id: I4b325acc725853c8450a942455f46733dc1a35fa
CRs-Fixed: 774533
2022-02-20 22:49:19 -08:00
Deeksha Gupta
a4febcf3f4 qcacld-3.0: Check peer TWT capabilities
In TWT component, for TWT setup request added below checks:
1. For individual TWT setup command, if peer does not support
   TWT responder capability then host will reject individual
   TWT  setup request.
2. For broadcast TWT setup request, if peer does not support
   TWT broadcast capability then host will reject broadcast
   TWT setup request.

Change-Id: I7265520b1bdceab67b121ba2250d374b1c284275
CRs-Fixed: 3131628
2022-02-20 22:49:19 -08:00
Madan Koyyalamudi
8cce734a2f Release 5.2.1.11C
Release 5.2.1.11C

Change-Id: I5056d2b00f08a9437395ae176bcfdc831235f593
CRs-Fixed: 774533
2022-02-20 08:32:25 -08:00
Sachin Ahuja
cce8f3a127 qcacld-3.0: Advertize the STA+STA based on service caps
Currently driver advertizes the STA+STA feature in the
get supported feature without checking the FW support.

Advertize this feature only when FW supports it.

CRs-Fixed: 3123324
Change-Id: Icd6a9d2ce93eeeca8962d2c8765930986431d71f
2022-02-20 08:32:24 -08:00
Madan Koyyalamudi
b6bb38f785 Release 5.2.1.11B
Release 5.2.1.11B

Change-Id: Icde2545bb7da94a384c919e7d6282c89b8aa3832
CRs-Fixed: 774533
2022-02-20 02:49:00 -08:00
Pragaspathi Thilagaraj
2a2b1d00c1 qcacld-3.0: Fix logging level for prints during roaming
Change the logging level of prints that occur during roaming
happens.

Change-Id: I54706d93a30441e48a0e3cb03d7373d2e5b50fee
CRs-Fixed: 3133890
2022-02-20 02:49:00 -08:00
Madan Koyyalamudi
bade5b5509 Release 5.2.1.11A
Release 5.2.1.11A

Change-Id: I0bcc890501a2a36a9ccab290c0818fbd495d91d3
CRs-Fixed: 774533
2022-02-19 18:37:31 -08:00
Liangwei Dong
baf5200060 qcacld-3.0: Fix out of bounds access in wmi_extract_pdev_hw_mode_trans_ind
Add tlv array number check for vdev_mac mapping elements in roam
and roam sync event to fix potential out of bounds access of memory.

Change-Id: Iad3951bab65153a67d1b76aa745a831d0fd2cb45
CRs-Fixed: 3132366
2022-02-19 18:37:31 -08:00
Madan Koyyalamudi
c1eb14cc1a Release 5.2.1.11
Release 5.2.1.11

Change-Id: I259a76838612ab79760c2abeea2514fb0d43e507
CRs-Fixed: 774533
2022-02-19 09:56:32 -08:00
Pragaspathi Thilagaraj
d1b26fedd0 qcacld-3.0: Remove unused WMA code
Remove unused SIR macro & enums.

Change-Id: Ib81d2fe87efa5e5c1c44f682f4775d400da52bdc
CRs-Fixed: 3133920
2022-02-19 09:56:32 -08:00
Madan Koyyalamudi
f46ff4447d Release 5.2.1.10Z
Release 5.2.1.10Z

Change-Id: Ibd8c290e6ab245264e6c8a7c05404ae22503d4fd
CRs-Fixed: 774533
2022-02-19 04:43:55 -08:00
Karthik Kantamneni
d4a3b8fa64 qcacld-3.0: Fix reo id mismatch in fisa path
Currently when reo id mismatch check is done there is
possiblity of flow getting evicted same time this may
lead to false alarm. To avoid this race condition reo id
mismatch check is done under lock protection.

Change-Id: I7d3ac25ec8c806677697242a0fd3fa338c0a6ad2
CRs-Fixed: 3129761
2022-02-19 04:43:55 -08:00
Madan Koyyalamudi
d8fb0114af Release 5.2.1.10Y
Release 5.2.1.10Y

Change-Id: Ief7b1674ec67947c7a2dc55efd29c3db887fae16
CRs-Fixed: 774533
2022-02-18 23:21:06 -08:00
Srinivas Dasari
db3c1a98e5 qcacld-3.0: Wait for RSO stop response from firmware
Firmware doesn't expect any vdev commands from host while RSO stop
is happening. It sends a response to the RSO_STOP command once
it's done with cleanup. Host needs to run a timer after sending
RSO stop command to firmware and wait for a maximum of 6 seconds
for the response. Host can stop the timer and allow the commands
to firmware in the below cases,
1. RSO_STOP response with success status
2. RSO_STOP response with HO_FAIL status followed by
   HO_FAIL event: Host needs to wait till HO_FAIL event is received

If firmware doesn't send any response in the 6 seconds wait, issue
a recovery to help to check the firmware state.

Also, set WMI_ROAM_SCAN_MODE_FLAG_REPORT_STATUS always when MLO is
supported while sending RSO_STOP to firmware. It's sent only
in case of wpa_supplicant disabled roaming currently.

Change-Id: I8182e60beb9288dba23cc72e978dc781c8ab1707
CRs-Fixed: 3106023
2022-02-18 23:21:06 -08:00
Madan Koyyalamudi
2bd5e660c5 Release 5.2.1.10X
Release 5.2.1.10X

Change-Id: I384fba474256560a9d963e2057a7b7074acd242e
CRs-Fixed: 774533
2022-02-18 22:12:35 -08:00
Guisen Yang
3d7755da2c qcacld-3.0: Decrease resource in ftm mode
Decrease resource which were sent by WMI_INIT_CMD in ftm mode to
save FW memory. Otherwise, qca6490 will crash because of short
of resource in ftm mode.

Change-Id: Ic84e1076693130e9831ad0c08b813e6622f1f99d
CRs-Fixed: 3064388
2022-02-18 22:12:35 -08:00
Madan Koyyalamudi
26da68629a Release 5.2.1.10W
Release 5.2.1.10W

Change-Id: I40b227b1dfb45b2fac61f3df82785dcd4c05a84d
CRs-Fixed: 774533
2022-02-18 15:31:43 -08:00
Amruta Kulkarni
6ce2f89512 qcacld-3.0: Set dp peer flags for mlo roaming
During MLO roaming, non-assoc link is processed first.
Set the dp peer info flags:
- Non-assoc link: is_first_link = True and is_primary_link = False
- Assoc link: is_first_link = False and is_primary_link = True

For legacy to MLO roaming add checks for link vdev processing
during add sta resp and delete bss peer.

Change-Id: I602e4bc03c09b5d8dd35016448eabfaa3ff5acfa
CRs-Fixed: 3129304
2022-02-18 15:31:43 -08:00
Madan Koyyalamudi
64300680c5 Release 5.2.1.10V
Release 5.2.1.10V

Change-Id: I882e75d316fadbdfecf4763965d9fbe23b3ff853
CRs-Fixed: 774533
2022-02-18 01:27:18 -08:00
VIJAY RAJ
1bf6dc18e5 qcacld-3.0: Print rates in Hex format in wlan_populate_basic_rates
In wlan_populate_basic_rates, the MAC rates were displayed in
a loop.

Printing the MAC rates in a Hex format instead in a loop.

Change-Id: Iaed3be9baceffd1af1242a688f3314ad9ea988f6
CRs-Fixed: 3128516
2022-02-18 01:27:18 -08:00
Yu Ouyang
326162f034 qcacld-3.0: Fix session lim_join_req memory leak issue
When processing CM_CONNECT_JOIN request, session will be created and
lim_join_req will be allocated in function lim_fill_session_params().
If self-roam happened, lim_handle_reassoc_req() will be called to process
re-assoication. Session lim_join_req will be re-allocated. But orignal
memory not freed.

So, free lim_join_req memory before re-allocate.

Change-Id: Ice748a045732faddde83bc9d7e05651f14d57fbc
CRs-Fixed: 3110030
2022-02-18 01:27:12 -08:00
Madan Koyyalamudi
a12457e363 Release 5.2.1.10U
Release 5.2.1.10U

Change-Id: I74ac31a2c09c8e0803913fa536dfea8c927bd157
CRs-Fixed: 774533
2022-02-17 23:38:42 -08:00
Prakash Manjunathappa
bdda4cea17 qcacld-3.0: init/deinit tx_rx_histogram along with hdd_bus_bandwidth
hdd_txrx_hist histogram is accessed in hdd_pld_request_bus_bandwidth.
init/deinit tx_rx_histogram along with init/deinit of hdd_bus_bandwidth
Without this in FTM mode where hdd_txrx_hist memeber is accessed without
allocating memory for it. This results in uninitialized NULL dereference
assert

Change-Id: I3b8d80b71f4c37da4a0dafc4a7b91f8ca16bbab3
CRs-Fixed: 3110416
2022-02-17 23:38:42 -08:00
Madan Koyyalamudi
4f0ee15939 Release 5.2.1.10T
Release 5.2.1.10T

Change-Id: Ie409254ff351a49cca7ddbfcfb51edbca647610b
CRs-Fixed: 774533
2022-02-17 15:42:13 -08:00
Divyajyothi Goparaju
5e8af21ed8 qcacld-3.0: Optimize logs during start bss
Instead of print each frequency in separate line,
print  all the frequencies in one shot in
csr_save_to_channel_power2_g_5_g.

Change-Id: I9bca0a94b702626e247bd63f3aa3a617597351a0
CRs-Fixed: 3128543
2022-02-17 15:42:13 -08:00
Nirav Shah
e398b7e48d qcacld-3.0: Rename moderate latency level to XR latency level
Currently moderate latency level is not used. Rename moderate
latency level to XR latency level to be used in XR applications.

Change-Id: Ia7f65c3565f6704b9571161aabefb3a8b47cce1e
CRs-Fixed: 3116839
2022-02-17 15:42:08 -08:00
Madan Koyyalamudi
74dc28f123 Release 5.2.1.10S
Release 5.2.1.10S

Change-Id: If258ad377c7205e9a45f51139ae258bcf7187b15
CRs-Fixed: 774533
2022-02-17 07:44:54 -08:00
Srinivas Dasari
e0f1d93545 qcacld-3.0: Send Assoc/Reassoc req IE offset for MLO IE parsing
Assoc request and Reassoc request IE offsets are diffrrent and need
to specify the offset to parse MLO IE.

Below are the offset calculation details,
Assoc req IE offset = Capability(2) + LI(2)
WLAN_ASSOC_REQ_IES_OFFSET =
	WLAN_CAPABILITYINFO_LEN + WLAN_LISTENINTERVAL_LEN

Reassoc req IE offset = Capa(2) + LI(2) + current AP address(6)
WLAN_REASSOC_REQ_IES_OFFSET = WLAN_CAPABILITYINFO_LEN +
		WLAN_LISTENINTERVAL_LEN + QDF_MAC_ADDR_SIZE

Currently, same offset is passed for both assoc and reassoc request
which fails to find the partner link info.

Change-Id: Ibde20d2020fcdde542d618c1205820f3bb73873c
CRs-Fixed: 3132241
2022-02-17 07:44:54 -08:00