Graphe des révisions

2648 Révisions

Auteur SHA1 Message Date
David Oladunjoye
5f21308490 qcacld-3.0: Update min/max bounds for RoamRSSI_Trigger
We need to update RoamRSSI_Trigger min/max to support new INI values.
Fix is to revert min/max and default back to original values.

Change-Id: I75f0b76ae920c885a1150d95ea011e5612ef62fd
CRs-Fixed: 3304654
2022-10-05 16:07:06 -07:00
Jeff Johnson
5db65cd24b qcacld-3.0: components: ocb: Fix misspellings
Fix misspellings in components/ocb/...

Change-Id: Id7ed91a43e1ba097b85a0ddf53ffbc9020ab2e0e
CRs-Fixed: 3303639
2022-10-05 13:05:40 -07:00
Liangwei Dong
da0b340655 qcacld-3.0: Check 11be supported before send MLO roam config
Add check 11be supported before send the MLO roam config wmi
command by API wlan_psoc_mlme_get_11be_capab.

Change-Id: I101e2c614efd44c7eabac0f45dc558e044185b6b
CRs-Fixed: 3305746
2022-10-05 12:19:59 +08:00
Jeff Johnson
66902adf96 qcacld-3.0: components: pkt_capture: Fix misspellings
Fix misspellings in components/pkt_capture/...

Change-Id: Ib56201fd25e3c11b79be1fa83a70cc9f7d006e59
CRs-Fixed: 3303637
2022-10-04 20:34:31 -07:00
Rajesh Chauhan
7a91ba9a6a qcacld-3.0: replace complete_and_exit with kthread_complete_and_exit
In kernel 5.17, complete_and_exit is replaced with
kthread_complete_and_exit. So if kernel version is >= 5.17,
then use kthread_complete_and_exit.

Change-Id: I8b5ed5bbeade9d2044e375695e6e15208e10147d
CRs-Fixed: 3297438
2022-10-03 18:58:54 -07:00
Asutosh Mohapatra
d64cb46a9c qcacld-3.0: Fix prevent issues
This change
1.fixes the use of uninitialized
variable in host driver.

2.Adds validation in extract_roam_sync_frame_event_tlv
Where these frame lengths are getting populated,
also at the place where subtraction happens to prevent
overflows

3.Adds NULL check in wma_handle_roam_reason_deauth, to avoid
the null pointer dereference.

Change-Id: I2d5ba61fb109f6d8b497df29cfa2dd572c00adeb
CRs-Fixed: 3297792
2022-10-03 13:01:30 -07:00
Jeff Johnson
5daf948dfe qcacld-3.0: components: dp: Fix Misspellings
Fix misspellings in components/dp/...

Change-Id: I7c2edc87e8c2efd9dbdaa4a93297f35c2cb972b8
CRs-Fixed: 3303645
2022-10-03 11:27:02 -07:00
Jeff Johnson
76d0561767 qcacld-3.0: components: cmn_services: Fix misspellings
Fix misspellings in components/cmn_services/...

Change-Id: I9ba9e4ea7a193db8b686adf7f31d141bdeea64bf
CRs-Fixed: 3303649
2022-10-03 03:45:53 -07:00
Jeff Johnson
6c9e2b8139 qcacld-3.0: components: coap: Fix misspellings
Fix misspellings in components/coap/...

Change-Id: I5f8b945b0d9a2d234538ffd3a77dab98fcb83b9a
CRs-Fixed: 3303648
2022-10-03 03:45:48 -07:00
Jeff Johnson
77ef806778 qcacld-3.0: components: denylist_mgr: Fix misspellings
Fix misspellings in components/denylist_mgr/...

Change-Id: Ibdcc2c194be66b1e1663674a2a9468a36737cc2f
CRs-Fixed: 3303646
2022-10-03 02:01:10 -07:00
Jeff Johnson
eed27391fb qcacld-3.0: components: cp_stats: Fix misspellings
Fix misspellings in components/cp_stats/...

Change-Id: I5b1357e9ed32ad2d2bd0bfd5ad1983ed26c5d536
CRs-Fixed: 3303647
2022-10-03 02:01:04 -07:00
Jeff Johnson
ef20cc3a0e qcacld-3.0: components: p2p: Fix misspellings
Fix misspellings in components/p2p/...

Change-Id: I220faae813cd79d7b5fe656158768d1eff4718de
CRs-Fixed: 3303638
2022-10-03 02:00:58 -07:00
Jeff Johnson
6e7e6e3c02 qcacld-3.0: components: fw_offload: Fix misspellings
Fix misspellings in components/fw_offload/...

Change-Id: I75e94f2ffe6215d0719a8a2093468d2b09f6cf9f
CRs-Fixed: 3303643
2022-10-03 02:00:52 -07:00
Jeff Johnson
17fc1e0890 qcacld-3.0: components: tdls: Fix misspellings
Fix misspellings in components/tdls/...

Change-Id: I33aea84441f7eea0fca2d62df21cf8fa1846a18e
CRs-Fixed: 3303633
2022-10-03 00:19:28 -07:00
Jeff Johnson
40bb864498 qcacld-3.0: components: wmi: Fix misspellings
Fix misspellings in components/wmi/...

Change-Id: I4ace2ae7bca8082dc9e8fd1d9e7c2bf0fed616ac
CRs-Fixed: 3303631
2022-10-03 00:19:23 -07:00
Pragaspathi Thilagaraj
da70e5bcee qcacld-3.0: Reset per vdev roam trigger config upon disconnect
Roam trigger bitmap is configured to enable few specific
triggers when SETNCHOMODE command is issued. But if disconnect
happens without NCHO disable, then the roam_trigger_bitmap
per vdev doesn't reflect the ini configuration. This causes
some roam triggers not getting triggered.

Reset per vdev roam trigger configuration.

Change-Id: I3dc008a58a2a20c4f0820fe43aa4b6406ba8dd2a
CRs-Fixed: 3300488
2022-10-02 20:46:12 -07:00
Divyajyothi Goparaju
9e02702427 qcacld-3.0: Replace wlan_reg_is_disable_for_freq
As part of upgrading legacy code
with 6 GHz power APIs, replace
all ocurrances of
wlan_reg_is_disable_for_freq with
wlan_reg_is_disable_for_pwrmode.

Change-Id: Id18e48e27eb118945d56205797882874eb552153
CRs-Fixed: 3145764
2022-10-01 11:35:16 -07:00
Liangwei Dong
d90e41b18c qcacld-3.0: Set link frequency to partner info
Update channel frequency to partner infor from scan entry.
And correct debug print to show correct channel frequency value.

Change-Id: I3fc3a04b3ef0a4e627e724ad88c5038d35cd8e4a
CRs-Fixed: 3303855
2022-09-30 11:20:59 -07:00
Liangwei Dong
b15019d221 qcacld-3.0: Add API to check all sta link are disconnected
Add API policy_mgr_is_mlo_sta_disconnected to check all STA
in mlo dev are disconnected. If any link is associated
the API will return false.

Change-Id: I2845e81b25b4dabe5cd52e80d230979ce44e9994
CRs-Fixed: 3302791
2022-09-29 14:28:28 -07:00
Arun Kumar Khandavalli
eb71eaa920 qcacld-3.0: Return success if underlying target is not supporting sbs
Return success instead of not supported when the underlying hardware
is not supporting SBS

Change-Id: I3bb890ca2e8f096a918e2e718d44980ccdf53147
CRs-Fixed: 3300183
2022-09-29 12:42:29 -07:00
Pragaspathi Thilagaraj
134dc39a2c qcacld-3.0: Change the default value of "twt_responder" ini
Disable "twt_responder" ini by default. TWT responder
configuration comes from hostapd.

Change-Id: Id094a72f70e71bac23295221dc6d12c2e7685803
CRs-Fixed: 3298565
2022-09-29 07:41:30 -07:00
Pragaspathi Thilagaraj
b70d93c705 qcacld-3.0: Add new ini to enable/disable R-STA 11az support
Add new ini "enable_responder_11az_support" to enable/disable
R-STA 11az support.

Change-Id: If99f19eb88a6db31364f010db0f257ece45e6527
CRs-Fixed: 3295310
2022-09-29 04:22:13 -07:00
Jayachandran Sreekumaran
97fefb1f62 qcacld-3.0: Disable Tx/Rx STBC in 1x1 mode
Tx/Rx STBC configs are getting updated with FW config.
Add check to verify whether the host config supports 2x2.
Disable Tx/Rx STBC in 1x1 mode.

Change-Id: I40ae78eec383d607615d035ca60a1561bbb49031
CRs-Fixed: 3270266
2022-09-29 04:22:07 -07:00
Azmath Mohammed
aacfd1d3d0 qcacld-3.0: Implement DP component for FISA feature
Add FISA feature support for DP componentization.

Change-Id: I748a20ec44d1c299aab8d31facd059eb2e35e680
CRs-Fixed: 3243693
2022-09-28 22:31:29 -07:00
Aditya Kodukula
87db27184b qcacld-3.0: Avoid ARP and NS offloads for MLO partner links
In case of MLO connection, whenever firmware receives
enable or disable ARP/NS offload request from host on any vdev,
firmware enables/disables ARP/NS offload for all MLO vdevs.

So, during system resume though host sends disable ARP offload
only for MLO partner link vdev, firmware disables ARP offload
for all MLO vdevs. But during system suspend, as host is unaware
of ARP offload disabled on all vdevs, it will not send enable ARP
offload request to firmware. Because of this, all ARP requests are
forwarded to host instead of firmware in suspend mode.

To address this issue, add logic in host to avoid ARP/NS offload
requests for MLO partner link vdevs.

Change-Id: I1ffe503911705a41be26e44d1db6d15a5988e34d
CRs-Fixed: 3295050
2022-09-28 13:25:00 -07:00
Jianmin Zhu
a9db1fa24b qcacld-3.0: Fix assert for wrong mlo_vdev count
Current issue:
When roam from legacy to MLO, set vdev MLO flags but not increase the
mlo_vdev count, when disconnect, decrease mlo_vdev count, assert will
happen.
Solution:
Use API wlan_vdev_mlme_set_mlo_vdev and wlan_vdev_mlme_clear_mlo_vdev to
set MLO vdev flag.

Change-Id: Ib6fc2e479f222dca2f1c30df6d5fcf27fd07ae29
CRs-Fixed: 3299156
2022-09-28 13:24:55 -07:00
Yu Ouyang
85f34a3bb9 qcacld-3.0: Shutdown WLAN in system suspend prepare
This re-introduces the orignal patch which shutdowns WLAN in system
suspend prepare.

Orignal patch Id1f5172a7fc1792c83c8c1c20127de815f7e4980 is reverted by
Ic82db9dc0ca9d6686df99926335af27abc61cdb5 for deadlock issue.

However, deadlock between cnss_pm_notify and unregister_pm_notifier is
not caused by Id1f5172a7fc1792c83c8c1c20127de815f7e4980. So restore it
and add flag to enable/disable feature shutdown wlan in system suspend.

Deadlock issue is caused by "up_write(&cnss_pm_sem) is invoked before
down_write(&cnss_pm_sem) in function cnss_pm_notify". The issue can be
fixed by changes I533c373b85f554fbcceb562d9f56c6b88e5155bb and
I7768fdbeb1fa8cd6ef3b260eb0aafb231aeed324.

Change-Id: I25e4398a8d3b1a52cf7bc554af74d123ec797c6e
CRs-Fixed: 3287742
2022-09-27 11:57:08 -07:00
Utkarsh Bhatnagar
5852333960 qcacld-3.0: Populate 6 GHz offchannel params correctly
Populate 6 GHz offchannel params only when VLP power is
supported by APs country.

Change-Id: Ic8d5d3f4b0bc1126d25242633eb0aae98989ddc3
CRs-Fixed: 3288784
2022-09-27 01:04:01 -07:00
Jinwei Chen
27c185dbcd qcacld-3.0: add DA check for EAPOL if not from regular RX path
For MLO connection, if the RX EAPOL frame is not from regular RX path,
then DA conversion likely has not done by HW.

Add DA check for EAPOL if not from regular RX path.

Change-Id: Ib68d247be216805d11d42da3f8580c47dffe93b6
CRs-Fixed: 3289834
2022-09-27 01:03:56 -07:00
Jianmin Zhu
8028a343a7 qcacld-3.0: Fix issue that assoc link MLO flag cleared when roam to SLO
When roam from MLO to SLO, don't clear assoc link MLO flag.
Remove 1 useless vdev parameter of mlo_cleanup_link.

Change-Id: I3e3dff0ad3f3fef8f955eaae8af1a3c564248432
CRs-Fixed: 3298471
2022-09-23 20:20:33 -07:00
Rahul Gusain
dcd308a6c0 qcacld-3.0: Add support for MLO self peer in tx mgmt path
During ANQP query, supplicant sends the action frames to firmware
and currently, host driver drops tx mgmt frames as peer is not
available. This is because in tx mgmt path, it retrieves the self
peer from non-MLO mac addr but driver creates the peer of type
AP(PEER_AP) with MLD mac addr when MLD mac addr is non-zero and for
non-MLO case, it creates self peer with non-MLD mac addr.
So, to fix this, in case of MLO mac addr, create the self peer while
creating vdev and retrieves that peer with MLD address in tx mgmt path.

Change-Id: Id7ef97668fbd1bf1914d37d09682119eb79be465
CRs-Fixed: 3297288
2022-09-22 21:19:36 -07:00
vijaraj
356a5cde4e qcacld-3.0: Fix incorrect reason code logging for Deauth/Disassoc
During Deauth/Disassoc event logging, reason code is being
logged as '0' irrespective of the real reason code.

Modified the api wlan_connectivity_mgmt_event() and
api cm_roam_mgmt_frame_event() to og correct value of
the reason code.

Change-Id: I6d5ba65a9ae312dc82e70202fe598da27a033ff3
CRs-Fixed: 3297871
2022-09-22 19:18:31 -07:00
Pragaspathi Thilagaraj
177ccb0f9e qcacld-3.0: Check the TWT responder capability before enable
TWT responder should be enabled based on the hostapd
configuration and self capability.
But when SAP is started, the TWT concurrency work is
scheduled and its enabling the TWT responder without
checking the hostapd configuration. This causes TWT
responder to be enabled even though the hostapd configuration
disables the responder.

Check the TWT responder configuration from TWT component before
sending enable command for TWT responder

Change-Id: Ia6755299421f00b2a1a69fc2e19fac3d39ab95f6
CRs-Fixed: 3291939
2022-09-22 19:18:24 -07:00
Jianmin Zhu
89a8d6b96b qcacld-3.0: Clean up vdev1 when roam to single link
When roam from MLO to SLO, partner link vdev1 keeps UP wrongly.
To fixe it, clean up partner link vdev1, but keep assoc link vdev0
MLO flag.

Change-Id: I13d256e9f05755f01cea668456f00bf33c8862b4
CRs-Fixed: 3290015
2022-09-22 17:46:53 -07:00
Amit Mehta
a518794bf5 qcacld-3.0: Pointer dereference and resource leak issue fix
Add changes to fix issues:
1. Read from pointer after free
2. Dereference before null check
3. Resource leak

Change-Id: Ie1b18abaa99e9ea168ded897e3f3e9c4cf33fb59
CRs-Fixed: 3295237
2022-09-22 12:15:20 -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
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
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
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
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
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
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
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
Meng Yuan
0fce1cafb7 qcacld-3.0: Support RRM action frame for SAP mode
Support neighbor response and beacon request
transmit from driver and deliver received
neighbor request and beacon report to hostapd.

Change-Id: I6a27d04ab4b558c4af799cc185b92f011194233d
CRs-Fixed: 3279625
2022-09-16 14:58:52 -07:00
Jeff Johnson
d5403c42a4 qcacld-3.0: Rename wlan_cm_ese_populate_addtional_ies()
Rename wlan_cm_ese_populate_addtional_ies() to fix misspelling in the
name: addtional ==> additional

Change-Id: I3a5528d09804628cc665ee882ced3af2581b0f34
CRs-Fixed: 3281750
2022-09-16 13:27:23 -07:00
Gururaj Pandurangi
3187673cf9 qcacld-3.0: Fill number of links in set link req
Fill the number of links that need to be forced inactive
when the force mode is MLO_LINK_FORCE_MODE_INACTIVE_NUM.

Change-Id: Ifd24ba213a9cf011535bfd3662dd83e5b584aa51
CRs-Fixed: 3277465
2022-09-16 11:52:26 -07:00
Roopavathi Lingampalli
6d4df6c2da qcacld-3.0: Modify Pre_alloc memory support for Dp component
Modify Pre_alloc memory support for DP componentization.

Change-Id: I274e3163bc6623a7a4e08f8ce30d3bc17a0b444b
CRs-Fixed: 3285947
2022-09-16 11:52:08 -07:00
Rahul Gusain
f9bf5e7610 qcacld-3.0: Support dummy TWT API when 11AX or TWT feature not define
Currently, in host drivers, compilation fails for some TWT API when
definition is not available for either of 11AX feature flag
(WLAN_FEATURE_11AX) or TWT feature flag (WLAN_SUPPORT_TWT).

Add support for the dummy TWT API to resolve the compilation error
when 11AX and TWT feature flags and are not defined.

Change-Id: I3fa96393d5cdac9e5222b3978108601e1a651143
CRs-Fixed: 3292454
2022-09-16 07:26:56 -07:00
Gururaj Pandurangi
adf026f655 Revert "qcacld-3.0: Fix MU EDCA iot AP issue"
This reverts commit I0ad26214417d33bafcbb6939a247bebe4f4637f8.

Change-Id: I5fd3f449557e7db1c6abfdcc6db199636d25884a
CRs-Fixed: 3283064
2022-09-14 17:28:05 -07:00
Sheenam Monga
a81c00192d qcacld-3.0: Don't prefer DBS channel over SCC
Currently in case STA is up on 5 GHz channel,
2 GHz band is preferred for P2P CLI and SAP when
concurrency priority is throughput and power
instead of SCC channel.

Fix is to prefer SCC channel in case of
throughput an power instead of moving
to another mac.

Change-Id: I0a2eef10e92f277b38e6ae80961e8d6e27047169
CRs-Fixed: 3289767
2022-09-14 11:06:12 -07:00