Commit graph

22,517 commits

Author SHA1 Message Date
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
Madan Koyyalamudi
3606c780f1 Release 2.0.8.23S
Release 2.0.8.23S

Change-Id: I16bf21618c91d63f0ff6b2648a1fd368932faf72
CRs-Fixed: 774533
2021-09-01 08:59:38 -07:00
Ashish Kumar Dhanotiya
48a636bc07 qcacld-3.0: Cleanup sta connection info at close adapter
Currently driver cleanup sta connection info at stop
adapter because of which if query for sta connection info
comes after adapter restart, in that case driver is not able
to return this info.
For example according to new design of Android-S, framework
issues stop adapter after every disconnetion to update mac
address dynamically, after that it starts adapter again, now
if driver gets request for connection info, it is not able to
provide the connection info as it is already cleaned up on stop
adapter.

To address above issue, cleanup sta connection info at close
adapter instead of stop adapter.

Change-Id: I54247d4577dd7f8cf1c7d7bc657005a09d69d0df
CRs-Fixed: 3000842
2021-09-01 02:36:06 -07:00
Madan Koyyalamudi
0a30ae736f Release 2.0.8.23R
Release 2.0.8.23R

Change-Id: I4f15087d6826e82c273445d8519f45b2b858f3f4
CRs-Fixed: 774533
2021-08-31 21:04:21 -07:00
Jianmin Zhu
fddd0545f4 qcacld-3.0: Need check both HTCaps and HTInfo for channel width
Some AP indicates it support 40M in HTInfo, while not support 40M in
HTCaps, so need intersect HTInfo and HTCaps.

Change-Id: I496b62f50a2e1e19aeef7e77535d0479f31bba44
CRs-Fixed: 3025951
2021-08-31 17:17:25 -07:00
Madan Koyyalamudi
fb2e9139bc Release 2.0.8.23Q
Release 2.0.8.23Q

Change-Id: Ie49353fb5c5c7c9534942b6418583b7c2c9e8ee5
CRs-Fixed: 774533
2021-08-31 14:37:15 -07:00
Vevek Venkatesan
5ef0dfda45 qcacld-3.0: fix race condition in HL IPA Rx buf SMMU map/unmap
While Rx buffers are getting umapped from net rx context and
if IPA pipes are enabled at same time from MC thread context,
this is leading to race condition and IPA SMMU map/unmap is
going out of sync, in adrestea targets.

To fix this introducing IPA SMMU map lock and sync map/unmap.

Change-Id: Ida4c321d94f9640135c67210c69edb355d827c86
CRs-Fixed: 3021027
2021-08-31 10:58:01 -07:00
Madan Koyyalamudi
9f6c9b47e9 Release 2.0.8.23P
Release 2.0.8.23P

Change-Id: I4b5130e746f7e846f8c82b0bbdc7123c3c848fcc
CRs-Fixed: 774533
2021-08-30 17:53:54 -07:00
Jingxiang Ge
2434756ab0 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-30 17:53:53 -07:00
Madan Koyyalamudi
f4e2dd678c Release 2.0.8.23O
Release 2.0.8.23O

Change-Id: I7eaa99c88c25b877736359ed514b1de0a8294d01
CRs-Fixed: 774533
2021-08-30 14:57:03 -07:00
Deeksha Gupta
2bed4725ca 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 14:57:03 -07:00
Madan Koyyalamudi
8431cbb83b Release 2.0.8.23N
Release 2.0.8.23N

Change-Id: I85e269fe646fb62af89d27acff1769da6b2901b3
CRs-Fixed: 774533
2021-08-30 10:17:12 -07:00
Deeksha Gupta
f60cbe7956 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-30 10:17:11 -07:00
Madan Koyyalamudi
61ef386fba Release 2.0.8.23M
Release 2.0.8.23M

Change-Id: I3615e800e1ae96f6515592e4401d4e65b4d5e77b
CRs-Fixed: 774533
2021-08-30 02:09:00 -07:00
Yeshwanth Sriram Guntuka
531af850d3 qcacld-3.0: Use ini values for datapath prealloc
The memory allocation for srngs and tx/rx descriptors
are done during prealloc using macros. This could
potentially result in OOB access if the srngs sizes
and tx/rx descriptor num of elements are increased
via ini config.

Fix is to use ini values to update the srng sizes or
num of tx/rx descriptors for appropriate memory alloc
during dp prealloc.

Change-Id: Iaeac3833fd8e13df6baa9452a7d7f194b86a8bd3
CRs-Fixed: 3012648
2021-08-30 02:09:00 -07:00
Madan Koyyalamudi
e407315d7c Release 2.0.8.23L
Release 2.0.8.23L

Change-Id: I8d2ad8054dd2f4044169510e527c57316df1fa53
CRs-Fixed: 774533
2021-08-27 19:52:08 -07:00
VIJAY RAJ
164aaa90de qcacld-3.0: Fix null pointer dereference in csr_update_pmk_cache_ft()
In csr_update_pmk_cache_ft(), the value of the argument
pmk_cache could be received as NULL. pmk_cache is deferenced
without validation.

Validate pmk_cache before dereferencing.

Change-Id: I255ce55d07a112c2aa742535c54b71fadea3e7e7
CRs-Fixed: 3023221
2021-08-27 19:52:07 -07:00
Madan Koyyalamudi
7c68e03779 Release 2.0.8.23K
Release 2.0.8.23K

Change-Id: I82e6cbe5c8936d128e6090203978ccddc8c78b2e
CRs-Fixed: 774533
2021-08-26 20:03:35 -07:00
Jianmin Zhu
36de1cca72 qcacld-3.0: Don't clear roam_invoke_in_progress when receive ROAM_ABORT
After supplicant disabled vdev roaming, only host can invoke roaming.
After host invoked roaming, if reassoc failed, F/W aborted roaming and
retried roaming, if succeeded, then sent ROAM SYNCH later, but host
rejected it since roam_invoke_in_progress is cleared when receive
ROAM_ABORT, didn’t send WMI_ROAM_SYNCH_COMPLETE to F/W,  F/W asserted
after timeout.

Fix it by not clearing roam_invoke_in_progress when receive ROAM_ABORT,
If host invoked roaming failed, F/W will send roam event
WMI_ROAM_REASON_INVOKE_ROAM_FAIL at last, roam_invoke_in_progress will be
cleared at that time.

Change-Id: Idbbae94f7ad77794f28f5d66dc68b33358d6f49e
CRs-Fixed: 3021513
2021-08-26 20:03:34 -07:00
Madan Koyyalamudi
d12d3b909d Release 2.0.8.23J
Release 2.0.8.23J

Change-Id: I3158c9a1b3be397d9cf6757a8cdd7f30b50b4c42
CRs-Fixed: 774533
2021-08-26 11:09:37 -07:00
Sachin Ahuja
56ec32230a qcacld-3.0: Return correct error code for big data stats
In SAP mode, the get sta info vendor command gets called for both
connected and disconnected state. If peer client is connected then
driver returns the SAP power save parameters to the userspace.
If peer client is disconnected then driver returns -EINVAL status.
Userspace cannot differentiate using this error code whether driver
is not able to handle the vendor command or peer client is
disconnected.

So, if peer client is disconnected then return -ENXIO error code
instead of -EINVAL.

CRs-Fixed: 3014906
Change-Id: I3ce5cd53e79c3bfaeed6571ea28b28ce2dfe26b3
2021-08-26 11:09:37 -07:00
Madan Koyyalamudi
e3624afeff Release 2.0.8.23I
Release 2.0.8.23I

Change-Id: I9845e82f4f7b6d38de53e59710a3d96b8e90d621
CRs-Fixed: 774533
2021-08-25 11:00:59 -07:00
Liangwei Dong
b2799e38c3 qcacld-3.0: Fix monitor mode set channel wrong for HT40-
At present, driver doesn't check the set mon channel parameters
for HT40-, driver always set HT40+ for 2G channel 5 at present
by command "iw dev wlan0 set 5 HT40-".
Fix by check secondary channel offset from set channel parameters.

Change-Id: Ia69f193c72e9e97a4d6988e86bcfd3727089452e
CRs-Fixed: 3019982
2021-08-25 11:00:58 -07:00
Madan Koyyalamudi
269824a41d Release 2.0.8.23H
Release 2.0.8.23H

Change-Id: I58d8e3d12c529be2b62d6867c8f3261ebb4811cb
CRs-Fixed: 774533
2021-08-25 09:20:35 -07:00
Surya Prakash Sivaraj
0080099b5d qcacld-3.0: Fallback to 80MHz capability if HE160 MCS is not valid
If the STA DUT is attempting to connect in 160MHz channel width,
and if the HE160 Rx/Tx MCS is not valid after intersection, the
STA DUT will fallback to 80MHZ channel width.

Change-Id: I11fe8830851fcbb3796703a605568f83c9ff9932
CRs-Fixed: 3011510
2021-08-25 09:20:35 -07:00
Madan Koyyalamudi
8f1ce6a34d Release 2.0.8.23G
Release 2.0.8.23G

Change-Id: Ia9bcfc363bcb4f9046e10d0b2628761c54c74b52
CRs-Fixed: 774533
2021-08-25 07:45:12 -07:00
Surabhi Vishnoi
fcb3efcf98 qcacld-3.0: Update the description of ini btm_config_offload
The bit 5, 4, 3 are used differently in case of solicited and
unsolicited btm request. Update the description of the ini
param to provide clarity on the usage of these bits.

Change-Id: Ic9a596710da6b4692d578206bbd783f784a230fb
CRs-Fixed: 2787597
2021-08-25 05:20:14 -07:00
Madan Koyyalamudi
5581add73c Release 2.0.8.23F
Release 2.0.8.23F

Change-Id: I4bbf406f69898e07fac2cfd1ef1a2166fbdb55d7
CRs-Fixed: 774533
2021-08-24 23:52:38 -07:00