Commit graph

22,589 commits

Author SHA1 Message Date
Komal Maheshwari
4923ca4f98 qcacld-3.0: compilation fix for ks sync path change
For SDW5100 release branch path for common dir is changed to
device/qcom/common/monaco which is being specified in target mk file.
This change ensures other SI compilation will not break.

Change-Id: If8aa35a2e2da0e42b34c77ff8097c26aa2aa83d1
CRs-Fixed: 3020014
2021-10-19 05:32:10 -07:00
Madan Koyyalamudi
af1949d353 Release 2.0.8.25G
Release 2.0.8.25G

Change-Id: I7c6a1275630424eab0f20b240db9e2005137022d
CRs-Fixed: 774533
2021-10-19 01:44:04 -07:00
Vevek Venkatesan
588aa42c3c qcacld-3.0: remove FEATURE_HAL_DELAYED_REG_WRITE_V2 from Kbuild
Since the code under FEATURE_HAL_DELAYED_REG_WRITE_V2 has been
removed and cleaned up, removing the build flag from Kbuild.

Change-Id: I66072af952877881fb700869ae4774e4f1a388cc
CRs-Fixed: 3056477
2021-10-18 08:04:00 -07:00
Madan Koyyalamudi
098e04e1ae Release 2.0.8.25F
Release 2.0.8.25F

Change-Id: Ib0d03ba84527b3e1195f14e4b7c00859c0520878
CRs-Fixed: 774533
2021-10-18 05:28:39 -07:00
Karthik Kantamneni
013043d9c0 qcacld-3.0: Fix refill thread getting stuck in suspend state
Currently during wlan suspend DP refill thread is suspended first
then RX thread is suspended but if RX thread suspend fails then
refill thread should be resumed if not refill thread will be stuck
in suspend state forever.

To avoid refill thread getting stuck in suspend state, resume
refill thread when RX thread suspend failure is encountered.

Change-Id: I2dfdfa881bb3cb660b83067c796d3a833b86ef5f
CRs-Fixed: 3054903
2021-10-14 12:30:52 +05:30
Madan Koyyalamudi
ae31ad41d3 Release 2.0.8.25E
Release 2.0.8.25E

Change-Id: I9b08990d02f1ba7238835f969519fb0597f30117
CRs-Fixed: 774533
2021-10-12 23:04:44 -07:00
Surabhi Vishnoi
2a65dd877e qcacld-3.0: Deliver tx offload mgmt pkts based on filter
Deliver tx offload management to mon interface in packet capture
mode based on config filters added by vendor command.

Change-Id: Id60529b963e3021d7744858980b316b546606550
CRs-Fixed: 3045460
2021-10-12 23:04:43 -07:00
Madan Koyyalamudi
20467bb4ab Release 2.0.8.25D
Release 2.0.8.25D

Change-Id: I3c3b702b2911a7430f73e8d759f005761bdeae9e
CRs-Fixed: 774533
2021-10-12 02:56:15 -07:00
Surabhi Vishnoi
65e1a57f71 qcacld-3.0: Add check for mgmt/ctrl tx packets in pkt capture
Deliver management and control tx packets to monitor interface
only if corresponding filter is set by vendor command.

Change-Id: Ifc7f0ecfce7d7a105902e8a9ce522ba0325ee9cd
CRs-Fixed: 3044855
2021-10-11 23:13:41 -07:00
Madan Koyyalamudi
d741916447 Release 2.0.8.25C
Release 2.0.8.25C

Change-Id: Ieb79a55ad8a3760d1638070ac214b7c300dcfe0d
CRs-Fixed: 774533
2021-10-11 11:01:25 -07:00
Tushnim Bhattacharyya
26390ec511 qcacld-3.0: Remove all WLAN_REG_IS_SAME_BAND_CHANNELS instances
Use WLAN_REG_IS_SAME_BAND_FREQS API to check if 2 channel
frequencies are on same band instead of the deprecated
WLAN_REG_IS_SAME_BAND_CHANNELS API as part of regulatory
cleanup effort.

Change-Id: I05c7a97d5217cdd725734ece457e859d5e1588c2
CRs-Fixed: 2898307
2021-10-11 11:01:25 -07:00
Madan Koyyalamudi
821034a435 Release 2.0.8.25B
Release 2.0.8.25B

Change-Id: I0b23e500b5c37e11c8938b71efa583c7825073ac
CRs-Fixed: 774533
2021-10-11 06:29:49 -07:00
Surabhi Vishnoi
636e2998c9 qcacld-3.0: Add check for mgmt/ctrl rx packets in pkt capture
Deliver management and control rx packets to monitor interface
only if corresponding filter is set by vendor command.

Change-Id: I9aeb8071cfc6207359f8d7ec74af2a21e2742d1e
CRs-Fixed: 3044857
2021-10-11 06:29:48 -07:00
Madan Koyyalamudi
5aa06a5dce Release 2.0.8.25A
Release 2.0.8.25A

Change-Id: I942865b9e83b729fa730eb8801c20e921d8ee280
CRs-Fixed: 774533
2021-10-11 04:39:49 -07:00
Vulupala Shashank Reddy
f8a9c56a84 qcacld-3.0: Add filter for data packets in packet capture mode
Deliver data packets to monitor interface only if
corresponding filter is set by vendor command.

Change-Id: Ibf24349d17d1e649819447b1cde36a834e5579a4
CRs-Fixed: 3046233
2021-10-11 04:39:49 -07:00
Madan Koyyalamudi
be74b0c5b5 Release 2.0.8.25
Release 2.0.8.25

Change-Id: I9521022fd6163eb7a9fe58395175443de868a7f6
CRs-Fixed: 774533
2021-10-11 02:57:18 -07:00
Vulupala Shashank Reddy
b7794cd71a qcacld-3.0: Add check for data tx rx based on vendor command
This commit adds check for data tx and rx packets based on vendor
command received from user.

Change-Id: Ieddb96d8778131ec5876c55462b518e1db552f57
CRs-Fixed: 3046231
2021-10-11 02:57:18 -07:00
Vulupala Shashank Reddy
3430a61561 qcacld-3.0: Add tgt support to send beacon report period to FW
Add tgt support in packet capture component to send user
configured beacon report interval to FW.

Change-Id: Ibeb9f9a7f9ad2c2afa6929c492bd1029784b5f9e
CRs-Fixed: 3046224
2021-10-11 02:57:13 -07:00
Vulupala Shashank Reddy
7eb2a82f00 qcacld-3.0: Add support to send config to FW based on filter
In packet capture component add support to send ctrl and beacon
frames config to FW based on frame filter received from user through
vendor command.

Change-Id: Ie45ea2135e237a156fb60663e3f85cc601490e4a
CRs-Fixed: 3046222
2021-10-11 02:57:08 -07:00
Vulupala Shashank Reddy
316c01bf0a qcacld-3.0: Add support to send mode to FW based on frame filter
In packet capture component add support to send data and mgmt
mode to FW based on frame filter received from user through
vendor command.

Change-Id: Ib6d0d8abe53c29ea6c52900c628d87b603baf1e3
CRs-Fixed: 3046220
2021-10-11 02:57:04 -07:00
Madan Koyyalamudi
01ae6d6ea9 Release 2.0.8.24Z
Release 2.0.8.24Z

Change-Id: I06553a2095067575b84ce53826fd19a05cfbeb0e
CRs-Fixed: 774533
2021-10-07 12:27:33 -07:00
abhinav kumar
2033fd4633 qcacld-3.0: Fix race condition between connect and disconnect
Scenario: In case of STA + STA, NB/SB issues disconnection for
vdev 0 when vdev 1 is in connecting state.

As connection is blocking serialization command and it can try
multiple candidates and can take upto 30+ sec, there is a
chance that disconnect may get timeout and is followed by
vdev delete from osif. This can lead to vdev delete sent
without vdev down/stop and bss peer delete for vdev 0.

So abort connection when trying for candidate if any of the
vdev is waiting for disconnect, to avoid disconnect timeout.

Change-Id: I876550532524767e811c9fd03e85e16d6a90b940
CRs-Fixed: 3049934
2021-10-07 12:27:33 -07:00
Madan Koyyalamudi
a3e3461b48 Release 2.0.8.24Y
Release 2.0.8.24Y

Change-Id: I000aa81820e16a197e5b7aa475d96f386815f1a8
CRs-Fixed: 774533
2021-10-07 10:42:47 -07:00
Jianmin Zhu
eef7a78199 qcacld-3.0: Avoid possible array OOB
Add bound check before access array to avoid out of bound issue.
Separate array bound and duplicate check of 11a and 11b since they have
different length and type.

Change-Id: Icb9382cd42385339532518759de0f6137c5203bd
CRs-Fixed: 3051517
2021-10-07 05:14:16 -07:00
Madan Koyyalamudi
fc254c1469 Release 2.0.8.24X
Release 2.0.8.24X

Change-Id: I444647882c523f47cd6a84cad88067a1fae7391d
CRs-Fixed: 774533
2021-10-07 04:33:39 -07:00
Surya Prakash Sivaraj
fa0078c9a9 qcacld-3.0: Cleanup CSR/LIM for Roam sync indication failure in CSR
Currently, failure in csr_roam_synch_cb is not handled, therefore
failure during roam sync indication processing in CSR, leads to
out-of-sync between LIM and CSR sessions.

Handle the failure in csr_roam_synch_cb, by aborting the
roam complete notification to FW, and then process HO failure from
FW to cleanup LIM and CSR which will hold different BSSID profile.

Use vdev id instead of BSSID to retrieve/delete the LIM session.

Change-Id: I5ff2280e7ba1a8cb8e44c0c6b70647bf12b6ef31
CRs-Fixed: 3046370
2021-10-07 04:33:38 -07:00
Madan Koyyalamudi
9c2abc72fc Release 2.0.8.24W
Release 2.0.8.24W

Change-Id: Ia84a1aa9ac2a2624de4410cf21eabd2e868dd1c8
CRs-Fixed: 774533
2021-10-07 02:48:22 -07:00
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