Commit Graph

22732 Commits

Author SHA1 Message Date
Surabhi Vishnoi
20c17ab106 qcacld-3.0: Reduce the log level to optimise the roam time
TWT initialisation will fail for each non 11ax connection
so an error log is not needed if peer object for TWT is not found.

Also, RIC data is not mandatory in FT session, so if its not
present, log a debug level print instead of error level.

Change-Id: I7fec9f88aa68b2ae947e34a1aede311e9fed2d05
CRs-Fixed: 3117535
2022-02-03 09:01:47 -08:00
Madan Koyyalamudi
3d66633cda Release 2.0.8.27L
Release 2.0.8.27L

Change-Id: Idcea46403c81e58c0d43c2277d9a4b5f2ae01118
CRs-Fixed: 774533
2022-02-03 01:08:30 -08:00
Krupali Dhanvijay
9f325a1371 qcacld-3.0: Update Copyright for NAN discovery
Update copyrights for Do not reserve NAN discovery vdev in case
of FTM mode.

Change-Id: I1ec3c8d38c93de1ff69b99f08ee7ebdfdabf04da
CRs-Fixed: 3119751
2022-01-28 18:12:50 +05:30
Madan Koyyalamudi
ff7e2646ec Release 2.0.8.27K
Release 2.0.8.27K

Change-Id: I14810c07a86b3ca7ea1a4ce99325e201dcd7b0d7
CRs-Fixed: 774533
2022-01-28 03:07:21 -08:00
Jingxiang Ge
e06eb51744 qcacld-3.0: Enable ce debug history always
Always enable ce debug history feature, but there
is difference for perf&debug build.
On perf build, only ce2/ce3 histroy is enabled.
And for ce debug history memory init/deinit happens
when driver is loading&unloading, even it use when start
module, this will help to check some cases when
stop_module happens.

Change-Id: I4b825f91bc9ede8372291f9d94cb7fae23942a49
CRs-Fixed: 3058735
2022-01-28 13:29:51 +08:00
Madan Koyyalamudi
af23acd473 Release 2.0.8.27J
Release 2.0.8.27J

Change-Id: I31b6b9785bced50656d0af322d8743427391836f
CRs-Fixed: 774533
2022-01-26 05:26:31 -08:00
Jianmin Zhu
6d2a27a181 cld-3.0: Consider connected AP for roaming candidate
If reassoc MAC from user space is broadcast MAC as:
"wpa_cli DRIVER FASTREASSOC ff:ff:ff:ff:ff:ff 0",
user space invoked roaming candidate selection will be based on firmware
score algorithm, current connection will be kept if current AP has highest
score. It is requirement from customer which can avoid ping-pong
roaming.

Change-Id: I8de3e2a26a6f346c900157aa823205f849d233f7
CRs-Fixed: 3106276
2022-01-26 10:00:08 +08:00
Madan Koyyalamudi
6963589aba Release 2.0.8.27I
Release 2.0.8.27I

Change-Id: Iad190f47abb09f74c01016a68bd7030de186ce21
CRs-Fixed: 774533
2022-01-25 04:40:39 -08:00
Krupali Dhanvijay
e21c8c0aec qcacld-3.0: Do not reserve NAN discovery vdev in case of FTM mode
If firmware supports NAN discovery vdev then one vdev is
reserved for NAN. Do not reserve NAN discovery vdev in case
of FTM mode.

Change-Id: Ie16df46bbb09dd89889639d40dc1a65e3786ce73
CRs-Fixed: 2830136
2022-01-25 04:40:39 -08:00
Madan Koyyalamudi
8760581864 Release 2.0.8.27H
Release 2.0.8.27H

Change-Id: If19bc1fa699ea19ae8bc7d07d333aff7c3280576
CRs-Fixed: 774533
2022-01-24 23:39:32 -08:00
Surabhi Vishnoi
58e8b7af4a qcacld-3.0: Add kbuild cpp flag for low power mode feature
Add ccp flag support for CONFIG_ENABLE_LOW_POWER_MODE in Kbuild.
Currently, this config is enabled for wearables only.

Change-Id: I2fb08930290f5c23641e1d76796ab829b31aae04
CRs-Fixed: 3110291
2022-01-24 23:39:32 -08:00
Madan Koyyalamudi
ec4cecc389 Release 2.0.8.27G
Release 2.0.8.27G

Change-Id: I470e633796e2ac76265579a7101dc4e9df299792
CRs-Fixed: 774533
2022-01-19 01:52:21 -08:00
Surabhi Vishnoi
10d47061ef qcacld-3.0: Allow suspend in Deep Sleep/Hibernate in wearables
Deep Sleep or Hibernate are system level mode power
modes wearable targets in which wlan firmware is shutdown
gracefully and linux kernel and platform are suspended.

Currently, wlan suspend and pm_suspend is not allowed if
firmware is down, with this change suspend is allowed if firmware
is down due to Deep Sleep or Hibernate low power state.

Change-Id: Ide7b8957d1cfe455d57769c30f0bb3d6e564cddc
CRs-Fixed: 3108081
2022-01-19 01:52:21 -08:00
Madan Koyyalamudi
119538d119 Release 2.0.8.27F
Release 2.0.8.27F

Change-Id: I3555999258ad7e9a5c51226dc1d61f2737b34d8c
CRs-Fixed: 774533
2022-01-18 23:21:32 -08:00
Liangwei Dong
d1dfcc63f1 qcacld-3.0: Fix slab-out-of-bounds in radio stats
When fixed_param->num_radio is 0 from FW, host allocates
struct tSirLLStatsResults with 0 count of struct wifi_radio_stats
to wma_handle->link_stats_results.
When the second radio stats comes, the driver will
not allocate wma_handle->link_stats_results because
wma_handle->link_stats_results is not NULL.
Later driver will access the wma_handle->link_stats_results based
on radio_stats->radio_id. This will access invalid memory
because the original wma_handle->link_stats_results memory
didn't include the wifi_radio_stats.
Fix by free the link_stats_results if
wma_handle->link_stats_results->num_radio is 0, then driver
will allocate wma_handle->link_stats_results memory including
the struct wifi_radio_stats based on num_radio.

Change-Id: Ie1d6bbe8c668d2fb475fddb60907fd13a7f8de66
CRs-Fixed: 3082779
2022-01-18 23:21:31 -08:00
Madan Koyyalamudi
04958951cb Release 2.0.8.27E
Release 2.0.8.27E

Change-Id: Ib36997878c36940cebd254867735576c9a5db19a
CRs-Fixed: 774533
2022-01-18 17:29:44 -08:00
Ashish
d7e57a9320 qcacld-3.0: Add bug_on if 5 consecutive ll_stats requests fails
If ll_stats command does not receive response from fw continuously
for some time then there is no way to determine the actual reason
of this comamand failure if the logs are overwritten.

With this change, add bug_on and trigger recovery after 5
continuous command failures so that the current logs are captured
to analyse the issue.

Change-Id: I8f2f08d598c25ccea5ecd4b02c86e1069daeb6e0
CRs-Fixed: 3106087
2022-01-18 17:29:44 -08:00
Madan Koyyalamudi
077158d209 Release 2.0.8.27D
Release 2.0.8.27D

Change-Id: I8be19582e8f74e588353c66465332bd6ea99c001
CRs-Fixed: 774533
2022-01-18 13:15:43 -08:00
Surya Prakash Sivaraj
c11833158b qcacld-3.0: Handle reset case for P2P_SET_NOA
For resetting NOA, "P2P_SET_NOA 0 0 0" command will be
used. Since duration and interval are same, currently the
set will be rejected.

Handle the count 0 case and bypass the existing validation
for periodic NOA.

Change-Id: I5294d7bcdd70d9280e50167c961d2e9c525fca4c
CRs-Fixed: 3054252
2022-01-18 13:15:42 -08:00
Madan Koyyalamudi
c9109277f1 Release 2.0.8.27C
Release 2.0.8.27C

Change-Id: I2065a201c40cbc8aee4ef5772b4d2901bdc99828
CRs-Fixed: 774533
2022-01-18 10:50:44 -08:00
Amit Mehta
6819fc8b59 qcacld-3.0: Remove redundant code
As part of code change we are removing the csum_enabled flag.
In that case, the call to set vdev params becomes redundant
since we are calling it to update the csum_enabled flag value,
So remove redundant code as part of the cleanup.

Change-Id: I41e5ffba0a375bc20146ece9dabca391016d5b67
CRs-Fixed: 3071428
2022-01-18 10:50:43 -08:00
Madan Koyyalamudi
967ec1ce63 Release 2.0.8.27B
Release 2.0.8.27B

Change-Id: I6c7349abaaf39d3e77c19792c0c50fa81ce85054
CRs-Fixed: 774533
2022-01-18 03:48:57 -08:00
Amit Mehta
05734c5c11 qcacld-3.0: Enable network queue directly in case of roaming
Currently in the case of roaming between latency-critical connection
and non-latency critical connection we are scheduling work to
update features and after feature update we are enabling network queues
which is introducing a delay in enabling queues due to work schedule.

To Fix the issue enable network queue in the current context and schedule
work to update features.

Change-Id: Idba5b81a58aaf2bd47d80da1d17ad0acf9939071
CRs-Fixed: 3070688
2022-01-18 03:48:56 -08:00
Amit Mehta
670edc32cf qcacld-3.0: Check if netdev feature need to update
Currently based on the INI option we are scheduling
work to dynamically disable/enable checksum offload and TSO.
But in the case of roaming from latency critical connection
to latency critical connection or non-latency critical connection
to non-latency critical connection, we do not need to schedule work.

So adding a condition to check :
For non-latency critical connection: If checksum offload and TSO are
not disabled then schedule work.
For latency critical: If checksum offload and TSO are
not enabled then schedule work.

Change-Id: I75a51707774c3428971dfe5cc0b0d3cdc2a17ac8
CRs-Fixed: 3054183
2022-01-18 03:48:51 -08:00
Madan Koyyalamudi
df8a08780e Release 2.0.8.27A
Release 2.0.8.27A

Change-Id: Id55ee1ac4aa9761f7b3ebc7675deefd0e79784ce
CRs-Fixed: 774533
2022-01-17 18:21:59 -08:00
Jianmin Zhu
dd4203ebef qcacld-3.0: Change tx retries unit from msdu to mpdu
Customer reported their HLOS LTE-WLAN transition algo sometimes go wrong
for wrong low layer stats, Txretry delta is bigger than Txtotal delta.
Txretry unit is msdu while Txtotal unit is mpdu.

Add vdev/peer stats for mpdu number of successfully transmitted after
more than one retransmission attempt, to align mpdu tx_packets, tx_failed.

CRs-Fixed: 3102117
Change-Id: Id4b9d8fd81af4bf0c141dad481bfd2b3f6c1db2a
2022-01-17 18:21:59 -08:00
Surabhi Vishnoi
835c965833 qcacld-3.0: Do not ignore idle_shutdown in case of driver mode change
Allow idle shutdown in case it is triggered due to driver mode change
even if any of interface is up.

Change-Id: I29db749d40729a7e7633836bd23083f7652ac845
CRs-Fixed: 3106971
2022-01-17 18:21:54 -08:00
Madan Koyyalamudi
08c87b4a34 Release 2.0.8.27
Release 2.0.8.27

Change-Id: If4abe8cc04aa8a5d56a20769e27412889e3002f3
CRs-Fixed: 774533
2022-01-17 15:57:09 -08:00
Ashish
20f4ee29bb qcacld-3.0: Enable nan only for VLP channels for 6GHz
Currently for 6GHz, nan is allowed on LPI channels as well,
nan should be allowed only on VLP channels.

With this change allow nan only on VLP channels.

CRs-Fixed: 3072585
Change-Id: Ic8cd8a5ca5c096530762cc0f9d199cef30155838
2022-01-17 15:57:09 -08:00
Jianmin Zhu
b18d3d0174 qcacld-3.0: sta roam failed after sap stopped
When STA+SAP concurrency,  sta roaming pcl will remove all channels of SAP
band except scc channel to avoid mcc.

When SAP stopped, STA roaming pcl isn't updated for wrong vdev id is used,
so can't roam to all channels of old SAP band except scc channel to avoid
mcc.

Change-Id: I35adb55ac155e4c84f858f16796dbec12589ab2f
CRs-Fixed: 3102601
2022-01-17 15:57:04 -08:00
Jianmin Zhu
75cc513998 qcacld-3.0: Fix arp offload not sent when suspend
When host resume, check arp offload status wrongly, so arp offload
disable cmd isn't sent to F/W. when next suspend comes, arp offload
enable cmd isn't sent too.

Change-Id: I06ea617df49287ee87e7b5bf8b20971b581dedf1
CRs-Fixed: 3106172
2022-01-17 15:56:59 -08:00
Balaji Pothunoori
1185461403 qcacld-3.0: update number of thermal conf param for thermal throttle config
Currently firmware is crashing due to levelconf structure received NULL
from host.
Hence initialize num_thermal_conf param to fill levelconf structure part of
WMI_THERM_THROT_SET_CONF_CMDID.

Change-Id: Ifcfb49253222fff6656327d9be3977a707c18af4
CRs-Fixed: 3064400
2022-01-17 17:49:03 +05:30
Madan Koyyalamudi
aac91c68bf Release 2.0.8.26Z
Release 2.0.8.26Z

Change-Id: I04db12308dc2441b345b347f2909084b4d906eb1
CRs-Fixed: 774533
2022-01-14 12:49:22 -08:00
Ashish
7d72d270fa Revert "qcacld-3.0: Prevent runtime suspend on ll_stats and get station requests"
This reverts commit I7704a3b9b3e8ad187677705e1b11fbd82be73cfb.
This change cause CXPC failure, as each ll_status will cause
runtime pm resume.

Change-Id: I3547181fb8cfee1e5e40992dfaf5547eaac29a2a
CRs-Fixed: 3110499
2022-01-14 18:10:09 +05:30
Madan Koyyalamudi
6ee3579169 Release 2.0.8.26Y
Release 2.0.8.26Y

Change-Id: I18424ce419b6de9246ef1ad59005ae7aeb200499
CRs-Fixed: 774533
2022-01-11 20:31:38 -08:00
Ashish
2cd2decb0e qcacld-3.0: Prevent runtime suspend on ll_stats and get station requests
Currently when ll_stats or get station request comes and while fw
sends the response of the request, it is possible that driver can go into
runtime suspend state while fw still wants to send few more stats
events. Because of this ll_stats request or station stats request gets
time out in host.

To address above issue, add logic to prevent runtime suspend when
ll_stats or station stats request is received in host driver.

Change-Id: I7704a3b9b3e8ad187677705e1b11fbd82be73cfb
CRs-FixeD: 3096165
2022-01-11 20:31:38 -08:00
Utkarsh Bhatnagar
72a123fcb6 qcacld-3.0: Initialize sap ch_width by Max ch_width
Initialize sap bw as MAX BW in
policy_mgr_valid_sap_conc_channel_check() as
wlansap_get_csa_chanwidth_from_phymode() take care
of selecting BW for sap and it has a check that will
take minimum of selected BW and initialized BW.
If this BW is not initialized with Max BW then in cases
where original BW is 0 (20 Mhz) (cases such as channel
switch happens from 2.4Ghz to 5Ghz), the above mentioned
check will result in selected BW being 0 (20 Mhz) for
non-DBS HW.

Change-Id: I29febf09036ffa0163df58ce51b399abe2a43fe2
CRs-Fixed: 3101285
2022-01-11 20:31:33 -08:00
Madan Koyyalamudi
57f7b094e9 Release 2.0.8.26X
Release 2.0.8.26X

Change-Id: Iebb11dc997a2d8933cfbc2b38923e32cfe27f40e
CRs-Fixed: 774533
2022-01-10 12:57:46 -08:00
Huashan Qu
ded9e8c2fe qcacld-3.0: Return success when firmware doesn't support 11k offload
Return success when firmware doesn't support 11k offload, or else
subsequent roaming related wmi commands have no chance to issue.

Change-Id: I69d55cca63f2b7ab4787295a2825159395cf2a11
CRs-Fixed: 2976163
2022-01-10 12:57:45 -08:00
Madan Koyyalamudi
e72f5e8690 Release 2.0.8.26W
Release 2.0.8.26W

Change-Id: Ib382a2a8d4b2d96282d48aaee74b2fed9d8e2c87
CRs-Fixed: 774533
2022-01-10 09:50:57 -08:00
Bapiraju Alla
922db7a346 qcacld-3.0: Reject LL stats request for SAP mode
LL stats request is not supported for SAP mode. But driver is not checking
for device mode for LL stats request. Instead it is depending on LL stats
request set flag which won't be set for SAP mode. In case of mode switch
from STA to SAP, it is possible that LL stats request set flag will be set
for STA mode and LL stats are requested after switching to SAP mode. This
will bypass the mode SAP.

To avoid this, reject LL stats request for SAP mode.

Change-Id: I8c680288991126f0b349584f502b22e18af72287
CRs-Fixed: 3081453
2022-01-10 09:50:57 -08:00
Madan Koyyalamudi
4717c03967 Release 2.0.8.26V
Release 2.0.8.26V

Change-Id: Ie4507fa10badf0e4d77fc393dae3c87c88823202
CRs-Fixed: 774533
2022-01-06 09:29:19 -08:00
Abdul Muqtadeer Ahmed
7e322d9e09 qcacld-3.0: Move the sar req-resp event to work context
In the process of sar req-resp event the timer callback will wait
for the userspace response due to which time scheduler thread is paused
and can't process any other message. Because of this there is delay and
some command may fail.

To address above issue, move the process of sar req-resp
event to work context as we are waiting in the timer handler.

Change-Id: Idadd99ff28dcb6f5ec2d925cb381f223124300e6
CRs-fixed: 3091293
2022-01-06 09:29:19 -08:00
Madan Koyyalamudi
5c960b7831 Release 2.0.8.26U
Release 2.0.8.26U

Change-Id: I5652c5cfe05cb876405d913e70836c1b301279d7
CRs-Fixed: 774533
2022-01-03 05:20:38 -08:00
Surabhi Vishnoi
0f9e820863 qcacld-3.0: Ignore idle_shutdown if any interface is up
Ignore idle_shutdown if any interface is up. This is done
to handle special scenario in which platform driver triggers
idle shutdown when it receives Deep sleep/Hibernate entry
notification from modem subsystem in wearable devices.

Change-Id: I0f2a3bd4cbf0d7c0d3577dfbd15c7b3001d827d1
CRs-Fixed: 3091085
2022-01-03 05:20:38 -08:00
Surabhi Vishnoi
970aed1bcf qcacld-3.0: Allow suspend in deep sleep or Hibernate
Deep Sleep or Hibernate are system level mode power
modes in which wlan firmware is shutdown gracefully
and linux kernel is suspended. Currently, suspend
is not allowed if firmware is down, with this change
suspend is allowed if firmware is down due to Deep
Sleep or Hibernate low power state.

A new pld api is introduced to know the low power
state from platform driver, this api is enabled based
on CONFIG_ENABLE_LOW_POWER_MODE flag. Currently, this
feature is enabled only for wearable targets.

Change-Id: Iddaa4da8ee4880a4223420f59cbe9c365c30344a
CRs-Fixed: 3090481
2022-01-03 05:20:33 -08:00
Madan Koyyalamudi
9828818396 Release 2.0.8.26T
Release 2.0.8.26T

Change-Id: Id5e7bbbe7ea495dac51635a02586682975aae1c6
CRs-Fixed: 774533
2021-12-28 15:02:31 -08:00
chunquan
13dbf23219 qcacld-3.0: Send high 32bit addr for no smmu platform which fw need
Host send HTT_H2T_MSG_TYPE_WDI_IPA_CFG cmd to fw, need update
high 32bit addr for non-smmu platform which alloc physical
address more than 4G, like addr 0x1 5000 0000.It will cut
off bit32~bit63, fw get memory is 0x5000 0000, it's maybe
use for peripheral memory.when fw write addr 0x5000 0000,
it will meet some error.

32bit platform compile error,for right shift must less
than system width.

Change-Id: If1e84cfdcd15494be3f7327986ff0e91ec7b2b3f
CRs-Fixed: 3097240
2021-12-28 15:02:31 -08:00
chunquan
7f54b30138 qcacld-3.0: Send high 32bit addr for no smmu platform which fw need
Host send HTT_H2T_MSG_TYPE_WDI_IPA_CFG cmd to fw, need update
high 32bit addr for non-smmu platform which alloc physical
address more than 4G, like addr 0x1 5000 0000.It will cut
off bit32~bit63, fw get memory is 0x5000 0000, it's maybe
use for peripheral memory.when fw write addr 0x5000 0000,
it will meet some error.

Change-Id: Ic5c5c00c85bdf08e61c9ff0f539989d2e96bb153
CRs-Fixed: 3077016
2021-12-28 15:02:25 -08:00
Madan Koyyalamudi
fc583c2517 Release 2.0.8.26S
Release 2.0.8.26S

Change-Id: Ic22bed3ca7a9c484a48b605708f12fe462840603
CRs-Fixed: 774533
2021-12-28 01:54:37 -08:00