İşleme Grafiği

29771 İşleme

Yazar SHA1 Mesaj Tarih
Deeksha Gupta
a2e4ae849a qcacld-3.0: Fixing ML Partner Info Sequence Issue in Assoc Response Parsing
Currently, driver fills the session->ml_partner_info based
on the ML partner info present in the received assoc response
frame. However, it is possible that the AP may send a
different ML partner info sequence in the assoc resp frame,
leading to incorrect info send during PEER_ASSOC_CMDID.

For instance, when establishing a 3-link connection, the STA
selects 6 GHz as the assoc link and 5 GHz + 2.4 GHz as partner links.
The STA expects the same partner sequence (5 GHz and 2.4 GHz)
in the assoc resp frame. However, the AP can send a different
sequence (2.4 GHz + 5 GHz).

To fix this issue, modifies the parsing of the ML partner info duing
assoc response frame. Instead of relying on the ML partner info
from the assoc response frame, updates the session->ml_partner_info
based on the partner sequence present in the the mlo_mgr context.
This ensure that the ML partner info sequence is correct and matches
the expected sequence during the association.

Change-Id: I93236afae4c7915fb2c9bd6ad209feae1312126f
CRs-Fixed: 3530714
2023-08-01 20:28:36 -07:00
Rahul Gusain
b55bf34e18 qcacld-3.0: NDP wakelock in failure cases
Currently, wma_add_sta status is not considered while voting for
link up in case of NDI. But if wma_add_sta fails to add a peer,
this link vote leads to stale link vote up.
To fix this, consider the return status of wma_add_sta for
link vote up.

Change-Id: I71581f1caccf784567c7ba6f263b5d1658067aa9
CRs-Fixed: 3569182
2023-08-01 20:28:31 -07:00
Aravind Kishore Sukla
c3ce65c825 qcacld-3.0: Downgrade connection to HE mode
STA is not able to connect to 11be non-WPA3 mode AP.

STA need to decide whether to connect in EHT or not at
the time of connection to AP based on security configuration.

Change-Id: I823decc17af21f80969c09742c6136d4215b87f6
CRs-Fixed: 3558758
2023-08-01 20:28:26 -07:00
Srinivas Girigowda
25fd32eab3 qcacld-3.0: Allow connected monitor and legacy STA connection
If the connected monitor is configured and then legacy STA is trying to
associate to Access point, check is enforced to reject the connection
request if STA + Monitor concurrency is in place.

Legacy STA + monitor mode is not allowed, whereas Legacy STA +
connected monitor should be allowed.

Hence, Fix this issue by checking for STA + Monitor mode concurrency
only if local_packet_capture (Connected monitor) is not enabled.

Change-Id: Ia4fc74ab2ec91e6d66ebba23614268173da1e7bb
CRs-Fixed: 3574577
2023-08-01 20:28:21 -07:00
Will Huang
a7b05b29c4 qcacld-3.0: Populate API for SAP to help check unsafe channel
Populate policy_mgr_restrict_sap_on_unsafe_chan() to check whether need
check coex unsafe channel when SAP start on fixed channel, only
restriction_mask from user space configure set SAP bit requires to check
unsafe channel when SAP start on fixed channel. If ACS enable, SAP should
check unsafe channel unless above restriction_mask from user space
configure not set SAP bit.

This change is to change back behavior which changed by Change-Id
I4ccf887655066da6d6b50715f631dde6edfda598, and adjust Change-Id
Ie3947058d8854823a718b833ec788c5c8a14b903 after this change.

Change-Id: If8d26fa7cfdd4ffa44dd2009b4d6939f3d4c49b2
CRs-Fixed: 3525515
2023-08-01 20:28:15 -07:00
Rahul Choudhary
716e6eda86 Release 5.2.1.75U
Release 5.2.1.75U

Change-Id: Id94d7cc0706e2ca6ed149796f688a4792bb3fd74
CRs-Fixed: 774533
2023-08-01 09:37:38 -07:00
SACHIN AHUJA
3aef654312 qcacld-3.0: Don't send the wext event during interface down
Currently driver sends the wext event on interface down. Kernel
internally generates the  IFF UP event on receiving this wext
event and send to the userspace.
Userspace application takes the wrong decision based on this
spurious IFF UP event.

To avoid this issue, avoid sending the WEXT event to kernel
on IFF down.

Change-Id: I3ce0de50b3c41fe45d8d1a0d0ea47af73595cdda
CRs-Fixed: 3558158
2023-08-01 09:37:38 -07:00
Srinivas Girigowda
be5651b42e qcacld-3.0: Introduce wlan_dp_is_local_pkt_capture_enabled()
Introduce wlan_dp_is_local_pkt_capture_enabled API.

Change-Id: I608c927301bf145bf8fd2e222c047ca20c58a72b
CRs-Fixed: 3576511
2023-08-01 09:37:31 -07:00
Rahul Choudhary
e5d35ade60 Release 5.2.1.75T
Release 5.2.1.75T

Change-Id: I717438423c0b099c780675db9de949c448bbd3c9
CRs-Fixed: 774533
2023-07-31 23:55:14 -07:00
Liangwei Dong
f6f6362013 qcacld-3.0: Handle standby link for ML STA concurrency
In 3 Port concurrency, if standby link is MCC with existing legacy
interface then force inactive the link to avoid link switching
to it.

Change-Id: I3373715940eab949542528cce66d87a0646e1e5a
CRs-Fixed: 3572695
2023-07-31 23:55:13 -07:00
Surya Prakash Sivaraj
496290a384 qcacld-3.0: Trigger STA deletion after deauth is transmitted
In case of STA kickout on SAP interface, host driver sends
deauth frame and initiates peer delete without waiting for
ACK or tx completion status of the deauth frame. In the
firmware, the deauth frame seems to get flushed, if peer
delete is being queued. To fix this, send peer delete only
if the deauth tx completion status is received.

Changes involved are:
1. To handle the sta deletion from the deauth tx complete path:
	- Get the vdev id and peer address from the mgmt desc params
	  to initiate the deletion.
2. To handle the sta deletion from deauth tx completion timeout:
	- Mark a flag in sta entry if STA kickout deauth is in progress.
	- Add changes to get vdev id upon deauth ack timer expiry.
	- Trigger deletion for all the STAs for which has STA kickout
          is in progress, since the timer is not started per peer.
          Therefore, upon the expiry of the deauth ack timer, initiate
          all the STA deletion.
Change-Id: I44a802237723866b05a986ed760a065ac4697044
CRs-Fixed: 3556353
2023-07-31 23:55:07 -07:00
Liangwei Dong
340f1ba9c9 qcacld-3.0: Handle dynamic force inactive num
With force link inactive cmd rsp, FW will always send a current
active/inactive link bitmap. Host will select one link from current
inactive bitmap, and update the policy mgr table. But FW can
still switch the active/inactive between the links in force num bitmap.
When SAP coming up on same MAC and MCC with the dynamic inactive link,
host will send force inactive the link to FW. Then FW will not try
to active the link even in dynamic mode.

Change-Id: Ib4e438ca4c8e6945b3d7db42cd92d0393fcc1fc9
CRs-Fixed: 3564737
2023-07-31 23:55:00 -07:00
Rahul Choudhary
9bd9eabc7d Release 5.2.1.75S
Release 5.2.1.75S

Change-Id: Iead4fd5ac52dac3ca8b6fc487fc2f829ee0631ab
CRs-Fixed: 774533
2023-07-31 19:37:29 -07:00
Vinod Kumar Pirla
073e5ee38c qcacld-3.0: Update HDD link info with connected BSS info
Notify OSIF/HDD on successful connection to ML-BSS with all
links information part of association.

In each link's corresponding link info struct in HDD adapter,
update basic information of that link which contain following:
   a) IEEE link id.
   b) Link BSSID.
   c) Self link address.
   c) Current VDEV ID for that link.

As VDEV is not present for the standby link, we will use
self MAC address to identify the initial placeholder of that
link info to update IEEE link ID and BSSID.

Reset the IEEE link ID on disconnect/start adapter so that
stale values are not matched during search.

Don't reset connection info's BSSID if it is due to link switch.

Change-Id: I291f87072a2064bcee092819fbfb00a3803b9376
CRs-Fixed: 3557623
2023-07-31 19:37:29 -07:00
Rakesh Pillai
2461d6dc54 qcacld-3.0: Move fisa aggregation control flags to dp_intf
Currently the FISA aggregation control flags, based on GRO
settings, are part of dp_vdev.

Move these FISA aggregation control flags to dp_intf,
since these controls are on an interface level, and not
on a per link level.

Change-Id: I93d0e215f8954376a96967cce6d533bd4be2d3a6
CRs-Fixed: 3574036
2023-07-31 19:37:23 -07:00
Rahul Choudhary
a77096792e Release 5.2.1.75R
Release 5.2.1.75R

Change-Id: I136bc3caedf83d9506595a8de0ae6c513299ae41
CRs-Fixed: 774533
2023-07-31 15:50:57 -07:00
Liangwei Dong
a5f9f2fa98 qcacld-3.0: Fix AP not start on SCC channel in AP-AP-AP-AP
In 4 AP case: 2 AP on 2412, 1 AP on 5805. The 4th AP is starting
on 5180, but the current PCL PM_SCC_ON_5_5G_SCC_ON_24G contains 5180
and force SCC not happen.
Fix by change PCL to contain SCC channel only - PM_SCC_ON_5_SCC_ON_24.

Change-Id: I69923fa5b84c2178f0179fcc54d5f5aa6d77d016
CRs-Fixed: 3556240
2023-07-31 15:50:56 -07:00
Rahul Choudhary
b53b27f806 Release 5.2.1.75Q
Release 5.2.1.75Q

Change-Id: Id93ea7a67031108b36ae043c116645283aa91944
CRs-Fixed: 774533
2023-07-31 12:20:05 -07:00
Mohammed Ahmed
243b2afbf2 qcacld-3.0: Enable DDK build system
Will allow DDK to be enabled and generate required
symlinks for DDK build.

Change-Id: Iadba338b1b74fa0be187ac17b22e1c2ed89f4a4d
CRs-Fixed: 3533892
2023-07-31 12:20:05 -07:00
Mohammed Ahmed
588192efbd qcacld-3.0: Add grep functionality bazel
Current wlan bazel implementation does not
support grep of source code.
Fix this by adding grep functionality.

Change-Id: I0649577424fbd095524d9c1083c3515c682723e2
CRs-Fixed: 3572350
2023-07-31 12:19:59 -07:00
Mohammed Ahmed
b4834eb736 qcacld-3.0: Additional bazel build fixes
Currently code is running into compilation
issues when building with bazel.

Change-Id: I458de9b971955bb64c06dd2541dd5d20c2c3d16c
CRs-Fixed: 3546637
2023-07-31 12:19:54 -07:00
Rahul Choudhary
abd2d3cbf2 Release 5.2.1.75P
Release 5.2.1.75P

Change-Id: I786bdd40cf54492685050ca36a90652c981773ef
CRs-Fixed: 774533
2023-07-31 05:42:48 -07:00
Vinod Kumar Myadam
9d6b62d993 qcacld-3.0: Hold wake lock for OEM data command
For OEM data command, if there runtime suspend before the response
comes back, the response will not come to host and host will timeout.

To fix this issue, acquire the RTPM wakelock for OEM data command
till the response comes to host.

Change-Id: Ibb52d2b1e24e1e478cf4fb7c8c0d59438e0bbba8
CRs-Fixed: 3571769
2023-07-31 05:42:47 -07:00
Vijay Raj
f3efa80466 qcacld-3.0: Add support for new twt status for twt setup request
Add support for new twt status
HOST_ADD_TWT_STATUS_LINK_SWITCH_IN_PROGRESS and
HOST_ADD_TWT_STATUS_UNSUPPORTED_MODE_MLMR in the twt
ack event

Change-Id: Ica3a66983ea25f2c797827baa16daa4fcddcd099
CRs-Fixed: 3570318
2023-07-31 05:42:41 -07:00
Rahul Choudhary
8591f2d873 Release 5.2.1.75O
Release 5.2.1.75O

Change-Id: I585d69ac1cc5c65bf4143b1fcfe7c77542ad752b
CRs-Fixed: 774533
2023-07-31 02:12:09 -07:00
Aasir Rasheed
048cd25b14 qcacld-3.0: Send keys after peer assoc
Addressed issue with STA MLO connections,
ensuring that link keys are not sent to the
firmware before completion of the link
vdev connection.

Change-Id: I3d6291cc00f3387cff1fc154f9c57373fd356fa3
CRs-Fixed: 3575097
2023-07-31 02:12:08 -07:00
Rahul Choudhary
d04483d364 Release 5.2.1.75N
Release 5.2.1.75N

Change-Id: Ibb65334cb2004f1828c05e03af5a8ba741cdfc00
CRs-Fixed: 774533
2023-07-30 22:44:55 -07:00
Aasir Rasheed
4d6b1664a9 qcacld-3.0: Update roam scan freq list for partner link
Currently, host driver updates only assoc link channel to
firmware through roam_scan_chan list. Firmware may issue
an additional scan if it finds partner link channels in
the RNR info but not present in the roam scan channel list.

To avoid additional scan, send all link channels to the firmware.

Change-Id: Icfd9dac77f98a208b35d47060aab7cf2c5e4c885
CRs-Fixed: 3536183
2023-07-30 22:44:55 -07:00
jingxiang ge
1c1828f5d8 qcacld-3.0: Extract aux device capability
Extract aux device capability and store it in wma/hdd/mlme.

current only 1 aux supported so only save info
for aux0.

Change-Id: Ib19bad6cf3c0bda5a31ea4993a2f7e587b2043e2
CRs-Fixed: 3549751
2023-07-30 22:44:50 -07:00
Rahul Choudhary
16acdd350d Release 5.2.1.75M
Release 5.2.1.75M

Change-Id: I6a7a4ef419feb438f229935de1df5bec54fb75bb
CRs-Fixed: 774533
2023-07-30 19:07:23 -07:00
Ananya Gupta
354552db23 qcacld-3.0: Vote PCIe link when Direct link server is up
Support only D0 wow when direct link is up when XPAN feature
is up in WHC or P2P modes.

Change-Id: Ifbae57e4e1c8701950e7cecc095830a374603034
CRs-Fixed: 3559061
2023-07-30 19:07:23 -07:00
Rakesh Pillai
d03053c1c7 qcacld-3.0: Handle MLO link switch case for FISA flow flush to stack
When FISA aggregated flow is flushed to n/w stack, there
is a vdev_id comparison between the flow and the head skb.
If this vdev_id check fails, the packets are dropped.

In case of MLO link switch during the FISA flow aggregation,
the packets might be received on different vdev (belonging to
the same MLD). Hence the vdev_id comparison will fail when
there is a MLO link switch in between the flow aggregation.

Since both the vdevs belong to the same MLD, add a MLD addr
validation to mitigate the above mentioned issue.

Change-Id: I0328dccff3f08da87f55758b469d773b9ea1169b
CRs-Fixed: 3568987
2023-07-30 19:07:17 -07:00
Aravind Kishore Sukla
48a3511147 qcacld-3.0: Convert pcie_config INI related variable to unsigned
Based on requirement for pcie_config INI, convert corresponding
INI boolean variable to unsigned variable.

Change-Id: Ia0045c35a36bafe77e457b95f72fa1db86d2f0d3
CRs-Fixed: 3571497
2023-07-30 19:07:12 -07:00
Rahul Choudhary
5765a6ae4f Release 5.2.1.75L
Release 5.2.1.75L

Change-Id: I64c80f5d2859a4c2bed63924a04ab45d6d3ba1b6
CRs-Fixed: 774533
2023-07-30 15:08:24 -07:00
Aditya Kodukula
27c56a4ae7 qcacld-3.0: Fix potential memory leak in mlo peer stats
Currently in the function wlan_hdd_send_ll_stats_req, memory is
allocated to store mlo peer stats when WMI_LINK_STATS_ALL_PEER
stats event is received and freed after sending them to userspace.

But, if multiple WMI_LINK_STATS_ALL_PEER stats events are received then,
only the latest allocated memory is freed leading to a potential memory
leak. To avoid this issue, add a sanity check before allocating memory.

Change-Id: I0470a7b1951a4d134c752a63ee915490be4e066c
CRs-Fixed: 3574762
2023-07-29 12:39:53 -07:00
Rahul Choudhary
ef9583a9e1 Release 5.2.1.75K
Release 5.2.1.75K

Change-Id: I444666e592fa30c6c32b77a1de0f47f05e2f749c
CRs-Fixed: 774533
2023-07-28 23:42:41 -07:00
Jianmin Zhu
263d0d2296 qcacld-3.0: Fix tdls vdev ref issue for race condition
When wpa_supplicant sent tdls mgmt frame during sta disconnecting for NUD
failure, scheduler thread clear MLO flag of vdev0, in
wlan_key_get_link_vdev, wlan_vdev_mlme_is_mlo_vdev(vdev0) return true,
in wlan_key_put_link_vdev, wlan_vdev_mlme_is_mlo_vdev(vdev0) return false,
WLAN_OSIF_TDLS_ID vdev ref count is released in both
wlan_key_get_link_vdev and wlan_key_put_link_vdev, while WLAN_MLO_MGR_ID
vdev ref count isn't released, assert will happen.

To fix it, add check in os_if, if vdev not up, reject tdls frame to
avoid such race condition issue.

Change-Id: I90e60c95888cc63e57d0bd0b75c570d8d677cbaa
CRs-Fixed: 3572133
2023-07-28 23:42:41 -07:00
Rahul Choudhary
9618136de3 Release 5.2.1.75J
Release 5.2.1.75J

Change-Id: I325d733a124289a58c18e44feafee4b01a4b8726
CRs-Fixed: 774533
2023-07-28 15:36:51 -07:00
Asutosh Mohapatra
ee00b1ff09 qcacld-3.0: Create unit_test_target sysfs file in FTM mode
Add support to create unit_test_target sysfs file
in FTM mode.

Change-Id: I1a80b2d1f2cc4c5718319cceb9cf4375d90d9fbb
CRs-Fixed: 3565774
2023-07-28 15:36:51 -07:00
Asutosh Mohapatra
0005d2bf45 qcacld-3.0: Send signed rssi for SAP big data stats
Add changes to send signed rssi value to user space as part
of the SAP big data stats command in disconnected case
to maintain uniformity with the connected case.

Change-Id: I8c48ff00ead7728db76ee73176bf82443dea4836
CRs-Fixed: 3567295
2023-07-28 15:36:46 -07:00
Aasir Rasheed
480f4a07e1 qcacld-3.0: Update logic to add mlo_link_info
This change is to update the logic for mlo_link_info
iterator in wlan_hdd_mlo_link_add_pairwise_key.

Change-Id: I30d7c56c7f340fa44847e5f915f2b1ccdff60426
CRs-Fixed: 3573067
2023-07-28 15:36:41 -07:00
Pragaspathi Thilagaraj
24a4afc38a qcacld-3.0: Fix invalid DFS channel check for TDLS off-channel
While populating peer channel list to firmware, the channel
is checked if the state is CHANNEL_STATE_DFS. But for indoor
channels also this state CHANNEL_STATE_DFS is set. So the
indoor channels are removed from tdls peer supported channels
in tdls_extract_peer_state_param().

Use wlan_reg_is_dfs_for_freq() API to check if the given peer
frequency is DFS or not.

Change-Id: Ia16e55f8d00ba2686187a2b08c67a1e4a63a3d4d
CRs-Fixed: 3565520
2023-07-28 15:36:36 -07:00
Rahul Choudhary
ef4f3758ab Release 5.2.1.75I
Release 5.2.1.75I

Change-Id: I114383e886c73ac848b073473a3b4a06fab3484e
CRs-Fixed: 774533
2023-07-28 05:32:47 -07:00
Surya Prakash Sivaraj
c3fd62f1fb qcacld-3.0: Allow station stats during roam start
In existing design, get_station stats request is
not entertained right from roam start till roam
complete/abort.
In some roam invoke cases, FW would do back to
back partial and full scan if good candidates are
not available. Therefore, the station stats are not
collected for a long time ~7secs.

Instead of blocking the stats request through out the
roaming, block only when roam sync is in progress
which would prevent unnecessary delays in roam sync
processing.

Change-Id: I47567a81eca08a0daabbd4d490b349392e5cd505
CRs-Fixed: 3572625
2023-07-28 05:32:47 -07:00
Deeksha Gupta
65c4c2d412 qcacld-3.0: Add support to Dynamic TDLS disable
Add support to dynamic disabling the TDLS.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE

Change-Id: I1bbd00bacd81cdd3d8ef4a6b68fbe7908039228c
CRs-Fixed: 3562162
2023-07-28 05:32:41 -07:00
Rahul Choudhary
aa7b7470dc Release 5.2.1.75H
Release 5.2.1.75H

Change-Id: I6345d717786b2c5f2042d22c96e4cc4d17e83df6
CRs-Fixed: 774533
2023-07-27 22:24:14 -07:00
Asutosh Mohapatra
4a58eb1c4f qcacld-3.0: Do SAP CSA if bonded channels are disabled
Currently if STA+SAP SCC on a 6 GHz channel is present and
host received SET_FCC_CHANNEL 0 command then host disables
all 6 GHz channels except for STA connected channel. If
SAP's bandwidth is greater than 20 MHz then kernel sends
stop_ap as SAP bonded channels are disabled.

To address this issue, do CSA to a non 6 GHz frequency.

Change-Id: I89edf3c862c5b02f0eb5865428bdbb0d43d07f85
CRs-Fixed: 3563476
2023-07-27 22:24:14 -07:00
Deeksha Gupta
bbece0a981 qcacld-3.0: Add support to Dynamic TDLS enable
Add support to dynamic enabling the TDLS.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE

Change-Id: I3b9164ba04a4d9c23d7f580020966c222f8bd359
CRs-Fixed: 3562148
2023-07-27 22:24:09 -07:00
Deeksha Gupta
ea029e0c45 qcacld-3.0: Add support to get the TDLS wider bandwidth cap
Extend the bitwise mask in
QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED.
attribute to get the TDLS wider bandwidth capability.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES
Vendor attr: QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED
BIT: WIFI_TDLS_WIDER_BW_SUPPORT

Change-Id: Ia9a8859cfd15426b190b92b6606bf257bd6f1fe8
CRs-Fixed: 3556159
2023-07-27 22:24:03 -07:00
Deeksha Gupta
167488b437 qcacld-3.0: Add support to send TDLS avail and no. connected peer
Add support to send whether currently TDLS is available or not.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS
Vendor attr: QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE

Also add support to get the TDLS number of active sessions
using below vendor attr.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS
Vendor attr: QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS

Change-Id: Ie9ad09de9593559c4d57599a9af58a95af99e60f
CRs-Fixed: 3554429
2023-07-27 22:23:58 -07:00