Commit Graph

23464 Commits

Author SHA1 Message Date
Surya Prakash Sivaraj
6fb7b93c61 qcacld-3.0: Cleanup usage of csr_roam_profile in SAP module
Remove the usage of csrPersona from csr_roam_profile
and the unused wlan_sap_get_roam_profile function.

Change-Id: Ic7621c5e178a141b7e6e9d820d71fadfbff071ed
CRs-Fixed: 2998988
2021-07-26 11:35:14 -07:00
Madan Koyyalamudi
31992e3438 Release 5.2.0.241T
Release 5.2.0.241T

Change-Id: If460696577398816b8594ed11e9c69896897501e
CRs-Fixed: 774533
2021-07-26 09:14:05 -07:00
Yeshwanth Sriram Guntuka
1827b94fc3 qcacld-3.0: Don't reset tcp_adv_win_scale if any adapter is conn
In connected STA scenario, tcp_adv_win_scale is reset to 1
on runtime suspend. If any TCP connection gets initiated, the
SYN packet will cause a runtime resume. The bus bandwidth
work gets scheduled ~100msecs after resume is done. This
can result in a smaller TCP window value to get used for
the TCP connection initially and the window size does not
increase even with tcp_adv_win_scale updated to 2 as part
of bus bandwidth work.

Fix is to not reset the tcp_adv_win_scale config if any
adapter is connected on runtime suspend.

Change-Id: If10a1e1fd0efc8217f8136a60cfb01b03485a21d
CRs-Fixed: 2969041
2021-07-26 09:14:05 -07:00
Yeshwanth Sriram Guntuka
ec5f52c2ad qcacld-3.0: Revert change to use TP_LOW lvl to reset tcp_adv_win_scale
tcp_adv_win_scale value does not get reset to the default
value by cnss daemon for WLAN_SVC_TP_LOW throughput level.
This could result in undesired behavior if the tcp param
value is used for TCP connections after disconnection or
wifi turn off.

Fix is to use the previous WLAN_SVC_TP_NONE level to
reset the tcp_adv_win_scale parameter.

Change-Id: I3d312abc2a873a7b35d8a411c60bce7832742c4b
CRs-Fixed: 2995589
2021-07-26 09:13:58 -07:00
Madan Koyyalamudi
8cf3d66952 Release 5.2.0.241S
Release 5.2.0.241S

Change-Id: Ifb681a74305b70d81be2767b46591004dc28bb10
CRs-Fixed: 774533
2021-07-26 06:55:21 -07:00
Surya Prakash Sivaraj
5188b216f1 qcacld-3.0: Cleanup usage of channel and frequency
from csr_roam_profile

In the SAP module, remove the usage of ch_params and
op_freq from csr_roam_profile. Instead, the SAP module
uses ch_params and chan_freq from sap_ctx.

Change-Id: I26ff00286b8e0cec33d3a63098f93d4000684df0
CRs-Fixed: 2998985
2021-07-26 06:55:21 -07:00
Surya Prakash Sivaraj
2958513686 qcacld-3.0: Cleanup usage of phyMode from csr_roam_profile
In the SAP module, remove the usage of phyMode from
csr_roam_profile. The SAP module uses phyMode from
the sap_ctx directly.

Change-Id: I6ca484901f29dfa35405dcdcb88e25cc09f498d6
CRs-Fixed: 2998982
2021-07-26 06:55:14 -07:00
Madan Koyyalamudi
54fcc092f8 Release 5.2.0.241R
Release 5.2.0.241R

Change-Id: I198eefa0fb416b23ce79f05e02a6ddf1c7ebf3dd
CRs-Fixed: 774533
2021-07-25 23:26:22 -07:00
Jia Ding
ff7ff1ca4e qcacld-3.0: Populate EHT PHY and MAC caps from target
Populate EHT PHY and MAC capabilities from target to
tDot11fIEeht_cap structure.

Change-Id: Idf0af3c78afafcd5682760cdfd23bacd3c1dff76
CRs-Fixed: 2998861
2021-07-25 23:26:21 -07:00
Jia Ding
3b5b3b6af5 qcacld-3.0: Properly populate EHT PHY and MAC caps to wiphy
If EHT cfg is not present, there's no need to populate EHT PHY
and MAC caps to wiphy.

Change-Id: If4d002976f23d1fb847c7976cce6d2c1d5c42260
CRs-Fixed: 2998476
2021-07-25 23:26:16 -07:00
Jia Ding
cdba1cd4af qcacld-3.0: Update EHT cap IE fields based on D1.0 spec
Update the EHT capability IE fields based on the
802.11be D1.0 spec

Change-Id: Ie36a4e1c99383e7694bcb73cf4a627d80ba3bc44
CRs-Fixed: 2997329
2021-07-25 23:26:09 -07:00
Madan Koyyalamudi
d15e867401 Release 5.2.0.241Q
Release 5.2.0.241Q

Change-Id: I46acd4ea14f0c01a041eeca19607486ce878985e
CRs-Fixed: 774533
2021-07-24 03:14:44 -07:00
Liangwei Dong
d294cd7a6f qcacld-3.0: Fix unexpected 2.4G channel selected
In sap standalone on 5G channel, when LTE unsafe event
shows the SAP working on unsafe channel, SAP moves to
2G channel because the current logic will select
safe channel from ACS list.
The preference is 5G safe channel if available.
This change will select safe channel in same band firstly
from the list.

Change-Id: Ibc45a05845692b0dd8a02fd98aef2f7b15d00729
CRs-Fixed: 2996401
2021-07-24 03:14:43 -07:00
Madan Koyyalamudi
37620b10a5 Release 5.2.0.241P
Release 5.2.0.241P

Change-Id: I5aa3d8837a9591a896117d9f8b58be05d27093a1
CRs-Fixed: 774533
2021-07-23 20:17:21 -07:00
Jianmin Zhu
d793245323 qcacld-3.0: Don't compare original value when set tx max power
For STA+P2P concurrency case, once p2p disconnect, STA max tx power is
updated in F/W too per SAR by design,  app can't correct it since reconfig
same max tx power as original is refused by driver.

Fix by not comparing cached max tx power for each vdev in driver when set
max tx power, can set same value as original again to F/W directly.

Change-Id: Ic417946006f07be40aa34f1dc022d7fb5c4aa213
CRs-Fixed: 2996316
2021-07-23 20:17:21 -07:00
Wu Gao
cd08fde85a qcacld-3.0: Correct the definition of CONFIG_AR900B
There is wrong logic and won't define CONFIG_AR900B for HSP platform.
So add this change to correct the logic and define CONFIG_AR900B
properly.

Change-Id: I60e3bf0a0f9778a821bbe89289cf88f4dbc432e0
CRs-Fixed: 2996497
2021-07-23 20:17:16 -07:00
Madan Koyyalamudi
007df6a08f Release 5.2.0.241O
Release 5.2.0.241O

Change-Id: I92164e63b4b842c7f6a10ac9ea41af3e964c85fe
CRs-Fixed: 774533
2021-07-23 18:01:40 -07:00
Utkarsh Bhatnagar
91d6eaf0fd qcacld-3.0: Use wlan_cm_is_vdev_roaming() API in wma
Use wlan_cm_is_vdev_roaming() API in wma, instead of
wma->interfaces[vdev_id].roaming_in_progress.

Change-Id: Icb88246b2c45c052a1d42dece4983b1e534fe608
CRs-Fixed: 2993180
2021-07-23 18:01:40 -07:00
Huashan Qu
a850dab66d qcacld-3.0: Fix pe session leak
Preauth ROC timer is LIM_FT_PREAUTH_SCAN_TIME which is 50 ms, while
the preauth timeout is 1 second, in case of offchannel operation
scan complete firstly before auth resp frame received, host doesn't
stop the preauth timer or indicate that preauth req is processed,
before sending resp(failure) to connection manager. Thus if auth
resp is received after scan complete, it is processed and create
pe session which won't be deleted later.

Fix is to not initiate the failure from scan ROC complete but let the
preauth timer take care of the failure.

Change-Id: Ib93b4d2c6c6f0044535a8f41af0ef4baeaf468f6
CRs-Fixed: 2992079
2021-07-23 18:01:34 -07:00
Karthik Kantamneni
dd234699a9 qcacld-3.0: Wait for reg work completion before EP access state transistion
Currently intermediate EP vote access is set without checking
for previous state and reg work handler completion.
In some of the error scenarios when resume is triggered from
suspend path, EP vote access is still enabled and work handler
will be scheduled for register updates.
So make sure reg work is completed before setting intermediate access.

Change-Id: I7a1e55c188b9a9e85309dd44ac03651181499674
CRs-Fixed: 2994039
2021-07-23 18:01:30 -07:00
Huashan Qu
2d73ab6ebe qcacld-3.0: Disconnect the preauth session if no session with bssid found
In case of deauth received when HO disconnect is in progress,
the pe session for BSSID may not be found and thus the disconnect
returns without cleaning up the ft session.

So check and cleanup the ft session before returning.

Change-Id: I2661b987d0d2498d8ceaefedcc6b945a7c033f30
CRs-Fixed: 2994624
2021-07-23 18:01:25 -07:00
Madan Koyyalamudi
937f7ab10c Release 5.2.0.241N
Release 5.2.0.241N

Change-Id: I4c356510300fd7ef3d1b5572a400fcb00c6958b3
CRs-Fixed: 774533
2021-07-23 14:41:09 -07:00
Ben Wang
d413a78a15 qcacld-3.0: Add CONFIG_MOBILE_ROUTER for SA415M Platform
Enable CONFIG_MOBILE_ROUTER SA415M Platform for Rome Genoa
and Hasting, same as SA515 Platform

Change-Id: I7f0899c562ea8447296f3ddd1b237ea0d6a1b962
CRs-Fixed: 2924075
2021-07-23 14:41:09 -07:00
Balaji Pothunoori
1aeba20330 qcacld-3.0: initialize color bss values during channel change
Currently color bss is disabled if color bss is set before
channel change.

This change is to reinitialize color bss values to trigger
color bss detection in firmware.

Change-Id: If5688519e147b2b8a88b622090861ba4cac9067f
CRs-Fixed: 2992617
2021-07-23 14:41:00 -07:00
Madan Koyyalamudi
ddf0fc61ed Release 5.2.0.241M
Release 5.2.0.241M

Change-Id: I4581888de7eefe38050f697ed424265419d2f26a
CRs-Fixed: 774533
2021-07-23 05:34:24 -07:00
Li Feng
190d2a6c89 qcacld-3.0: Enable host/fw logs in ftm mode
Enable host/fw logs in ftm mode for debugging in ftm testing.

Change-Id: Ia8fc1aeb06f7a1bcb7b0baac3243b198f5b7c01e
CRs-Fixed: 2995841
2021-07-23 05:34:24 -07:00
Pragaspathi Thilagaraj
4543b8e423 qcacld-3.0: Update pmk cache only for connected BSSID
In OKC enabled cases, when multiple pmk entries exist, the user
space sends set_pmksa command for BSSID other than the connected
bssid. In that case driver updates the global pmksa cache with
the new PMK received for the non-connected BSSID. This results
in invalid pmk sent to firmware.

To avoid this, update the pmk cache only for connected BSSID.

Change-Id: I006595ea5b913d439007a8fb9d767454a71eeac1
CRs-Fixed: 2937182
2021-07-23 05:34:19 -07:00
Madan Koyyalamudi
2f7dee265c Release 5.2.0.241L
Release 5.2.0.241L

Change-Id: I1cc57b88311da4dd8f26eade17072aaa1f0eb460
CRs-Fixed: 774533
2021-07-23 01:55:15 -07:00
Rajeev Kumar
e2405723d9 qcacld-3.0: Add IPA dependency note in SAP/GO D3 WoW feature INIs
SAP/GO clients connected D3 Wow feature is only supported when IPA
is disabled and hence add dependency note to display the dependency
between SAP/GO client connected D3 WoW feature and IPA.

Change-Id: Icca4de1082090f5d740acf3b2b449b425b19ffce
CRs-Fixed: 2996992
2021-07-23 01:55:15 -07:00
Pragaspathi Thilagaraj
5c04f676f5 qcacld-3.0: Fix null pointer dereference in cm_roam_switch_to_init()
In cm_roam_switch_to_init(), vdev returned from the api
wlan_objmgr_get_vdev_by_id_from_psoc_debug() could be NULL.
Vdev is dereferenced without NULL check.

Validate vdev against NULL before dereference.

Change-Id: I42ff6943e568f16b78290a3310a8999d26c15af9
CRs-Fixed: 2996914
2021-07-23 01:55:09 -07:00
Jia Ding
5a32f6baad qcacld-3.0: Add build option for uplink delay feature
Add CONFIG_WLAN_TSF_UPLINK_DELAY option for uplink delay feature
and enable it on WAIPIO.

Change-Id: I91f8433e853efb177bb1d9aea42cdc7f625a0d4e
CRs-Fixed: 2996368
2021-07-23 01:55:02 -07:00
Madan Koyyalamudi
2b7375bd87 Release 5.2.0.241K
Release 5.2.0.241K

Change-Id: Ib2cb6cbd2d0d0b53638d5256fe830ccf6f23a617
CRs-Fixed: 774533
2021-07-22 15:11:22 -07:00
Yue Ma
229bd545ea qcacld-3.0: Add proper check to include qcom-iommu-util.h
qcom-iommu-util.h is a QCOM only file for MSM platforms, so only
include it when MSM_PLATFORM is defined to avoid build issues
from other non-QCOM platforms like X86.

Change-Id: I5f32fbe05abe4d7aff451031f0859f774ce1c507
CRs-fixed: 3721214
2021-07-22 15:11:22 -07:00
Madan Koyyalamudi
c8cb9c3fe4 Release 5.2.0.241J
Release 5.2.0.241J

Change-Id: I2afef9d4cc73ac6b869f128a51edd29db623a74a
CRs-Fixed: 774533
2021-07-22 12:53:02 -07:00
Ananya Gupta
466dc616fe qcacld-3.0: Enable HIF_CPU_CLEAR_AFFINITY flag
Enable CONFIG_HIF_CPU_CLEAR_AFFINITY flag to
change rx_err_ring irq cpu affinity.

Change-Id: I3d2475210ffd5ac6acef7e0418eef26cf92e1302
CRs-Fixed: 2950630
2021-07-22 12:53:01 -07:00
Madan Koyyalamudi
ed9d97a799 Release 5.2.0.241I
Release 5.2.0.241I

Change-Id: I8d30db9c220423e9a8d0ad81a47b73e24d112064
CRs-Fixed: 774533
2021-07-22 03:56:55 -07:00
Lin Bai
703bacc657 qcacld-3.0: Update CAC duration before chan switch
For ETSI, CAC duration is different between DFS and weather channel.

Update cac_duration_ms and dfs_regdomain in sap_ctx before
switch to new channel, to avoid DFS CAC duration used for
weather channel, or vice versa.

Change-Id: Ie83779b9948bdd3bd212994c2438257793a9e347
CRs-Fixed: 2995526
2021-07-22 03:56:55 -07:00
Madan Koyyalamudi
634d411688 Release 5.2.0.241H
Release 5.2.0.241H

Change-Id: I7d7d680ee915dbfb30895892db331bea32c86d45
CRs-Fixed: 774533
2021-07-21 23:22:01 -07:00
Gururaj Pandurangi
a66aaefc3e qcacld-3.0: Update dot11f pack/unpack APIs for MLO IE
Update dot11f pack/unpack APIs for MLO IE and sta profile
subelement. Initially these APIs had break statements under
else condition for optional fields that prevented pack core
API being invoked for sta profile. The parser generator tool
code is modified to remove else condition for such optional
fields for the MLO IE.

Change-Id: Ieb9ff2ec7da5d4e6056aa4db80240aa847366882
CRs-Fixed: 2996635
2021-07-21 23:22:01 -07:00
Madan Koyyalamudi
f436d62e21 Release 5.2.0.241G
Release 5.2.0.241G

Change-Id: I238ecccaf1eb3f35edddda913570ab2c39d980c6
CRs-Fixed: 774533
2021-07-21 17:14:43 -07:00
bings
5b8e66816a qcacld-3.0: register mlme mlo ext call back
register mlme mlo ext call back.
unregister mlme mlo ext call back.

Change-Id: Ifbfd474fcd01d091c65d6dbde08c9877d05e3cd5
CRs-Fixed: 2976146
2021-07-21 17:14:43 -07:00
bings
066c6b2cf8 qcacld-3.0: deauth and disassoc process for mlo sap
When triggering or receiving deauth/disassoc frames, free the peer
and its partner peer

Change-Id: Ibfa1c9e471f36537d25e6110529477c61cf89b7e
CRs-Fixed: 2973319
2021-07-21 17:14:39 -07:00
Madan Koyyalamudi
fb3650615f Release 5.2.0.241F
Release 5.2.0.241F

Change-Id: Ibe8f0a97188538e5130e4c198cd3e59c5a9d9d1a
CRs-Fixed: 774533
2021-07-21 12:45:31 -07:00
Jia Ding
840fea013f qcacld-3.0: Add uplink delay in get_sta_info response
Add uplink delay value into get_sta_info vendor command response.

Change-Id: I7298fa259e0f997b28c8a114e7fd963f311596d6
CRs-Fixed: 2991981
2021-07-21 01:18:03 -07:00
Madan Koyyalamudi
3011512aba Release 5.2.0.241E
Release 5.2.0.241E

Change-Id: I773fc4ce254f560a0b034d5e382cdbf1358c151c
CRs-Fixed: 774533
2021-07-20 23:02:39 -07:00
Lincoln Tran
f1591d8755 qcacld-3.0: Send MLO peer capabilities
Add path to enable the MLO capability flag when sending the peer assoc
command.

Change-Id: I9bfe8472ca0febbd98d3ddb999b4dc4f6c3e10f2
CRs-fixed: 2976191
2021-07-20 23:02:39 -07:00
Madan Koyyalamudi
a3da5f796b Release 5.2.0.241D
Release 5.2.0.241D

Change-Id: Idc7e554ffd96450a07f6bcff3e6f2c8700933c84
CRs-Fixed: 774533
2021-07-20 20:02:56 -07:00
Jia Ding
021761043e qcacld-3.0: Add chload param in LL radio stats event
chload is to indicate channel load condition and it is added
in LL radio stats vendor event.

Change-Id: I9371bf69f69ed62cc9dc97b6b2903e631b748ed4
CRs-Fixed: 2990982
2021-07-20 20:02:56 -07:00
Madan Koyyalamudi
1b369c9582 Release 5.2.0.241C
Release 5.2.0.241C

Change-Id: Iadc3eb9a05bb0b141f049a3cd701a197f6d4ba87
CRs-Fixed: 774533
2021-07-20 16:35:37 -07:00
Yu Tian
91567ccfcd qcacld-3.0: use more accurate tx/rx packets statistics
Sometimes TX/RX pkt statistics workqueue may be delayed.
The workqueue interval value is pre-defined and is used
for bandwidth vote. If the interval is inaccurate, whole
pkts statistics are not accurate, bus bandwidth vote is
wrong also. This change is aimed to use absolute workqueue
time delay instead of pre-defined value to get accurate
packets per milliseconds result.

Change-Id: I2b730fc36d4b5c42742ed9107d9a7e1f95eb4988
CRs-Fixed: 2976857
2021-07-20 16:35:37 -07:00