Commit Graph

23797 Commits

Author SHA1 Message Date
Madan Koyyalamudi
a4cae63ec6 Release 5.2.0.246A
Release 5.2.0.246A

Change-Id: I24904c0f21eb9f1aaedc2e23bd27d29557208e07
CRs-Fixed: 774533
2021-08-31 05:39:23 -07:00
Liangwei Dong
2762576aec qcacld-3.0: Fix KW warning for pcl weight list
Add sanity check for index with NUM_CHANNELS and pcl_sz
when add 2.4G channel list.

Change-Id: I04ac1bcdb6720a4740be7c2f5e08f76b3c34d8c4
CRs-Fixed: 3025000
2021-08-31 05:39:23 -07:00
Mohammed Siddiq
98a9798bf1 qcacld-3.0: Enable CONFIG_CNSS_QCA6750 in qca6750 config file
Enable CONFIG_CNSS_QCA6750 in qca6750 config file.

Change-Id: I5d199344a619fae64d14152417726edddb2f64c1
2021-08-31 05:39:19 -07:00
Madan Koyyalamudi
446aa9d47c Release 5.2.0.246
Release 5.2.0.246

Change-Id: Ia8c8a153f126051db1efd99eaac457fea23f9c1e
CRs-Fixed: 774533
2021-08-31 01:15:21 -07:00
Chaoli Zhou
a41677c73f qcacld-3.0: Add CFR support for Hastings
Add CFR build flag and support CFR vendor command for Hastings.

Change-Id: I296d08b532e35c09669091ec7896fd8ab3636d31
CRs-Fixed: 2865391
2021-08-31 01:15:20 -07:00
Surabhi Vishnoi
6ac5a1226e qcacld-3.0: Add support for CFR in adrastea target in Kbuild
Add support for CFR feature for adrastea target. A new feature
flag CONFIG_WLAN_CFR_ADRASTEA is introduced for this purpose.
Also adrastea do not support enhanced CFR so when only
WLAN_CFR_ENABLE and WLAN_CFR_ADRASTEA are enabled, some
compilation issues are seen as CONFIG_WLAN_ENH_CFR_ENABLE is
not set.

Fix these compilation issues as well as introduce a new feature
flag to add support for CFR in adrastea.

Change-Id: I52bc235c4d271004698163897c15721023410017
CRs-Fixed: 2705119
2021-08-31 01:15:13 -07:00
Madan Koyyalamudi
8890408df0 Release 5.2.0.245Z
Release 5.2.0.245Z

Change-Id: Ifbdc85a4a4ed08f42efbd7362239d3f51ecebcdd
CRs-Fixed: 774533
2021-08-30 09:45:56 -07:00
Deeksha Gupta
f92051cdf8 qcacld-3.0: Reset the TID after disconnection and wifi_off
Add logic to reset the TID with below condition:
1. reset TID value when wifi off happens
2. reset TID value when disconnection happens if
 "wlm_latency_reset_on_disconnect" ini is set

Change-Id: Iaf73dfd7a6a9985f8c1af47f788e73ea4fa07882
CRs-Fixed: 3013137
2021-08-30 09:45:56 -07:00
Madan Koyyalamudi
39a6c046ec Release 5.2.0.245Y
Release 5.2.0.245Y

Change-Id: Ia9757064cdea3778c1c2b5b32c45738a96d43bb4
CRs-Fixed: 774533
2021-08-30 05:43:10 -07:00
Bapiraju Alla
c3c4e54925 qcacld-3.0: Reset wlan suspended flag after SSR
When there is an SSR in between suspend resume sequence,
the resume request will be rejected due to SSR and suspend flag is
not being reset after SSR. Because of this Tx frames are getting
dropped at hdd.

To avoid this, reset wlan suspended flag after SSR.

Change-Id: I3e0e9cb207da0933a85810820038b5b6a90310a6
CRs-Fixed: 3020583
2021-08-30 05:43:10 -07:00
Yu Wang
b9d3c1d4ab qcacld-3.0: get current mcs rate set from connection info
Get current mcs rate set for STA from connection info when
reporting max rate.

Change-Id: I6b5916c87cc99e3bd6948971277353a9e2763bae
CRs-Fixed: 3023763
2021-08-30 05:43:04 -07:00
Madan Koyyalamudi
2ca4556d07 Release 5.2.0.245X
Release 5.2.0.245X

Change-Id: If6edcdf0ea5638c21d24f7287e29ae0465ce2d66
CRs-Fixed: 774533
2021-08-29 16:01:18 -07:00
Deeksha Gupta
b13cd6fade qcacld-3.0: Check for valid vdev_id in wma_is_roam_in_progress
When kickout event is received from firmware, the function
wma_is_roam_in_progress is called to check the roaming in
progress using vdev_id .

Vdev_id needs to be checked for valid vdev_id prior to
derefencing it.

Change-Id: Ib56895ad73b5dcefe7a0b9f65089306bf42d78eb
CRs-Fixed: 3020665
2021-08-29 16:01:17 -07:00
Madan Koyyalamudi
a9df6f8225 Release 5.2.0.245W
Release 5.2.0.245W

Change-Id: If7fbc423d50d1a06134d4b924bf2823931123d76
CRs-Fixed: 774533
2021-08-29 03:01:18 -07:00
Yu Wang
f144628933 qcacld-3.0: refine functions for getting preferred channel list
Refine policy manager get PCL channel list APIs to help
add new PCL type.

Change-Id: I1e9d49c5f0a8c2c38f1fb5302615bc956ed6aae0
CRs-Fixed: 2998478
2021-08-29 03:01:18 -07:00
Madan Koyyalamudi
c68591b60b Release 5.2.0.245V
Release 5.2.0.245V

Change-Id: I1057a85ec9b69f81a88421f8241751626418e49f
CRs-Fixed: 774533
2021-08-28 00:29:22 -07:00
Srinivas Dasari
3aeaeefe07 qcacld-3.0: wma to target_if migration of roam pmkid request evt
Currently, wmi_roam_pmkid_request_event_id data is extracted and
processing is also done in wma. This is not inline with component
model where target_if takes care of data extraction and handover
the extracted data to corresponding component(connection mgr in
this case). Add changes to support the same.

Change-Id: I3fad4e4d7ceeb85c632723e161809bf980d5375f
CRs-Fixed: 3014248
2021-08-28 00:29:22 -07:00
Vijay Patil
23999e417d qcacld-3.0: wma to target_if migration of roam_auth_offload_event
Currently, wmi_roam_auth_offload_event_id data is extracted and
processing is also done in wma. This is not inline with component
model where target_if takes care of data extraction and handover
the extracted data to corresponding component(connection mgr in
this case). Add changes to support the same.

Change-Id: I128db23077d423c5e5ecf27636bc3af35cbbc58f
CRs-Fixed: 3010419
2021-08-28 00:29:16 -07:00
Madan Koyyalamudi
4de129d045 Release 5.2.0.245U
Release 5.2.0.245U

Change-Id: Ib91abd621a3a465b820c934dd29764f8292ce481
CRs-Fixed: 774533
2021-08-27 15:12:30 -07:00
Rajeev Kumar
e59ae1bbe5 qcacld-3.0: Disable SAP/GO D3 WoW features if IPA is enabled
SAP/GO D3 WoW feature is not supported when IPA is enabled and hence
disable SAP/GO D3 WoW features when IPA is enabled.

Change-Id: Ia3da37087a0ca79c81c546f43a0893e46cf08c3c
CRs-Fixed: 3015104
2021-08-27 15:12:30 -07:00
Yue Ma
db747806c1 qcacld-3.0: Support compile driver with out-of-tree CNSS drivers
When sources of CNSS family drivers are compiled out of kernel tree,
all necessary config flags will come from upper level Makefile files
like wlan.mk instead of kernel defconfig. Also module symbol file will
not be part of kernel build output directory anymore. Hence add changes
in Android.mk to handle such case in oreder to compile WLAN host driver.

Change-Id: I3f104ddb7495ca2dfb797adbc7dc982d2f24d30c
CRs-fixed: 3022579
2021-08-27 15:12:25 -07:00
Yue Ma
39066dbed1 qcacld-3.0: Add CONFIG_CNSS_OUT_OF_TREE flag
Use CONFIG_CNSS_OUT_OF_TREE to control if CNSS family drivers are
built from in-kernel-tree source or out-of-kernel-tree source since
the exposed header files will be in different paths. This is also
for backward compatibility.

Change-Id: Icc1253f65a596c8579424f056dcd0fcb5e73a4a1
CRs-fixed: 3022566
2021-08-27 15:12:20 -07:00
Yue Ma
2e49f1156d qcacld-3.0: Handle flags defined as modules properly
The current way in the driver to handle CONFIG_CNSS_UTILS=m and
CONFIG_WCNSS_MEM_PRE_ALLOC=m will not work if the flags are not
coming from kernel Kconfig directly (e.g. CNSS utils and prealloc
module sources are built out of kernel tree) since "cppflags-
$(CONFIG_FLAG) += -DCONFIG_FLAG" will not take effect if CONFIG_FLAG=m.
Fix it in a proper way which is same as handling CONFIG_CNSS_GENL.

Change-Id: Iab4bf34bd1ae89f947bc5f7080e18569810f5f58
CRs-fixed: 3022560
2021-08-27 15:12:16 -07:00
Madan Koyyalamudi
8b724d89d8 Release 5.2.0.245T
Release 5.2.0.245T

Change-Id: I2ea193942a9c42ffe4b52b2aa272daf0c92f0a44
CRs-Fixed: 774533
2021-08-27 13:03:13 -07:00
Lincoln Tran
b935f8e065 qcacld-3.0: Enable MLO manager logging
Enable logging for MLO manager

Change-Id: I9f89989795440f4c5a60818a0e4e7601000dfff1
CRs-fixed: 3023655
2021-08-27 13:03:12 -07:00
Madan Koyyalamudi
2346347480 Release 5.2.0.245S
Release 5.2.0.245S

Change-Id: I6b07e448eba005f1eaf4257f34a269a5e66f5438
CRs-Fixed: 774533
2021-08-27 10:23:32 -07:00
Liangwei Dong
71a336905d qcacld-3.0: Fix STA disconnect when SAP detected radar
Sap is started on freq 5640Mhz with BW 160Mhz and radar event
generated, and then SAP moves to freq 5680Mhz.
But before the move done, the regdomain update (because of Radar
detection) will trigger the wlansap_get_chan_band_restrict to run
and further move to SAP to freq 5180Mhz.
The client side still get old CSA event with 5680Mhz, and switch to
5680Mhz and get Bmiss finally because actually SAP is moved to 5180Mhz.
The band restrict logic should not handle radar disabled channel.
The radar detected channel (in NOL) should be handled by SAP radar
channel switch logic only.
Fix by skip the band strict check if disabled channel is in NOL
list, let the SAP radar logic to handle channel switch.

Change-Id: Ic284cf48653d7ebf8bc37a33d6caf1a5e673b78e
CRs-Fixed: 3019950
2021-08-27 10:23:31 -07:00
Utkarsh Bhatnagar
ac66479f44 qcacld-3.0: Add support to get thermal throttle stats
Add support for sending WMI_REQUEST_THERMAL_STATS_CMDID
to request for the thermal stats via vendor cmd:
QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS
This vendor cmd can either be used to clear the thermal
stats or to request for the thermal stats.
Added ini gThermalStatsTempOffset, which can
configure thermal temperature offset value for capturing
thermal stats in  thermal range such as Thermal STATS
starts capturing from temperature threshold to temperature
threshold + offset.
If this ini is set to 0, then the events are disabled.
Also, add support for the FW event where the requested
thermal stats are sent in FW event
WMI_THERM_THROT_STATS_EVENTID().
The following attributes are sent in the events for every
level:
	STATS_MIN_TEMPERATURE
	STATS_MAX_TEMPERATURE
	STATS_DWELL_TIME
	STATS_TEMP_LEVEL_COUNTER

Change-Id: If8acdeec5bde33be346332ccaf39d78d0151203d
CRs-Fixed: 3016818
2021-08-27 10:23:21 -07:00
Madan Koyyalamudi
e13583c8c9 Release 5.2.0.245R
Release 5.2.0.245R

Change-Id: I948f00b52172ddc29f557b7f3925e338cb76c656
CRs-Fixed: 774533
2021-08-27 08:08:30 -07:00
Kiran Kumar Lokere
fcd125ec14 qcacld-3.0: Configuration support for keep alive data types
Add configuration support for keep alive data types.

Change-Id: I1e14825ae15e139edfe06f46f32bfd40f4cf431f
CRs-Fixed: 3021669
2021-08-27 08:08:30 -07:00
Madan Koyyalamudi
f9a9e12cb3 Release 5.2.0.245Q
Release 5.2.0.245Q

Change-Id: I45715d1c6fcec120f0473f764ed08a2a6a01d832
CRs-Fixed: 774533
2021-08-27 05:44:36 -07:00
Vulupala Shashank Reddy
843ce5f0eb qcacld-3.0: Remove unused linux header file
Remove unused linux header file in packet capture component.

Change-Id: I668061d0a6516cca51a153e3713e8c0a5634fb64
CRs-Fixed: 3019885
2021-08-27 05:44:36 -07:00
Madan Koyyalamudi
fbf26b3924 Release 5.2.0.245P
Release 5.2.0.245P

Change-Id: Iee82dd5d682a0a83342bba8d688408d4724a6c3a
CRs-Fixed: 774533
2021-08-27 01:05:14 -07:00
Kiran Kumar Lokere
cde70adc46 qcacld-3.0: Config support to use BSSID in probe request RA
User configuration support to use scan request BSSID value
in Probe Request frame RA during the scan.

Change-Id: Ie0b7620428e1bfbd51e7430b6b7ad23ebede9e67
CRs-Fixed: 3021525
2021-08-27 01:05:14 -07:00
Madan Koyyalamudi
25778389e8 Release 5.2.0.245O
Release 5.2.0.245O

Change-Id: I273abb51b5a3c9e38d79931a6722e09cecfe3d05
CRs-Fixed: 774533
2021-08-26 20:56:07 -07:00
Amruta Kulkarni
f8ca4c5c52 qcacld-3.0: Update chan freq for roam invoke
In roam invoke request, if bssid is same as connected
bssid use connected frequency.

Change-Id: I0e205ffab002b80021bf6a615e4cfc0a723f0ba5
CRs-Fixed: 3022351
2021-08-26 20:56:07 -07:00
Liangwei Dong
230e9f8dea qcacld-3.0: Fix acs select channel with unexpected bw
When AGO starts ACS with 160Mhz, and driver selects 5660Mhz based on
channel weight because no 160mhz channel available at the time.
But ch freq 5660Mhz is not in PCL for AGO, driver selects 5825Mhz
based on channel weight. 5825Mhz only supports 20Mhz in current
regdomain and it's not preferred channel bw.
Fix by try fallback to lower bandwidth channel if request bw channel
unavailable.

Change-Id: I5646aefc5fbd48acb1396edf0e182616391e027c
CRs-Fixed: 3018731
2021-08-26 20:56:01 -07:00
Madan Koyyalamudi
9fab6b727a Release 5.2.0.245N
Release 5.2.0.245N

Change-Id: I1644184aeb476fa318f363518095e9f51360934b
CRs-Fixed: 774533
2021-08-26 05:59:26 -07:00
Jingxiang Ge
14d2284ce1 qcacld-3.0: check sta connected state for dynamic rtpm
Current even without connection, there is possible
rtpm is vote for up, which block suspend. which cause
more power consumption.

change as only allow pm qos vote when sta connected.

Change-Id: I44176ee233d4b2fb1d7a0d51936c847b2ce5f327
CRs-Fixed: 3019401
2021-08-26 05:59:26 -07:00
Madan Koyyalamudi
89414d83bd Release 5.2.0.245M
Release 5.2.0.245M

Change-Id: Ic2e83bad7d1c368ee39bd832f929929edd182312
CRs-Fixed: 774533
2021-08-26 03:40:17 -07:00
Aditya Kodukula
152f278973 qcacld-3.0: Enable WLAN_MODULE_WPM logs by default
Enable the firmware module WLAN_MODULE_WPM with error log level
in wow mode by adding default values in the ini gFwDebugWowModuleLoglevel.

Change-Id: I53a729bde6cfb6d8141864472718a2d8da9efead
CRs-Fixed: 3022434
2021-08-26 03:40:17 -07:00
Madan Koyyalamudi
41369c8d39 Release 5.2.0.245L
Release 5.2.0.245L

Change-Id: Iff7f5041f1de4e042daedeecd2ef42e1d1a4fc3f
CRs-Fixed: 774533
2021-08-26 01:11:18 -07:00
Bapiraju Alla
d599410e45 qcacld-3.0: Populate assoc link id in ML IE of assoc request
Populate assoc assoc link id in ML IE of an assoc request from
scan cache entry

Change-Id: I82b2b68f45411b1588c76ddd7ce9d21a93d972f3
CRs-Fixed: 3013684
2021-08-26 01:11:17 -07:00
Madan Koyyalamudi
34b203299d Release 5.2.0.245K
Release 5.2.0.245K

Change-Id: I7106391f363e570184d81f7b4747ce058b099b87
CRs-Fixed: 774533
2021-08-25 23:01:42 -07:00
Zhaoyang Liu
f98319b751 qcacld-3.0: check return value to avoild NULL pointer
Pointer 'ie_struct' returned from call to function
wlan_get_parsed_bss_description_ies, it may be NULL,
if not checking the function return status, this pointer
may be dereferenced. Check the return status to avoid it.
Free the allocated memory for error exit case.

Change-Id: I4d813838f25b5e2ad3069ad9547bb95f8f6a0e5b
CRs-Fixed: 3016814
2021-08-25 23:01:42 -07:00
Madan Koyyalamudi
a3a70fc03a Release 5.2.0.245J
Release 5.2.0.245J

Change-Id: I66a98f2c08aee91a4878814907faecb82c5cdc08
CRs-Fixed: 774533
2021-08-25 19:44:52 -07:00
Lincoln Tran
e825f99bc2 qcacld-3.0: Change country update retry logic
When setting the country code, host sets a flag to keep track if its
waiting for a response from firmware. During init cases, host receives
this event without it ever setting the flag. This could cause issues in
retry logic if multiple events come back to back. Set this flag when
starting modules to block other events from happening as the country
is being updated.

Change-Id: I5850568e9d5729b22346b8ec0a1f212a886c4c36
CRs-fixed: 3010090
2021-08-25 19:44:52 -07:00
Madan Koyyalamudi
a966b1d3f8 Release 5.2.0.245I
Release 5.2.0.245I

Change-Id: Ibc365c156874e46d259c3e63cc2d7ffe5df2c6d2
CRs-Fixed: 774533
2021-08-25 17:31:34 -07:00
Liangwei Dong
da9262a1b3 qcacld-3.0: Fix AGO no channel switch on detect radar
AGO started on 5220Mhz with BW 160Mhz, later Radar detected and
switch to 80Mhz by sap_indicate_radar API.
Sap_indicate_radar will overwrite sap_ctx->ch_params.ch_width to 80Mhz.
After commit I26ff00286b8e0cec33d3a63098f93d4000684df0,
sap_operating_on_dfs API will use sap_ctx->ch_params to check SAP
on DFS or not to decide channel switch for current ap.
This case sap_operating_on_dfs will return "false" for current
SAP (160Mhz), and then the Radar channel switch is not processed
by driver.
Fix by using the mlme API to get current SAP channel and dfs flags.

Change-Id: I1bbcc185c13cf6e40b9f5415cbdceb7ff3527470
CRs-Fixed: 3016683
2021-08-25 17:31:34 -07:00
Amruta Kulkarni
07e3dc73ab qcacld-3.0: Wmi changes for mlo roaming
-Extract new wmi struct added as part of MLO roaming
 changes.
- Send EHT and MLO weightage percentage to FW via
 WMI_ROAM_AP_PROFILE.

Change-Id: I6b3f1f62ef6ea323cd1b75f63a5c63c38b000f1f
CRs-Fixed: 3010039
2021-08-25 17:31:29 -07:00