Grafik Komit

26918 Melakukan

Penulis SHA1 Pesan Tanggal
Surabhi Vishnoi
09e7520da2 qcacld-3.0: Allow subsequent same ACS request even if ACS is in progress
To reduce the ACS time, there is an implementation wherein one
user space process creates sap interface and queues ACS request to driver,
meantime framework initializes various config and starts hostapd
to queue same ACS request to driver. In this scenario, there is a
race condition that hostapd tries to queue ACS request while there is
already one ACS request is in progress. With current implementation,
driver will reject second ACS request and return error to hostapd
leading to sap turn on failure.

This change allows subsequent ACS request if all the attributes
of do_acs vendor command matches with the ongoing ACS request and returns
success to userspace. There is no another ACS scan queued as part of
second ACS request which is same as ongoing ACS request because the result
of ongoing ACS request will act as result of second ACS request as well.

Change-Id: I67d10b09be922745e7ffb46192e00135dbdb9de4
CRs-Fixed: 3295786
2022-09-22 12:15:13 -07:00
Madan Koyyalamudi
bec69b2f35 Release 5.2.1.38B
Release 5.2.1.38B

Change-Id: Icc2517db123e2c2df30d7589c0d71b593a723593
CRs-Fixed: 774533
2022-09-22 10:41:10 -07:00
Deeksha Gupta
ecb2f11325 qcacld-3.0: Remove unused hdd_cm_is_disconnecting() API
Remove unused hdd_cm_is_disconnecting() API from the driver.

Change-Id: I436c83499a78cd2077f5cba786edb5bb5799bfb5
CRs-Fixed: 3294911
2022-09-22 10:41:09 -07:00
Madan Koyyalamudi
0271a6d708 Release 5.2.1.38A
Release 5.2.1.38A

Change-Id: I67a35ce23b0f708902572fe5a76cc3da11fe2aab
CRs-Fixed: 774533
2022-09-22 06:09:24 -07:00
Aditya Kodukula
1472d9ad6d qcacld-3.0: Disable 11be when not supported by target
Disable 11be when not supported by target

Change-Id: Iecf9ab3eab5a9e69b01fb03b30b028b57019b10d
CRs-Fixed: 3291961
2022-09-22 06:09:24 -07:00
Madan Koyyalamudi
b5256983ff Release 5.2.1.38
Release 5.2.1.38

Change-Id: Ib25af8f533fbb9e0998b8e687c96cb70ddd13084
CRs-Fixed: 774533
2022-09-22 02:21:05 -07:00
Surabhi Vishnoi
019bdebd3f qcacld-3.0: Do not set acs_in_progress if ACS scan is skipped
If ACS scan is skipped, then ACS request is completed and vendor
event is sent to userspace in same context, so there is no need to set
acs_in_progress when ACS scan is skipped.

Change-Id: Id3d1235e405832ce66a1b8837dc04e94bb3c6b64
CRs-Fixed: 3296939
2022-09-22 02:21:05 -07:00
Madan Koyyalamudi
44ccd4ce14 Release 5.2.1.37Z
Release 5.2.1.37Z

Change-Id: I6c56e2a448dc605b5a4eae2c1900d02a8d1eee1b
CRs-Fixed: 774533
2022-09-21 21:38:09 -07:00
Jianmin Zhu
76b7b34cdd qcacld-3.0: Support transmit addr for roam pre-auth
When roam from SAE legacy to SAE MLO, pre-auth TA is MLD address,
while peer AP expects link address, pre-auth fails.
Parse transmit address field from firmware roam_preauth_start_event and
include it when send NL80211_EXTERNAL_AUTH_START to wpa supplicant for
SAE roaming cases.
If transmit address is all zeros, wpa_supplicant will not do ML sae
auth, use MLD address as TA.
If transmit address is not zeros, wpa_supplicant will do ML sae auth,
use 'transmit address' as TA.

Since self peer is created with mld address, when roam from legacy to
MLO, try to get peer by mld address during pre-auth tx since bss peer
absent, or TX fails for no peer.

Change-Id: I99ed846e94165bfe01e1d1e8c620f035751c7056
CRs-Fixed: 3289987
2022-09-21 21:38:08 -07:00
Madan Koyyalamudi
815b1c0827 Release 5.2.1.37Y
Release 5.2.1.37Y

Change-Id: I5461e5fce97b71e197683aa089ed5b6d6d3f7cb3
CRs-Fixed: 774533
2022-09-21 20:02:23 -07:00
Ananya Gupta
4912b28c8d qcacld-3.0: Pause Tx when bus suspend in progress
In SAP due to intrabss forwarding, Tx ring update is going through
when WOW enable command has been sent to FW. This results in crash.
To fix this, set is_tx_pause flag when suspend sequence starts,
which will pause Tx ring HP update.

Change-Id: I81f25b8bfca917c95180c460fd932c0f75094c10
CRs-Fixed: 3295428
2022-09-21 20:02:22 -07:00
Vinod Kumar Pirla
05f2522998 qcacld-3.0: Refactor storing of VDEV info in adapter
Refactor the hdd_vdev_create() API code where the vdev info
related to corresponding adapter is stored.
Introduce a new API to store these values in the adapter.

Change-Id: I61e36c7158c418bcbf94b7f252385af6a67bea8f
CRs-Fixed: 3294674
2022-09-21 20:02:15 -07:00
Bing Sun
4bba7480c0 qcacld-3.0: Fix fallthrough compiling issue
Fix compiling issues related to fallthrough in some platform.

Change-Id: Id11230910aae1c58d59d6e7cabb7be6ea237497e
CRs-Fixed: 3296178
2022-09-21 20:02:08 -07:00
Madan Koyyalamudi
8beb659c2d Release 5.2.1.37X
Release 5.2.1.37X

Change-Id: I8c106a95eee9c0454477aae86004508ca666f09f
CRs-Fixed: 774533
2022-09-21 16:48:59 -07:00
Gururaj Pandurangi
6442513876 qcacld-3.0: Update cktn BW from bcn if bss peer BW is incorrect
If session BW is 160 MHz or higher and peer BW is reduced below
160 MHz in assoc response, STA resets HE 160 MHz MCS rates to
0xffff that results in FW assert. To avoid STA crash, add a
check to get reduced peer BW from beacon instead of allowing
160 MHz association.

Change-Id: Ifa2c45e6354129fdc2d3cc50464f9d2dd7edae2a
CRs-Fixed: 3289443
2022-09-21 16:48:59 -07:00
Dundi Raviteja
2dfd1189a2 qcacld-3.0: Disable IPA offload for Atherton target
Disable IPA offload for Atherton targets.

Change-Id: I79f17ea7b1de3b238fff39ad5c2a127c2cf72acd
CRs-Fixed: 3295431
2022-09-21 16:48:54 -07:00
Madan Koyyalamudi
2de84c29ab Release 5.2.1.37W
Release 5.2.1.37W

Change-Id: I5a6d9587a71941041988cf9a8b1820801d19b789
CRs-Fixed: 774533
2022-09-21 15:20:36 -07:00
Deeksha Gupta
f3c740b44d qcacld-3.0: Revert Get link_vdev with link_id in wlan_hdd_cfg80211_get_channel()
This reverts refer to the Commit-Id
I08f618bdd3626efce02a4b88759e45fffd2b85ce.

Change-Id: I94033012cf358addfd7ba8ca469dc79e98908a24
CRs-Fixed: 3295868
2022-09-21 14:05:29 +05:30
Madan Koyyalamudi
63589883b4 Release 5.2.1.37V
Release 5.2.1.37V

Change-Id: Ib062a5c7e954dac29b3c54849340e338fa0726e2
CRs-Fixed: 774533
2022-09-20 16:21:15 -07:00
Rahul Gusain
6e0ecd3d99 qcacld-3.0: Fix uninitialized var and dereference of freed ptr issue
This change fixes the use of uninitialized variable and dereference of
free pointer issue in host driver.

Change-Id: I88359cd383d15f9baa73bc7c3ce9d5fccee2a41e
CRs-Fixed: 3295234
2022-09-20 16:21:14 -07:00
Madan Koyyalamudi
822d0c51cb Release 5.2.1.37U
Release 5.2.1.37U

Change-Id: I9e17219737976ca7a90151e7202d972304a27918
CRs-Fixed: 774533
2022-09-20 13:58:42 -07:00
vijaraj
20e7a7f437 qcacld-3.0: Modify check to select channel switch announcement method
In api sch_set_fixed_beacon_fields(), the channel switch announcement
method selection was based on config "CONFIG_CHANNEL_HOPPING_ALL_BANDS"
due to which peer STA may not be able to switch channel when MTP
is working as SAP and doing channel switching.

Modify the check in order to select the channel switch method based
on nature of peer STA and operating/target frequency.

Change-Id: I3deb09245496d65e6bb3ec27ed7eefd3dcaa27bc
CRs-Fixed: 3293983
2022-09-20 13:58:42 -07:00
Madan Koyyalamudi
f9b7492b02 Release 5.2.1.37T
Release 5.2.1.37T

Change-Id: Ia75ad331c0dc5623b225e47a131fe31c9d1b6d15
CRs-Fixed: 774533
2022-09-20 10:47:25 -07:00
Rahul Gusain
e7b08c495d qcacld-3.0: Abort P2P ROC request before BSS start
Currently, supplicant sends roc request and hostapd sends
vdev start request to host driver. After processing these
request, host driver sends it to firmware.
But for ROC request having long dwell time, firmware can not
handle vdev start req as it waits for ROC request completed
(timeout occurs). This is leads to crash in firmware.

So, to fix this issue, host driver aborts p2p roc request
before starting BSS (sending vdev start request).

Change-Id: I956428cf94015ac6c4ff7063ef9b060146e4377b
CRs-Fixed: 3270079
2022-09-20 10:47:25 -07:00
Madan Koyyalamudi
7329be00f4 Release 5.2.1.37S
Release 5.2.1.37S

Change-Id: I50d835a8ff511d34268d1ecc8ff1f09768717321
CRs-Fixed: 774533
2022-09-19 23:36:46 -07:00
Yu Ouyang
cc2bf81627 qcacld-3.0: Use PM wakelock to protect firmware downloading
To protect firmware not downloaded in system suspend, acquire/release
the cnss semaphore cnss_pm_sem. It is complex, and cnss function
cnss_pm_notify may trigger dead lock issue once PM_POST_SUSPEND is
ahead of PM_SUSPEND_PREPARE.

Optimize code to use PM wakelock API to protect firmware downloading.

Change-Id: I533c373b85f554fbcceb562d9f56c6b88e5155bb
CRs-Fixed: 3280247
2022-09-19 23:36:45 -07:00
Madan Koyyalamudi
1037054718 Release 5.2.1.37R
Release 5.2.1.37R

Change-Id: I4d86e915f0186e1de7834712ccca2709a5440c58
CRs-Fixed: 774533
2022-09-19 19:23:49 -07:00
Deeksha Gupta
58da7e50f7 qcacld-3.0: Add 11be eht_cap in SAP mode
Implement 11be eht_cap in SAP mode.

Change-Id: Icf1b36bd5723f12d1e8ce3fddcb7cfa1302c4390
CRs-Fixed: 3265711
2022-09-19 19:23:49 -07:00
Madan Koyyalamudi
d6a167e9eb Release 5.2.1.37Q
Release 5.2.1.37Q

Change-Id: I4d4e2eb8b8bf6b78f19be706815f81825ff88076
CRs-Fixed: 774533
2022-09-19 17:50:10 -07:00
Arun Kumar Khandavalli
ab5801f734 qcacld-3.0: Remove unused curr_device_mode variable/Function
Currently in the global sme context a device mode is getting set
which is unused, removed curr_device_mode and its corresponding
set function.

Change-Id: I479107b2bbb940171d41f2620165ccbb7f0b7fff
CRs-Fixed: 3294818
2022-09-19 17:50:10 -07:00
David Oladunjoye
d2a6ccf8c7 qcacld-3.0: Add support for QCA vendor attribute
Add support for new QCA vendor attribute to configure
the periodic sounding for Tx beamformer functionality.

Change-Id: I27969f0693e5470a2b6dbb5c381e7d66ef80ddad
CRs-Fixed: 3290377
2022-09-19 17:50:05 -07:00
Madan Koyyalamudi
030fcbbdc2 Release 5.2.1.37P
Release 5.2.1.37P

Change-Id: I18b10d13023ff69f601e2783284d8131b31da9bc
CRs-Fixed: 774533
2022-09-19 14:54:02 -07:00
Ashish Kumar Dhanotiya
f926a46bc2 qcacld-3.0: Fill actual rates if max rates calculation fails
Currently if host driver needs to fill max rates info as part of
get sta stats and if it fails to calculate the max rates info,
it does not fill any rate info and also does not fill other stats
like rssi, because of this user space shows incorrect stats.

To address above issue, fill actual rates info if driver fails to
calculate max rates info and also fill other stats as well.

Change-Id: I386fbc5a0dbe4f2abc6bac202ddfa49edd2c5b99
CRs-Fixed: 3278808
2022-09-19 14:54:02 -07:00
Deeksha Gupta
74d13b500b qcacld-3.0: Get link_vdev with link_id in wlan_hdd_cfg80211_get_channel()
For MLO capable SAP, when channel switch indication happens driver use
the primary vdev.

To support per link channel switch, in case of MLO capable SAP driver
will get link_vdev using link_id in wlan_hdd_cfg80211_get_channel().

Change-Id: I08f618bdd3626efce02a4b88759e45fffd2b85ce
CRs-Fixed: 3290750
2022-09-19 14:53:57 -07:00
Madan Koyyalamudi
9597f720fa Release 5.2.1.37O
Release 5.2.1.37O

Change-Id: Id4beff7c4d1a6f189dd491c5a86705dc55b766da
CRs-Fixed: 774533
2022-09-19 09:07:09 -07:00
jinbaoliu
5b1891d9d4 qcacld-3.0: Fix rx rate=0 due to roaming or assoc
DP will record RX rates info of data frame. Sometimes DP
has not received a data frame since assoc or roaming so
that the rates info fail to be updated and remains 0. HDD
will report max rate until a data frame has been received.

Change-Id: Iec26205b992a687ba5586867e5b5a4fa7049ca59
CRs-Fixed: 3292232
2022-09-19 09:07:09 -07:00
Madan Koyyalamudi
11b6623eac Release 5.2.1.37N
Release 5.2.1.37N

Change-Id: Ice7ae44c64ea6b572d8feb45d77bd6a3d6c88c34
CRs-Fixed: 774533
2022-09-19 07:34:06 -07:00
Aravind Kishore Sukla
d99bf7c571 qcacld-3.0: Explicitly send vdev_stop_rsp in SSR
VDEV destroy timed out happens in SSR when device
has prior active MLO connection.
The reference for MLO MGR is not released in this
case as FW response for VDEV stop won't be received
during SSR.

Initiate VDEV stop response explicitly for the driver
to deinit MLO context.

Change-Id: I934c7161189fbceb9e0de93aad6f0f9ff45102ac
CRs-Fixed: 3286321
2022-09-19 07:34:06 -07:00
Madan Koyyalamudi
7f6b5ecbb9 Release 5.2.1.37M
Release 5.2.1.37M

Change-Id: I060af219e55daa0486aeac8180227769df132539
CRs-Fixed: 774533
2022-09-17 01:11:03 -07:00
Ashish Kumar Dhanotiya
2cb6c9089d qcacld-3.0: Update tx retries from host dp vdev stats
Currently host updates tx retries for get sta info command in
connected case from fw peer stats, based on new requirement,
update these stats from host data path vdev stats.

Change-Id: Ie87cb2018d6b3d5d1f3931f40c41f15116079976
CRs-Fixed: 3292051
2022-09-17 01:11:03 -07:00
Ashish Kumar Dhanotiya
f39a68fc05 qcacld-3.0: Process tx and rx rate count from peer stats
Based on the new requirement process tx and rx rate counts
from peer stats response and send these stats to user space
as part of big data stats.

Change-Id: Ie442c0e37fcae8af92796032ff6a042d983c8742
CRs-Fixed: 3289741
2022-09-17 01:10:57 -07:00
Madan Koyyalamudi
a82e7e5eea Release 5.2.1.37L
Release 5.2.1.37L

Change-Id: Ib91b0ddcdbb4083a49720b4f059cfdb5c48d6433
CRs-Fixed: 774533
2022-09-16 23:36:17 -07:00
Mohammed Ahmed
d0751ac42f qcacld-3.0: Reduce time between Ref Leak prints
Currently the Vdev Ref Leak functionality prints holders of references
every 10 seconds, resulting in only two prints before a device crash.
Fix this by reducing the timeout macro from 10 seconds to 4 seconds.

Change-Id: Icc1046a5678d4b224c2bc715d27fed092836e269
CRs-Fixed: 3292752
2022-09-16 23:36:17 -07:00
Madan Koyyalamudi
d4601179ea Release 5.2.1.37K
Release 5.2.1.37K

Change-Id: I61c340ec7f99eb1643fcdc9d5a4f4f3c595900f0
CRs-Fixed: 774533
2022-09-16 21:02:54 -07:00
Mohammed Ahmed
8e6a33e431 qcacld-3.0: Add Ref Leak related flags under CONFIG_CNSS2_DEBUG
Currently Vdev Ref leak functions (eg: wlan_objmgr_print_ref_func_line)
are not being compiled in defconfig due to compilation flags.
Fix this by moving appropriate flags under the CONFIG_CNSS2_DEBUG flag.

Change-Id: I34e69680b3959232be17d1a10cd581903ad1a64a
CRs-Fixed: 3292744
2022-09-16 21:02:53 -07:00
Madan Koyyalamudi
775f907588 Release 5.2.1.37J
Release 5.2.1.37J

Change-Id: I45867452ed108997a69a1f5238332d4fc9123170
CRs-Fixed: 774533
2022-09-16 19:38:41 -07:00
Ashish Kumar Dhanotiya
c8d57a7023 qcacld-3.0: Parse tx and rx packet per MCS from peer extd stats
Based on the new requirement, fw fills the tx packet counts per mcs
and rx packet count per mcs index in the peer extd stats event.
Add logic to parse tx packet count per mcs and rx packet count per mcs
from peer extd stats event.

Change-Id: I4cd8c1ed5dd6942022d9f930f8de0bcbcb679eb5
CRs-Fixed: 3289683
2022-09-16 19:38:41 -07:00
Madan Koyyalamudi
8d24d5cc65 Release 5.2.1.37I
Release 5.2.1.37I

Change-Id: Ibf63e66e3495fc3541b4def3f82015cd3a3981ee
CRs-Fixed: 774533
2022-09-16 16:31:04 -07:00
Qun Zhang
8767353043 qcacld-3.0: Let non-DBS chips pass STA+STA concurrency check during reassoc
During reassociation, cm_check_for_reassoc_hw_mode_change() is called
to check the coming concurrency is supported or not after preauth is
done. For non-DBS chip, due to STA+STA concurrency is not supported
by FW, the connection manager will run into state disconnecting from
roaming and disconnect current connection by sending disassociate frame,
then do new connection again. It's not normal roaming flow in which
disassociate frame should not be seen over the air.

Per the reassociation flow, it will internally delete previous connection
first, so can call policy_mgr_store_and_del_conn_info_by_vdev_id first to
make sure concurrency checking can pass even if a new STA connection is
coming up.

Change-Id: I5f9f3e1151cb5402405042e3e9f2bec95f0b094c
CRs-Fixed: 3246822
2022-09-16 16:31:04 -07:00
Paul Zhang
1b38d7fb95 qcacld-3.0: Send pmk cmd even PMKSA entry is found
Currently, supplicant uses two different ways to delete PMKSA entry,
one uses SSID and cache ID as keywords, another one uses BSSID as
keywords. It causes out of sync between fw and host if driver adds
PMKSA entry with BSSID and supplicant deletes PMKSA entry with SSID
and cache ID.

To resolve this issue, send pmk cmd to fw even the PMKSA entry is
found.

Change-Id: I211da3c86085567592ee9244ae27a4a8189a6626
CRs-Fixed: 3285073
2022-09-16 16:30:58 -07:00