Commit Graph

762 Commits

Author SHA1 Message Date
Vinod Kumar Pirla
18cdbce177 qcacld-3.0: Clear copied connect ies from connect req
Active connection req fetch may allocate memory to copy the
connect IEs, free after use.

Change-Id: Ida4892cd9efef8a4ebfaf925908eedc19a3d9d7b
CRs-Fixed: 3832469
2024-06-12 17:34:21 -07:00
Shashank Reddy Vulupala
7be3bd7509 qcacld-3.0: Add check for station count
This change is to check for station count with maximum
number of concurrent connections.

Change-Id: I539ae0b78deadf5e514f00d57542b4dd871e0e4e
CRs-Fixed: 3776536
2024-05-28 01:22:55 -07:00
Balaji Pothunoori
1b80f4f622 qcacld-3.0: initialize structure parameters before use
Currently bool values are not initialized and results
in unexpected values for bool variables,
Hence this change is to initialize structure to
NULL before use.

Change-Id: I07ec3880d35441d3dc84eaa44640ad07eba0b3c9
CRs-Fixed: 3800965
2024-05-14 05:02:52 -07:00
Prasanna JS
0bdee78916 qcacld-3.0: Fix uninitialized variable used issue
Fix uninitialized variable used issue for sbs_mac0_modified_pcl

Change-Id: I8be306ab118291923b1c76eb6a84c1e14aacf5e0
CRs-Fixed: 3687569
2024-05-07 02:00:13 -07:00
Vijay Raj
4a8ee774c7 qcacld-3.0: Fix NSS update during TDLS setup
Fix NSS update during TDLS setup, by calling HDD API.

Change-Id: I0a27fca151f72f64460bd7cbca8d803ade81bd10
CRs-Fixed: 3796099
2024-05-03 01:34:17 -07:00
Vijay Raj
ebd1aaceda qcacld-3.0: Override NSS with the HW NSS capability during TDLS setup
Add support override the NSS capability with HW NSS capability
during TDLS setup.

Change-Id: I916193969d5aafe042ee1bea2adc29668c9109ee
CRs-Fixed: 3792456
2024-05-02 01:09:59 -07:00
Srinivas Dasari
6ac4a7f8cb qcacld-3.0: Don't abort SAP CSA if it's already started
When SAP CSA is started, host driver starts sending CSA IE
with beacon count. Host driver sends VDEV_RESTART to firmware
only when the beacon count reaches to 0(e.g. from 10 to 0).
But if CSA has to be aborted due to some reason(e.g. concurrent
SAP got disconnected), host driver stops the CSA by posting
EV_CHAN_SWITCH_DISABLED where it stops sending the CSA IE and
restores the VDEV state to UP-UP-ACTIVE. It updates the
templates and doesn't send VDEV_RESTART to firmware.

Currently, host driver sends VDEV_UP to firmware as part of
SAP state machine restoration. But firmware might not expect
this VDEV_UP as vdev is in UP state. Host has to avoid
sending VDEV_UP to firmware when the VDEV state is UP-ACTIVE.
Also, SAP CSA abort might result in other race conditions.
So, let the CSA continue if it's already started and SAP channel
gets evaluated once SAP is UP anyway.

Change-Id: Ic8ff8b0c58dd656b4e7ae2a2f9c46c3584a33165
CRs-Fixed: 3734991
2024-05-01 10:40:30 -07:00
Gururaj Pandurangi
ec54ce1398 qcacld-3.0: Add support to update dot11mode based on regdb
Certain countries have dot11mode restrictions such as no
11be mode support, in which case the regdb updates the
phymode and sends to Host.
Add support to use this value to limit and update the
internal dot11mode to allow connection in corresponding
phymode.

Change-Id: If7dd8c261fbe61e96c7749dd1457713502409fa6
CRs-Fixed: 3747811
2024-04-11 22:21:33 -07:00
Pragaspathi Thilagaraj
fbda9a4e96 qcacld-3.0: Reject TDLS when ML STA links are on MCC
When ML STA links are on MCC, TDLS action frames try to
set the link mode to force active. To avoid this
reject the TDLS mgmt request when ML STA links are on MCC.

Also enhance few debug prints for TDLS.

CRs-Fixed: 3717831
Change-Id: I69a942d80f5fac0ff25cfb47229e5dde6a693f97
2024-04-07 06:51:28 -07:00
Vijay Raj
0ebb4a5afa qcacld-3.0: Extract VSIE before logging MGMT frames
In the api wlan_connectivity_mgmt_event(), the VSIE is
extracted after logging the Deauth/Disassoc frames
due to which VSIE is not logged as part of
Deauth/Disassoc frame logging.

Modify the api wlan_connectivity_mgmt_event() to extract
VSIE before logging the Deauth/Disassoc frames

Change-Id: Ia5ac504f6e17d0464a6ce0d442ae7eec658b2445
CRs-Fixed: 3761695
2024-04-05 08:08:44 -07:00
Srinivas Dasari
959e9dffce qcacld-3.0: Avoid ch switch when stand alone SAP is on unsafe ch
Some targets may prefer to keep SAP on same channel even when the
channel is marked as unsafe due to coex operations.
Check the corresponding device capability and avoid chan switch
when the SAP is fixed channel(non-ACS) SAP.

Change-Id: I8d003359a587c5308899e0956b0414074bd748b0
CRs-Fixed: 3776847
2024-04-03 23:52:46 -07:00
Srinivas Dasari
6472be5eda qcacld-3.0: Enhance coex_unsafe_chan_nb_user_prefer for P2P mode
Currently, firmware-reported unsafe channels are ignored
and userspace configured channels are honored when
coex_unsafe_chan_nb_user_prefer ini is set. This is supported for
SAP mode only.
But some platforms may want driver to ignore the firmware-
reported coex channels for P2P-GO also.
Enhance the ini to allow user to configure mode specific
bit as mentioned below,

BIT 0: Don't honor fw coex/unsafe channel info for SAP mode
BIT 1: Don't honor fw coex/unsafe channel info for P2P-GO mode

Change-Id: I91a2c6b2da9aba411d081f6ae3b23d374fe53159
CRs-Fixed: 3766393
2024-03-26 18:59:44 -07:00
Aasir Rasheed
ae4cecadd8 qcacld-3.0: Allow STA + SAP scc on non DBS solution
Currently, Host driver is rejecting force scc on non DBS
solution when QDF_MCC_TO_SCC_WITH_PREFERRED_BAND is set.

This change is to allow STA + SAP concurrency on non DBS solution.

CRs-Fixed: 3716279
Change-Id: Ief73a57d23f627764eca00254acf4cf7e9acd963
2024-03-22 05:30:05 -07:00
Surya Prakash Sivaraj
26b8de01cc qcacld-3.0: Allow STA+SAP SCC in 6 GHz PSC/VLP channel
The SAP is not moved to the 6 GHz user configured
frequency in the following cases:
1. STA disconnected, SAP is standalone in 2.4 GHz
2. STA is VLP/PSC channel, but SAP is currently in
   2.4 GHz(due to STA(DFS) + SAP)

Allow the SAP to restart in 6 GHz channels for the
above scenarios if the following criteria are met:
1. For standalone: The SAP user configured band is
   superior than the current operating band.
2. For SCC: The 6 GHz STA should operate in PSC and
   the channel should support VLP in DUT regdomain.

Change-Id: Iea292c94e579ccead2300f6e9b994c4b8e9a0a87
CRs-Fixed: 3713247
2024-02-06 12:52:03 -08:00
Liangwei Dong
8fa0db5a69 qcacld-3.0: Add validate for vendor command with concurrency requirement
Add more validation for vendor command force active link bitmap:
1.If force inactive num is present due to MCC link(DBS RD) or
concurrency with legacy intf, don't allow force active if
left inactive link number doesn't meet concurrency requirement.
2.If force inactive bitmap is present due to link removal or
concurrency with legacy intf, don't allow force active if
it is conflict with existing concurrency requirement.

Change-Id: Ic7507c1797189c079f0032a39819e15467bd6bf3
CRs-Fixed: 3701323
2024-01-18 07:21:06 -08:00
Lin Bai
5f87c0b118 qcacld-3.0: Fix function prototype and definition mismatch
Fix function prototype and definition mismatch,
to avoid compiler complain.

Change-Id: I21729bf9eaa6561d6282bb456451e1e1a0748609
CRs-Fixed: 3674787
2024-01-12 11:42:46 -08:00
Srinivas Dasari
2021b8ee2c qcacld-3.0: Add connectivity log for BTM drop/block
Currently, driver drops BTM frames in unsupported cases,
e.g. connected to MBO AP without PMF capability, concurrent P2P
session present which doesn't allow STA roaming.

Add connectivity log support and indicate the reason for BTM
drop/block.

Define interface for userspace as below,
New subtype: WLAN_CONN_DIAG_BTM_BLOCK_EVENT
New enum to fill sub_reason for BTM_BLOCK_EVENT type

Change-Id: I87115da57d275a94c5ae69252ec09bcad698e47c
CRs-Fixed: 3699042
2024-01-09 06:21:01 -08:00
Vijay Raj
5f0b270f4b qcacld-3.0: Optimize CONNECTING connectivity log
In the api wlan_connectivity_sta_info_event(), the
CONNECTING connectivity log is printed after
STA_INFO connectivity logs. But this behaviour is
not expected during STA INFO Log after roaming
as CONNECTING log should be printed only when
connect request is received from the userspace.

Modify the api wlan_connectivity_sta_info_event()
and logging CONNECTING event from the api
lim_process_mlm_join_cnf() in order to prevent
connecting log during roaming.

Change-Id: I91d2c14b109fb8a828ba99a021fe6b6e462516c8
CRs-Fixed: 3680502
2024-01-08 04:48:30 -08:00
Vijay Raj
739e08d0be qcacld-3.0: Add support for T2LM connectivity logging from STA
T2LM Req/Resp Connectivity logging is not supported if
the T2LM request is initiated from STA.

Add support for T2LM Request/Response connectivity logging
when T2LM request is initiated from the STA.

Change-Id: If61b5ba7c7eb9ec5687d271afc300737df8fdf8d
CRs-Fixed: 3689209
2024-01-05 07:48:41 -08:00
Srinivas Dasari
3b4bb5a9e6 qcacld-3.0: Don't allow SAP CSA to ML-STA ch while it's disconnecting
Currently, SAP gets moved to STA channel when SAP causes MCC
upon STA connection. Same is true for ML-STA where SAP is in
same band as one of the ML-STA links, even if the ML-STA is
in DFS channel.
But STA may receive disconnect request from userspace just
after connect completion. If SAP-CSA is started before receiving
disconnect request, CSA is supposed to be aborted as the STA
would be gone out of the DFS channel.
If SAP-CSA is not aborted, host driver may send VDEV_RESTART on
the STA DFS channel without cac timer and firmware allows SAP to
proceed with VDEV_UP. Host driver doesn't send VDEV_UP as the SAP
channel is not valid anymore. Firmware waits for SAP VDEV_UP and
may cause inconsistency in firmware state machine as host doesn't
send VDEV_UP at all.
So, abort SAP restart if any of the STA/ML-STA links/P2P client
are in disconnecting to avoid this.

Change-Id: I8d229686d9dae685ed680592396bb7cf389f6011
CRs-Fixed: 3667305
2024-01-03 18:19:58 -08:00
Vijay Raj
3bf9181471 qcacld-3.0: Modify Connecting event to log for No candidate scenario
"CONNECTING" connectivity event is not logged during
NO CANDIDATE scenario which resulting in breaking of
connectivity logging mechanism.

Modify wlan_connectivity_connecting_event() api
to get connect request parameter as argument in
order to log CONNECTING event.

Change-Id: I040446db189c55ade3c6d0aa993388789f9881af
CRs-Fixed: 3678172
2023-12-29 07:02:39 -08:00
Vijay Raj
5e6d32dccc qcacld-3.0: Modify MLO LINK status log to include supported link
For MLO LINK connectivity log, the links not associated
during connection are also included as part of
inactive links which breaks the sanity of logging
mechanism.

Modify MLO LINK connectivity event to send the
associated link band bitmap in order facilitate
userspace to find links associated in current
connection and in turn find the inactive links
in a particular instance.

Change-Id: I7a490e9bf8a6666620d1c57b9f8047a22bf78fc5
CRs-Fixed: 3674048
2023-12-29 07:02:33 -08:00
Vinod Kumar Pirla
0b6df7dbe9 qcacld-3.0: Restrict three link connection on certain vendor APs
Identify APs which don't support three links and downgrade the
max connection links to two so that connecting to such APs will
not lead to unexpected behavior.

Change-Id: I25d2c0fd09e29b6f0cc2d228e52733bcbceb39fd
CRs-Fixed: 3636112
2023-12-21 04:34:33 -08:00
Liangwei Dong
4b57844470 qcacld-3.0: allow set link for MLSR in DBS rd
In DBS rd, SAP on 2.4 GHz, and ML STA on 5 GHz + 6 GHz. Driver
will force inactive one of link to inactive, for example 6 GHz link.
When user sets the 6 GHz link to active, current driver rejects.
Consider the SAP is on 2.4 GHz, MLSR can be switched between on 5 GHz
and 6 GHz, to allow such user request.

Change-Id: I32440d0c079b9a4bb9551087ecd959b3f9fc25c4
CRs-Fixed: 3675217
2023-12-08 01:19:18 -08:00
Srinivas Dasari
b5c25ebb68 qcacld-3.0: Deprecate values 1 and 2 for gWlanMccToSccSwitchMode
Currently, gWlanMccToSccSwitchMode has the below documentation,
gWlanMccToSccSwitchMode = 0: disabled.
gWlanMccToSccSwitchMode = 1: Enable switch.
gWlanMccToSccSwitchMode = 2: Force switch with SAP restart.
gWlanMccToSccSwitchMode = 3: Force switch without SAP restart.
...

But values 1 and 2 are not used and all platforms are adapted
to value 3. Usage of values 1/2 leads to the case where
connections are stuck in MCC.
Deprecate the same and overwrite it to 3 in host driver.

Change-Id: I036985c6cf33b975a726a3eee6d6562a869bbc60
CRs-Fixed: 3668491
2023-12-05 02:17:55 -08:00
Aasir Rasheed
8ed2b0c87a qcacld-3.0: Refuse diag event when ml peer or link info is not valid
Currently, Host driver is sending EVENT_WLAN_MLO_LINK_STATUS
even when ml peer or link info is not valid.

This change is to refuse diag event when ml peer or link info is not valid.

Change-Id: Ie6dd16509954811f92b838c3be3d9e0f3a6759c2
CRs-Fixed: 3657297
2023-12-04 04:02:44 -08:00
Liangwei Dong
e1e35f85c2 qcacld-3.0: Add set link source data structure
Add new data structure to save the external/internal set link
request. The different source of request has different priority.
In some situations, a certain request may not be honored if
it conflicts with higher priority request.

Change-Id: Ib95d0c688f92dcfc294702e7deb2e3b7da13f76c
CRs-Fixed: 3650630
2023-12-01 02:34:53 -08:00
Srinivas Dasari
2e567abb85 qcacld-3.0: Pick matched channel from PCL for SAP restart
Currently, PCL carries the supported frequencies for SAP
restart as part of MCC to SCC switch. Policy mgr checks
if any frequencies from this list have to be filtered out,
i.e to avoid unsafe/dfs/6 GHz etc channels.
This works fine if the PCL carries only one frequency(non
multi-link STA case). But if STA is connected to an MLO AP in
multi link mode, the PCL carries two(could be more) frequencies.

First channel from PCL is picked for evaluation in
policy_mgr_get_sap_mandatory_channel(), which might be different
from the chosen frequency for chan_switch. Then it returns
different frequency than the chosen frequency(i.e. carried
through intf_ch_freq) by the caller. So, the caller thinks that
the filter API rejected the chosen channel and aborts channel
switch.

The expectation is to pick the preferred channel from caller
data(i.e. intf_ch_freq) if it's present in PCL. If intf_ch_freq
doesn't carry any valid frequency from PCL, first frequency can
be picked as per current logic.

Change-Id: Ib087b27b7149ff8cfe06e2ad7aa75099bba5085c
CRs-Fixed: 3668526
2023-11-28 04:07:57 -08:00
Liangwei Dong
b1243a11ac qcacld-3.0: Enhance eMLSR connection check
In the roaming to eMLSR AP, fw may move the link to inactive
because concurrency not support eMLSR mode, the eMLSR cap in vdev
may not be properly set in one vdev in the middle of roaming.
Check inactive vdev as well for the eMLSR flag, if anyone vdev
have eMLSR return true for API policy_mgr_is_mlo_in_mode_emlsr.

Change-Id: Ia05200e16aae701c24e9d9c3a70c8139825db833
CRs-Fixed: 3647141
2023-11-21 22:22:26 +05:30
Gururaj Pandurangi
181340ab64 qcacld-3.0: Add new API to validate force active cmd
After 3-link association is complete, Host sends force
inactive num command between 5 GHz and 6 GHz links to
firmware. Later, if user wants to force enable 1 or 2
links, the current checks prevent it from taking effect
as a previous force active num is in place and a NO
FORCE command cannot be sent as it is a DBS RD.
So add new API in policy manager to check if the new
force active num command is valid and process accordingly.
All new force active num commands except for 5 GHz +
6 GHz links should be allowed while honoring the prior
force inactive bitmap as well.

CRs-Fixed: 3656412
Change-Id: Iecfca57d9b47acd31d191cca2632a6d1baf62174
2023-11-21 22:22:02 +05:30
Rahul Gusain
f5bb14f490 qcacld-3.0: Disable 3 port concurrency for 1x1 DBS target
Currently, host driver sends only 2 port interface combinations to
userspace based for non-DBS targets. But 1x1 DBS also does not
support 3 port concurrencies.

So, to fix this, disable the 3 port concurrencies for
1X1 DBS target also.

Change-Id: Ia70937a7875d11d3f852ca498c4f7d9415a6783b
CRs-Fixed: 3654683
2023-11-21 22:21:57 +05:30
Ashish Kumar Dhanotiya
ae748f6cf0 qcacld-3.0: Reject 4th port concurrency if LL_LT_SAP is present
Currently LL_LT_SAP does not support 4th port concurrency,
add a check in policy manager to reject 4th port concurrency
if LL_LT_SAP is present.

Change-Id: I57ed78c937935396f9001b867652cb7ee146c487
CRs-Fixed: 3658476
2023-11-14 12:09:55 -08:00
Srinivas Dasari
214fe8654f qcacld-3.0: Avoid SAP bw downgrade when link switch is in progress
Currently, SAP bw gets downgraded(from 320 MHz to 160 MHz) when
link connect starts on a channel which causes DBS/SBS.

But SAP is not aware of the link that can cause DBS/SBS if it is
inactive as corresponding entry is not present in driver policy
mgr table. When link switch is triggered to a channel which
causes SMM to DBS/SBS hw_mode, SAP bw update algo gets triggered
as there is a new connect which causes split-phy mode. SAP bw
update algorithm need not be triggered upon link switch start and
can be triggered post link switch to avoid interrupting link
switch.

Currently, it doesn't differentiate between user connect request
and link switch connect request. Add a check and avoid SAP bw
update trigger link switch cases. Evaluate the links posts
connection and trigger bw update if needed.

Change-Id: I90f836c04d096dffb5b82c53166b18d2ba27a584
CRs-Fixed: 3649268
2023-11-14 05:28:08 -08:00
Pragaspathi Thilagaraj
b74100cbb7 qcacld-3.0: Send STA_INFO connectivity event after roaming
Driver sends STA_INFO event with self mac addresses for each link
before initial connection. With the new requirement to send the
STA_INFO after every roam to detect the change in mac address, add
the sta info call after reassoc response is received and roaming
status is successful.

CRs-Fixed: 3653662
Change-Id: I18ecbdfea47fb3524154f799ea0c4777276cb34a
2023-11-14 05:27:49 -08:00
Srinivas Dasari
eb4866aa31 qcacld-3.0: Try to re-enable roaming after SAP/P2P-GO is stopped
Currently, roaming gets disabled on STA when CSA is triggered
on concurrent SAP/P2P-GO and re-enabled once CSA is completed.
But SAP/P2P-GO might get stopped before CSA is completed.
Roaming is not re-enabled in such cases.
Try to re-enable roaming with reason RSO_SAP_CHANNEL_CHANGE once
SAP/P2P-GO stop is completed. Roaming gets enabled only if it's
disabled due to RSO_SAP_CHANNEL_CHANGE.

Change-Id: I57b192beda55673dbf80bed4eadbac70653d2cd1
CRs-Fixed: 3661380
2023-11-13 22:19:45 -08:00
Ashish Kumar Dhanotiya
00924a2325 qcacld-3.0: Validate SAP/GO/LL_LT_SAP channels in LL_LT_SAP mode
Add separate APIs to validate SAP, P2PGO or LL_LT_SAP
channels according to LL_LT_SAP concurrency.

Change-Id: I180796df6b312f9bbb0a8e61085ca1517cd687b5
CRs-Fixed: 3647561
2023-11-12 15:21:42 -08:00
Asutosh Mohapatra
2aac379486 qcacld-3.0: Refactor set AP power type logic
Currently wlan_reg_decide_6g_ap_pwr_type is
getting invoked from south bound and north bound
callback path, because of this pdev channel
is computed unnecessarily two times and
the AP power type obtained is not used in
reg_populate_secondary_cur_chan_list.

To address these issues, set AP power type
while propagating master channel list to pdev and
use this power type value to populate secondary
channel list.

CRs-Fixed: 3609366
Change-Id: I5bdc69d42cd09c0d875b8fb55d14f6ee10a175b2
2023-11-12 15:21:35 -08:00
Pragaspathi Thilagaraj
46d9d017f1 qcacld-3.0: Fix minor diag logging issues
Update the diag interface files with minor fixes to include
qdf_packed attribute for missing structure and fix the enum
wlan_roam_failure_reason_code ordering to be in sync with WMI

Change-Id: I3b4f6296e7d80c9d27e4f66dd2092c0110aaa766
CRs-Fixed: 3659386
2023-11-10 14:36:14 -08:00
Ashish Kumar Dhanotiya
0b9b356633 qcacld-3.0: Restart LL_LT_SAP if any concurrent iface comes up in SCC
If LL_LT_SAP start is in progress and at the same time if any
concurrent interface comes up in SCC with LL_LT_SAP, then add
changes to check presence of concurrent interface once LL_LT_SAP
start completes.

Change-Id: Ia8b72549ac98a7e60a1b55e4f7120b24596088c4
CRs-Fixed: 3647186
2023-11-07 19:04:31 -08:00
Ashish Kumar Dhanotiya
9b80743a19 qcacld-3.0: Move SAP to 2.4 GHz with ll_lt_sap concurrency
LL_LT_SAP and SAP can not be present on same MAC, if SAP is
present on 5 GHz for DBS RDs and if LL_LT_SAP tries to come
up, then move LL_LT_SAP to 2.4 GHz frequency so that LL_LT_SAP
can come up on 5 GHz.
This change handles this scenario and move the SAP to 2.4 GHz
frequency when host driver receives acs request for LL_LT_SAP,
when LL_LT_SAP start completes.
When LL_LT_SAP goes down, host driver restores the original
user configured channel.

Change-Id: Ia4ed29d86a595321ee8be57420cc6a03c84f190b
CRs-Fixed: 3647076
2023-11-07 19:04:24 -08:00
Jyoti Kumari
25f3d71384 qcacld-3.0: Give preference to 5 GHz low freq in ACS
For LL_LT_SAP, give preference to 5 GHz low frequency to select
channel during ACS.

In case of SBS, it's better to bring up LL_LT_SAP on 5 GHz low
as there will be less number of passive channels on 5 GHz low
band compared to 5 GHz high band.

Change-Id: I1d7f7c08c315394315df3b360c9c632d17a4b39a
CRs-Fixed: 3648218
2023-11-07 19:04:18 -08:00
Vijay Raj
eb8f76bea2 qcacld-3.0: Modify timestamp value for MLO link switch log
For event EVENT_WLAN_MLO_LINK_STATUS, the Fw send the
fw_timestamp value in milliseconds for MLO link
switch connectivity log. However, the userspace
expects the fw_timestamp value in microseconds.

For connecting fail connectivity logging, connecting
fail reason code mismatch is observed between host
and userspace.

Modify the api wlan_connectivity_mld_link_status_event()
to send the fw_timestamp value in microseconds instead
on milliseconds.

Introduce wlan_diag_connect_fail_reason enum to
facilitate proper conversion of connect fail reason
code between host and userspace.

Change-Id: I92b4f294c0e4bc68c809fbf7d01ab950eca83ac9
CRs-Fixed: 3637399
2023-11-06 06:50:08 -08:00
Ashish Kumar Dhanotiya
1b0e9d3be0 qcacld-3.0: Get channel list for LL_LT_SAP 3 port concurrnecy
Add changes to get PCL for LL_LT_SAP 3 port concurrency.

Change-Id: I25f58e18a98669f05b3660f8398ff6db2ee69801
CRs-Fixed: 3647158
2023-11-04 10:07:26 -07:00
Ashish Kumar Dhanotiya
8e24914e33 qcacld-3.0: Reject STA initial connection and STA on LL_LT_SAP freq
LL_LT_SAP does not support SCC, so to avoid this, reject initial
STA connection and CSA on LL_LT_SAP frequency if STA receives CSA
on LL_LT_SAP frequency.

Change-Id: Iaa4546bbbc242aa8fc9580d1a8a2728b197457d0
CRs-Fixed: 3654643
2023-11-03 10:04:53 -07:00
Pragaspathi Thilagaraj
122f07d957 qcacld-3.0: Don't move SAP to user configured frequency
When SCC_MCC switch mode is configured as:
QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL, then when
concurrent STA is disconnected, don't move SAP to user
configured frequency even if the SAP is currently on
different band as the user configured frequency band.

Change-Id: I287fdf51bba2ca98bf6048694c03fafc114340da
CRs-Fixed: 3645514
2023-11-03 10:04:46 -07:00
Abhishek Singh
0c74539955 qcacld-3.0: Fix API to check SBS/DBS for the freq
Fix API to check if freq will lead to SBS/DBS, also use
vdev id to avoid the decision making using the self vdev during
vdev restart.

Change-Id: I4c6920883031a8e926b224841cfea710b6d82da7
CRs-Fixed: 3653755
2023-11-03 10:03:25 -07:00
Abhishek Singh
4322ff2da9 qcacld-3.0: Avoid bandwidth upgrade during connection in progress
To avoid race between CSA and set BW, check if BW upgrade is
still required after set bandwidth command become active.
If any connection is in progress, restart the timer again.

Change-Id: I049dbcbc1d30fba8f38250b05f5f62e8c230234c
CRs-Fixed: 3652085
2023-11-02 02:58:21 -07:00
Ashish Kumar Dhanotiya
6a681f285f qcacld-3.0: Update PCL tables for LL_LT_SAP concurrencies
Based on new requirement update policy manager PCL tables for
below LL_LT_SAP concurrencies:
1. LL_LT_SAP + STA + SAP
2. LL_LT_SAP + SAP + SAP
3. LL_LT_SAP + STA + P2P GO
4. LL_LT_SAP + P2P GO + SAP
5. LL_LT_SAP + P2P GO + P2P GO
6. LL_LT_SAP + STA + P2P CLIENT
7. LL_LT_SAP + P2P GO + P2P CLIENT
8. LL_LT_SAP + STA + STA
9. LL_LT_SAP + P2P_CLIENT + SAP

Change-Id: I8a01b88fc89dc18d1740ccf5fe0f8751e2980535
CRs-Fixed: 3647137
2023-11-01 21:32:41 -07:00
Jyoti Kumari
e87f2ccc0c qcacld-3.0: Reject rrm request if LL_LT_SAP is present
When STA is connected with some AP and that AP has send
RRM request to connected STA. The connected STA will start
RRM scan. During RRM scan, STA may miss beacon while doing
scan as it goes to foreign channel for scan and then comes
back to home channel. Now if LL_LT_SAP is present, it will
do scan in TWT interval. It will be overhead to handle
LL_LT_SAP + STA + Scan in firmware.

For now, reject rrm request if LL_LT_SAP is present.
Enable back later if required

Change-Id: I010b2b3289d80bfd9b0b6340fc6dda17044b06b0
CRs-Fixed: 3647800
2023-11-01 16:02:39 -07:00
Pragaspathi Thilagaraj
cbb69cf1b2 qcacld-3.0: Fix SAE authentication connectivity logs during roam
When SAE roaming happens, the preauth event BSSID is used to
trigger external authentication to userspace and frame exchange
also happens with this BSSID. But while caching the info
corresponding to this frames, the current connected AP bssid is
used. This causes failure while fetching the cached entries.

Use correct BSSID to fetch the cached SAE authentication frames
for MLO SAE roaming. Enhance the error logs in some cases.
Update the driver authentication logs also to print the auth info.

Change-Id: Idd21f40cf0802879e83c10d91956662733b74666
CRs-Fixed: 3644706
2023-11-01 10:26:06 -07:00