Commit Graph

27776 Commits

Author SHA1 Message Date
Madan Koyyalamudi
b51aa222ff Release 5.2.1.50J
Release 5.2.1.50J

Change-Id: Ifc1e197c2a88d142e6743a881e112068961ff721
CRs-Fixed: 774533
2022-12-28 11:43:48 -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
Madan Koyyalamudi
37126e1a99 Release 5.2.1.50I
Release 5.2.1.50I

Change-Id: I331f8b535c699b592eb4c64f8d1cebe4811c7a51
CRs-Fixed: 774533
2022-12-28 08:11:28 -08:00
Liangwei Dong
8b74f67a1b qcacld-3.0: Allow SAP STA SCC on unsafe channel
When g_sta_sap_scc_on_lte_coex_chan = 1, SAP is allowed SCC with
STA on unsafe channel.
Use API policy_mgr_is_sap_freq_allowed to check such condition
in wlansap_get_chan_band_restrict.

Change-Id: I62b3ad83ccdfc80b5e72cad733618326e4fed936
CRs-Fixed: 3368195
2022-12-28 08:11:28 -08:00
Madan Koyyalamudi
114d5285a4 Release 5.2.1.50H
Release 5.2.1.50H

Change-Id: I442dded194ea60b34cef86f027cfc8e0fefddf42
CRs-Fixed: 774533
2022-12-27 21:14:10 -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
Madan Koyyalamudi
4ba68cd451 Release 5.2.1.50G
Release 5.2.1.50G

Change-Id: If36482ba83088acafcf75899d9411dadc51c844f
CRs-Fixed: 774533
2022-12-27 19:09:43 -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
Madan Koyyalamudi
e0da27d3c1 Release 5.2.1.50F
Release 5.2.1.50F

Change-Id: I172b6df5e47e8bb9f693378df2553494dd91fcf5
CRs-Fixed: 774533
2022-12-27 17:07:03 -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
Madan Koyyalamudi
a9084ed6a2 Release 5.2.1.50E
Release 5.2.1.50E

Change-Id: I2ffb2d3f2120d4b4eee2943f696fc182977d2424
CRs-Fixed: 774533
2022-12-27 09:10:28 -08:00
Asutosh Mohapatra
d93f04a203 qcacld-3.0: Handle null pointer dereference
In lim_send_assoc_req_mgmt_frame host allocates memory
for ie according to the add_ie_len, add a check
to verify if add_ie_len is non-zero before
API calls where add_ie is sent and used without
being verified.

Change-Id: I8856bb79ac15aeaf643ae8414ea6799aac199feb
CRs-Fixed: 3351656
2022-12-27 09:10:28 -08:00
Madan Koyyalamudi
5e8812a503 Release 5.2.1.50D
Release 5.2.1.50D

Change-Id: I2fb4be00fb14bed6043b7fa80bfc3d57d80b2587
CRs-Fixed: 774533
2022-12-26 17:47:23 -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
Madan Koyyalamudi
4f3860a4dd Release 5.2.1.50C
Release 5.2.1.50C

Change-Id: I2758c3f8afc7ef14e803114856466f828c74a5ac
CRs-Fixed: 774533
2022-12-26 05:52:21 -08:00
Divyajyothi Goparaju
7bad80e5b6 qcacld-3.0: Optimize vdev set params wma_dev_if
Currently host sends many vdev/pdev set param commands
to firmware during vdev create/start/peer create from
wma_dev_if.

Combine all vdev/pdev set params of wma_dev_if,
send to WMI to reduce number of transactions.
Also replace target wmi pdev/vdev params with host wmi
pdev/vdev params.

Change-Id: I8dd5a5b85d0458b3c79b8585c08b6e282ee3fd94
CRs-Fixed: 3333613
2022-12-26 05:52:21 -08:00
Divyajyothi Goparaju
c10fb5b507 qcacld-3.0: Optimize retry_threshold pdev set param command
Currently wma_set_sw_retry_threshold sends two
pdev set param commands separately to firmware

Combine two sw retry threshold 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: Ia66a3e8e50002691008f66253d8cd76d2a1e9aa8
CRs-Fixed: 3333454
2022-12-26 05:52:15 -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
Madan Koyyalamudi
1d5de6adc6 Release 5.2.1.50B
Release 5.2.1.50B

Change-Id: Ieb548730185f0e355ccde2c59db133c9c39452c1
CRs-Fixed: 774533
2022-12-26 03:23:39 -08:00
Nagalakshmi
aa646c798a qcacld-3.0: Fix OOB in wma_scan_roam.c
Currently in wma_extscan_hotlist_match_event_handler
API, dest_hotlist get memory allocation based on numap
which takes value from event->total_entries.
But numap is limited to WMA_EXTSCAN_MAX_HOTLIST_ENTRIES
and event->total_entries more than WMA_EXTSCAN_MAX_HOTLIST_ENTRIES
can cause out of bound issue.

Fix is to populate dest_hotlist->numOfAps from numap
instead of event->total_entries to avoid any out of bound issue.

Change-Id: I756f7e4a4dcd454508bba83d4a8bbbb139530905
CRs-Fixed: 3346781
2022-12-26 03:23:39 -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
f67a8ebc9a qcacld-3.0: Add Vendor command response for low latency power save
Add vendor response for green ap low latency power save.

Change-Id: I82f53a3255a6550c9195aa225fbd4e99e371973b
CRs-Fixed: 3357283
2022-12-26 03:23:29 -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
VIJAY RAJ
453bc8d113 qcacld-3.0: Add vendor command for Green AP power save mode
Introducing vendor command for Green AP power save mode.

Change-Id: I23b5c12ed3ca3c3b134c59e6c93df72a9072b174
CRs-Fixed: 3265087
2022-12-26 03:23:18 -08:00
Asutosh Mohapatra
8742066e3c qcacld-3.0: Use nla_put_u8 for time_slice_duty_cycle
Currently host uses nla_put_u32 for time_slice_duty_cycle
but it's an uint8 variable.

In order to address this issue use nla_put_u8.

Change-Id: I55024b0daeaf0219e3fe93ddb43b2da0c69c38e3
CRs-Fixed: 3347871
2022-12-26 03:23:12 -08:00
Prakash Manjunathappa
110310e806 qcacld-3.0: Disable all log level mask in per packet path
Disable all log levels for DP per packet Tx/RX/Error and monitor path.

Change-Id: Ib8906991655d569c82fae2b31aa4eeaf7f5a9518
CRs-Fixed: 3362336
2022-12-26 03:23:07 -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
Madan Koyyalamudi
664bbd50be Release 5.2.1.50A
Release 5.2.1.50A

Change-Id: Ic424ade8ecbef46633c091dc4161f03b4ebceada
CRs-Fixed: 774533
2022-12-22 16:44:34 -08:00
Arun Kumar Khandavalli
f83280e955 qcacld-3.0: Indicate the ML AP/STA support independently to kernel
Currently host driver is indication the ML AP/STA support to the
kernel at once, the kernel is expecting different iftype data
population of ML STA/AP.

Populate the configuration independently for STA/AP.

Change-Id: Icbd422413e1fa92471a37557c77af921dc0e8f10
CRs-Fixed: 3366164
2022-12-22 16:44:33 -08:00
Madan Koyyalamudi
70edf7d657 Release 5.2.1.50
Release 5.2.1.50

Change-Id: I5e3693c70c3fd694c9f7fa153189d3ca4924ebd2
CRs-Fixed: 774533
2022-12-22 10:44:08 -08:00
Pragaspathi Thilagaraj
c2f626b33c qcacld-3.0: Fix invalid malloc in lim_cm_fill_link_session
When roaming from legacy AP to MLO AP, during the pe session
creation for the link vdev, the bss descriptor is allocated in
lim_cm_fill_link_session(), but its already allocated as part of
lim_join_req allocation and is not freed.

Don't allocate memory for bss_desc pointer again in
lim_cm_fill_link_session() api.

Change-Id: I1d4e0683df04e8bbf307e595cb5ac5e36ca24586
CRs-Fixed: 3363077
2022-12-22 10:44:08 -08:00
Madan Koyyalamudi
e7bd4ca179 Release 5.2.1.49Z
Release 5.2.1.49Z

Change-Id: I390263653331fb6d17ea82e9d14343b25df9f453
CRs-Fixed: 774533
2022-12-22 07:04:00 -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
Madan Koyyalamudi
3a5d9d2fa9 Release 5.2.1.49Y
Release 5.2.1.49Y

Change-Id: I1d561865fa48a7590e49b07fb544b01a62a6ac7d
CRs-Fixed: 774533
2022-12-22 02:43:42 -08:00
Vinod Kumar Pirla
23ad9dc82c qcacld-3.0: Create all SAP interface as ML type
On add virtual interface through cfg80211 ops, the params
to create adapter as ML will set for SAP mode.
However if SAP interface add is called internally in the
driver without setting the params to create the adapter
as ML type then, interface will be created in non-ML type
and ML SAP bringup fails.

Implicitly assume all SAP mode open adapter requests as ML type.

Change-Id: I7d16cfe4f20ec0d55aa520ae031069e4b2bc6869
CRs-Fixed: 3362622
2022-12-22 02:43:42 -08:00
Vinod Kumar Pirla
85d2d11666 qcacld-3.0: Check the RA of the mgmt frame for ML SAP BSS
If EAPOL exchange fails for the any ML client connecting to ML SAP,
the deauth frame is sent with MLD address of the respective client.
This can lead to peer look up while preparing deauth frame and will
drop sending deauth frame.

For ML SAP session, if the peer address received is MLD address,
then change the address to primary link's address of the peer.

Change-Id: Ic23cbdfd60672432347e0837b059aea663a9c510
CRs-Fixed: 3357351
2022-12-22 02:43:36 -08:00
Madan Koyyalamudi
2beefed89f Release 5.2.1.49X
Release 5.2.1.49X

Change-Id: I28dce4c2bd42932ea8232f98f9afbf4070781f0c
CRs-Fixed: 774533
2022-12-22 00:44:45 -08:00
Paul Zhang
d972751a54 qcacld-3.0: Release vdev ref gracefully
In function hdd_nan_sr_concurrency_update, the FOR iteration has
released the vdev ref if is_sr_enabled is false, but it does not
set sta_vdev to NULL. It causes the last sta_vdev ref count release
again and this causes issue of releasing ref count which was not taken.

Change-Id: Ia218073b4ef2508cd78370bb4236790df9b5ee4f
CRs-Fixed: 3363355
2022-12-22 00:44:45 -08:00
Yu Wang
3911372c3b qcacld-3.0: replace raw cfg80211 vendor APIs with wrappers
Replace cfg80211_vendor_cmd_alloc_reply_skb()/
   cfg80211_vendor_cmd_reply()/
   cfg80211_vendor_event_alloc()/
   cfg80211_vendor_event()/
   kfree_skb()
with internal wrappers
   wlan_cfg80211_vendor_cmd_alloc_reply_skb()/
   wlan_cfg80211_vendor_cmd_reply()/
   wlan_cfg80211_vendor_event_alloc()/
   wlan_cfg80211_vendor_event()/
   wlan_cfg80211_vendor_free_skb().

Change-Id: Ic85e58b5add8d92337ae5f3b29b9fdd15419f570
CRs-Fixed: 3360189
2022-12-22 00:44:38 -08:00
Madan Koyyalamudi
20b148d9b4 Release 5.2.1.49W
Release 5.2.1.49W

Change-Id: Id29dc4433597342b2f9189619ebeca71b3149496
CRs-Fixed: 774533
2022-12-21 17:59:52 -08:00
Jeff Johnson
f019813875 qcacld-3.0: Fix Datapath Component Documentation
The kernel-doc script identified some documentation issues in
components/dp, so fix them.

Change-Id: Ic6297d80cda845287e7a472add244c489afd253b
CRs-Fixed: 3362039
2022-12-21 17:59:52 -08:00
Madan Koyyalamudi
dc200c6377 Release 5.2.1.49V
Release 5.2.1.49V

Change-Id: Id8db2634144c415904711ca870bbefe911fb14ab
CRs-Fixed: 774533
2022-12-21 15:56:23 -08:00
Srinivas Dasari
2057769edd qcacld-3.0: Allocate sufficient mem for scan entry and bss desc of link
When STA roams to an MLO AP, non-assoc link might be superior
in features compared to assoc link and the per-STA profile
info may carry corresponding IEs. These IEs are extracted
and added to IE list of link probe response while generating
it. So, the link probe response generated from assoc link
probe response might be of more size than assoc link probe
rsp. Allocate buffer for the scan entry to be added to scan db
and bss descriptor to accommodate all of the IEs got generated
as part of link probe rsp generation.
Allocate MAX_MGMT_MPDU_LEN bytes for IEs as the max frame size
that can be received from AP is MAX_MGMT_MPDU_LEN bytes.
Same is applicable for link scan entry addition to scan db in
case of initial connection.

Change-Id: I2c2bb79176984a98034c071389c60ee4f649fd74
CRs-Fixed: 3359087
2022-12-21 15:56:22 -08:00
Madan Koyyalamudi
5d0c75dbdf Release 5.2.1.49U
Release 5.2.1.49U

Change-Id: Ic324e048b80336c6564f9353ec1958e79a1caad4
CRs-Fixed: 774533
2022-12-21 09:13:04 -08:00
Rahul Gusain
7e051b1f73 qcacld-3.0: Restrict NDI creation to ndi_max_support
Older versions of kernel (<5.12) support the interface creation
through vendor command. But newer versions of kernel(>5.12) expect
the NDI interface creation to happen in two phases due to RTNL lock
removal for the vendor commands.
1. Create an interface through add_virtual_intf in STA mode
2. Change the mode to NDI through vendor command.
Currently, host driver restricts NDI creation to MAX_NDI_ADAPTERS(2) in
kernel versions < 5.12 and same is applicable for newer kernels as well.
Add the same check in NDI start for kernel versions >= 5.12.
Currently, host driver uses macro "MAX_NDI_ADAPTERS" to limit the NDIs.
Use the value of ini param "ndi_max_support" instead as this can be
configured differently(1 or 2) for different targets.

Change-Id: I355c42d60d6b86b4664ed001d7ed4d163a102159
CRs-Fixed: 3362601
2022-12-21 09:13:04 -08:00