Commit Graph

25089 Commits

Author SHA1 Message Date
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
Madan Koyyalamudi
e8f7384029 Release 5.2.1.6T
Release 5.2.1.6T

Change-Id: I4732cd99abb02e0175dbd4cde577e3402af10273
CRs-Fixed: 774533
2022-01-07 23:06:52 -08:00
Kiran Kumar Lokere
09486a70ad qcacld-3.0: Fix the GI setting using NL command
Fix the GI setting configuration using NL command.

Change-Id: Icd4e91eec761983bc787ecbe2660b7da543ca922
CRs-Fixed: 3095862
2022-01-07 13:47:33 -08:00
Madan Koyyalamudi
981de1f500 Release 5.2.1.6S
Release 5.2.1.6S

Change-Id: I7d5a9f4af67a01bc3148f73c66c735a6c54c8bc7
CRs-Fixed: 774533
2022-01-06 12:50:47 -08:00
Yu Ouyang
77dffe2990 qcacld-3.0: Support AP mode to get peer station info
AP mode, function __wlan_hdd_cfg80211_dump_station() only get AP's
statistics. Add code to support get peer station statistics.

Change-Id: Ie821484e8a21116f4a4b6402ea2fcd85453e4cdf
CRs-Fixed: 3088695
2022-01-06 12:50:47 -08:00
Madan Koyyalamudi
391e963467 Release 5.2.1.6R
Release 5.2.1.6R

Change-Id: Ied844e22604976da7eec824cbaabc4ca7c96ba92
CRs-Fixed: 774533
2022-01-06 10:39:45 -08:00
Bing Sun
d1ad81958b qcacld-3.0: Check link session Before populate MLO RNR IE
Mlo flag of vdev is set in wlan_hdd_cfg80211_start_bss context which
happens before pe session creation, so we may get a mlo vdev but the
pe session is not created.
Check link session Before populate MLO RNR IE.

Change-Id: I59da17bf1722c5a580c804ec8e6bf801aa510b0a
CRs-Fixed: 3105243
2022-01-06 10:39:45 -08:00
Madan Koyyalamudi
d011d59b12 Release 5.2.1.6Q
Release 5.2.1.6Q

Change-Id: I0030db076f10f5e868aef4e6e7c84e1501f8e32e
CRs-Fixed: 774533
2022-01-06 09:27:36 -08:00
Utkarsh Bhatnagar
91f17875ce 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-06 09:27:35 -08:00
Gururaj Pandurangi
25f62b8a77 qcacld-3.0: Add more debug logs for EHT cap and MLO IE
Add additional debug logs for EHT cap and MLO IE in the
parser APIs for ML STA and SAP.

Change-Id: I19353e30be44d29d2ab5ec3de780ecdeb8907158
CRs-Fixed: 3088072
2022-01-06 09:27:30 -08:00
Zhaoyang Liu
2839ca71b4 qcacld-3.0: fix setting tx aggr size issue for qca6390
For QCA6390, firmware not advertise service capability for
tx aggr size 256 support information. Actually it supports
max tx aggr size 256. If user want to use aggr size 256 from
ini file , current behavior will reset the size 64 for QCA6390.
Fix this issue to adopt size from ini file configuration.

Change-Id: Icaed9af65d70e3d14ac604636c4269bd00a8c801
CRs-Fixed: 3089384
2022-01-06 09:27:25 -08:00
Madan Koyyalamudi
31395dd472 Release 5.2.1.6P
Release 5.2.1.6P

Change-Id: I71f88b4c22fdf638ec5291f231314546c6b0a5af
CRs-Fixed: 774533
2022-01-05 21:41:36 -08:00
Gururaj Pandurangi
c032cd1997 qcacld-3.0: Avoid OOB read in dot11f_unpack_assoc_response
Avoid OOB read in dot11f_unpack_assoc_response API. Modify
the check to nBuf-len > 1 to read another byte of pBufRemaining.
This ensures a read of at least 2 bytes since all IEs have
at least 2 bytes.

Change-Id: Ic6756c11c05e68f0af5227971ce8b16a6c7e012a
CRs-Fixed: 3104235
2022-01-05 21:41:35 -08:00
Madan Koyyalamudi
75148ac430 Release 5.2.1.6O
Release 5.2.1.6O

Change-Id: I5546cb9a09f355db46ba19f366879768a7ed60d2
CRs-Fixed: 774533
2022-01-05 13:16:29 -08:00
Bapiraju Alla
b3c7c1582f 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-05 13:16:28 -08:00
Madan Koyyalamudi
37cac8cc9f Release 5.2.1.6N
Release 5.2.1.6N

Change-Id: Ia1c09a982c26972b268b5ca2fe34e12db47a68bb
CRs-Fixed: 774533
2022-01-05 11:29:59 -08:00
Qun Zhang
bcf5bbcfb7 qcacld-3.0: Move SAP from dfs to non-dfs if sta is coming up
Currently STA will fail to start on 5G channel if SAP is up on
dfs channel already. So moving SAP from dfs to non-dfs channel
first to make sure STA connection can happen.

Change-Id: I1761debdd33b0b60755f159d598fd3c9b080ceee
CRs-Fixed: 3103726
2022-01-05 11:29:59 -08:00
Madan Koyyalamudi
acb33111a7 Release 5.2.1.6M
Release 5.2.1.6M

Change-Id: I472d091b70375ddd47920f9ffb4eacab3b482e5c
CRs-Fixed: 774533
2022-01-05 09:02:20 -08:00
Bapiraju Alla
33911c5296 qcacld-3.0: Update MLO manager whenever the MLD address is changed
Currently when ever there is a change in MLD MAC address, MLO manager is
not being notified with new MAC address. This resulting in memory leak
for mlo dev context which is created with old MLD address.

To address this, update MLD address in MLO manager with new MLD address.

Change-Id: I1a3eb9426dc39e5b4fe5bfaf0bd4a571280eb50c
CRs-Fixed: 3103077
2022-01-05 09:02:20 -08:00
Abhishek Singh
955f7f17ed qcacld-3.0: For SBS-SCC get low 5Ghz freq if 6ghz freq is not allowed
In force SCC logic if 6Ghz freq is not allowed on the SAP interface
get the low 5Ghz freq for SBS scenario as we have 2 5Ghz freqs present
in this case.

Change-Id: I0783e5cf2825ee4f10549826b6dd71677976e6c3
CRs-Fixed: 3103876
2022-01-05 09:02:14 -08:00
Madan Koyyalamudi
b93cd89978 Release 5.2.1.6L
Release 5.2.1.6L

Change-Id: I4700192e8bbaf7d6a0bc8fea50bfacec72905b74
CRs-Fixed: 774533
2022-01-05 05:09:21 -08:00
Jianmin Zhu
57d012b6f3 qcacld-3.0: Send broadcast probe rsp for 6G AP
Certificate 4.70.1_6G need verify that the following conditions are true:
a. APUT responds with a Probe Response frame with the Address 1 field
set to the broadcast address when test bed STA to send Probe Request with
SSID = as per Table 168, Address 1 = wildcard (broadcast).

Change-Id: I44581eaf251b79f47e374d8294616c554a9acf10
CRs-Fixed: 3104288
2022-01-05 05:09:21 -08:00
Madan Koyyalamudi
d12190f945 Release 5.2.1.6K
Release 5.2.1.6K

Change-Id: Ia5bc927fea82548b79e80418464a82e8fe7b6443
CRs-Fixed: 774533
2022-01-04 23:27:00 -08:00
Bapiraju Alla
52ce5baf65 qcacld-3.0: Use link assoc req pointer to generate partner assoc request
Currently to copy the assoc request to partner link assoc request,
qdf_nbuf_clone is used. But qdf_nbuf_clone will just copy the skb
structure but not the original packet. Hence while updating link assoc
request, original assoc request is being updated. As a result ML
security connection is failing.

To resolve this, use qdf_nbuf_copy to copy assoc request to link assoc
request.

Change-Id: Id31d293300ab6471ede4b40a505ebf2495c432b5
CRs-Fixed: 3099473
2022-01-04 23:27:00 -08:00
Madan Koyyalamudi
367e20e4a5 Release 5.2.1.6J
Release 5.2.1.6J

Change-Id: Ib6a536160f3d28234fa6441d98d2c71b751625bd
CRs-Fixed: 774533
2022-01-04 18:56:22 -08:00
Namita Nair
5b2e81cd73 qcacld-3.0: Fix static code analysis issue
In function wma_data_tx_ack_comp_hdlr, wma_handle, which is already
validated by wma_validate_handle, is NULL checked again after
dereferencing. The fix is to remove the irrelevant NULL check.

Change-Id: I9eebdb398e61d2991d0ff8e23cd08870d57707e5
CRs-Fixed: 3096718
2022-01-04 18:56:22 -08:00
Madan Koyyalamudi
9cd24d8458 Release 5.2.1.6I
Release 5.2.1.6I

Change-Id: I7b7f6036297ae9f8adec9f9016e07108b82a2eb4
CRs-Fixed: 774533
2022-01-04 11:40:00 -08:00
Yu Tian
fb5d4a46c4 qcacld-3.0: Stop replenish timer during recovery
During recovery, when this timer is started, there is no
stop operation. If the timer is triggered and SSR is not
completed, it will visit re-inited data structure and lead
kernel crash.

Change-Id: I81b20c1cc9c66efb3f334a17f38613a116aeaf9e
CRs-fixed: 3101872
2022-01-04 11:40:00 -08:00
Jianmin Zhu
683bc95375 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-04 11:39:55 -08:00
Madan Koyyalamudi
5d66b627a6 Release 5.2.1.6H
Release 5.2.1.6H

Change-Id: Ia622c883626e78c34ff066b4e4d33ebc5a0ecca7
CRs-Fixed: 774533
2022-01-03 22:50:10 -08:00
Jianmin Zhu
2e5a2db4be 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-03 22:50:10 -08:00
Madan Koyyalamudi
19c3263dbf Release 5.2.1.6G
Release 5.2.1.6G

Change-Id: Icb4a25efe3fef1bfcb53c49c9d6c00734ecbfb8a
CRs-Fixed: 774533
2022-01-03 16:37:34 -08:00
Jianmin Zhu
fc2b30bba0 qcacld-3.0: Don't send probe req when receive beacon miss
Before host received beacon miss, firmware has checked link by sending
QoS NULL data, don't need host send probe request to check now.
Some IoT AP can send probe response after receive probe request, but can't
send beacon sometimes, need disconnect in time too, or firmware will
assert.

Change-Id: I74105769cfbd9f80cdde21bfa7b8c6d75efc4a3a
CRs-Fixed: 3102930
2022-01-03 20:10:40 +08:00