Commit graph

22,544 commits

Author SHA1 Message Date
Deeksha Gupta
2cce0794e6 qcacld-3.0: Fix possible OOB in extract_peer_stats_count_tlv
Currently in function extract_peer_stats_count_tlv,
num_peers is copied directly to wmi_host_stats_event
structure without any validation which may cause
out of bound issue if num_peers provided in fixed
param becomes greater than actual number of peer
stats info.

Fix is to validate num_peer_stats_info before populating
stats_param->num_peer_stats_info_ext.

Change-Id: Icfb1c4fd34d3ec9120064e14bb65e35f8539f7fd
CRs-Fixed: 3032139
2021-09-29 09:29:33 -07:00
hangtian
f1e6c20391 qcacld-3.0: Invalid rem_len computation in roam stats evt handler
rem_len is calculated based on MAX size of the WMI message
(WMI_SVC_MSG_MAX_SIZE) while extracting data from
WMI_ROAM_STATS_EVENTID event data.

Correct this by considering the actual message length
received in the event.

Change-Id: If24f732a8fdc0ad403e9b8a936ff8cfa0b7f7737
CRs-Fixed: 3035196
2021-09-29 09:29:27 -07:00
Madan Koyyalamudi
b679c4c343 Release 2.0.8.24N
Release 2.0.8.24N

Change-Id: I677e4a90b0d1ba3dfbda9e19609b00d5c044bedc
CRs-Fixed: 774533
2021-09-29 00:29:03 -07:00
Dundi Raviteja
91df15fae5 qcacld-3.0: Don't delete monitor interface when STA interface is down
Don't delete monitor interface while STA interface is getting down,
instead de-register packet capture callbacks and register back
when STA interface is UP again.

Change-Id: I42ea39ec619c08d99fa5ba287be20249e2b2582f
CRs-Fixed: 3013758
2021-09-29 00:29:03 -07:00
Nirav Shah
ab7183be79 qcacld-3.0: Add ini configuration to limit supported HE MCS rates
Add ini configuration to limit supported TX/RX HE MCS rates.
In case of XR use-case, higher throughput is not needed but
higher reliability is expected. So, this ini provide option to
limit HE MCS rate capability to MCS0-7 to achieve higher reliability.

Change-Id: Id6343f5b28d341e5ee377d11ad8420e3b8ded6ef
CRs-Fixed: 3033342
2021-09-29 00:28:58 -07:00
Madan Koyyalamudi
91910f87be Release 2.0.8.24M
Release 2.0.8.24M

Change-Id: I6c6cb689b7209f75e5f49b8b5b5c5328664222bf
CRs-Fixed: 774533
2021-09-27 06:03:40 -07:00
Pragaspathi Thilagaraj
8079aa438f qcacld-3.0: Fix invalid bss descriptor length check
bss_descriptor->length is calculated as:
bss_desc->length = ie_length + sizeof(*bss_desc) -
                   sizeof(bss_desc->len)

In csr_parse_bss_description_ies(), the bss_desc length is
validated as below to return failure if ie_length is 0:
=> (bss_desc->length - sizeof(bss_desc->len)) <= ieFields_offset
Since the bss_desc->length already has the sizeof(bss_desc->len)
subtracted while it was populated.
So this could return failure, if the SSID IE length is less than
or equal to 4.

To avoid this, change the failure condition as below:
(bss_desc->length <= (ieFields_offset - sizeof(bss_desc->len))

Change-Id: Ib0af8e967c26ff0ca9a3b8c44107be4e80378e01
CRs-Fixed: 3022657
2021-09-27 06:03:40 -07:00
Madan Koyyalamudi
86dc23d58e Release 2.0.8.24L
Release 2.0.8.24L

Change-Id: Iaa49de4161dba8a0a76c83f5aa094034cd7a921b
CRs-Fixed: 774533
2021-09-22 06:43:11 -07:00
Utkarsh Bhatnagar
13de969cdd qcacld-3.0: Add debug prints in SA query response
Add debug print to log the details sent in OCV frame
in SA query Response.
Also, remove additional line to print mac address of
peer.

Change-Id: Ia2114b69579d118b0ccc4fe9798caf2f855c895f
CRs-Fixed: 2860085
2021-09-22 06:43:10 -07:00
Madan Koyyalamudi
774e8adfe4 Release 2.0.8.24K
Release 2.0.8.24K

Change-Id: I5ba89e1dcdabe662f6c79e2b71bc9843b73e4fd7
CRs-Fixed: 774533
2021-09-20 18:25:58 -07:00
Wu Gao
864a42ab9f qcacld-3.0: Stop CFR once get disconnection event
CFR only works when DUT as STA and connected to AP. But, host doesn't
stop CFR if CFR started and disconnect to AP. So add this change to
stop CFR once get disconnection event.

Change-Id: I5a616dbe4c35311fb260514a8d33ed9a1361c514
CRs-Fixed: 3026715
2021-09-20 18:25:57 -07:00
Madan Koyyalamudi
643385f0ac Release 2.0.8.24J
Release 2.0.8.24J

Change-Id: I820f4ed9410521413a17aa550cdf45bde91c7abe
CRs-Fixed: 774533
2021-09-20 00:42:46 -07:00
Surya Prakash Sivaraj
8d13a81eae qcacld-3.0: Add an INI to configure SAE auth failure timeout
Currently, the SAE authentication request retry happens
after a fixed timeout of 1 second in a STA DUT.

To make this timeout user configurable, add an INI to
configure SAE auth failure timeout.

Change-Id: I3a3944ab14564a944e0c83cc31a92847b5e8c5e0
CRs-Fixed: 3011892
2021-09-20 00:42:46 -07:00
Surya Prakash Sivaraj
ece9151f58 qcacld-3.0: Notify the failure to firmware if SAE auth retries exhausted
Currently during SAE roaming, if the DUT exhaust SAE retries
(i.e. DUT doesn't receive SAE auth confirm/commit response even
after max retries), host driver stops retrying and cleans up the
internal counters/frame. But, the failure is not notified to firmware.
So, firmware may go out of sync. Therefore, Notify the failure to
firmware through WMA_ROAM_PRE_AUTH_STATUS in such cases. So that,
firmware can abort roaming.

Change-Id: Ic769dcabc15c1052f5d7d43f3ef754dd7b7c1f40
CRs-Fixed: 2981666
2021-09-20 00:42:41 -07:00
Madan Koyyalamudi
3e147542c9 Release 2.0.8.24I
Release 2.0.8.24I

Change-Id: Id76feae461ae5581e2055540a40385c7bda265bd
CRs-Fixed: 774533
2021-09-17 08:23:37 -07:00
Utkarsh Bhatnagar
1fba4f1b08 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-09-17 00:18:22 -07:00
Madan Koyyalamudi
149fdae30e Release 2.0.8.24H
Release 2.0.8.24H

Change-Id: Ie0b858333fea1e9644c7e5f12dbbc5bc4a7fbaf5
CRs-Fixed: 774533
2021-09-16 23:58:17 -07:00
Utkarsh Bhatnagar
94c3ae9a8c qcacld-3.0: Include Thermal Module in KBuild
Include Thermal Module in KBuild.

Change-Id: I22f0a4998d0227a125ff973cdcab3260a0c4575c
CRs-Fixed: 3036941
2021-09-16 23:58:17 -07:00
Madan Koyyalamudi
edf2f43511 Release 2.0.8.24G
Release 2.0.8.24G

Change-Id: I406da0f31c63f1accf88aa843b0f52d6006ddf85
CRs-Fixed: 774533
2021-09-16 02:45:34 -07:00
Vulupala Shashank Reddy
fff07541e4 qcacld-3.0: Unsubscribe in reverse order of subscription
Ideally we should deinit in reverse order of init so we
should Unsubscribe in reverse order of subscription in
packet capture component.

Change-Id: Icb62a14c2d1fd20073f6924d03d523b7871c62d6
CRs-Fixed: 3019862
2021-09-15 22:00:47 -07:00
Madan Koyyalamudi
457232f56e Release 2.0.8.24F
Release 2.0.8.24F

Change-Id: I901ee6f015df0c120e419ff258b2940e09b50ef8
CRs-Fixed: 774533
2021-09-15 10:04:14 -07:00
Vulupala Shashank Reddy
d2fa24bcdb qcacld-3.0: Remove unused linux header file
Remove unused linux header file in packet capture component.

Change-Id: I668061d0a6516cca51a153e3713e8c0a5634fb64
CRs-Fixed: 3019885
2021-09-15 10:04:14 -07:00
Madan Koyyalamudi
c06c45d238 Release 2.0.8.24E
Release 2.0.8.24E

Change-Id: I6f0f4a763170fdedce643d6e3b3b0c33a805b570
CRs-Fixed: 774533
2021-09-15 08:19:33 -07:00
Surabhi Vishnoi
4330141408 qcacld-3.0: Fill the nss in tx status in pkt capture mode
Currently, nss is not filled for tx data packets. Fill the
last received nss from ppdu stats in the tx status in pkt
capture mode.

Change-Id: I1833be5e19eaba4e88befe9970f079b91ec4bbe4
CRs-Fixed: 3004484
2021-09-14 22:27:25 -07:00
Surabhi Vishnoi
81e3c36def qcacld-3.0: Fill the ppdu stats in tx status in pkt capture mode
Ppdu stats related to transmitted msdu are received from
firmware and queued to a list. Remove the received ppdu stats
from front of list and fill in tx status of current msdu.

Change-Id: I764aa909497971010202ce3decb3380a732ce12c
CRs-Fixed: 3004483
2021-09-14 22:27:19 -07:00
Surabhi Vishnoi
dc13e0eb13 qcacld-3.0: Register for wdi event WDI_PKT_CAPTURE_PPDU_STATS
WDI_PKT_CAPTURE_PPDU_STATS event is sent when packet capture
related htt ppdu stats tlv is received from firmware.
Register for WDI_PKT_CAPTURE_PPDU_STATS wdi event and add
logic to insert received ppdu stats to a list.

Change-Id: Ie78cf4b161c90a0bcf514a3e71a82c3c3e358c24
CRs-Fixed: 3004480
2021-09-14 22:58:24 +05:30
Madan Koyyalamudi
acc180c6cc Release 2.0.8.24D
Release 2.0.8.24D

Change-Id: I6e606f0edc2ec21b04bb0521bde1bf75c1dc9fea
CRs-Fixed: 774533
2021-09-09 08:09:07 -07:00
Surabhi Vishnoi
3d615e4db8 qcacld-3.0: Register for WDI_EVENT_PKT_CAPTURE_RX_DATA_NO_PEER
Register for WDI_EVENT_PKT_CAPTURE_RX_DATA_NO_PEER in packet
capture mode and add logic to parse it. This wdi event
delivers rx data packets to packet capture component which are
received before peer is mapped in host, mostly in roaming scenario.

Change-Id: Ia718293c97dd11de6aab5a739683eec38e7e057b
CRs-Fixed: 3000153
2021-09-09 08:09:07 -07:00
Madan Koyyalamudi
f6c4955e81 Release 2.0.8.24C
Release 2.0.8.24C

Change-Id: I46b087d45a91857b4a1b4594e815f6be12bffaab
CRs-Fixed: 774533
2021-09-09 06:20:23 -07:00
Karthik Kantamneni
3cf1d83d1d qcacld-3.0: Enable WLAN_SKIP_BAR_UPDATE support for lithium targets
Enable WLAN_SKIP_BAR_UPDATE support for lithium targets

Change-Id: Ic7ac34a6845b54005181f58081b389b2e79b29a8
CRs-Fixed: 3031396
2021-09-09 06:20:22 -07:00
Madan Koyyalamudi
26933ad3fb Release 2.0.8.24B
Release 2.0.8.24B

Change-Id: I945b45c3a4bb7a7a3f38cd566a8cf711f0b02a61
CRs-Fixed: 774533
2021-09-08 01:36:12 -07:00
Ashish Kumar Dhanotiya
d1f305eccf qcacld-3.0: Do not cache connection info for non sta interface
Currently driver does not check the mode of the current interface
whether it is STA of CLI and it caches the connection info, in this
process it allocates the memory to cache he operation, this memory
get freed only for station type adapter because of which there is
a possibility of memleak for CLI interface.
To avoid above issue, add a change to only cache the information
STA interface.

Change-Id: Ic68d71dfd9887600fe1a287de66d735c2c802491
CRs-Fixed: 3028583
2021-09-08 10:41:55 +05:30
Madan Koyyalamudi
5dd57b125a Release 2.0.8.24A
Release 2.0.8.24A

Change-Id: I274fc792dbb4c656fda57cec98f110312c469473
CRs-Fixed: 774533
2021-09-07 13:14:51 -07:00
Jianmin Zhu
57816a11ba qcacld-3.0: Fix sme_get_rssi_snr_by_bssid failure
Afte DUT sta connected, when sme_get_rssi_snr_by_bssid is called to get
RSSI of current AP, only bssid is needed in scan filter.
If freq list, security are added into scan filter, can't get any scan
result and AP RSSI.

Change-Id: If96edc8768a6b2c8d729afcf479c84339517468e
CRs-Fixed: 3029559
2021-09-07 13:14:51 -07:00
Madan Koyyalamudi
3ef9b06828 Release 2.0.8.24
Release 2.0.8.24

Change-Id: I37ad8400bb5c472809a10fac60f121a09d5fd174
CRs-Fixed: 774533
2021-09-07 08:53:22 -07:00
Li Feng
07ebd3646b 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-09-07 08:53:22 -07:00
Madan Koyyalamudi
b9d0435d14 Release 2.0.8.23Z
Release 2.0.8.23Z

Change-Id: I5173ff22de8cbb8571c9241352e41587b7ac9a1a
CRs-Fixed: 774533
2021-09-07 06:36:35 -07:00
Surya Prakash Sivaraj
c9bb763bdf qcacld-3.0: Bypass the HE channel width fallback for SAP
For STA connection in HE 160, HE160 MCS is validated
during the session creation. If the HE160 is invalid,
the connection falls back to 80MHz. But, this check needs
to be bypassed for SAP, because during session creation SAP
will not have the peer capability, so the HE160 MCS validation
needs to be bypassed.

Change-Id: I3bbb2f35c40a123b5d05a94038970a0e7e43ac60
CRs-Fixed: 3025102
2021-09-07 06:36:35 -07:00
Madan Koyyalamudi
145b4da8fa Release 2.0.8.23Y
Release 2.0.8.23Y

Change-Id: I96236dc151d8ef86d5b1d713431e86eab8a4e462
CRs-Fixed: 774533
2021-09-07 01:03:11 -07:00
Utkarsh Bhatnagar
c0136784d9 qcacld-3.0: update phymode and width correctly for sap
In sap_goto_starting(), update phymode and channel width
correctly incase there is mismatch between phymode
and operating channel frequency.
For instance, in case when operating frequency is in
5 Ghz band, phymode 11g is incorrect and should be
changed to 11a. Also, if phymode is 11a for 2.4 ghz
band, it should be changed to 11g.

Also, if phymode is of legacy type such as 11a or 11g,
channel width should be restricted to 20 Mhz.
In case of 11n, channel width should be restricted to
40 Mhz, if it is more than that.

Also, update the width from vdev as if not updated
there can be a case where there are different bw
in vdev and sap context.

Change-Id: I3df06c0f5bb0f4eb5ffc77317efbeaa88d998427
CRs-Fixed: 2976056
2021-09-07 01:03:11 -07:00
Madan Koyyalamudi
e826ef1ae1 Release 2.0.8.23X
Release 2.0.8.23X

Change-Id: I89a05a351e7f77b23db3b5a3f9c0fd19b111aaa0
CRs-Fixed: 774533
2021-09-06 23:01:48 -07:00
Liangwei Dong
2218a6140d qcacld-3.0: Revert "clear pmkid cache when ap off"
This change removes the "delete pmksa on BMISS" logic in commit
I5d8ec9e9d4f8a44178b113d370799fe2bc0373fb.
Will handle the issue in new commit by OUI checking of AP.

Change-Id: I871999f8c473afdc75b774210044fc059fcd07b0
CRs-Fixed: 3021068
2021-09-06 23:01:48 -07:00
Madan Koyyalamudi
52d0572153 Release 2.0.8.23W
Release 2.0.8.23W

Change-Id: Ibcf9496613331cb15f13c472c4ab4eaa1bf98cf2
CRs-Fixed: 774533
2021-09-06 13:41:08 -07:00
Pragaspathi Thilagaraj
9cf491768d qcacld-3.0: Disable PER roam for phymode less than 11NA_HT20
The PER default low rate thresholds configured is 20Mbps. This
will cause PER roam scan always after the 25 secs PER monitor
window since the 11b rates are lower than 20Mbps.

So disable PER roam when the connection/roaming to peer is with
cckm/OFDM rates to avoid frequent roam scans.

Change-Id: Iaae469804547c0f0682b66de3609b5cda4b4b577
CRs-Fixed: 2984973
2021-09-06 01:26:48 -07:00
Madan Koyyalamudi
6d78776b6a Release 2.0.8.23V
Release 2.0.8.23V

Change-Id: I9c67b83dabf8e39c9ba822972dcb37598b5f7842
CRs-Fixed: 774533
2021-09-05 19:00:31 -07:00
Liangwei Dong
f19af0eed9 qcacld-3.0: Abort MLME connect timers upon NB disconnect request
When the connect request is pending on MLME and NB disconnect comes,
driver will wait for previous connect finish to process the disconnect
request. This delay the disconnect and may cause framework ANR.
Add code to fire the timeout event of active timers in various MLME
state. This will abort the connect request and get disconnect done fast.

Change-Id: I19cc03108c966c8f1efc0a554dfc59123dfe37f1
CRs-Fixed: 3026311
2021-09-05 19:00:30 -07:00
Madan Koyyalamudi
e91e5921bb Release 2.0.8.23U
Release 2.0.8.23U

Change-Id: I818711573a081d5403244113230072efb7d322a5
CRs-Fixed: 774533
2021-09-03 14:13:35 -07:00
Deeksha Gupta
57dd7d9ac1 qcacld-3.0: Release the peer reference in twt_get_status
In ucfg_twt_get_all_peer_session_params peer reference is
acquired and its not released leading to the reference leak,
leading to vdev destroy timeout.

Release the peer reference to resolve the issue.

Change-Id: I9992376473c30365f15fcdb8e374c856bc169d6b
CRs-Fixed: 3027189
2021-09-03 14:13:35 -07:00
Madan Koyyalamudi
34c70859fd Release 2.0.8.23T
Release 2.0.8.23T

Change-Id: I812a9c4211c66c7ee2c6ea4b4d62ae1ea36cf19f
CRs-Fixed: 774533
2021-09-02 23:11:45 -07:00
Pragaspathi Thilagaraj
0531d136d8 qcacld-3.0: Set PS config per vdev
Currently the PS config received from kernel/userspace is set
to mac_ctx globally. This causes PS config set for one vdev to
override on the other vdev.

To avoid this, set the PS config per vdev.

Change-Id: I6a2e2a9d8fb67b94d9d5f1d4164077990bdaf4a5
CRs-Fixed: 3007060
2021-09-02 13:01:56 +05:30