Commit graph

22,562 commits

Author SHA1 Message Date
Balaji Pothunoori
fef2bc07f2 qcacld-3.0: update default addba response rx aggr size to 256
update default addba response rx aggregation size to 256.

Change-Id: Ie79bd9ce6d5e5a95e706c9bda3124bb3fc913ce5
CRs-Fixed: 3050726
2021-10-07 02:48:22 -07:00
Balaji Pothunoori
4c6b5e35ca qcacld-3.0: initialize pdev id after ssr for thermal throttle reconfig
Currently pdev_id is not initialized after ssr for thermal throttle
reconfig, Where host is sending vdev id as 64 which is leading to
firmware crash.
Hence initialize pdev_id to 0.

Change-Id: Ic614a382acb4f598c52948bcca1cd24f9754ad94
CRs-Fixed: 3041238
2021-10-07 11:42:31 +05:30
Madan Koyyalamudi
4bdc37808f Release 2.0.8.24V
Release 2.0.8.24V

Change-Id: If122c2ab0638c3bb9ac46dbaccc0cfc25a5176c4
CRs-Fixed: 774533
2021-10-06 01:37:06 -07:00
Balaji Pothunoori
eb4e2fdbc3 qcacld-3.0: vendor command changes to configure parameters for monitor mode
Add the support to the vendor command
QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE which aims to configure the
monitor mode parameters for the specific interface.
Once enabled, the configured frames ( TX and RX ) are sent over the
active coexisting monitor interface.

Change-Id: Ieb01d5f928d4e414f46bd00524ad683ad889963e
CRs-Fixed: 3025473
2021-10-06 01:37:05 -07:00
Madan Koyyalamudi
8844547640 Release 2.0.8.24U
Release 2.0.8.24U

Change-Id: I46df4ac36abb310f1dd7810cea233f01c74eb028
CRs-Fixed: 774533
2021-10-05 12:23:13 -07:00
Jianmin Zhu
3d8e1f6a55 qcacld-3.0: Fix array OOB for duplicate rate
Some IoT AP may have duplicate rates in supported rates and
extended rates in beacon, need filter them when populate peer 11a/11b
rates during connect/roaming, or array out of bound issue will happen.

Change-Id: I685e8c07ee147296bfa22742dad4210e7fa02c4a
CRs-Fixed: 3048142
2021-10-05 12:23:13 -07:00
Madan Koyyalamudi
94ca8f224b Release 2.0.8.24T
Release 2.0.8.24T

Change-Id: I936946db7b1ad0f7dbcbc46073dc9d5cdcf31c4e
CRs-Fixed: 774533
2021-10-05 10:38:01 -07:00
Vulupala Shashank Reddy
42e7379c7b qcacld-3.0: Set frame filter based on vendor command
Currently, packet capture mode frame filter configuration
is done based on ini. This change enables user to set the
packet capture mode frame filter configuration at runtime
through vendor command
QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE.

Change-Id: Ifd40a9295394324b0cde4ff15bb55ea77851a6bc
CRs-Fixed: 3046091
2021-10-04 18:04:42 +05:30
Madan Koyyalamudi
d3986e84e1 Release 2.0.8.24S
Release 2.0.8.24S

Change-Id: I13c95a062f2713ec87218b3d21e499dc6f59b220
CRs-Fixed: 774533
2021-10-01 08:47:15 -07:00
Dundi Raviteja
ff83a0693f qcacld-3.0: Map monitor interface vdev during SSR
Map monitor interface vdev with STA vdev during SSR reinit.

Change-Id: I0baca7c09d0fe7f800135181a1445770ab8e2971
CRs-Fixed: 3045111
2021-10-01 08:47:15 -07:00
Madan Koyyalamudi
a9f3246a04 Release 2.0.8.24R
Release 2.0.8.24R

Change-Id: Ic41bc1ced75243dbf8c9434c84b3b3b8d0388022
CRs-Fixed: 774533
2021-09-30 18:38:12 -07:00
Jianmin Zhu
ac554a675e qcacld-3.0: Fix SAP alone failed when g_sta_sap_scc_on_dfs_chan is 1
if g_sta_sap_scc_on_dfs_chan is 1, SAP can't start on DFS channel except
there is STA/P2P client on it.
When SAP start alone,  when select SAP channel after ACS, need remove DFS
channel correctly by valid check.

Change-Id: Ie500816bb0aeae3efd18767e64901bf19bedd6fc
CRs-Fixed: 3036095
2021-09-30 18:38:11 -07:00
Madan Koyyalamudi
b5d7c34ddf Release 2.0.8.24Q
Release 2.0.8.24Q

Change-Id: I2383f85cf076df1ac8a91a05f5b3210cce437f85
CRs-Fixed: 774533
2021-09-30 13:32:36 -07:00
Deeksha Gupta
bd1cf8222a qcacld-3.0: Fix possible OOB in unpack_tlv_core
Currently in unpack_tlv_core(), nBufRemaining is validated
after calling framesntohs API. Since, framesntohs() copies
pIn address to pOut address with length = 2 bytes as below.
DOT11F_MEMCPY(pCtx, (uint16_t *)pOut, pIn, 2);
which could cause OOB issue if pIn contains less than 2 bytes.

Fix is to validate the nBufRemaining size before calling
framesntohs().

Change-Id: I3ead03ec948282a410ddba5b01f82ca31d3d9199
CRs-Fixed: 3042282
2021-09-30 13:32:35 -07:00
Vulupala Shashank Reddy
5a8dbae479 qcacld-3.0: Fix PHY type of rx legacy packets in packet capture
OFDM and CCK flags should not be set based on frequency. These
flags are already filled in pkt_capture_rx_get_phy_info based
on preamble.

Change-Id: Ie809ee2e3546ed69bedab12d73d408b379d6b73d
CRs-Fixed: 2965290
2021-09-30 13:32:31 -07:00
Madan Koyyalamudi
0e48780fea Release 2.0.8.24P
Release 2.0.8.24P

Change-Id: If48f22a9c38808d259ae27724cac76c4dc410c87
CRs-Fixed: 774533
2021-09-30 11:47:35 -07:00
Vulupala Shashank Reddy
cd280a2713 qcacld-3.0: Do not fill average rssi for RX packets
Currently average rssi is filled in rx packets as rssi not
available in rx tlv, but now ucode is providing rssi value
in rx tlv so do not fill average rssi as rssi is already
filled from rx tlv in packet capture component.

Change-Id: I67e5e4cf6f0eade0640012802d79fe92b87de001
CRs-Fixed: 3022166
2021-09-30 08:36:05 -07:00
Madan Koyyalamudi
b0a57f7e01 Release 2.0.8.24O
Release 2.0.8.24O

Change-Id: I9f993cf9487b135c7b6ed72b84da0cd6186c8bea
CRs-Fixed: 774533
2021-09-29 09:29:33 -07:00
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