Commit Graph

23033 Commits

Author SHA1 Message Date
Madan Koyyalamudi
d7800b9bd7 Release 5.2.0.235R
Release 5.2.0.235R

Change-Id: If0de57631e2e94f591c469ad43eea058cabc5240
CRs-Fixed: 774533
2021-06-02 15:54:12 -07:00
Qun Zhang
086ebbc79e qcacld-3.0: notify TKIP mic failure to upper layer under fragement case
It's also needed to notify supplicant when TKIP michael mic failure was
detected under fragement case, so supplicat can start 60s protect policy
for association.

Change-Id: I9383d653ac957425e09a60a2f495e575741d073a
CRs-Fixed: 2942680
2021-06-02 15:54:12 -07:00
Huashan Qu
12787cff21 qcacld-3.0: Add lim_join_req null check in lim_set_mbssid_info()
pe_session->lim_join_req is NULL for LFR2.0 roaming case, need to
add null check before access. If null get mbssid_info from
pe_session->pLimReAssocReq.

Change-Id: I17314a52f3b3fbc57908a7f3f8a369229baf02fd
CRs-Fixed: 2958899
2021-06-02 15:54:06 -07:00
Madan Koyyalamudi
5a804d0d6a Release 5.2.0.235Q
Release 5.2.0.235Q

Change-Id: I443ba1ac54357c82c65659331b38d0dfc9d920ba
CRs-Fixed: 774533
2021-06-02 13:48:17 -07:00
bings
45b6c593c3 qcacld-3.0: Get pe session from vdev_mlme_obj if mlo does not provide
MLO mgr does not have pe session information, when it delivers vdev mlme
event, the event_data_len is 0 and event_data is NULL.

In the vdev mlme op if event_data is NULL, we should get pe session from
vdev_mlme_obj.

Change-Id: I78072cfd80d05d032a734f33a5b5f090739bd0b3
CRs-Fixed: 2950291
2021-06-02 13:48:17 -07:00
Utkarsh Bhatnagar
1169039038 qcacld-3.0: Send TDLS STA notify only when connect is success
Send TDLS STA notify only when connect is success.

This is required as incase connection, it will increment
tdls_soc_obj->set_state_info.set_state_cnt.
It that connection results in failure, then also, without
this check this count will increment.
For subsquent connections, in tdls_send_update_to_fw()
because of incremented count, it will be treated as
FW Set State is already sent and will not send it
which will result in FW crash while adding TDLS peer.

Change-Id: Ic3bedfb1357ac703f98d2d0285dcc85605bab97e
CRs-Fixed: 2955401
2021-06-02 13:48:12 -07:00
Madan Koyyalamudi
d5289a96ab Release 5.2.0.235P
Release 5.2.0.235P

Change-Id: I91695fa3127a7fd8e3fc947a16f3db61d5afb49d
CRs-Fixed: 774533
2021-06-02 11:40:39 -07:00
Ananya Gupta
c5ab429e08 qcacld-3.0: Increase timeout for vdev_del_event
Race condition occurred as rx_thread did not get scheduled
before timeout and gro flush happened in vdev context. At
the same time, rx thread got scheduled and add skb to the
napi queue resulting in crash.
To fix this, Increase the timeout value so rx_thread gets
time to wake up, do gro flush and reset the vdev_del_event.

Change-Id: I2075eda91b1568cce3083869f510fc212dd721f8
CRs-Fixed: 2949803
2021-06-02 11:40:39 -07:00
Madan Koyyalamudi
eb79d5b84e Release 5.2.0.235O
Release 5.2.0.235O

Change-Id: I631902ffccfd7a76420a30477cd0ba363bb76dd1
CRs-Fixed: 774533
2021-06-02 09:01:46 -07:00
Liangwei Dong
41b381e1f9 qcacld-3.0: Validate mac context in CSA bw selection API
Add sanity check mac context before using it in API
wlansap_get_csa_chanwidth_from_phymode.

Change-Id: I8df501e850b606615c899321fc23636ad985ab23
CRs-Fixed: 2955278
2021-06-02 09:01:46 -07:00
Naman Padhiar
8e73a4a3b5 qcacld-3.0: Add support for new uevent from ICNSS2
Add support in PLD layer to handle uevent ICNSS_SMMU_FAULT.

Change-Id: Idf89467f9041281f824ad4c9b2386cbfcee27105
2021-06-02 09:01:41 -07:00
Madan Koyyalamudi
ef10390f88 Release 5.2.0.235N
Release 5.2.0.235N

Change-Id: I5d75c7f924188c8cf00131c32caf940d532e60f5
CRs-Fixed: 774533
2021-06-02 06:58:14 -07:00
sheenam monga
26e8085d7e qcacld-3.0: send nl80211_chan_width instead of bw value
Currently, host sends bw value to upper layer in response
of GET_USABLE_CHAN command. but upper layer requires bw
value in form of nl80211_chan_width enum and considering
bw value as invalid and resulting into 0 bw.

Fix is to convert bw value to nl80211_chan_width enum
and send to upper layer.

Change-Id: I6ae523c35561120c28b08f3aa9782bb749337c8c
CRs-Fixed: 2957062
2021-06-02 06:58:14 -07:00
Madan Koyyalamudi
66ada422b8 Release 5.2.0.235M
Release 5.2.0.235M

Change-Id: Ic6b5e8d009dd6261828ebc84c854a8554b4c7699
CRs-Fixed: 774533
2021-06-02 04:51:57 -07:00
Utkarsh Bhatnagar
790223c7dd qcacld-3.0: Add pending changes for reassoc req
Add pending changes for reassoc req.

Change-Id: I805da0730be9f602fb04135f69c6f339ea8e2ac6
CRs-Fixed: 2958582
2021-06-02 04:51:56 -07:00
Wu Gao
4298ee34cf qcacld-3.0: Get channel width for SAP mode
It will check connection status and then return channel width, which
doesn't work for SAP mode. So, this change won't check connection
status and return channel width in des_chan.

Change-Id: I1cf8c50d458eb1dee85a79ef131a4337ef35c210
CRs-Fixed: 2955868
2021-06-02 04:51:51 -07:00
Madan Koyyalamudi
b957a01916 Release 5.2.0.235L
Release 5.2.0.235L

Change-Id: Ia1326e2ba8ab1e5ae644444c5e8d258ff3756053
CRs-Fixed: 774533
2021-06-02 02:51:40 -07:00
Karthik Kantamneni
ac8b9aa535 qcacld-3.0: Fix use after free during RX thread enqueue
Currently nbuf is being used to get gso segments after enqueue
to DP RX thread, this will lead to use after free issue because
RX thread may process and even free the buffer by the time nbuf
is accessed for getting gso segments in enqueue/softirq context.

Fix this by updating gso segments before nbuf enqueue to DP RX thread.

Change-Id: I2cc93bf9a44e2d487c1a6d474349cf5c0c5db76a
CRs-Fixed: 2958132
2021-06-02 02:51:40 -07:00
Madan Koyyalamudi
09486421c8 Release 5.2.0.235K
Release 5.2.0.235K

Change-Id: Ie1bf479d4aa25de74b46d0da323d2cd8e9378507
CRs-Fixed: 774533
2021-06-01 21:48:42 -07:00
Jingxiang Ge
4f440d2ef2 Revert "qcacld-3.0: Disable force wake for SDX65"
This reverts commit Ie8a23f11a5cd089b205c5b6ec27c39a9da9ddad9.

Change-Id: I2e241d95a0134c3d8514308d0cdf3d84f714726f
CRs-Fixed: 2920257
2021-06-01 21:48:42 -07:00
Madan Koyyalamudi
53311e9597 Release 5.2.0.235J
Release 5.2.0.235J

Change-Id: I12931a28cab1a594838471e074a5e4d15bf59ddc
CRs-Fixed: 774533
2021-06-01 19:41:14 -07:00
Rajeev Kumar
f900bd9e2e qcacld-3.0: Rate limit error logs during unit test wow suspend
Rate limit error logs during unit test wow suspend to avoid
excessive logging.

Change-Id: Idd392c170cfc6ae4481cd4d7e9aa3119eb2e8785
CRs-Fixed: 2955262
2021-06-01 19:41:14 -07:00
Madan Koyyalamudi
1ef1bc8db6 Release 5.2.0.235I
Release 5.2.0.235I

Change-Id: I4c2a4f550efd2a5bfca7d558ca6004674a86b0ab
CRs-Fixed: 774533
2021-06-01 04:33:13 -07:00
Abhishek Singh
be586dd387 qcacld-3.0: Fix NULL vht_caps in lim_ft_prepare_add_bss_req
In lim_ft_prepare_add_bss_req due to change
Ic4a992acfce186f7248dcc99d0c7b44ce38f099b the action was removed
but if condition was not removed. This left over if condition is
causing the vht_caps to be NULL in VHT20 case.

Fix this by removing the left over if condition so that vht_caps
is filled all the time.

Change-Id: I196fd3cfb44fa3281b9843a61242520e0888d2c4
CRs-Fixed: 2958411
2021-06-01 04:33:13 -07:00
Madan Koyyalamudi
327961ea25 Release 5.2.0.235H
Release 5.2.0.235H

Change-Id: Iaa7ff4ac8b60162fa1280b075788aa03e6561214
CRs-Fixed: 774533
2021-05-31 13:30:15 -07:00
Karthik Kantamneni
6b9945cdb4 qcacld-3.0: Handle ipa pipes setup failure in wlan_ipa_uc_ol_init
When ipa setup pipes fails in wlan_ipa_uc_ol_init API,
tx buff mapping is not done but during deinit path
tx buff unmapping is called without mapping.

Fix this by resetting uc_loaded flag to false when ipa pipes
setup failure is encountered.

Change-Id: Ic34320e56cee9e60381d9203dd95e268d0ef392b
CRs-Fixed: 2957612
2021-05-31 13:30:15 -07:00
Madan Koyyalamudi
8eafad9b12 Release 5.2.0.235G
Release 5.2.0.235G

Change-Id: I6d26be6ce29cef7a18cdf8074a2e3392fca92cb5
CRs-Fixed: 774533
2021-05-31 09:51:19 -07:00
Kiran Kumar Lokere
aa2f7953d2 qcacld-3.0: Support for broadcast TWT configuration
Add configuration support for broadcast TWT parameters.

Change-Id: I066f4509e094c81f51eda4cc08a432beab4e0e57
CRs-Fixed: 2924717
2021-05-31 09:51:19 -07:00
Madan Koyyalamudi
6808a12ef0 Release 5.2.0.235F
Release 5.2.0.235F

Change-Id: I287b9d85541c81418b5f09dda01f39e28847ed9b
CRs-Fixed: 774533
2021-05-31 07:47:25 -07:00
Ashish Kumar Dhanotiya
df7cf9ef39 qcacld-3.0: Consider secondary channel list for ACS
Currently driver does not consider secondary channel list
for ACS which needs to be used for SAP related operations and
because of that in sap get freq list driver is selecting some
frequencies which are not valid for SAP operation and from
frequencies driver selects ACS frequency and gives to upper
layer resulting in an invalid ACS frequency to user space.
Now when user space tries to start ap on this frequency, SAP
doesn't come up on this frequecy as this is invalid frequency
for SAP.

To address above issue consider secondary channel list for ACS
in sap get freq list so that only valid frequencies for SAP
are selected for ACS.

Change-Id: Ic7f1cb8134615a9195884d55bfb8111898ff74cb
CRs-Fixed: 2955162
2021-05-31 07:47:25 -07:00
Karthik Kantamneni
f70b8c0564 qcacld-3.0: Handle Flow init ts and reo id mismatch info
When flow is added in CMEM path init time stamp is not
handled, so initialize flow init time stamp in CMEM path.

Add Fisa error print during reo id mismatch, print flow
and nbuf details which helps to debug the issue even if
local stack variables are not available in dump.

Change-Id: Ibcc44bd8558cc687279bb34267d60b9882d33a24
CRs-Fixed: 2946825
2021-05-31 07:47:20 -07:00
Yeshwanth Sriram Guntuka
553ec8e0a4 qcacld-3.0: Handle error cases in ipa_uc_loaded_handler
In the scenario where ipa connect pipes fails in the
wlan_ipa_uc_loaded_handler API, uc_loaded flag is not
reset. As a result of this, in wlan_ipa_uc_ol_deinit,
ipa_tx_buf_smmu_unmap and ipa_wdi_disconn_pipes APIs are
invoked incorrectly.

Fix is to set the uc_loaded flag to true only if connect
pipes and tx_smmu mappings are successful in
wlan_ipa_uc_loaded_handler. Also, initialize the uc_op_work
in wlan_ipa_uc_ol_init prior to the uc_loaded check to
avoid a possible race condition which could also result
in the similar issue as above.

Change-Id: I119170413cb9b5e03ec476c9a69d9effaa460c01
CRs-Fixed: 2940833
2021-05-31 07:47:15 -07:00
Madan Koyyalamudi
66742da853 Release 5.2.0.235E
Release 5.2.0.235E

Change-Id: Ib8e733ff5fba12b98d10e10b54e0ab9178b87c5b
CRs-Fixed: 774533
2021-05-31 05:36:08 -07:00
Srinivas Dasari
3a64788b29 qcacld-3.0: Allocate NDP_END wait context before posting msg
Currently, osif_request_alloc is done and waiting for response
after posting the message NDP_END_REQ. But this may lead to
invalid memory access if message gets processed in scheduler
thread and response also comes before the request is allocated.

Allocate the request before sending message to avoid this.

Change-Id: I88b0a8be229e779526f0f3cf184b191e00872ee8
CRs-Fixed: 2782045
2021-05-31 05:36:08 -07:00
Srinivas Dasari
a51f024cd9 qcacld-3.0: Move cp stats to scheduler thread from kworker thread
Currently, cp stats are received through kworker thread context.
This causes race conditions/out of sync issues if any common data
structures are handled in parallel in scheduler thread context.
There is no need to receive the cp stats on kworker thread as per
current design. So, move the cp stats event handling to scheduler
thread to avoid any race conditions.

Change-Id: Id8134003e6f7a3e0368b20c496f650e0b7025b9e
CRs-Fixed: 2928876
2021-05-31 05:36:02 -07:00
Karthik Kantamneni
37eb787c99 qcacld-3.0: Cleanup debug prints in refill thread
Cleanup debug prints in refill thread main loop API.

Change-Id: I9b8f7410562b2c90ad802eddca9a482014e91010
CRs-Fixed: 2950141
2021-05-31 05:35:55 -07:00
sheenam monga
c1e87af47a qcacld-3.0: Add fature flag to get usable channels
Add feature flag for the feature to get usable channels.

Change-Id: I6dd2360284c395747b55f806caab2a5a44089866
CRs-Fixed: 2947180
2021-05-31 05:35:49 -07:00
sheenam monga
aae25f8df2 qcacld-3.0: Use dynamic memory allocation instead of static
In function __wlan_hdd_cfg80211_get_usable_channel use
dynamic memory allocation for get_usable_chan_res_params
structure to avoid increase of stack frame.

Change-Id: Ib3b5686a7af068fd1d0435bc24eda5d9e57bf1d7
CRs-Fixed: 2950726
2021-05-31 05:35:43 -07:00
sheenam monga
89a0689407 qcacld-3.0: Send response of SUBCMD_USABLE_CHANNELS
Send response of SUBCMD_USABLE_CHANNELS to upper layer.

Change-Id: I3f7d0a9f28fcf60141fec86561524882ce4e3095
CRs-Fixed: 2946928
2021-05-31 05:35:37 -07:00
sheenam monga
e490d57556 qcacld-3.0: Handle command to get usable channels
Handle command to get usable channels for
provided mode, band and con filter.

Change-Id: I20133ea1a93c9153ec7252dcd34a0a160715d8a6
CRs-Fixed: 2946908
2021-05-31 05:35:30 -07:00
Madan Koyyalamudi
864a1f10a3 Release 5.2.0.235D
Release 5.2.0.235D

Change-Id: Ic68b254a3c56fa3dde53495d5fd6a2326d9acaad
CRs-Fixed: 774533
2021-05-30 23:52:00 -07:00
Pragaspathi Thilagaraj
3a05e3d10c qcacld-3.0: Update WTC params only if the WTC attribute is present
Currently driver updates the WTC global parameters irrespective
of the WTC attributes present in the vendor command.
This causes the WTC parameters to be reset and WTC roam
trigger doesn't happen.
For example, with below sequence of commands:
wpa_cli DRIVER setwtcmode 0 1 -40 -95 -90 -85
wpa_cli DRIVER ADDROAMSCANFREQUENCIES_LEGACY 19 2412 2417 2422
The WTC parameters TLV is not included in the RSO
update command.

Update the WTC params only if the WTC attribute is present.

Change-Id: I53e5d934368169069dbf059335859936d320aa4e
CRs-Fixed: 2954458
2021-05-30 23:52:00 -07:00
Pragaspathi Thilagaraj
73b225f611 qcacld-3.0: Add support for candidate AP RSSI in different bands
Currently in WTC mode the candidate AP RSSI threshold
configuration is applied for candidates on all band.

Add support to configure the candidate AP RSSI threshold for
different bands.

Change-Id: I94442c0f1bd3ea20dc2f5ebe893a9ead7fb8d890
CRs-Fixed: 2951610
2021-05-30 23:51:55 -07:00
Madan Koyyalamudi
3c2e750fd4 Release 5.2.0.235C
Release 5.2.0.235C

Change-Id: I2583a527e4fbb1a315daaf866e4cb60644e982d6
CRs-Fixed: 774533
2021-05-28 18:30:42 -07:00
Yu Wang
e0c2cd6326 qcacld-3.0: enhance oui based iot aggr size processing
Check the configured IOT OUIs in Beacon/Probe Response
IEs, but not in Associate Response IEs, because some APs
won't add its specific OUI in Associate Response frame.

Change-Id: I3aedeef0a5dbecd4bed41eb47a9374e654509746
CRs-Fixed: 2955964
2021-05-28 18:30:42 -07:00
Karthik Kantamneni
239913e04c qcacld-3.0: Set intermediate EP vote access
Set intermediate EP vote access before host
wake up indication smp2p is sent to F.W,
this helps to avoid smp2p override.

Change-Id: I4b998ee5ea6b26921855bfbae434869fb93accf9
CRs-Fixed: 2953883
2021-05-28 18:30:37 -07:00
Jianmin Zhu
b2c90c6638 qcacld-3.0: Tx rate show as 80M after roamed to 160M AP
When roaming to 160M AP by LFR3, host will update BSS info after
received roam sync event from firmware, but 160M isn't considered
when calculate channel width.
Actually vht_op->chanWidth alone cannot decide the actual BW, we need to
check difference of center_freq0 and center_freq1 to decide 160/80+80 or
80 if vht_op->chanWidth is 1.

Fix it by copying ft_session->ch_width to BSS info which covered 160M
channel width.

Change-Id: Ic4a992acfce186f7248dcc99d0c7b44ce38f099b
CRs-Fixed: 2954900
2021-05-28 18:30:32 -07:00
Madan Koyyalamudi
b8d50867b9 Release 5.2.0.235B
Release 5.2.0.235B

Change-Id: I2230faa1d36b1de06d75c9809c0a0f8a8e4ca3e5
CRs-Fixed: 774533
2021-05-28 08:19:38 -07:00
Lin Bai
39f31e9d96 qcacld-3.0: Report DIAG event if TX throttled completely
When thermal level higher than MITIGATION, TX will be
throttled completely.
Report DIAG event to notify user-space explicitly.

Change-Id: Ic2d8adfb6810ad03f3ec3b0847a176b694ace33a
CRs-Fixed: 2922102
2021-05-28 08:19:38 -07:00
Madan Koyyalamudi
e7425a79b3 Release 5.2.0.235A
Release 5.2.0.235A

Change-Id: I7f1d8d18a1379a869204ecea894e258b04afb4c0
CRs-Fixed: 774533
2021-05-28 01:46:57 -07:00