Commit Graph

2924 Commits

Author SHA1 Message Date
Vijay Raj
0a934e2617 qcacld-3.0: Add support for Neighbor report Logging
In api cm_roam_stats_print_11kv_info(), neighbor report
logging was not supported.

Add support for Neighbor report connectivity logging
through api cm_roam_neigh_rpt_req_event() for Neighbor
report request event and api cm_roam_neigh_rpt_resp_event()
for Neighbor report response event.

Change-Id: If9d93584d4030f76b5175d361dfd34fce3b5b5b1
CRs-Fixed: 3370797
2023-01-17 16:40:55 -08:00
Amruta Kulkarni
38e2b1f38d qcacld-3.0: Handle t2lm ie after connection complete
Change done to handle t2lm ie after MLO connection
is completed and save tsf value received in beacon.
Also fix to not select link if tid mapping is not present.

Change-Id: Ie2ce1fcfa50a4e14a083a508b268dfebb308d3ad
CRs-Fixed: 3342807
2023-01-16 04:34:27 -08:00
Liangwei Dong
4a18155583 qcacld-3.0: Add phy regulatory frequency range check
If phy regulatory capability doesn't support high or low
frequency indicated by MACRO such as HIGH_5GHZ_FREQ,
LOW_5GHZ_FREQ, we should not hard code to the MACRO.
The change adds new mlme API wlan_mlme_get_phy_max_freq_range
to get phy regulatory ranges from target info.

Change-Id: I95f48296ca093c20b1391d7657204eecfb418908
CRs-Fixed: 3376402
2023-01-15 10:13:33 -08:00
Gururaj Pandurangi
8859328749 qcacld-3.0: Add support for T2LM action frame handling
Add support for T2LM action frame handling.
- Add an API to parse T2LM negotiation request action frame
and accept or reject T2LM mapping based on ML link info.
If accepted, store the new info in peer level context
and send it to FW.
- Add an API to send T2LM response action frame to
acknowledge request action frame with status code.
- Add wrapper API to invoke T2LM deliver event.

Change-Id: I10d440bd1713740ab8b9f1fe46439bea92e179db
CRs-Fixed: 3367425
2023-01-15 07:08:12 -08:00
Ashish Kumar Dhanotiya
062cb174f2 qcacld-3.0: Add INIs to trigger SSR for wakeup on pagefault
According to new requirement, add INIs
max_pagefault_wakeups_for_ssr,
interval_for_pagefault_wakeup_counts and
ssr_frequency_on_pagefault to trigger SSR if host wakes up
because of pagefault.

For ex: If max_pagefault_wakeups_for_ssr = 30,
interval_for_pagefault_wakeup_counts = 180000 (3 mins) and
ssr_frequency_on_pagefault = 3600000 (1hr), in this case host
will trigger the SSR if it receives 30 wakeups because of
pagefaults in 3 mins, host will trigger SSR only once in 1 hr.
Once the SSR is triggered, host will not trigger next SSR for
next 1 hr even if it receives 30 wakeups from fw because of pagefaults.
This 1 hr time is getting monitored from last SSR.

Change-Id: Ic122a7d8e8749870bfa5d28e74f6e9ee19493d04
CRs-Fixed: 3378492
2023-01-14 18:15:50 -08:00
Paul Zhang
2e183b559f qcacld-3.0: correct logic for parsing t2lm ie
Adding extn_ie_header and the invoking function
wlan_mlo_parse_t2lm_info because dot11f logic
removed the ie header.

Change-Id: I957c574ecf6323bfd6fb488f417ab1f738b4ee37
CRs-Fixed: 3362726
2023-01-14 01:12:29 -08:00
Jeff Johnson
7909bafb0f qcacld-3.0: Fix Pre-CAC Documentation
The kernel-doc script identified a few documentation issues in
components/pre_cac, so fix them.

Change-Id: Ie2a9be0c410e32c8e7ca5a86ed0dec7df5b62d25
CRs-Fixed: 3359794
2023-01-13 10:38:16 -08:00
Jeff Johnson
8da282a666 qcacld-3.0: Fix UMAC Documentation
The kernel-doc script identified a multitude of documentation issues
in components/umac, so fix them.

Change-Id: If30358cb83e90348e410cfea163353f2dd26b3fa
CRs-Fixed: 3360814
2023-01-13 02:09:41 -08:00
Jeff Johnson
a38d67be64 qcacld-3.0: Fix Target Interface Documentation
The kernel-doc script identified some documentation issues in
components/target_if, so fix them.

Change-Id: Id925b899074b1e9491cc3b9a3066420512459770
CRs-Fixed: 3359868
2023-01-11 06:53:15 -08:00
Jeff Johnson
d78ed5cc16 qcacld-3.0: Fix WMI Documentation
The kernel-doc script identified multiple documentation issues
in components/wmi, so fix them.

Change-Id: Ic5bc41350ef846de91a1001d6fe1d28016e0f982
CRs-Fixed: 3361701
2023-01-11 03:46:59 -08:00
Ananya Gupta
ec471e92f2 qcacld-3.0: Create sysfs file and ini for direct link unit test
Create sysfs file for direct link unit test command to
generate traffic from LPASS.
Add ini to enable direct link unit testing.

Change-Id: I5b143bc6751eedb1a65cd836ea738744b72cc2cc
CRs-Fixed: 3365576
2023-01-11 03:46:53 -08:00
Jeff Johnson
e7886d39aa qcacld-3.0: Fix Wi-Fi Positioning Documentation
The kernel-doc script identified several documentation issues
in components/wifi_pos, so fix them.

Change-Id: If62f7c43983c1bb67ad0cb2764e8bbadff6e6cf7
CRs-Fixed: 3361660
2023-01-10 23:06:25 -08:00
Jeff Johnson
5e59e167e5 qcacld-3.0: Fix Spatial Reuse Documentation
The kernel-doc script identified a few documentation issues in
components/spatial_reuse, so fix them.

Change-Id: Ie4238aa43d8263151c2f9d05ebbe74ae8854f472
CRs-Fixed: 3361723
2023-01-10 23:06:20 -08:00
Jeff Johnson
779bce7bd9 qcacld-3.0: Fix Denylist Manager documentation
The kernel-doc script identified a few documentation issues in
components/denylist_mgr, so fix them.

Change-Id: I45fc8c6a637cebccf324dd44102b894fc84e7f2b
CRs-Fixed: 3361722
2023-01-10 23:06:08 -08:00
Jeff Johnson
a51ab110dd qcacld-3.0: Fix SON Documentation
The kernel-doc script identified a few documentation issues in
components/son, so fix them.

Change-Id: I2aaa6746b05a963113ea78111a4cc45f35c1f98c
CRs-Fixed: 3359822
2023-01-10 11:30:51 -08:00
Jeff Johnson
4086862b28 qcacld-3.0: Fix Common Services Documentation
The kernel-doc script identified multiple documentation issues in
components/cmn_services, so fix them.

Change-Id: Ifdc8cefcbf7b31dc3e91cc3c5dab7cccd331e473
CRs-Fixed: 3363114
2023-01-10 11:30:44 -08:00
Jeff Johnson
bf0930cb1a qcacld-3.0: Fix PMO Documentation
The kernel-doc script identified a multitude of documentation issues
in components/pmo, so fix them.

Note that there is currently one false positive error being flagged in
the documentation for typedef pmo_get_vdev_dp_handle.

Change-Id: Iddaccbf1b55557a82af34d2b6b4913d37c71123a
CRs-Fixed: 3359766
2023-01-10 11:30:38 -08:00
Asutosh Mohapatra
ff0430caee qcacld-3.0: Update few INI values
Update RoamIdle_MinRSSI, RoamIdle_RSSIVariation,
RoamIdle_InactiveTime ini default values.

Change-Id: I0c70d4ca3eaf299492d4715485e6a55982399426
CRs-Fixed: 3375824
2023-01-09 23:35:03 -08:00
Ananya Gupta
9ef4a35d86 qcacld-3.0: Vote link based on config change
Currently, based on config_direct_link variable, link is voted
up or down which can result in same multiple votes.
To fix this, vote link up or down if there is a change in
previous config and incoming config_direct_link argument.
Also, return status success when direct link is not enabled
but dp_config_direct_link is called.

Change-Id: I4f54d74a9d4921f27f247450f89a03d6dabc838e
CRs-Fixed: 3375395
2023-01-09 23:34:57 -08:00
Yeshwanth Sriram Guntuka
9972a80234 qcacld-3.0: Set to_fw bit in DP vdev for Direct link use case
Set to_fw bit in DP vdev for direct link use case
and also set it when the use case is unspecified as
well.

Change-Id: I7306e22e81303720830cfce4ce19b15d2080d93c
CRs-Fixed: 3369891
2023-01-07 17:58:59 -08:00
Jianmin Zhu
f9d4ce74c0 qcacld-3.0: Fix race issue of disconnect and roaming
Reproduce steps:
1. Driver received roam start from F/W, enqueue roam cmd in active queue.
2. Driver received disconnect cmd from wpa supplicant,  set link vdev
   vdev1 as disconnecting, enqueue disconnect cmd in pending queue.
3. Driver received MLO roam sync event from F/W, need handle link vdev
   first, assoc vdev later.
4. Driver didn't handle link vdev1 roam sync for disconnecting state, DP
   MLD peer isn't created.
5. Driver handled vdev0 roam sync, dp_peer_setup failed for DP MLD
   peer not created, asserted.

To fix it, when handle vdev0 roam sync, check state of all mlo vdev,
if either disconnecting, abort roam sync, and delete roam req, let
disconnect from upper layer continue.

Change-Id: Ie03e0031908fef0f403d2cacf8ec976a147ef1ed
CRs-Fixed: 3371850
2023-01-06 07:44:51 -08:00
Vijay Raj
4470bb6708 qcacld-3.0: Add diag logging support for measurement report
Introduce diag logging support for Neighbor report and
beacon report via event id EVENT_WLAN_NBR_RPT and
EVENT_WLAN_BCN_RPT.

For Neighbor report token, ssid, report number, frequency
list and frequency is sent. For Beacon report token, mode,
operating class, channel, duration, request_mode and report
number is sent.

Change-Id: I7ef407fa729e608ad0a7036f024acbf8b5180181
CRs-Fixed: 3370758
2023-01-06 00:27:44 -08:00
Deeksha Gupta
0f667d9495 qcacld-3.0: Skip ROC req if TX action frame freq is same as current vdev freq
Currently, in case of Tx action frame driver start the ROC req based on
the offchannel is set. Due to this, if the TX action freq is same as
current vdev freq then also driver started the ROC req on the same
channel.

Fix is, even offchannel is set, but current vdev freq is same as
that of the channel for the tx frame. Driver will skip the ROC.

Change-Id: I7ab2ade0f01ad5035f7b156ded7eb7af7c826b9e
CRs-Fixed: 3366671
2023-01-05 00:44:43 -08:00
Amit Mehta
beb9111c0a qcacld-3.0: Add additional logs in dp_nud_filter_netevent
As part of log enhancement add additional logs in dp_nud_filter_netevent.

Change-Id: I6c3496ed2822d3fa82966548e8ff7ae5c07f4317
CRs-Fixed: 3369870
2023-01-03 16:30:29 -08:00
Jianmin Zhu
fff3e6bb11 qcacld-3.0: Don't stop SAP while CSA in progress
1. If CSA failed for last CSA in progress, can't stop SAP, SAP stop and
SAP CSA concurrency may lead to assert.
2. When access global var like pm_conc_connection_list, always need add
lock protection.
3. During CSA in progress,  NAN CSA don't block current thread, just
return.
4. When SAP CSA completed, need check whether need CSA again for NAN
started during CSA.

Change-Id: I076ecad7395a265bbe83aaf97617a9a8b6c8b41a
CRs-Fixed: 3357265
2023-01-02 20:27:50 -08:00
Surya Prakash Sivaraj
2c5995f78e qcacld-3.0: Disable BTM offload based on BTM cap
The wpa_supplicant disables the BTM cap in extcap IE whenever
the MBO AP is not PMF capable, or if the btm_disable conf is set.

In current host driver design, the BTM offload is disabled only for
the MBO+non-PMF case. Therefore, add change to disable the btm offload
config if the BTM CAP is not present in the (re)assoc request as this
is determined based on intersection of peer and self cap.

Change-Id: I2fdc1010bccf5ce23f4ab2177aed6c374f7a510f
CRs-Fixed: 3369096
2023-01-02 00:12:15 -08:00
Divyajyothi Goparaju
e62e4f2ccb qcacld-3.0: Replace target params with host params
Currently host uses target params directly
which leads to layering violation

Replace target wmi pdev/vdev params with host wmi
pdev/vdev params in host to fix existing broken layering
violation.

Change-Id: Ifdfbc3151a1d81466c768e4d016a8f70971d651e
CRs-Fixed: 3333879
2022-12-30 00:07:13 -08:00
Divyajyothi Goparaju
c9808c04b6 qcacld-3.0: Combine process_rate_update set param
Currently wma_process_rate_update_indicate sends
two vdev set params separately to firmware.

Combine two vdev set params of
wma_process_rate_update_indicate,
send to WMI to reduce number of transactions.
Also replace target wmi pdev/vdev params with host wmi
pdev/vdev params to fix existing broken layering
violation.

Change-Id: Icc50569bcc851c5ee269558b80a560b03e1fdcee
CRs-Fixed: 3333758
2022-12-30 00:06:21 -08:00
Divyajyothi Goparaju
5f85944f38 qcacld-3.0: Optimize ndpinactimeout vdev set param
Currently host sends two ndp inactivity timeout
params to firmware one after the other.

Combine these two ndp inactivity timeout vdev
set params and send to WMI to reduce number of
transactions.
Also replace target wmi pdev/vdev params with host wmi
pdev/vdev params to fix existing broken layering
violation.

Change-Id: Icaeca85f2aa074f04d268b819fe86f4b7879c25b
CRs-Fixed: 3333749
2022-12-30 00:06:13 -08:00
Divyajyothi Goparaju
adfb3a43d6 qcacld-3.0: Optimize pdev/vdev set param command
Currently host sends many pdev/vdev set param
commands separately to firmware from hdd.

Combine multiple pdev/vdev set params and
send to WMI to reduce number of transactions.
Also replace target wmi pdev/vdev params with host wmi
pdev/vdev params to fix existing broken layering
violation.

Change-Id: Ib76f5bd5f582a2c67486f6773ff6fd486b3d84cf
CRs-Fixed: 3333732
2022-12-30 00:06:07 -08:00
Divyajyothi Goparaju
fd4205850c qcacld-3.0: combine tx_rx chain mask pdev set params
Currently host sends tx chain mask and rx chain mask
pdev set params separately to firmware.

Combine these tx_rx chain mask pdev set params,send to WMI
to reduce number of transactions.
Also replace target wmi pdev/vdev params with host wmi
pdev/vdev params to fix existing broken layering
violation.

Change-Id: I6bd27b4bc99cbe44e6bdca2a8d55050a49719673
CRs-Fixed: 3333635
2022-12-30 00:06:01 -08:00
Jianmin Zhu
476236fec2 qcacld-3.0: Fix RSO race condition issue
While scheduler thread init and enable RSO after MLO connected,
wpa_supplicant deinit RSO for MLO disconnect.
At last, RSO is enabled on host, RSO is deinited on F/W side,
no event for RSO stop cmd, vdev0 disconnect not finished for
cm_disconnect_continue_after_rso_stop isn't called.

To fix it, hold cm_rso_lock in cm_roam_state_change to make sure RSO
operation atomic. RSO operation of one thread not preemptied by RSO
operation of another thread. RSO init and enable process of connect thread
isn't preemptied by RSO deinit of another thread, no host F/W RSO out of
sync issue will happen.

Remove ucfg_user_space_enable_disable_rso from hdd_init_station_mode since
cm_rso_lock is held before created.

Change-Id: I3010895d26a622c2a14960847089a63736598b7c
CRs-Fixed: 3365417
2022-12-29 18:33:41 -08:00
Jeff Johnson
ac73d2ec1d qcacld-3.0: Fix TDLS Documentation
The kernel-doc script identified a multitude of documentation issues
in components/tdls, so fix them.

Change-Id: I365496d70e903bae1abad7b807687904f7f15af7
CRs-Fixed: 3360666
2022-12-29 18:33:36 -08:00
Surya Prakash Sivaraj
ae712fa3de qcacld-3.0: Add support for cross-SAE AKM roam
Pass the akm explicitly in the external auth
request to the userspace since there are many
SAE AKM suites.

Change-Id: Ifef8657f7ef75b402aa670813eba6adc5ab9853a
CRs-Fixed: 3355395
2022-12-29 05:19:08 -08:00
Jeff Johnson
bdc8c47288 qcacld-3.0: Fix DSC documentation
The kernel-doc script identified a few documentation issues in
components/dsc, so fix them.

Change-Id: I5e2f4464abb7c94ec567c864c573d314d319ea37
CRs-Fixed: 3356932
2022-12-29 02:45:59 -08:00
Asutosh Mohapatra
7c4982851d qcacld-3.0: Keep SAP, P2P GO channel list modifications in separate APIs
Currently some channel list modifications for SAP and P2P GO mode
are present in policy_mgr_get_channel_list, whereas separate APIs for
SAP and P2P GO specific channel list modification are present, hence
keep all the mode specific channel list modifications in respective
APIs.

Change-Id: I393fbad12f29c761c1158fc5eb4ba0ebd6a660b6
CRs-Fixed: 3321108
2022-12-28 11:43:48 -08:00
Jeff Johnson
139cf10b44 qcacld-3.0: Fix Packet Capture Documentation
The kernel-doc script identified a multitude of documentation issues
in components/pkt_capture, so fix them.

Change-Id: I9fc7922978cbfacf3f8a733561dd0f94c6cea3b4
CRs-Fixed: 3359684
2022-12-27 21:14:10 -08:00
Jeff Johnson
f62fc6e253 qcacld-3.0: Fix OCB Documentation
The kernel-doc script identified a few documentation issues in
components/ocb, so fix them.

Change-Id: I3ddb0c4d556f459bdd15f9ae9110ae7f0bc30b2b
CRs-Fixed: 3359569
2022-12-27 19:09:43 -08:00
Jeff Johnson
a24656423c qcacld-3.0: Fix P2P Documentation
The kernel-doc script identified a few documentation issues in
components/p2p, so fix them.

Change-Id: I24e612e8976e721281a6ede4afefd20de0622599
CRs-Fixed: 3359593
2022-12-27 19:09:38 -08:00
Jeff Johnson
116c817bb8 qcacld-3.0: Fix NAN Documentation
The kernel-doc script identified a multitude of documentation issues
in components/nan, so fix them.

Change-Id: Ibec4c381da3088f704264d04f756d82d20613c46
CRs-Fixed: 3359549
2022-12-27 19:09:33 -08:00
Jeff Johnson
cb647fd309 qcacld-3.0: Fix MLME documentation
The kernel-doc script identified multiple documentation issues in
components/mlme, so fix them.

Change-Id: I1fdcdcc7e43c8945044d22aeeca7b2f1b8bec6f7
CRs-Fixed: 3358666
2022-12-27 19:09:28 -08:00
Jeff Johnson
cd872653aa qcacld-3.0: Fix FTM Time Sync documentation
The kernel-doc script identified two documentation issues in
components/ftm_time_sync, so fix them.

Change-Id: Iebcd1837bd80e26db6a4a5fe78d046d57f762670
CRs-Fixed: 3357062
2022-12-27 17:07:02 -08:00
Jeff Johnson
4c8a8fbb1e qcacld-3.0: Fix Firmware Offload documentation
The kernel-doc script identified a multitude of documentation issues
in components/fw_offload, so fix them.

Change-Id: I9c5b3f561d74ac433bd7f8c47cab737af9af3ecb
CRs-Fixed: 3357050
2022-12-27 17:06:57 -08:00
Jianmin Zhu
3b23980d6b qcacld-3.0: avoid zero mld addr when update mac after roaming
For legacy STA like wlan1, has no MLD addr, can't copy it after roaming,
or vdev self MAC becomes 0.

Change-Id: Ia5d1f01d9101bfaba275cc879a14f2b8c6426d3b
CRs-Fixed: 3366012
2022-12-26 17:47:23 -08:00
Divyajyothi Goparaju
611a226bbf qcacld-3.0: Optimize bmiss vdev set param command frequency
Currently host sends bmiss set param commands
separately to firmware.
Combine bmiss set params send to WMI to reduce
number of transactions.
Also replace target wmi vdev params with host wmi
vdev params to fix existing broken layering
violation.

Change-Id: I5867ee76f68abf462becafc1f5f80c422c239f4b
CRs-Fixed: 3333237
2022-12-26 05:52:04 -08:00
Divyajyothi Goparaju
ee4ca3b005 qcacld-3.0: Optimize pdev set param command frequency
Currently wlan_mlme_configure_chain_mask API sends many
pdev set param commands separately to firmware.

Combine all pdev set params of wlan_mlme_configure_chain_mask
send to WMI to reduce number of transactions.
Also replace target wmi pdev params with host wmi
pdev params to fix existing broken layering
violation.

Change-Id: If0b7bce9a7c87d0f07e7a9f1d2cd80139f027308
CRs-Fixed: 3151438
2022-12-26 05:51:59 -08:00
Jingxiang Ge
bf0462e93e qcacld-3.0: clear rate info in mlme priv for non-support rates
When update rate info to vdev mlme_priv, if in current assocrsp
there is no extend rate or mcs rate, need to clear such info.
otherwise such info is still last connection information.
the link rate will display wrongly, test step as:
1 connect with 11g AP
2 config AP to 11b, then connect manually
3 link speed will be wrong on sta side

if extend rate or mcs rate is not present, clear ext_opr_rate_set
and mcs_rate_set.

Change-Id: I8ff1b5804dbbe463d6949d0431079174446c64ad
CRs-Fixed: 3356077
2022-12-26 03:23:34 -08:00
Vijay Raj
724b68644c qcacld-3.0: Make XGAP wakable
XGAP power save event need host actions and notifying
the userspace.

Register for XGAP events to wake up host.

Change-Id: Ic58837580a35bd27ac5e87fc5debbd4f4d5b9b6b
CRs-Fixed: 3272421
2022-12-26 03:23:24 -08:00
Jyoti Kumari
7ae11c336b qcacld-3.0: Populate edca_pifs_param ie for 6 GHz channel
For LL SAP, populate edca_pifs_param ie in beacon for 6 GHz
channel.

Change-Id: Ic0e85d2dd5864bc4aa6d6a169eae06213f573f0a
CRs-Fixed: 3359474
2022-12-26 03:23:01 -08:00
Zhiwei Yang
977a545222 qcacld-3.0: Fix compile error when WLAN_FEATURE_11BE_MLO disable
Fix implicit declaration compile error when enable WLAN_FEATURE_11BE
and disable WLAN_FEATURE_11BE_MLO.

Change-Id: I688589bef74eaed0baf2a865268cc3ba5cd88873
CRs-Fixed: 3352992
2022-12-22 07:03:59 -08:00