Commit Graph

24821 Commits

Author SHA1 Message Date
Abhishek Singh
62e14cfa41 qcacld-3.0: Enhance logs in freq on same MAC APIs
Avoid printing of mac range in freq on same MAC APIs
(policy_mgr_are_2_freq_on_same_mac and
 policy_mgr_are_3_freq_on_same_mac), and rate limit
other logs to avoid flooding of same info.

Change-Id: Ia6c3b2a71f81066e55b0200c6286939e146125b0
CRs-Fixed: 3111452
2022-01-18 08:41:11 -08:00
Madan Koyyalamudi
a344e9111a Release 5.2.1.7N
Release 5.2.1.7N

Change-Id: I40b2b350fe68080d75cac3436fdadcb513e94edf
CRs-Fixed: 774533
2022-01-18 06:56:34 -08:00
Surabhi Vishnoi
3319a74b56 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-18 06:56:34 -08:00
Madan Koyyalamudi
6acb4ae665 Release 5.2.1.7M
Release 5.2.1.7M

Change-Id: I26f936c83ee514e5ff411892a67b8c2c0041016b
CRs-Fixed: 774533
2022-01-18 05:50:23 -08:00
Karthik Kantamneni
0474a821f1 qcacld-3.0: Add peer to inactive list based on unmap ref count
Currently dp peer is being added to inactive list during force
delete, but there is possiblity of peer getting freed up if
unmap ref count is not pending and leading to double free during
pdev cleanup.

To avoid this add the peer to inactive list only if unmap ref
count is pending.

Change-Id: Ib55a92dd36c4ec4a26d3103896ca31ff3d845148
CRs-Fixed: 3110728
2022-01-18 05:50:23 -08:00
Madan Koyyalamudi
9985884787 Release 5.2.1.7L
Release 5.2.1.7L

Change-Id: I9661aa6c657ad31a5cfb1180790346b9ea3186c9
CRs-Fixed: 774533
2022-01-18 00:53:19 -08:00
Arun Kumar Khandavalli
64ef69d772 qcacld-3.0: Increase the BMISS vdev count to 4
Max sta vdev config is increased to 4 for kiwi, increase the related
BMISS max vdev count also to 4.

Change-Id: Ief2543675d2cf7f18ffdafe999f6a967e997b4ef
CRs-Fixed: 3108608
2022-01-18 00:53:19 -08:00
Madan Koyyalamudi
853ad217a4 Release 5.2.1.7K
Release 5.2.1.7K

Change-Id: Ie71c5bc9a23eca062bb0cceac9f09150a697da5a
CRs-Fixed: 774533
2022-01-14 17:56:53 -08:00
Amruta Kulkarni
91fd25ed83 qcacld-3.0: Lim changes for MLO roaming
- Added code for handling legacy to MLO roaming scenarios.
- Added code for mlo link peer create and delete.

Change-Id: I56f9321f6576e2b26d1de267cc1924eba250f00d
CRs-Fixed: 3098659
2022-01-14 17:56:53 -08:00
Madan Koyyalamudi
5679c38d2e Release 5.2.1.7J
Release 5.2.1.7J

Change-Id: I60a3791cd871ab0acf5e5a2d657e2535e773f1c0
CRs-Fixed: 774533
2022-01-14 09:07:00 -08:00
Jingxiang Ge
3dde33185f 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 09:07:00 -08:00
Alan Chen
c3b228f53a qcacld-3.0: Add check for return value of qdf_delayed_work_create
Add check for return value of qdf_delayed_work_create to resolve
compilation errors for new kernel.

Change-Id: Iaaad29a6f50baf11bb8b6951a5d2e5ccf15bc293
CRs-Fixed: 3110415
2022-01-14 09:06:54 -08:00
Madan Koyyalamudi
d2f68c4951 Release 5.2.1.7I
Release 5.2.1.7I

Change-Id: I2e2be4aeb514a6b53ff3435056e77ef0a13399cb
CRs-Fixed: 774533
2022-01-14 03:50:04 -08:00
chunquan
51509a327f qcacld-3.0: Replace blacklist/whitelist for denylist/allowlist
Replace blacklist/whitelist with denylist/allowlist for
blacklist manager component. and replace blm with dlm.

Change-Id: I8dec146d8cb3b61dc891b72bea44704b8ab733fe
CRs-Fixed: 3087575
2022-01-14 03:50:03 -08:00
Madan Koyyalamudi
2d84395960 Release 5.2.1.7H
Release 5.2.1.7H

Change-Id: Ic5ef3bbbde3a47cbfd278343d153b94609661685
CRs-Fixed: 774533
2022-01-13 22:20:17 -08:00
Surabhi Vishnoi
5dcd8bdd26 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-13 22:20:16 -08:00
Madan Koyyalamudi
0b3528ab3d Release 5.2.1.7G
Release 5.2.1.7G

Change-Id: I26b0413ef44b8a305c3f1da548a9aa3f5c52e639
CRs-Fixed: 774533
2022-01-13 19:13:12 -08:00
Jianmin Zhu
d79afa8020 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-13 19:13:12 -08:00
Madan Koyyalamudi
850df9353b Release 5.2.1.7F
Release 5.2.1.7F

Change-Id: I04ea42db6ddf85f89f5f12a5602f0d65dae24375
CRs-Fixed: 774533
2022-01-13 17:07:19 -08:00
Yu Wang
728e81e5a4 qcacld-3.0: handle MLO scenario for roam processing
Treat MLO STA as a single entity in roam processing:
only process roam related requests on assoc vdev.

Change-Id: Ida9665771e00236c491f58dc764cc6e470dcb6df
CRs-Fixed: 3104659
2022-01-13 17:07:17 -08:00
Madan Koyyalamudi
fd0ebe20c7 Release 5.2.1.7E
Release 5.2.1.7E

Change-Id: Ia928ce4af44948a06ede869225f390b3fb83b105
CRs-Fixed: 774533
2022-01-13 08:57:06 -08:00
Yu Wang
cc24a3b819 qcacld-3.0: map WEIGHT_OF_GROUP4_PCL_CHANNELS to valid weights
Map WEIGHT_OF_GROUP4_PCL_CHANNELS to WMI_PCL_WEIGHT_MEDIUM.

Change-Id: I478213eb45ed240b150ed8c9aeb7f37f5767f493
CRs-Fixed: 3109631
2022-01-13 08:57:06 -08:00
Madan Koyyalamudi
ca83b8efb4 Release 5.2.1.7D
Release 5.2.1.7D

Change-Id: I75e02a5d8972e79ca3edb52839b942dce61470c8
CRs-Fixed: 774533
2022-01-13 01:11:30 -08:00
Amruta Kulkarni
24f04ca536 qcacld-3.0: Add api's to handle MLO Roaming
- New api's added to handle mlo roaming scenarios.
- Read and store link addr from wmi.

Change-Id: I6a18802d27f72235dc69d2eedb05f3e563d1b0f4
CRs-Fixed: 2997105
2022-01-13 01:11:30 -08:00
Madan Koyyalamudi
5017adcd22 Release 5.2.1.7C
Release 5.2.1.7C

Change-Id: I476bfeffee380e69d3e1fb4d9f45266607e33491
CRs-Fixed: 774533
2022-01-12 11:06:59 -08:00
Chaoli Zhou
5d0487a1a4 qcacld-3.0: Fix no member named 'he_gi' compile issue
As for kernel-5.4, data struct cfg80211_bitrate_mask
has no member named 'he_gi', but kernel-5.10 has it.
So change the kernel version to fix the compile issue.

Change-Id: If79ea7af98964c1cfb7ded02549f7014d0024f9f
CRs-Fixed: 3108741
2022-01-12 11:06:58 -08:00
Madan Koyyalamudi
3d0a37a479 Release 5.2.1.7B
Release 5.2.1.7B

Change-Id: I9be834e3d227a6ea1796114e8413288622b35560
CRs-Fixed: 774533
2022-01-12 08:57:14 -08:00
Bing Sun
23c9d0bb4c qcacld-3.0: Call lim_send_assoc_rsp_mgmt_frame with valid sta ds
If there is a valid sta ds, call lim_send_assoc_rsp_mgmt_frame with
this valid sta ds.

For mlo, we only send assoc response on assoc link, we need sta ds
to drop non assoc link requests in lim_send_assoc_rsp_mgmt_frame.
For mlo if it is non assoc link request and sta ds is not created,
do not call lim_send_assoc_rsp_mgmt_frame.

Change-Id: Ie027221873458e492eabb37c668cd9222e6a2636
CRs-Fixed: 3106406
2022-01-12 08:57:14 -08:00
Madan Koyyalamudi
b6dc344e26 Release 5.2.1.7A
Release 5.2.1.7A

Change-Id: I89a848ac11e6e848df7ecdeb8d23e9a92fe5010b
CRs-Fixed: 774533
2022-01-12 01:51:36 -08:00
Arun Kumar Khandavalli
7facf0618c qcacld-3.0: Reduce the idle shutdown time to 250msec
Currently the idle shutdown timer is 10sec which was kept as a
experimental value during design, now because of issues from
customers where the wifi on/off from user should also help to
recover host/fw issues reducing the time to 250msec

Change-Id: I88ccfce1ac6d4654a4436771f291a22431585f44
CRs-Fixed: 3104701
2022-01-12 01:51:34 -08:00
Bapiraju Alla
9b19711595 qcacld-3.0: Hold mutex lock while registering wdev
From the kernel, it is expected to hold the mutex lock while registering
wdev. Currently it is not done hence kenel is asserting while
registering wdev.

To avoid kernel assert, register wdev after holding the mutex lock.

Change-Id: I497e428f6cea54a11b68ba68852fa1e98df475be
CRs-Fixed: 3103089
2022-01-12 01:51:25 -08:00
Ashish
7498ae997a 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-12 01:51:09 -08:00
Balaji Pothunoori
d07ba4ca27 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-12 01:51:04 -08:00
Amruta Kulkarni
f99679197f qcacld-3.0: Enable RSO for ML connection
For MLO connection, roaming is enabled
after ML link is up.

Change-Id: Ib042a9593bef9f287b92f0b256c942f8133a7f71
CRs-Fixed: 3098637
2022-01-12 01:50:58 -08:00
Madan Koyyalamudi
54f3255108 Release 5.2.1.7
Release 5.2.1.7

Change-Id: I1de9bd29de107be96d918e97d9f7ac38672f5f93
CRs-Fixed: 774533
2022-01-11 19:40:45 -08:00
Jianmin Zhu
07775e1204 qcacld-3.0: Fix memleak for roam_synch_frame_event
When wmi_roam_synch_frame_event receieved from firmware, memory is
malloced to save probe rsp/reassoc req/reassoc rsp once extract event,
when copied to vdev rso_cfg->roam_sync_frame_ind, memory is malloc again,
and original memory isn't freed, memory leak happens.

To fix it, assure memory is only malloced once to save
probe rsp/reassoc req/reassoc rsp when handle wmi_roam_synch_frame_event.

Change-Id: I6b31378bcf624547fca9fd858268252fd22f533d
CRs-Fixed: 3107576
2022-01-11 19:40:45 -08:00
Madan Koyyalamudi
d23b78e160 Release 5.2.1.6Z
Release 5.2.1.6Z

Change-Id: I1d650b40bf174af30123c8c3f00cdab26c4919d8
CRs-Fixed: 774533
2022-01-10 20:34:58 -08:00
Jianmin Zhu
579df591f3 qcacld-3.0: avoid free link_stats_results when last cmd isn't complete
For send_ll_stats_req from upper layer,  need send 1 wmi cmd:
WMI_REQUEST_UNIFIED_LL_GET_STA_CMDID,  and need 4 events from F/W
for dbs platform:
1.	radio_stats_event for radio 0
2.	tx_power_level_stats_event for radio 0
3.	radio_stats_event for radio 1
4.	tx_power_level_stats_event  for radio 1.

If new ll_stats_req comes before last send_ll_stats_req finished,
link_stats_results memory wil be freed, left event can't be handled and
last send_ll_stats_req can't get response from low level and time out
after 1.6s,  netlink is blocked during 1.6s,  many app will be blocked.

To fix it, if new ll_stats_req comes before last send_ll_stats_req
finished, don't free link_stats_results memory.

Change-Id: I27453d8a3c72e62b030657323ecdf463114b4ac8
CRs-Fixed: 3106562
2022-01-10 20:34:58 -08:00
Madan Koyyalamudi
3768ab503c Release 5.2.1.6Y
Release 5.2.1.6Y

Change-Id: I37d500f0ae9a63f820e173288dfc4f3033ed8185
CRs-Fixed: 774533
2022-01-10 17:06:47 -08:00
Amruta Kulkarni
fd56223aff qcacld-3.0: MLO roaming RSO changes
For MLO Roaming,
- RSO offload commands will be sent
to FW only on assoc vdev.
- Add new state for link vdev, will be
used only during roam sync.
Link vdev RSO state change : DEINIT -> MLO_ROAM_SYNCH -> DEINIT.

Change-Id: Ifb89e23fc48356ec8f0bc6a045f2dd4d81038076
CRs-Fixed: 3098570
2022-01-10 17:06:47 -08:00
Madan Koyyalamudi
f486b5f9e0 Release 5.2.1.6X
Release 5.2.1.6X

Change-Id: Ia8bb3a30fd7e9c3a81d231b066ffc26ad5e754cd
CRs-Fixed: 774533
2022-01-10 15:08:27 -08:00
Surya Prakash Sivaraj
ab7caec132 qcacld-3.0: Cleanup start bss processing in LIM
Remove unwanted parameters from start_bss_req and use
the parameters from vdev instead.

Change-Id: Ifea96bf7908b0dae66807b7a346684fe46fdcd4e
CRs-Fixed: 3105488
2022-01-10 15:08:27 -08:00
Madan Koyyalamudi
f06ffec08b Release 5.2.1.6W
Release 5.2.1.6W

Change-Id: Iede93bd6e5a3aff13802e335eb1cefb40b31aafa
CRs-Fixed: 774533
2022-01-10 03:11:00 -08:00
Utkarsh Bhatnagar
130092cf9f qcacld-3.0: Set peer QOS Flag for eht/he capable peer
Set peer QOS Flag if peer is either eht capable or he
capable.

Change-Id: I93fddd7aed3a687c79442d83fb4b359d00022f6c
CRs-Fixed: 3105589
2022-01-10 03:11:00 -08:00
Madan Koyyalamudi
681b710197 Release 5.2.1.6V
Release 5.2.1.6V

Change-Id: Ie7ed77c40fc43d4a7ae9a15d2b9fe845f5c6124e
CRs-Fixed: 774533
2022-01-09 23:09:50 -08:00
Bing Sun
8b5d93f37c qcacld-3.0: Update CAC duration of new channel to vdev before CSA
CAC duration of new channel should be able to get before CSA. During
CSA, CAC duration of new channel is used to populate max channel
switch IE.

Change-Id: I25d430d3eb663c90555ebad7a214b0789ea8c1ce
CRs-Fixed: 3102581
2022-01-09 23:09:50 -08:00
Madan Koyyalamudi
9d1d1d8d66 Release 5.2.1.6U
Release 5.2.1.6U

Change-Id: Ie17f3f74e48470cd4fdde29430a0d27e55956a13
CRs-Fixed: 774533
2022-01-08 06:09:03 -08:00
Abhishek Singh
c2fbc321ab qcacld-3.0: Consider SBS freq in wlan_hdd_ap_ap_force_scc_override
wlan_hdd_ap_ap_force_scc_override lead to force SCC for same band.
For SBS the same band freq can be allowed, so add the SBS check.

Change-Id: I45cda6670adb7d966b83c814a74b970624c15658
CRs-Fixed: 3106025
2022-01-08 06:09:03 -08:00
Abhishek Singh
c967f9d59f qcacld-3.0: Refactor if_mgr_handle_ml_sta_link_concurrency
Rename Legacy to non ML STA and MLO to ML STA in
if_mgr_handle_ml_sta_link_concurrency and related function.

Move if_mgr_get_ml_and_non_ml_sta_count to policy manager
util API. So that it can be used by other modules.

Change-Id: I61260ddf1c6008d8601efaac8d0e9e768e253499
CRs-Fixed: 3105269
2022-01-08 06:08:58 -08:00
Abhishek Singh
90fd31882d qcacld-3.0: Reject 5Ghz STA connection if SBS ML STA is connected
As in SBS ML STA, both links are on 5Ghz, reject the 5Ghz
non-ML STA connection, to avoid enabling same band roaming on
both STA.

Also do not allow the SBS ML STA, if a non-ML STA is present
on 5Ghz.

Allow it only if primary interface is set OR dual STA roaming
is disabled.

Change-Id: I20a23ed3b4d87c9acac5417a6f2d484fc80f47d6
CRs-Fixed: 3103246
2022-01-08 06:08:53 -08:00