Commit gráf

21841 Commit-ok

Szerző SHA1 Üzenet Dátum
Srinivas Dasari
1ef019cc0d qcacld-3.0: Abort ongoing STA connection when SAP goes down
Currently, ongoing STA connection is not aborted when a
stop_adapter is received on SAP. This results in a peer leak in
the below scenario,
1. Turn on SAP.
2. Initiate STA connection to an SSID which has multiple BSSIDs in
   dense environment. Connection gets retried to next BSSID when
   it fails to connect to the current BSSID.
3. Turn off SAP while connection is happening. stop_bss command
   doesn't get processed and waits in queue as the STA connection
   is going on.
4. If stop_bss timer(10 seconds) expires while STA connection is
   in progress, SAP vdev is destroyed without cleaning up self
   peer. So, there would be a peer leak.

Abort the ongoing sta when SAP goes down, so that stop_bss gets
processed cleanly and self peer is also cleaned up.
Same is applicable for P2P_GO as well.

Change-Id: I888a602cd27a9bbec54fb356ed1488cd9fc2847c
CRs-Fixed: 2852023
2021-01-12 12:11:09 -08:00
snandini
cdccb7a2d9 Release 5.2.0.217P
Release 5.2.0.217P

Change-Id: I718067741c2929ba01a3f5e8758b1f35cf5fafac
CRs-Fixed: 774533
2021-01-11 15:13:31 -08:00
Liangwei Dong
74222be804 qcacld-3.0: clear pmkid cache when ap off
In AP side power off/on case, AP security has been cleanup.
The STA side might still cache PMK ID in driver and it will always
use PMK cache to connect to AP and get continuously connect failure
in SAE security. This function is to detect AP off based on FW
reported BMISS event. Meanwhile judge FW reported last RSSI > roaming
Low rssi and not less than 20db of host cached RSSI to avoid
some false alarm such as normal DUT roll in/out roaming.

Change-Id: I5d8ec9e9d4f8a44178b113d370799fe2bc0373fb
CRs-Fixed: 2841481
2021-01-11 15:13:30 -08:00
gaurank kathpalia
c86ce01b74 qcacld-3.0: Replace CSR API with connection mgr API part 3
Replace the CSR API to get connect info with cnx mgr API.

Change-Id: Id4b92ba5db10935b5deccdacd72218d4a087c61d
CRs-Fixed: 2852437
2021-01-11 15:13:25 -08:00
snandini
c0221fc09d Release 5.2.0.217O
Release 5.2.0.217O

Change-Id: I659ffc5db3bd8d1a7beb2f4205e504d19e3d4c42
CRs-Fixed: 774533
2021-01-11 10:43:23 -08:00
Alan Chen
f1918032a5 qcacld-3.0: Use a conditional macro for NLA_EXACT_LEN
Since 5.10 kernel has removed NLA_EXACT_LEN, replace NLA_EXACT_LEN
usage with a new conditionally defined macro for it.

Change-Id: I700f40d9ff87331dbb23a44fcbe6e4a586ef286d
CRs-Fixed: 2849795
2021-01-11 10:43:23 -08:00
snandini
93cd1f030b Release 5.2.0.217N
Release 5.2.0.217N

Change-Id: I82c5d50977f6aa89be3d378c50466e32d2347f08
CRs-Fixed: 774533
2021-01-11 08:40:55 -08:00
sheenam monga
e32c548285 qcacld-3.0: Print correct concurrency support
Currently host checks mac number to indicate
MCC or DBS which may not be correct. Host
may print DBS in case of MCC.

Check DBS support and print concurrency
based on hw mode if hw mode is dbs capable
then print DBS else MCC.

Change-Id: I1578e6a7a6b73b5b6c409653b4dc276954f51c3d
CRs-Fixed: 2845634
2021-01-11 08:40:55 -08:00
snandini
90bfad5b79 Release 5.2.0.217M
Release 5.2.0.217M

Change-Id: I58ec5b6497a4257c292564d1cfbe62c4d2977d6b
CRs-Fixed: 774533
2021-01-11 06:39:15 -08:00
Abhishek Singh
07678f7063 qcacld-3.0: Add roaming files in kbuild for connection manager
Add roaming files in kbuild for connection manager.

Change-Id: Id091ed574074a82c0f6f61c477472cdbc80fb317
CRs-Fixed: 2849263
2021-01-11 06:39:14 -08:00
snandini
2d19edaab4 Release 5.2.0.217L
Release 5.2.0.217L

Change-Id: I23341cd882f1ddc76a29f8916b039e84df9396a7
CRs-Fixed: 774533
2021-01-11 01:52:32 -08:00
Jinwei Chen
a21bdc0e71 qcacld-3.0: remove CONFIG_PCI_MSM compilation flag
PLD driver already abstract MSM specific feature, remove CONFIG_PCI_MSM
complilation flag in wlan driver.

Change-Id: I44f685561222f2210e70475df23385e4c211c7d1
CRs-Fixed: 2851926
2021-01-11 01:52:32 -08:00
snandini
aba4153627 Release 5.2.0.217K
Release 5.2.0.217K

Change-Id: I0e382aa5afa2e127f0a1325e73ee3a4cc55ef9ec
CRs-Fixed: 774533
2021-01-10 23:53:30 -08:00
Srinivas Dasari
a03e7735bf qcacld-3.0: Append vendor specific IEs received to assoc request
wpa_supplicant/framework sends different vendor specific IEs in
connect request. Currently driver is parsing the IEs and appending
specific IEs to the assoc request frame. But all vendor specific
IEs are supposed to be sent in the assoc request. Extract all vendor
specific IEs and append at the end of the frame.
MBO IEs are expected to be present at the end of the frame.
So append rest of the vendor IEs just before MBO IE.

This is a followup change for the change
Ia6423bb43b2ac294541c2485f5ed45d14af6553d to ensure the
"appending vendor IEs to assoc request feature is still intact".

Change-Id: Id788153ceb30c67f7ca9de9f3feea2d610cb21cb
CRs-Fixed: 2851362
2021-01-10 23:53:30 -08:00
Srinivas Dasari
6cb69d7777 qcacld-3.0: Fix possible memleak of mbo IE in lim_send_assoc_req
Allocated a memory to hold the mbo IEs stripped from IEs received
from userspace. But this buffer is not freed in the below
failure cases,
1. Unpack of assoc request failure
2. Packet alloc failure
3. Packing of assoc request failure
4. Encryption of fils IEs in assoc request failure

So, move the freeing to a common label "end" to free the buffer in
all cases.

Change-Id: I7ad268fed1898ac9f62e30eb4bd3740cce9bb4bc
CRs-Fixed: 2662225
2021-01-10 23:53:24 -08:00
Srinivas Dasari
92da7db8e6 Revert "qcacld-3.0: Append vendor specific IEs received to assoc request"
The change I3d49c72a31d142ef3b14b439af2ae4cd8be059ea adds support
to append the vendor IEs received from userspace to assoc request.
But this also fixes a memleak in mbo IE handling. It's better split
these two as the feature(appending vendor IEs to assoc request)
may not be needed on all branches but the memleak fix is needed on
all the builds which support MBO.
So, revert this change and raise these as two separate changes.

Change-Id: Ia6423bb43b2ac294541c2485f5ed45d14af6553d
CRs-Fixed: 2851356
2021-01-10 23:53:19 -08:00
snandini
4fca7a5dca Release 5.2.0.217J
Release 5.2.0.217J

Change-Id: Id80f6f0ae1884a30abc83ba54f2c8b2bdc916395
CRs-Fixed: 774533
2021-01-10 06:49:10 -08:00
Pragaspathi Thilagaraj
caf578f064 qcacld-3.0: Make TWT commands as async
Add support for below TWT commands to be sent as asynchronous
commands from userspace:
1. TWT teardown
2. TWT pause
3. TWT resume

Change-Id: I1989fe153cc8a482a9616a7f6879de3b92ef82fb
CRs-Fixed: 2847143
2021-01-09 23:10:14 -08:00
snandini
cfe2adce30 Release 5.2.0.217I
Release 5.2.0.217I

Change-Id: If137d37981a83804cbd2d4cc01ed8ca7393e9ff0
CRs-Fixed: 774533
2021-01-09 16:49:30 -08:00
Alan Chen
ac69240525 qcacld-3.0: Add a conditional wrapper for pm_qos_notifier functions
In order to resolve compilation issues with kernel 5.7+, add
conditional wrappers for pm_qos_notifier functions.

Change-Id: I7d6fad84f54f62f4a8d4ed68e86a1909e2eca243
CRs-Fixed: 2849793
2021-01-09 16:49:30 -08:00
snandini
67e41fc19e Release 5.2.0.217H
Release 5.2.0.217H

Change-Id: Id1fd9cc609ab8b5f6a4f8b86b50d46eff84a1bee
CRs-Fixed: 774533
2021-01-09 09:43:42 -08:00
Vevek Venkatesan
7d8963e3f1 qcacld-3.0: sync rtpm suspend resume only for CE wake irq type
In moselle, the runtime suspend and wow resume sync logic has
been added without any condition, since hastings is doing APPS
side PCI bus suspend which cannot be reverted on suspend failure,
so doing this sync logic only if wake irq type is CE interrupt.

Change-Id: I07dc5a99d0661fe1ef81e7a46e7053244edf8eb6
CRs-Fixed: 2851261
2021-01-09 09:43:41 -08:00
snandini
d4f7e9c6d9 Release 5.2.0.217G
Release 5.2.0.217G

Change-Id: I0065152b7ae44b8fee1d10bd985c71695af80fb8
CRs-Fixed: 774533
2021-01-09 06:50:37 -08:00
Ashish Kumar Dhanotiya
09d09344ea qcacld-3.0: Add missing api calls for connection manager
There are few API calls missing for connection manager
connect, disconnect response handling.
Add these missing function calls for connection manager.

Change-Id: If3f4bf42d0979ac36a1413e5fc4176c41d5b8f8e
CRs-Fixed: 2851144
2021-01-09 06:50:37 -08:00
snandini
f844618a46 Release 5.2.0.217F
Release 5.2.0.217F

Change-Id: I1032f804aa9251b188b6278e0a965b786d694c3c
CRs-Fixed: 774533
2021-01-09 01:36:42 -08:00
Liangwei Dong
1f762c7cb4 qcacld-3.0: acquire lock before update connection list
Acquire connection list lock in policy mgr before update the
entry. The "conn_index" maybe changed for a connection entry
if other connection is up or down.
Fix by acquire connection to protect the whole "update" operation.

Change-Id: I91e82e74884ef32e83e0c4105e88bafe8d99db3d
CRs-Fixed: 2848209
2021-01-09 01:36:42 -08:00
Vulupala Shashank Reddy
47c291d47c qcacld-3.0: Process offload Tx data packet for pkt capture mode
Subscribe for offload Tx data wdi event and process offload Tx
data packets and post into mon thread for packet capture mode

Change-Id: Ic61043b8461eed4be5e8dc8d41baca2574224a90
CRs-Fixed: 2845598
2021-01-09 01:36:38 -08:00
snandini
266d59e792 Release 5.2.0.217E
Release 5.2.0.217E

Change-Id: If7a47afab85646f540bd7b18aabe4c08a7529969
CRs-Fixed: 774533
2021-01-08 23:30:34 -08:00
gaurank kathpalia
130e95060d qcacld-3.0: Cleanup the struct sCsrNeighborRoamControlInfo
Cleanup the struct sCsrNeighborRoamControlInfo and move params in
vdev ext object.

Change-Id: If5a490c68137622838afc831a4da0e1da7fa49c4
CRs-Fixed: 2850991
2021-01-08 23:30:34 -08:00
snandini
9031774de9 Release 5.2.0.217D
Release 5.2.0.217D

Change-Id: I7c17bc1fc7287bf91da6648e48d1c8aba7a02245
CRs-Fixed: 774533
2021-01-08 14:32:17 -08:00
Tushnim Bhattacharyya
5f7310258b qcacld-3.0: Skip CAC if precac is done already for the vdev
No need to run CAC again if precac is done already for the
SAP vdev.

Change-Id: Icfdd8c3fdb3404143b085a47fd7772270e8dca76
CRs-Fixed: 2850434
2021-01-08 14:32:17 -08:00
snandini
6986768224 Release 5.2.0.217C
Release 5.2.0.217C

Change-Id: Id49b892f7913de55a2000462ec1861937e62ab00
CRs-Fixed: 774533
2021-01-08 04:09:04 -08:00
gaurank kathpalia
0b02b4ba2f qcacld-3.0: Fill dot11mode and cbmode in LIM
Fill dot11mode and cb mode according to the
bss description and IEs in LIM layer itself.

Change-Id: I55cdeffdd55cfc1787a2929b349aea25f499499f
CRs-Fixed: 2846126
2021-01-08 04:09:03 -08:00
Abhishek Ambure
68f52c6624 qcacld-3.0: Add support to save gtk and set hlp data in CM
Host add support to save gtk and set hlp data received in connect
response.

Change-Id: If0124584a75175005d01f7f2dc9c10db051edb0a
CRs-Fixed: 2849139
2021-01-08 04:08:57 -08:00
Abdul Muqtadeer Ahmed
39f370d202 qcacld-3.0: Replace mission mode with monitor mode
The command should not be sent when device is in monitor mode.
But it is allowed in mission mode.

Change-Id: Ic21a8244425315577e7f0b2423c4fe6c5ac42702
CRs-Fixed: 2847777
2021-01-08 04:08:51 -08:00
Pragaspapthi Thilagaraj
dd019ef5ed qcacld-3.0: Reduce excessive kmsg logging in roaming path
Reduce excessive logging for roaming path to reduce latency.
Also remove function and line prints in roam debug related
logging.

Change-Id: Ida6fc55886c944126720f8bdd4b944765426ccc6
CRs-Fixed: 2847773
2021-01-08 04:08:45 -08:00
Amar Singhal
be88be800e qcacld-3.0: Do not send regulatory event for unsafe channel list
Unsafe channel list event does not change the current channel list.
Hence there is no reason to set the channel list again in wiphy and
inform the kernel. Thus, do not send regulatory event for unsafe
channel list.

Change-Id: I68d60fb412b4664430a9cdefa354fac4070bba7a
CRs-Fixed: 2788194
2021-01-08 04:08:39 -08:00
snandini
1647d4ebad Release 5.2.0.217B
Release 5.2.0.217B

Change-Id: Iad5fe5ac44150b7d7e703c6d4e47ef7bed1bff1d
CRs-Fixed: 774533
2021-01-08 01:37:22 -08:00
Pragaspathi Thilagaraj
52adb4d599 qcacld-3.0: Register TWT callbacks statically
TWT HDD callbacks are registered dynamically when each TWT
command is received from userspace and unregistered while
sending response. This design was in place considering the
existing TWT commands are synchronous and multiple back to
back TWT commands will not be received. But now the TWT
commands from userspace can be received asynchronously.

So register the TWT callbacks statically during start modules in
wlan_hdd_twt_init().

Change-Id: I7dd9333c330a90fca421a2cc2574b2db76536e96
CRs-Fixed: 2830644
2021-01-08 01:37:22 -08:00
Pragaspathi Thilagaraj
7a16e63693 qcacld-3.0: Add support for TWT setup additional parameters
Add support for below TWT setup additional parameters:
Minimum TWT wake interval
Maximum TWT wake interval
Minimum TWT wake duration
Maximum TWT wake duration

Make the TWT setup command handling as asynchronous.
Send QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT event to
userspace when add dialog complete event is received
from firmware.

Change-Id: Ia56bbecd04e0c02a55dc1a7f43ee533a85f82f1d
CRs-Fixed: 2842895
2021-01-08 01:37:17 -08:00
snandini
b0ac8b73bc Release 5.2.0.217A
Release 5.2.0.217A

Change-Id: Ica2f50247b4de86e1764da77d4b01adc14f51db8
CRs-Fixed: 774533
2021-01-07 23:28:49 -08:00
gaurank kathpalia
835437cad6 qcacld-3.0: Add legacy pointer in connection manager context
Add legacy pointer in connection manager context to use for RSO
and other connection manager legacy operations.

Change-Id: Ibc665f53d77aebb3f248fedbdffd1cfe86492b25
CRs-Fixed: 2845980
2021-01-07 23:28:49 -08:00
gaurank kathpalia
6b72d4685b qcacld-3.0: Replace CSR API with connection mgr API part 2
Replace the CSR API to get connect info with cnx mgr API.

Change-Id: Id0ffae005fde5bff69fc486c94c3332872bab786
CRs-Fixed: 2848570
2021-01-07 23:28:45 -08:00
snandini
2eecfaa43f Release 5.2.0.217
Release 5.2.0.217

Change-Id: Id8af50b60a90a29edb9a2dd261e11d6be2fbed60
CRs-Fixed: 774533
2021-01-07 21:13:43 -08:00
Gururaj Pandurangi
ae78494533 qcacld-3.0: Add TPE IE to beacon frame structure
Add TPE IE to beacon frame struct tDot11fBeaconIEs.

Change-Id: I80ab213da97385df7b5c3eabb99b011b1a3dfba2
CRs-Fixed: 2848867
2021-01-07 21:13:42 -08:00
Ashish Kumar Dhanotiya
37b1b0a707 qcacld-3.0: Add sanity check for connected profile in hdd
Currently there is no sanity check for connected profile
which may lead to NULL pointer access.

To address above issue, add sanity check for connected profile
in association completion handler.

Change-Id: I2ed3d65287f4ea23cdf9c6c630b5e97e2c42c6be
CRs-Fixed: 2847694
2021-01-07 21:13:38 -08:00
bings
f540f78b07 qcacld-3.0: support one msi interrupt
Add build option WLAN_ONE_MSI_VECTOR to support one MSI vector in Kbuild.

Change-Id: I99d48bd47dde8857a4eb8d84e6a8b16a99f394a7
CRs-Fixed: 2696508
2021-01-07 21:13:34 -08:00
snandini
5e0e6890a4 Release 5.2.0.216Z
Release 5.2.0.216Z

Change-Id: Ie9e339c5ed9381e454e2f01e6fe9c557aa473f1b
CRs-Fixed: 774533
2021-01-07 19:11:21 -08:00
Bapiraju Alla
720dc0c7e1 qcacld-3.0: Don't Check for concurrency if pre_cac adapter exists
Currently, host driver is checking for concurrency while handling
the pre_cac request. pre_cac adapter won't be deleted until SAP is
stopped. As a result the second pre cac request for the same SAP
will be dropped due to this concurrency check.

To avoid this, Don't check for pre cac concurrency if the pre cac
adapter is already exists.

Change-Id: I780c6310cf819da1a2f5c7c93590ccb1b544e7a4
CRs-Fixed: 2848736
2021-01-07 19:11:21 -08:00
Arun Kumar Khandavalli
9363ae40ff qcacld-3.0: Release the vdev reference in pmo
In pmo_core_configure_dynamic_wake_events vdev reference is acquired
and its not released leading to the reference leak, leading to
vdev destroy timeout.

Release the vdev reference to resolve the issue.

Change-Id: Idd3bcb366f211e037ede278c91d6bcefd4165651
CRs-Fixed: 2850076
2021-01-07 19:11:17 -08:00