Commit Graph

26702 Commits

Author SHA1 Message Date
Jeff Johnson
1ed8f093f3 qcacld-3.0: Fix misspelling "configuation"
Fix misspelling: configuation ==> configuration

Change-Id: I6cc8a9861113a839d1ab6b4b60d4d2bde7c2018f
CRs-Fixed: 3274597
2022-08-25 22:08:55 -07:00
Jeff Johnson
140039dd71 qcacld-3.0: Fix misspelling "notifcation"
Fix misspelling: notifcation ==> notification

Change-Id: Id72243b88e9061dafa93bec4d10a3e849f7ade40
CRs-Fixed: 3274596
2022-08-25 22:08:50 -07:00
Madan Koyyalamudi
0e6bd5cbc6 Release 5.2.1.34I
Release 5.2.1.34I

Change-Id: I4fafffdff7266f941bc0a4d420463d1a0c6fb666
CRs-Fixed: 774533
2022-08-25 19:14:55 -07:00
Yu Wang
10b9de1c0f qcacld-3.0: free osif request in wlan_cfg80211_coap_cache_get_cbk()
The osif request allocated in wlan_cfg80211_coap_cache_get_cbk()
is not freed for cases other than completed case, which will
result in memory leak in those cases.
To fix it, free osif request for all the cases.

Change-Id: I17998d0fb39e75b8b5f52a26d351056222c95536
CRs-Fixed: 3275889
2022-08-25 19:14:55 -07:00
Pragaspathi Thilagaraj
d680301aa1 qcacld-3.0: Fix null pointer dereference of additional_ie
The add_ie pointer can be NULL and is dereferenced in
lim_send_assoc_req_mgmt_frame() without validation.

Add NULL pointer validation for add_ie before passing it to
wlan_get_ie_ptr_from_eid().

Change-Id: I3f7c9c54874511ea7de43366cc0e3cb2deffc182
CRs-Fixed: 3273518
2022-08-25 19:14:49 -07:00
Madan Koyyalamudi
8028f13a5a Release 5.2.1.34H
Release 5.2.1.34H

Change-Id: I3fb0ac2d19b4c3b0a86d413d8d9f3f2c514e90bb
CRs-Fixed: 774533
2022-08-25 17:40:44 -07:00
Amit Mehta
cf37b0c153 qcacld-3.0: Add NULL check for return value
Currently at multiple places there is no
NULL check for return value which might
result in NULL pointer dereference.
Add NULL check for return value to avoid any
NULL pointer dereference.

Change-Id: I986a48d9649b67cb5a078ec38eea64da4ef9244e
CRs-Fixed: 3273489
2022-08-25 17:40:43 -07:00
Arun Kumar Khandavalli
c14d6ed422 qcacld-3.0: Add EHT support for the max link speed
Currently EHT rates are not getting filled when the max link speed
configuration is selected. Add support to populate the eht rates
when max link speed report configuration is selected.

Change-Id: Ia93c3ec3db2f7e7ad3e4df5090f407831fdc2397
CRs-Fixed: 3272492
2022-08-25 17:40:38 -07:00
Madan Koyyalamudi
24c711be7d Release 5.2.1.34G
Release 5.2.1.34G

Change-Id: Id9ce242299c8718c38d42af366b59bafe8ca9548
CRs-Fixed: 774533
2022-08-25 12:12:59 -07:00
Vishal Miskin
6d449935cc qcacld-3.0: Update HE MCS Rates
Modified HE MCS Rates with respect to specification

Change-Id: Id16123baf7a18ce10c3c5776b6ef33864a0d9a82
CRs-Fixed: 3263057
2022-08-25 12:12:58 -07:00
Qun Zhang
09f65a0240 qcacld-3.0: Trim 5 GHz scan channel lists for STA DFS connection case
Currently as long as STA connection is present on DFS channel, host
driver doesn't trim 5 GHz channel lists even if there has SAP on DFS
channel. But for DBS capability chips, like Hasting, when DFS SAP is
present, it's still not allowed to do scan even if STA DFS connection
is available. If don't trim 5 GHz channel lists, the result is that
FW will return cancelled status for the last scan event of the DFS
BSS channel. So host driver would return aborted status even if 2.4
GHz channels can be normally scanned and upper layer cannot get any
scan results.

Change-Id: I885dbccd9beb8bc1c4956c89d90d33cda2bc301d
CRs-Fixed: 3274000
2022-08-25 12:12:50 -07:00
Madan Koyyalamudi
831a719163 Release 5.2.1.34F
Release 5.2.1.34F

Change-Id: Ia362780594a01d0e408185211f27b9a982ddf896
CRs-Fixed: 774533
2022-08-25 01:09:09 -07:00
Jianmin Zhu
ef5fb9544a qcacld-3.0: Intersect 40 MHz channel width in 2.4 GHz band
When sending WMI_VDEV_SET_IE_CMDID, do an intersection between
gChannelBondingMode24GHz and target capabilities for 40 MHz
channel width support and 20 MHz in 40 MHz HE PPDU in HE PHY
capabilities IE.

Change-Id: I2502a67512abf6d316e29f8049a05d26d49ec4a1
CRs-Fixed: 3262033
2022-08-25 01:09:09 -07:00
Madan Koyyalamudi
c240592ed0 Release 5.2.1.34E
Release 5.2.1.34E

Change-Id: I5c36e5f299e27179a1deb5e826524f70c8cb4231
CRs-Fixed: 774533
2022-08-24 15:54:53 -07:00
Utkarsh Bhatnagar
33f9595701 qcacld-3.0: Disable legacy netdev params for TDLS
Since TDLS and STA share a common netdev interface,
when STA connection is made in 11a, 11b, 11g mode,
netdev parameters such as TSO/checksum are disabled.
If TDLS connection is formed over this Station,
TSO remains disabled as STA netdev is used.

This might result in loss of throughput when TDLS
connection is made with 11n, 11ac, 11ax dot11mode and
with wider bandwidth TDLS, this loss is more prominent.

Hence, overwrite the netdev params to enable TSO when
TDLS connection is formed in 11ax, 11ac, 11n mode if
the station is in 11a, 11b, 11g mode.
Also, disable the TSO params when TDLS tearsdown when
STA is in 11a, 11b, 11g mode.

Change-Id: I80deaef40d70030211e75a63e1339b1407627b52
CRs-Fixed: 3245258
2022-08-24 15:54:53 -07:00
Madan Koyyalamudi
1e564784d5 Release 5.2.1.34D
Release 5.2.1.34D

Change-Id: I92fe0b7653b3ad71b9906934e322b37f3387542a
CRs-Fixed: 774533
2022-08-24 12:07:56 -07:00
Asutosh Mohapatra
485829ae22 qcacld-3.0: Avoid calling qdf_mem_malloc for zero unsafe channels
Currently in hdd_init_channel_avoidance api we are proceeding for
malloc without checking unsafe channel count.
To address this issue add check before calling qdf_mem_malloc api
to check if unsafe channel count is greater than 0, otherwise
return from the function.

Change-Id: I4d54a6aa97a141be06695d2455fb5d6aff8db082
CRs-Fixed: 3273502
2022-08-24 12:07:56 -07:00
Madan Koyyalamudi
3e53da2acd Release 5.2.1.34C
Release 5.2.1.34C

Change-Id: Ide50c8c70c43cdd1fe567c18520582e95def77e8
CRs-Fixed: 774533
2022-08-24 09:01:02 -07:00
Utkarsh Bhatnagar
f5401a0c83 qcacld-3.0: Don't set widerband bit for 2.4 GHz
With change in design, now in 2.4 GHz band TDLS
BW should always follow Station bandwidth. So,
No need to set widerband bit if TDLS connection
is created on 2.4 GHz Band and offchannel is not
enabled.

Change-Id: I19d69c57a042feb72e50059bdca28c7a4263adb8
CRs-Fixed: 3269866
2022-08-24 09:01:01 -07:00
Madan Koyyalamudi
1b8260c40c Release 5.2.1.34B
Release 5.2.1.34B

Change-Id: Id5d01132559773c8fc99bc4778458a3c3957b4ff
CRs-Fixed: 774533
2022-08-24 04:10:50 -07:00
Aditya Kodukula
4da4073cd3 qcacld-3.0: Validate adapter before use in LL_STATS
Currently, in the function hdd_cache_ll_iface_stats,
the adapter is dereferenced without validating it.
To avoid possible null-pointer dereference, add a check
to validate the adapter.

Change-Id: I6a905db2ada90243f178237bab41fd975789b8c1
CRs-Fixed: 3273525
2022-08-24 04:10:50 -07:00
Madan Koyyalamudi
469a1347ac Release 5.2.1.34A
Release 5.2.1.34A

Change-Id: Ie8e1b3f64604e050a8595c3863c5f319760b2f48
CRs-Fixed: 774533
2022-08-23 15:16:53 -07:00
Vinod Kumar Myadam
11b175dad0 qcacld-3.0: Fix for scan passive dwell time
Prensently for initial scan and roam passive scan dwell time,
the same ini CFG_PASSIVE_MAX_CHANNEL_TIME is used. This will
cause initial scan to have the roam passive scan value.

Decouple passive scan and roam passive scan ini parameter by
adding new ini param for roaming

Change-Id: I4b37c8faa26c971f173e8c8179e505ea4c69c27e
CRs-Fixed: 3268789
2022-08-23 15:16:53 -07:00
Pragaspathi Thilagaraj
9573437444 qcacld-3.0: Fix logging level in __wlan_hdd_cfg80211_del_key()
Del_key is called by supplicant for every key index and driver
logs error if mac address is NULL. This adds 18 ms delay due
to the kmsg error print and causes supplicant to delay
processing the EAPOL-1 frame, which leads to AP retrying
EAPOL-1 frame.

So change error log level in __wlan_hdd_cfg80211_del_key to
debug and remove redundant vdev id validation which is already
done in the caller.

Change-Id: I2dffd480a8ac2021b4683c5c5583ef9483935b5d
CRs-Fixed: 3260194
2022-08-23 15:16:48 -07:00
Madan Koyyalamudi
ae4a75b447 Release 5.2.1.34
Release 5.2.1.34

Change-Id: Ife0f2dc8f21139f2d08f9fa417aad822f04e8f54
CRs-Fixed: 774533
2022-08-23 05:40:06 -07:00
Kiran Kumar Lokere
2c6811feb4 qcacld-3.0: Fix the 2.4 GHz band HE caps in VDEV IE data
Reset the HE capability data buffer after the 5 GHz HE capabilities
are configured to FW to fix the malformed data in 2.4 GHz HE
capability data.

Change-Id: I8147ffdae1990cf1997650f0790a27ccbb6ff1fe
CRs-Fixed: 3253505
2022-08-23 05:40:06 -07:00
Kiran Kumar Lokere
241d3dbc59 qcacld-3.0: Remove the ML IE sent in assoc request IE data
Remove the MLO IE sent in connect request association request
data to avoid duplication.

Change-Id: Icccf378c05cd9509dfbb42d68a9859c9a0bb315a
CRs-Fixed: 3259650
2022-08-23 05:40:00 -07:00
Kiran Kumar Lokere
b4a3d09a5e qcacld-3.0: Add support for testbed default EHT caps
Add support to set the EHT capabilities for testbed
default settings.

Change-Id: Ica67836e464d42adc43971456801103d088a0891
CRs-Fixed: 3256051
2022-08-23 05:39:54 -07:00
Madan Koyyalamudi
0f24946cba Release 5.2.1.33Z
Release 5.2.1.33Z

Change-Id: I5cb1cb0c1b5d5f2a3a1a44f70fd5b55ca5a84e37
CRs-Fixed: 774533
2022-08-23 02:40:39 -07:00
Srinivas Dasari
ff87b52ef4 qcacld-3.0: Don't reserve vdev for NAN in fw when NAN is disabled
When NAN is not supported on some target(disabled through ini
param gEnableNanSupport), there is no use of reserving vdev for
it in firmware though firmware advertises wmi_service_nan. Indicate
firmware that host is going to take care of the NAN vdev creation.
Host can use the vdev either for NAN or other operations
on need basis.

Change-Id: Iec106ceb80b80f03017a77036727b148845b64d5
CRs-Fixed: 3267080
2022-08-23 02:40:38 -07:00
Hong Shi
c0ff3212e9 qcacld-3.0: reschedule country change work for EAGAIN error
Sometimes country change happened when driver is loading stage.
wlan_hdd_validate_context will return EAGAIN in such case and
cause country change work aborted. Reschedule country change work
in EAGAIN case so that country change work can be done.

Change-Id: I83efb6def92a2f3c2710df02f85383ccb20e89d2
CRs-Fixed: 3252694
2022-08-23 02:40:32 -07:00
Deeksha Gupta
c9b75a7ecd qcacld-3.0: Clean up code to avoid duplication
Avoid code duplication by using common definitions
i.e use enum wlan_ml_linfo_subelementid.

Change-Id: Ib8ce8f5e84abe7a8d60ebc220610dcc60483bf81
CRs-Fixed: 3270765
2022-08-23 02:40:26 -07:00
Madan Koyyalamudi
1740531973 Release 5.2.1.33Y
Release 5.2.1.33Y

Change-Id: I094a14cde37816225241cc442bc9fb79c56f75b2
CRs-Fixed: 774533
2022-08-23 00:49:11 -07:00
abhinav kumar
4bc3ce90dd qcacld-3.0: Lock leak in function policy_mgr_is_restart_sap_required
In case of failure policy_mgr_is_restart_sap_required
returns without releasing the lock. This leads to lock leak.

Fix is to release the lock before return in case of failure.

Change-Id: I032a6902de1bd0c8f87b660aac98a2fb08dd3f10
CRs-Fixed: 3269538
2022-08-23 00:49:10 -07:00
Dundi Raviteja
ea7b73b001 qcacld-3.0: Reinitialize mon_register_event before wait_for_completion
Reinitialize mon_register_event before wait_for_completion
to make sure that it waits for fresh completion.

"done" variable in struct completion increments in
complete() API and decrements in wait_for_completion() API.

In wait_for_completion() API, if "done" value is 0 then
it will wait for the completion else it will continue without
waiting.

If reinitialization is not done, there is a possibility that
wait_for_completion() may continue without waiting.

Change-Id: I780103f551938438f27a11b006cc7c3e6edc6820
CRs-Fixed: 3251876
2022-08-23 00:49:05 -07:00
Madan Koyyalamudi
0d727db03a Release 5.2.1.33X
Release 5.2.1.33X

Change-Id: I75be705f98dfbdcbc758e2ec62686a2534ca5aae
CRs-Fixed: 774533
2022-08-22 21:36:43 -07:00
Srinivas Dasari
ce7965e1c3 qcacld-3.0: Incorrect validation of RSNXE cap bits
Currently, cap_mask contains the bitmap to check if any bits
other than SAE_H2E, SAE_PK, SECURE_LTF, SECURE_RTT,
PROT_RANGE_NEGOTIOATION are set in RSNXE capabilities.
But if the cap length is non-zero, the cap_mask wrongly indicates
that some bit is set in the capabilities other than the above
mentioned features as first 4-bits are used for length.
Skip validating the first 4-bits as these are reserved for
cap length.

Change-Id: I3736479e7c580425f8d340cb5bd815836c54d5ce
CRs-Fixed: 3270051
2022-08-22 21:36:42 -07:00
Madan Koyyalamudi
8c5c34938e Release 5.2.1.33W
Release 5.2.1.33W

Change-Id: Ib5e38b82b266f6bbb9d38ce7473b2ae3132dcc83
CRs-Fixed: 774533
2022-08-22 13:14:39 -07:00
Jeff Johnson
adc9857a94 qcacld-3.0: Fix misspelling "recevied"
Multiple instances of the misspelling "recevied" are present, so
replace them with the correct spelling "received."

Change-Id: Ie0421bc472d5c25f1fbcc5e8c9333e0283a6e129
CRs-Fixed: 3271103
2022-08-22 13:14:39 -07:00
Madan Koyyalamudi
f21436ab59 Release 5.2.1.33V
Release 5.2.1.33V

Change-Id: Ic775b6c9d4a60e679a105e36b27aef441435945b
CRs-Fixed: 774533
2022-08-22 11:30:16 -07:00
Qun Zhang
76d37c0d18 qcacld-3.0: Disallow channel switch only when sta_sap_scc_on_dfs_chnl is 1
For non-dbs HW, per INI g_sta_sap_scc_on_dfs_chan description, standalone
SAP should be allowed to do channel switch when sta_sap_scc_on_dfs_chnl
is 0 or 2.

Change-Id: I380791debed79d4de6d468afe0c8956bf6f11ddb
CRs-Fixed: 3265470
2022-08-22 11:30:16 -07:00
Madan Koyyalamudi
469ca50be8 Release 5.2.1.33U
Release 5.2.1.33U

Change-Id: I663a2dae04c1a64527596851a5dff64b387ffeec
CRs-Fixed: 774533
2022-08-22 08:30:13 -07:00
Paul Zhang
7e735530a2 qcacld-3.0: set rx_pream_puncturing per band
Currently, HE cap uses the final cap derived from 2 GHz and
5 GHz specific HE caps, then the value of rx_pream_puncturing
in HE cap may not be expected when 5 GHz is used.

To resolve this issue, set rx_pream_puncturing if 5 GHz band
is used.

Change-Id: I81cb960271dff5007606a10cab8e9c78cbae58fb
CRs-Fixed: 3267557
2022-08-22 08:30:12 -07:00
Madan Koyyalamudi
e8f85db444 Release 5.2.1.33T
Release 5.2.1.33T

Change-Id: I3c3147c9738910b2c031912cdb413431c11598e0
CRs-Fixed: 774533
2022-08-21 22:18:35 -07:00
Yu Wang
7ef2ec9750 qcacld-3.0: enable CoAP feature for kiwi_v2
Enable CoAP(Constrained Application Protocol) feature
for kiwi_v2.

Change-Id: Ib940a1135f7de69c437a276fc8c8ba3cc1a7da5b
CRs-Fixed: 3257898
2022-08-21 22:18:34 -07:00
Yu Wang
0f0d2fc927 qcacld-3.0: add build support for CoAP
Add build support for CoAP(Constrained Application Protocol)
component.

Change-Id: I1578091ddc6348398d3a0dbc1c7378deddf10712
CRs-Fixed: 3257891
2022-08-21 22:18:29 -07:00
Yu Wang
6b8d933d9e qcacld-3.0: add vendor command support for CoAP
Add support for CoAP(Constrained Application Protocol) realted
vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.

Change-Id: I830379ca0dda765add5e1ddd949fd3e51dcb80e6
CRs-Fixed: 3254544
2022-08-21 22:18:24 -07:00
Yu Wang
0cf0e65f75 qcacld-3.0: implement os if layer for CoAP component
Add os if layer for CoAP(Constrained Application Protocol)
component. It provides interfaces to parse netlink messages
for vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD
and take action accordingly, including enable/disable offload
reply/periodic transmitting for CoAP messages, and fetching
CoAP messages those cached during offload processing.

Change-Id: Ibbf9baf3802d305f9989e024ce764a6071b1fc6b
CRs-Fixed: 3254541
2022-08-21 22:18:18 -07:00
Madan Koyyalamudi
258f752ffb Release 5.2.1.33S
Release 5.2.1.33S

Change-Id: Id7edf3a0c0c4e8bb7635a942e8d2d10626ac5e76
CRs-Fixed: 774533
2022-08-21 20:50:18 -07:00
Bing Sun
082f9da230 qcacld-3.0: Add support for WPA3 LFR2 roaming
On some projects, LFR3 roaming is not supported due to
limitation of FW memory, thus, add support for WPA3 LFR2
roaming.

Change-Id: I80888049a243c0d37e08377d89a6aa44e75a8850
CRs-Fixed: 2973554
2022-08-21 20:50:17 -07:00