Commit Graph

18576 Commitit

Tekijä SHA1 Viesti Päivämäärä
Jianmin Zhu
1632e6e62c qcacmn: Add QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS_INDEX
Add QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS_INDEX.

when qca vendor cmd of QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS get roam
information, driver send all the cached information to user space.

Change-Id: I5fa3202850eb21fe3fbf88ddbf51a803457a948e
CRs-Fixed: 3409607
2023-02-21 23:59:29 -08:00
Namita Nair
2fdec1d504 qcacmn: Add optional wifi dp feature cdp layer
Changes to cdp layer to support optional
wifi datapath feature.Add cce_super_rule_setup fn
to pass filter tuple from ipa layer to htt layer.
Also add support to send wmi commands to enable/disable
low power features like IMPS, BMPS and ILP.

Change-Id: Ie7e5ec2066977e4fce37f08bb5e0137327f0728a
CRs-Fixed: 3403426
2023-02-21 22:13:47 -08:00
Jeff Johnson
c9105c1ad9 qcacmn: Fix reg_enable_disable_chan_in_mas_chan_list() kernel-doc
The following change fixed all of the documentation issues in the
umac/regulatory/core folder:
qcacmn: Fix umac/regulatory/core documentation
Change-Id Id666d5a92415158591e6379b619fb34c518aeca1

Unfortunately, before the patch was merged, the following change
introduced new errors in the documentation of function
reg_enable_disable_chan_in_mas_chan_list(), located in
umac/regulatory/core/src/reg_opclass.c:
qcacmn: Add an API to enable or disable channels based on opclass
Change-Id Ie9dbbadbe28e5b5fdc2ec9c60c284da9c9e2286f

Fix those errors.

Change-Id: I8396159a6af4ece0815f78355a0531aca5eff023
CRs-Fixed: 3408940
2023-02-21 22:13:36 -08:00
Guru Pratap Sharma
22fb800b9f qcacmn: Add structure for preference link event
Added the structure to save the value of preferred link
which receive from the RM APP.

Change-Id: I4eb9430639d4a77c5f448d833d677948e6f19882
CRs-Fixed: 3393643
2023-02-21 22:04:47 -08:00
Guru Pratap Sharma
d32fe4db3c qcacmn: Add wmi changes to send the T2LM command to FW
Add WMI changes to send preferred link to FW

Change-Id: I8b8d7354d979705b1a938e9792de334c4faf65b6
CRs-Fixed: 3393604
2023-02-21 22:04:26 -08:00
Edayilliam Jayadev
a0d45f3ac7 qcacmn: Add tgt APIs to schedule/cancel delivery of frames
Add tgt APIs to schedule/cancel the delivery of management
frames.

Change-Id: Id9b78f8819270f2eba143e9b19dc245eb925612c
CRs-Fixed: 3408594
2023-02-21 22:04:08 -08:00
Edayilliam Jayadev
98f1131240 qcacmn: Add an API to decrement an atomic variable if it is positive
Add an API to decrement an atomic variable if its value is positive.

CRs-Fixed: 3408572
Change-Id: I9649f1093850452a38acae6fa48e663a4e6d9c68
2023-02-21 22:03:59 -08:00
Edayilliam Jayadev
b3c257785e qcacmn: Add UMAC APIs to schedule/cancel delivery of frames
Add UMAC APIs to schedule/cancel the delivery of management
frames.

CRs-Fixed: 3408367
Change-Id: Iee7745b6e9e4e4269f9faede221f648a516fdc20
2023-02-21 22:03:46 -08:00
Edayilliam Jayadev
6301cfb1f6 qcacmn: Add per pdev/psoc init APIs
Add per pdev/psoc initialization APIs in management Rx reorder module.

Change-Id: Ic60a195bc62a4bc70e10bbb07133d1e3184f4685
CRs-Fixed: 3408290
2023-02-21 22:03:22 -08:00
Edayilliam Jayadev
f4f7014f11 qcacmn: Add target if APIs to schedule/cancel delivery of frames
Add target if APIs to schedule/cancel the delivery of management
frames..

CRs-Fixed: 3408279
Change-Id: I2063541648f3257994909fed63ce171fdc97b784
2023-02-21 22:02:37 -08:00
Liangwei Dong
1ac458ec54 qcacmn: Abort STA connecting if NDI stop bss pending
When NDI stop bss is pending in serialization queue and
STA connect is in progress with multiple candidate trying,
NDI stop bss will be timeout and vdev clean up will not happen
if STA connect takes too much time.

Fix by stop next candidate trying if NDI stop bss in
queue.

Change-Id: I29ca38f420586862f294d10041fc1754f8b485ce
CRs-Fixed: 3402121
2023-02-20 15:02:45 -08:00
Jeff Johnson
de5b0b9a2f qcacmn: Fix hal/wifi3.0/qca6290 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca6290 folder, so fix them.

Change-Id: I5b5943039d62a60f71faf322cf66fe411c11b3de
CRs-Fixed: 3406597
2023-02-20 13:03:11 -08:00
Pragaspathi Thilagaraj
0faa9d7218 qcacmn: Trigger recovery when WMI command is sent in wow mode
Trigger recovery when WMI command is sent in wow mode

Change-Id: I65efe5601e15055c5407f085e1fdcae5b28d6b81
CRs-Fixed: 3372322
2023-02-20 13:03:01 -08:00
Venkateswara Swamy Bandaru
db310c83ec qcacmn: Fix puncture bitmap validation on 5 GHz band
Fix puncture bitmap validation on on 5 GHz band by
deriving the band bitmap based on primary frequency.

Change-Id: Ic1d482716a905812e08d21dbbfb2472f83b95491
CRs-Fixed: 3396325
2023-02-20 11:51:45 -08:00
Sai Pratyusha Magam
373c20c855 qcacmn: Fix improper naming convention
Fix improper naming convention for store_def_keyix_peer
Avoid qdf_export since the function is defined and called
from the same file

Change-Id: I488267eccf521071038958fe85e9c1be90df27b2
CRs-Fixed: 3384714
2023-02-20 10:39:10 -08:00
Tallapragada Kalyan
44e4444e61 qcacmn: create qdf_nbuf_cb definition for win and mcc
WIN and MCC shared a common definition od qdf_nbuf_cb
considering that there are various fields which are
not common it is decided to have 2 different definitions
for WIN and MCC. in case of WIN he per pkt cycles will
be significantly reduced in RX path.

CRs-Fixed: 3257879
Change-Id: I5d3fa7c91592afb905702f2dca49972be89664e3
2023-02-20 10:39:00 -08:00
Pragaspathi Thilagaraj
28a0436d35 qcacmn: Cleanup unused TWT APIs & validation checks
PSOC null sanity check is done in caller, but again done in few
callee APIs.

Remove the duplicate sanity checks and unused TWT API.

Change-Id: Iac485bdce27be41c0d7152de1c86626edb534d11
CRs-Fixed: 3402622
2023-02-20 10:38:49 -08:00
Meng Yuan
fadf69f0d9 qcacmn: fix uninitialized array elements issue
Fix the issue about using uninitialized array elements.

Change-Id: I400fae1283bdee34c2e455aae21e0d3bb122a928
CRs-Fixed: 3394984
2023-02-20 07:06:09 -08:00
Meng Yuan
855b4f9fec qcacmn: Fix wlan build error in qcacmn
Fix the error: 'LINUX_VERSION_CODE' is not defined
 in i_qdf_ipa_wdi3.h:31:6.

Change-Id: Ic2ed7908d3bc5191e0cd4049c68f6d11ab10dfea
CRs-Fixed: 3335578
2023-02-20 07:05:58 -08:00
Rakesh Pillai
1ddcf838b7 qcacmn: Improve logging in MLO link add/delete
Remove console logging in MLO link peer
add/delete to MLD peer.

Change-Id: I3d1945a7cef2175cb0fed6417ede03dec9fabf1b
CRs-Fixed: 3408600
2023-02-18 22:01:51 -08:00
Pavankumar Nandeshwar
0a7d729a98 qcacmn: Reuse the tx descriptors in direct switch
Reuse the tx descriptors released in tx completions
without releasing the associated skbs to reduce
the cpu utilization in direct switch mode.

Change-Id: I4ab3ac58977a626344877b8a818a4dbc4864aaf3
CRs-Fixed: 3393968
2023-02-18 20:50:25 -08:00
Jeff Johnson
87f6016da2 qcacmn: Fix hal/wifi3.0/qca5018 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca5018 folder, so fix them.

Change-Id: I72d5664f7ce0dd289d26a006d9e4448b9753f082
CRs-Fixed: 3406484
2023-02-18 15:53:38 -08:00
Jeff Johnson
4042de592d qcacmn: Fix QDF documentation
The kernel-doc script identified a large number of documentation
issues in the QDF. A series of patches has already fixed many of the
issues, so fix most of the remaining ones.

Note that the QDF IPA abstraction still has issues, but it is under
rework, so not trying to clean it up until after the rework is
complete.

Change-Id: I10c33e341cb6b46e0f8ada99069616d450c07189
CRs-Fixed: 3406197
2023-02-18 13:33:23 -08:00
Edayilliam Jayadev
de1279ed3f qcacmn: Mark a frame as ready for delivery on insertion to egress list
Whenever a frame is added directly to egress list, mark it as ready
for delivery.

Change-Id: Ifb2eff595227c3c6857666624ab272fd20845756
CRs-Fixed: 3405305
2023-02-18 13:33:11 -08:00
Jeff Johnson
d18654812f qcacmn: Fix dp/inc documentation
The kernel-doc script identified a large number of kernel-doc issues
in the dp/inc folder, so fix them.

Change-Id: I6213164d2209cc4de9684ae66281ee2999f82672
CRs-Fixed: 3375078
2023-02-18 13:32:59 -08:00
Divyajyothi Goparaju
3c4a739d9c qcacmn: Handle INVALID_CHANNEL_NUM
Currently 'wlan_reg_max_5ghz_ch_num'returns
INVALID_CHANNEL_NUM for countries other than US
as MAX_5 GHZ_CHANNEL maps to INVALID_CHANNEL_NUM
for other countries in their respective channel_map
structure.

To fix this issue of INVALID_CHANNEL_NUM for
MAX_5 GHZ_CHANNEL,instead of taking value from
channel_map[].chan_num, with fixed index of MAX_5 GHZ_CHANNEL,
check for channel_map[].cha_num with index starting from
MAX_5 GHZ_CHANNEL down to 5 GHz channels,
consider the first hit of chan_num which is not
INVALID_CHANNEL_NUM.

Change-Id: I364500f8e13cc42350103c5d236b12d71e28a4a6
CRs-Fixed: 3396340
2023-02-18 11:03:46 -08:00
Jeff Johnson
274f667c45 qcacmn: Fix hal/wifi3.0/qca5332 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca5332 folder, so fix them.

Change-Id: I780f8d20f6c9a22229dcd007ac4bb8f10174e1db
CRs-Fixed: 3406555
2023-02-18 11:03:35 -08:00
Sheenam Monga
a65ece1c4d qcacmn: Add ucfg_dcs_switch_chan API
Add ucfg_dcs_switch_chan public API that
invokes wlan_dcs_switch_chan and can be used
when CSA is required due to DCS.

Change-Id: I4f91b0a70dde29520797c7b92cdecd01b96e55c2
CRs-Fixed: 3403459
2023-02-17 11:01:30 -08:00
Parikshit Gune
0de42b892b qcacmn: Add wds ext support for Direct switch module
1. Maintain and fetch PPEDS profile from be_soc instead of be_vdev
2. Enable WDS EXT mode for Direct Switch
3. Provide cdp API's and structures to interact with osif
layer to get PPEDS profile info

Change-Id: I997126e3b5ae85dabdcd6053115927122b8681da
CRs-Fixed: 3404778
2023-02-17 11:01:08 -08:00
Paul Zhang
79720d811d qcacmn: Add support for 2+ mlo links
Add support for generating link specific assoc request/response
and probe response for 2+ mlo links.

Change-Id: Iadd09efeb0b0098baeae25f3b1968826e75dedc4
CRs-Fixed: 3049640
2023-02-17 09:32:31 -08:00
Aniruddha Mishra
fe48e79218 qcacmn: Add TLV recording support for Rx monitor
Add TLV recording support for Rx monitor. The TLV
tag and its data are recorded in a fixed size buffer

Change-Id: Idad896d1ece25a499ab76028c8a231fcd9947f66
CRs-Fixed: 3402543
2023-02-17 08:00:57 -08:00
Sheenam Monga
ba92b235ce qcacmn: Add support for wmi_vdev_param_set_profile
Add support for vdev_param_set_profile to indicate
AP profile to FW. VDEV_PARAM_XPAN_PROFILE can be used
as bit map to support other AP profiles. So, rename vdev
param VDEV_PARAM_XPAN_PROFILE to VDEV_PARAM_SET_PROFILE
to support multiple ap profiles. Bit 0 indicates XR SAP
profile is enabled or disabled and BIT 1 indicates XPAN
profile is enabled or disabled.

Change-Id: I61c434c7a4bbba013690011c0a777af199207630
CRs-Fixed: 3401468
2023-02-17 02:21:36 -08:00
Liangwei Dong
dec5632356 qcacmn: Add ML reconfig starting notify for link removal
Add mlme_vdev_reconfig_notify callback to notify the ML
reconfig link removal starting after receive the first
ML reconfig link removal IE.

Change-Id: I9ae37b7defc75c97e7bc39e07c9d154e1923aedd
CRs-Fixed: 3380159
2023-02-16 21:31:16 -08:00
Jeff Johnson
69d9fa5a24 qcacmn: Fix umac/regulatory/dispatcher documentation
The kernel-doc script identified some documentation issues in the
umac/regulatory/dispatcher folder, so fix them.

Change-Id: I2d38ec243bba2f48f522e2b80ac097eec0e06a3c
CRs-Fixed: 3402138
2023-02-16 21:31:04 -08:00
Kiran Venkatappa
7260b2db76 qcacmn: Add r-twt related changes
Add changes to read R-TWT svc bit from FW and update capabilities on
host accordingly. Update add twt session command to include new
params required for R-TWT.

Change-Id: I91cea65ef737b6fa445cb3680dac15e0f1063446
CRs-Fixed: 3399205
2023-02-16 18:20:03 -08:00
Jeff Johnson
f518df0727 qcacmn: Fix hal/wifi3.0/be documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/be folder, so fix them.

Change-Id: I9730c36e4d36dbe0ae551067c5c500441f07569f
CRs-Fixed: 3400933
2023-02-16 17:02:41 -08:00
Sheenam Monga
7453254a0c qcacmn: Add support to get min and max bw of chan enum
Add support to get min and max band width of provided
channel enum, so that configured bandwidth can be validated
whether it lies in the range of bandwidth or not.

Change-Id: I765b4e8013d021eaca41b37789d1ef3f1d57fa7d
CRs-Fixed: 3402928
2023-02-16 11:11:01 -08:00
Sheenam Monga
94461d8894 qcacmn: Consider last scan full scan results instead of new scan
Currently, if ACS_LAST_SCAN_AGEOUT_TIME is not provided by user then
the last_scan_ageout_time is updated to 0 and full scan is triggered
to find channel instead of using previous scan results, to avoid delay
use last full scan result based on ini "last_scan_ageout_time" value.

Change-Id: Ic38f0d3c83087dafde54b43762dd14deb7d02870
CRs-Fixed: 3404550
2023-02-16 11:10:51 -08:00
Chaithanya Garrepalli
e614273c12 qcacmn: Avoid intrabss when da_peer is same as ta_peer
In case when transmitter peer is same as destination
peer avoid intrabss

Change-Id: Ia6d744a68380e57f73d52b81429c0ffe66481716
CRs-Fixed: 3400126
2023-02-16 04:17:46 -08:00
Vijay Raj
6effc63bb2 qcacmn: Remove api wlan_add_age_ie on scan result
In api wlan_add_age_ie(), age ie is included in scan
result.

Remove api wlan_add_age_ie() as the bss age is
calculated using NL80211_BSS_SEEN_MS_AGO.

Change-Id: Ided2364ce7a52d942d29343455fc7ae511be9a18
CRs-Fixed: 3391276
2023-02-16 04:17:35 -08:00
Mukul Dhiman
7b27742e7c qcacmn: add doc for stat_periodicity, telemetry stats etc
add doc for stat_periodicity, telemetry_stats. add modify
doc for ucfg_send_telemetry_cp_stats_request.

CRs-Fixed: 3387941
Change-Id: I40a7f7223717fa681978421d5d2b4a67018f77dd
2023-02-16 03:07:50 -08:00
Jeff Johnson
8b86e068ec qcacmn: Fix dp/wifi3.0/dp_rx_defrag.* documentation
The kernel-doc script identified a large number of documentation
issues in dp/wifi3.0/dp_rx_defrag.[ch], so fix those issues. In
addition, there are a number of instances where public functions have
their implementation documented instead of having their interface
documented, so move that documentation.

Change-Id: I4080e4b614c5d1f0253afd06fc4eb650142b76d4
CRs-Fixed: 3373163
2023-02-16 01:43:31 -08:00
Priyadarshnee Srinivasan
058c19c08b qcacmn: Do not use a stack variable uninitialized
In reg_is_chan_supported() API, the stack object chan_list is
uninitialized and is used by channel search API. The puncture pattern
inside the chan_list is set to a random value and it causes channel find
failure.

CRs-Fixed: 3402977
Change-Id: Icec8e5f207d3d8bfb5a01dafe8aa6adc5bc18a9d
2023-02-16 01:43:21 -08:00
Jeff Johnson
fca136e13f qcacmn: Fix umac/regulatory/core documentation
The kernel-doc script identified some documentation issues in the
umac/regulatory/core folder, so fix them.

Change-Id: Id666d5a92415158591e6379b619fb34c518aeca1
CRs-Fixed: 3401870
2023-02-16 01:43:11 -08:00
Will Huang
5bfd016ea1 qcacmn: Update reg_is_afc_available() API if AFC enable
Replace reg_is_afc_available() with reg_is_afc_power_event_received(),
return true when AFC enable and AFC updated power info.

After this update, if AFC available, SAP can set reg_cur_6g_ap_pwr_type
correct so that TPE in beacon can populate proper power value
to client.

Change-Id: I7564947bdeb13ac1e35c84cbe31ec1f428b3fae6
CRs-Fixed: 3391120
2023-02-15 22:41:44 -08:00
Jeff Johnson
d8da699833 qcacmn: Fix dp/wifi3.0/dp_txrx_wds.* documentation
The kernel-doc script identified a large number of documentation
issues in dp/wifi3.0/dp_txrx_wds.[ch], so fix those issues. In
addition, there are a number of instances where public functions have
their implementation documented instead of having their interface
documented, so move that documentation.

Change-Id: I2f80d9715f772a59072f2c4158548f47df8bb055
CRs-Fixed: 3373164
2023-02-15 20:32:51 -08:00
Jeff Johnson
af392d97cd qcacmn: Fix dp_internal.h documentation
The kernel-doc script identified a large number of documentation
issues in dp/wifi3.0/dp_internal.h, so fix those issues. In addition,
there are a number of instances where public functions have their
implementation documented instead of having their interface
documented, so duplicate that documentation. The documentation at the
implementation will be removed separately.

Change-Id: I9684f5c2da7edb621a53dfbc5f1f8de2c70d8382
CRs-Fixed: 3373166
2023-02-15 11:36:10 -08:00
Hariharan Basuthkar
8d466ff361 qcacmn: Add an API to enable or disable channels based on opclass
Add an API ucfg_reg_enable_disable_opclass_chans where given the
operating class, disable/enable the channels listed in the input
channel list.

The input channel list and operating class should be of 2 GHz or
5 GHz band.

Change-Id: Ie9dbbadbe28e5b5fdc2ec9c60c284da9c9e2286f
CRs-Fixed: 3301654
2023-02-15 04:53:25 -08:00
Jeff Johnson
81e6a31400 qcacmn: Fix dp/wifi3.0/dp_ipa.*documentation
The kernel-doc script identified a large number of documentation
issues in dp/wifi3.0/dp_ipa.[ch], so fix those issues. In addition,
there are a number of instances where public functions have their
implementation documented instead of having their interface
documented, so move that documentation.

Change-Id: I664c657e4e7424db576bf19ca8a26c697b37e46f
CRs-Fixed: 3373165
2023-02-15 03:44:23 -08:00
Liangwei Dong
33d575de95 qcacmn: Add new roaming invoke source enum
Add new roaming invoke source enum CM_ROAMING_LINK_REMOVAL.
That will be used in link removal process to trigger STA
roaming to new AP.

Change-Id: I78cb1fcfce8e11fcca33ce99c80a4d6444ac3fea
CRs-Fixed: 3353004
2023-02-14 19:49:41 -08:00