Commit graph

22,173 commits

Author SHA1 Message Date
Madan Koyyalamudi
3f52765f38 Release 2.0.8.18O
Release 2.0.8.18O

Change-Id: I0e261748b68d389fe02bfac2dff0d2036cdabc54
CRs-Fixed: 774533
2021-06-02 00:44:59 -07:00
gaurank kathpalia
ed0edfaa6c qcacld-3.0: Inform userspace about stop ap
Currently the driver does not inform userspace when
there is no channel available for the SAP to restart.
This case can happen if all the channels in the spectrum
are unsafe, in NOL list, SRD etc. and the driver cannot
find a safe channel.

Fix is to inform userspace about this scenario of
driver stopping the SAP.

Change-Id: I77f7a5156c8f7b1da29023675d5a7a448be0fb92
CRs-Fixed: 2815265
2021-06-02 00:44:59 -07:00
Madan Koyyalamudi
07435288d5 Release 2.0.8.18N
Release 2.0.8.18N

Change-Id: I10af0d39dd06e4d496b9f3c0093db6c59afd4d91
CRs-Fixed: 774533
2021-06-01 23:00:59 -07:00
Karthik Kantamneni
8f4ead471f qcacld-3.0: Handle ipa pipes setup failure in wlan_ipa_uc_ol_init
When ipa setup pipes fails in wlan_ipa_uc_ol_init API,
tx buff mapping is not done but during deinit path
tx buff unmapping is called without mapping.

Fix this by resetting uc_loaded flag to false when ipa pipes
setup failure is encountered.

Change-Id: Ic34320e56cee9e60381d9203dd95e268d0ef392b
CRs-Fixed: 2957612
2021-06-01 23:00:59 -07:00
Madan Koyyalamudi
ebbb010d93 Release 2.0.8.18M
Release 2.0.8.18M

Change-Id: Ia25eab02559049ef885624daff5f85a6ec16cdbf
CRs-Fixed: 774533
2021-06-01 18:54:14 -07:00
Srikanth Marepalli
bb309c2681 qcacld-3.0: CCX roam fails due to invalid KRK and BTK Keys
Currently the KRK and BTK Keys are not copied from the supplicant
to the buffer in RSO command. Hence the NULL KRK and BTK keys are
generating invalid MIC key in Firmware for CCX roaming. And so
the CCX roam fails.
This fix copies the valid KRK and BTK keys from Session to the
ese structure in the RSO command.

Change-Id: I2f567f75dd74189becb40ec9a1f906ab0d870584
CRs-Fixed: 2958938
2021-06-01 18:54:13 -07:00
Ashish Kumar Dhanotiya
9a3263f9a9 qcacld-3.0: Add support to accept frequency for ch switch command
Currently channel switch command accepts only channel number as
parameter but with 6GHz changes channel switch can come for the
6GHz channel as well and to support 6GHz channel switch frequency
needs to be accepted as parameter.

To address above issue add support to accept frequency as
parameter for channel switch command.

Change-Id: I38978348c0d70e3e860d4644b4664f8775ecb777
CRs-Fixed: 2931485
2021-06-01 18:54:08 -07:00
Ashish Kumar Dhanotiya
a3c8090395 qcacld-3.0: Consider secondary channel list for ACS
Currently driver does not consider secondary channel list
for ACS which needs to be used for SAP related operations and
because of that in sap get freq list driver is selecting some
frequencies which are not valid for SAP operation and from
frequencies driver selects ACS frequency and gives to upper
layer resulting in an invalid ACS frequency to user space.
Now when user space tries to start ap on this frequency, SAP
doesn't come up on this frequecy as this is invalid frequency
for SAP.

To address above issue consider secondary channel list for ACS
in sap get freq list so that only valid frequencies for SAP
are selected for ACS.

Change-Id: Ic7f1cb8134615a9195884d55bfb8111898ff74cb
CRs-Fixed: 2955162
2021-06-01 18:54:04 -07:00
Madan Koyyalamudi
a78086ec60 Release 2.0.8.18L
Release 2.0.8.18L

Change-Id: Ie2c5946ccf473f725c9f6fa3a507eaaab7ca292e
CRs-Fixed: 774533
2021-06-01 07:52:21 -07:00
Abhishek Singh
989cced6ab qcacld-3.0: Fix NULL vht_caps in lim_ft_prepare_add_bss_req
In lim_ft_prepare_add_bss_req due to change
Ic4a992acfce186f7248dcc99d0c7b44ce38f099b the action was removed
but if condition was not removed. This left over if condition is
causing the vht_caps to be NULL in VHT20 case.

Fix this by removing the left over if condition so that vht_caps
is filled all the time.

Change-Id: I196fd3cfb44fa3281b9843a61242520e0888d2c4
CRs-Fixed: 2958411
2021-06-01 07:52:21 -07:00
Madan Koyyalamudi
898f27c21c Release 2.0.8.18K
Release 2.0.8.18K

Change-Id: Iee46b3323911cd77b2b2afaa6fa05402e3b7206e
CRs-Fixed: 774533
2021-06-01 02:19:50 -07:00
Karthik Kantamneni
9d1a178e59 qcacld-3.0: Cleanup debug prints in refill thread
Cleanup debug prints in refill thread main loop API.

Change-Id: I9b8f7410562b2c90ad802eddca9a482014e91010
CRs-Fixed: 2950141
2021-06-01 02:19:50 -07:00
Karthik Kantamneni
dc0dda1024 qcacld-3.0: Handle Flow init ts and reo id mismatch info
When flow is added in CMEM path init time stamp is not
handled, so initialize flow init time stamp in CMEM path.

Add Fisa error print during reo id mismatch, print flow
and nbuf details which helps to debug the issue even if
local stack variables are not available in dump.

Change-Id: Ibcc44bd8558cc687279bb34267d60b9882d33a24
CRs-Fixed: 2946825
2021-06-01 02:19:46 -07:00
Madan Koyyalamudi
8945510261 Release 2.0.8.18J
Release 2.0.8.18J

Change-Id: Ic2f593cfc464a473b597b7771636fd89409facaf
CRs-Fixed: 774533
2021-05-31 22:30:51 -07:00
Srinivas Girigowda
b64f8c5d4f qcacld-3.0: Add support for SAP TWT teardown
Add support for SAP TWT teardown.

Change-Id: I108ea425e69e07ee8a3657ca5afcb436420b2626
CRs-Fixed: 2944872
2021-05-31 22:30:51 -07:00
Madan Koyyalamudi
5fb3e3dc65 Release 2.0.8.18I
Release 2.0.8.18I

Change-Id: I7e2b623e5e6607043851d3b6aa6f8ffb39672636
CRs-Fixed: 774533
2021-05-31 04:53:33 -07:00
Karthik Kantamneni
c0bf9bd9ff qcacld-3.0: Set intermediate EP vote access
Set intermediate EP vote access before host
wake up indication smp2p is sent to F.W,
this helps to avoid smp2p override.

Change-Id: I4b998ee5ea6b26921855bfbae434869fb93accf9
CRs-Fixed: 2953883
2021-05-31 04:53:33 -07:00
Madan Koyyalamudi
728582a965 Release 2.0.8.18H
Release 2.0.8.18H

Change-Id: I0d1262f34fd4c3643a25640c99c0740cca98a1c4
CRs-Fixed: 774533
2021-05-29 14:38:55 -07:00
Jianmin Zhu
7361739483 qcacld-3.0: Tx rate show as 80M after roamed to 160M AP
When roaming to 160M AP by LFR3, host will update BSS info after
received roam sync event from firmware, but 160M isn't considered
when calculate channel width.
Actually vht_op->chanWidth alone cannot decide the actual BW, we need to
check difference of center_freq0 and center_freq1 to decide 160/80+80 or
80 if vht_op->chanWidth is 1.
Fix it by copying ft_session->ch_width to BSS info which covered 160M
channel width.

Change-Id: Ic4a992acfce186f7248dcc99d0c7b44ce38f099b
CRs-Fixed: 2954900
2021-05-29 14:38:55 -07:00
Madan Koyyalamudi
ce6b757426 Release 2.0.8.18G
Release 2.0.8.18G

Change-Id: I92768452114adf482288e41a1407133956e8fcc5
CRs-Fixed: 774533
2021-05-28 14:14:49 -07:00
Jyoti Kumari
fcb3e606e5 qcacld-3.0: Send separate TWT disable cmd based on req/res role
Currently, the same twt disable api hdd_send_twt_disable_cmd()
sends to firmware for both requestor and responder role.

As part of this change, decouple disable api based on requestor
and responder role as per below:
for requestor: hdd_send_twt_requestor_disable_cmd()
for responder: hdd_send_twt_responder_disable_cmd()

Change-Id: Ib92b0fa46dde78dec0d5b7ca914d018c7c0970e5
CRs-Fixed: 2937591
2021-05-28 14:14:48 -07:00
Srinivas Girigowda
1b548ad89d qcacld-3.0: Separate TWT enable command wrt req/res role
1. Currently, the same twt enable api hdd_send_twt_enable_cmd()
sends to firmware for both requestor and responder role.

2. When firmware receives enable command, it will be busy to
handle that command. If any back to back enable command, it can
lead to some issues.

As part of this change, decouple enable api based on requestor
and responder role as per below:
for requestor: hdd_send_twt_requestor_enable_cmd()
for responder: hdd_send_twt_responder_enable_cmd()

Synchronize twt enable command to avoid back to back command
issue.

Change-Id: I3d3840740fee7413d6123ece919c42558e9b35d1
CRs-Fixed: 2937540
2021-05-28 14:14:44 -07:00
Yeshwanth Sriram Guntuka
2970e56e14 qcacld-3.0: Dynamically control rx aggregation based on ingress filter
Add support to dynamically control rx aggregation based
on clsact ingress filter addition or deletion. Disable
GRO/FISA when the filter is configured and enable GRO/FISA
back when there is no filter configured.

Change-Id: I462f62edf0acd191b57f40800118567edb2ac82d
CRs-Fixed: 2952276
2021-05-28 14:14:40 -07:00
Madan Koyyalamudi
065c9e17a4 Release 2.0.8.18F
Release 2.0.8.18F

Change-Id: I1ba52c4a97da44a28cfa2e8bb0ff371fb9e91b92
CRs-Fixed: 774533
2021-05-28 04:51:47 -07:00
Pragaspathi Thilagaraj
1167f84877 qcacld-3.0: Don't send roam init for P2P vdev
Roam offload init command should be sent to firmware only
for STA mode. For P2P vdev, if roam init command is sent,
it causes abnormal target behavior.

Don't send roam init command if the vdev opmode is not
Station.

Change-Id: I0bfc3c6b4bc2eef7459b092101bc4d72c68761e5
CRs-Fixed: 2924563
2021-05-28 00:09:09 -07:00
Madan Koyyalamudi
8ffe71f64e Release 2.0.8.18E
Release 2.0.8.18E

Change-Id: Idac9edcfacbc418124cee1c13be279dfd79f7190
CRs-Fixed: 774533
2021-05-27 19:59:32 -07:00
Ashish Kumar Dhanotiya
f61fd3c4c5 qcacld-3.0: Add ini support to enable NAN on indoor channels
Currently there is no  support to enable NAN on indoor channels,
as per the new requirement add an ini support to enable NAN on
indoor channels.

Change-Id: Ia3acbc133cab4865d8ad69992e893be91439f50f
CRs-Fixed: 2943668
2021-05-27 19:59:32 -07:00
Madan Koyyalamudi
24e6b3951a Release 2.0.8.18D
Release 2.0.8.18D

Change-Id: I9a82bea0ec69bb6935e22386bc33b0714fe77b91
CRs-Fixed: 774533
2021-05-24 19:32:49 -07:00
Pragaspathi Thilagaraj
ce0ba24dcb qcacld-3.0: Fix incorrect marking
Fix incorrect marking.

Change-Id: I2a1b1db91e5bb4efa516cf8a559ee78f4c38eed6
CRs-Fixed: 2949091
2021-05-24 19:32:49 -07:00
Madan Koyyalamudi
f2c0f32768 Release 2.0.8.18C
Release 2.0.8.18C

Change-Id: I1b953c74abfa6a85af76bc3d0889eea567d8c1e7
CRs-Fixed: 774533
2021-05-24 10:40:09 -07:00
Pragaspathi Thilagaraj
c946708a23 qcacld-3.0: Add new roam scan type string
Add new roam_scan type string to indicate all the 5G+6G
channels are scanned.

Change-Id: I8f77b9b28d5b544d586612e177c86a3b730b0bd9
CRs-Fixed: 2947645
2021-05-24 10:40:09 -07:00
Liangwei Dong
087d75e7c9 qcacld-3.0: Fix sap started on unsupported channel
In wlan_hdd_validate_operation_channel, "status" is override
to QDF_STATUS_SUCCESS after "ucfg_mlme_get_sap_allow_all_channels"
call. Reset "status" to QDF_STATUS_E_INVAL before checking
with supported channel list, otherwise QDF_STATUS_SUCCESS
will be returned for unsupported channel case.

Change-Id: Ibc3396eb89634b0efc77262e90427510d26e0f39
CRs-Fixed: 2946475
2021-05-24 10:40:03 -07:00
Madan Koyyalamudi
64b2096411 Release 2.0.8.18B
Release 2.0.8.18B

Change-Id: I2f6d15340d94ce3e5191b11ff256fe2c4e68d5c4
CRs-Fixed: 774533
2021-05-21 16:23:54 -07:00
Bapiraju Alla
9835ff5060 qcacld-3.0: Add panic when net dev ref leak is detected
Currently, there is no panic when there is a net dev reference
leak. To catch the reference leak at the early stage, trigger
panic immediately after reference leak is detected.

Change-Id: Icbdd090dab50c8f695b5354c405f0506adce119d
CRs-Fixed: 2911563
2021-05-21 16:23:54 -07:00
Madan Koyyalamudi
8d94116859 Release 2.0.8.18A
Release 2.0.8.18A

Change-Id: I76db55b9dc3f1e9e114380cacd91133e96620d77
CRs-Fixed: 774533
2021-05-21 11:09:34 -07:00
Bapiraju Alla
d0922e4b67 qcacld-3.0: Don't set SURVEY_INFO_NOISE_DBM when noise floor is zero
Currently host is sending noise floor as 0, even if channel info
event is not received from FW. This is stopping user space derive
noise floor information from other parameters like bandwidth.

To address this, do not set SURVEY_INFO_NOISE_DBM flag if the
noise floor is 0.

Change-Id: Icffdde6bce762c750200b4f1eefd17818780150e
CRs-Fixed: 2949905
2021-05-21 11:09:34 -07:00
Gururaj Pandurangi
d6ba775313 qcacld-3.0: Update Country IE to show correct number of 6G channels
Update Country IE population API so that SAP uses secondary current
channel list instead of primary, to advertise correct number of
6G channels.
One other change is in TPC power calculation API, to add STA role
check along with lim join req check, since the API was returning
without calculation for SAP.

Change-Id: I3fafe252b119a5b58f5382fcbff60eb4c19688c6
CRs-Fixed: 2946474
2021-05-21 11:09:30 -07:00
Madan Koyyalamudi
ce0bebed81 Release 2.0.8.18
Release 2.0.8.18

Change-Id: If764b2c62dca28e7368dffbe2deae393afa65847
CRs-Fixed: 774533
2021-05-20 23:09:53 -07:00
Liangwei Dong
74ed6f8a6c qcacld-3.0: Fix disconnect event missing for kernel
For reassociate case, when disconnect is triggered by
wlan_hdd_try_disconnect, then disconnect event is not
indicated to kernel in disconnect handler -
hdd_dis_connect_handler.  And if the csr_roam_connect
get failure for some reason, the kernel will only get
error code from driver connect request interface and
the connected bss information in kernel will not get
cleared. Then kernel / driver will be out of sync.
To fix that, for such csr_roam_connect failure case,
let driver return successful status code from driver
connect interface and indicate connection result failure
event to kernel to clear kernel bss information.

Change-Id: I5367262751e63c04553deeb7607cbe13c70f8e15
CRs-Fixed: 2940994
2021-05-20 23:09:53 -07:00
Madan Koyyalamudi
7a8a190b9f Release 2.0.8.17Z
Release 2.0.8.17Z

Change-Id: I9b70bf1ddad4483be4b4e849a3886bf77c917770
CRs-Fixed: 774533
2021-05-20 10:41:29 -07:00
Srinivas Dasari
590802cbec qcacld-3.0: Don't set the hw_mode to SMM if connection is in progress
Currently, hdd_vdev_destroy checks if any vdev is actively using
DBS while cleaning up the vdev. It stops the timer and sends set
hw_mode command to firmware to set the hw_mode to SMM if no vdev
is using DBS.
This causes delay in p2p interface down in below scenario,
1. Bring up both sta and p2p vdevs.
2. Initiate connection on sta to an AP which has both 2GHz and
   5GHz candidates. hw_mode would be set to DBS as one of the
   candidate is 2GHz.
3. Connection would be attempted first on 5GHz candidate if the
   5GHz candidate score is good.
4. If p2p interface is disabled while sta connection is happening,
   it stops the opportunistic timer and sets the hw_mode to SMM.
   But the command would be waiting in serialization queue as
   connect command is active currently. This is a blocking call
   and userspace thread would be stuck till connection completion/
   connection timeout(5 seconds) happens.

The above wait results delay in p2p down which in turn results
delay in wifi turn-on(as p2p down+set random mac+p2p up happens
as part of wifi turn on) and turn-off.

Don't set the hw_mode to SMM in this case as the sta connection
is in progress.

Change-Id: If286fe9bd9906eba71686cf1d50880aa065cc100
CRs-Fixed: 2926272
2021-05-20 07:29:45 -07:00
Madan Koyyalamudi
be562937f9 Release 2.0.8.17Y
Release 2.0.8.17Y

Change-Id: I64e14302e517e566339892985f7516fd535eb5c2
CRs-Fixed: 774533
2021-05-20 05:00:14 -07:00
Vulupala Shashank Reddy
3db5158310 qcacld-3.0: Fill he and vht parameters for packet capture mode
Fill he and vht parameters in data tx and rx packets for packet
capture mode to update in radio tap header.

Change-Id: I229fc41657456b9ab5d8a2dfce1cdd039b624fcb
CRs-Fixed: 2942108
2021-05-20 05:00:14 -07:00
Vulupala Shashank Reddy
3592e1c973 qcacld-3.0: Fix Frequency for data rx packets in packet capture mode
Currently centre frequency filled in data rx packets for packet
capture mode. Need to fill base frequency so filling frequency
from connection policy manager.

Change-Id: I79abe4e8a27a853c156eff8618be2f280fc54e78
CRs-Fixed: 2942107
2021-05-20 05:00:10 -07:00
Abhishek Ambure
f56674e2b9 qcacld-3.0: Update OFDM rates only if oper freq is 5GHz
In PE session, host updates supported rates from beacon IE stored
in BSS descriptor. If OFDM rates are present in beacon while
operating frequency is not from 5GHz band, host copies them into
PE session's supported rated.
Hence add a check to avoid adding OFDM rates while operating
frequency is not 5GHz.

Change-Id: Ia3b39b31269b79e6d1f96d3a0bddb185597c0303
CRs-Fixed: 2948058
2021-05-20 05:00:06 -07:00
Madan Koyyalamudi
db109bfa2f Release 2.0.8.17X
Release 2.0.8.17X

Change-Id: I68c27bcf9a9249705d363a04d8b9affb85aed98d
CRs-Fixed: 774533
2021-05-20 00:52:47 -07:00
Manikanta Pubbisetty
770ae51159 qcacld-3.0: consider aggregated packets for packet drop
Currently, in the DP RX thread packet drop logic, the aggregated
packet as a whole is considered as one single packet. An aggregated
packet can hold anywhere between 2-16 packets, considering it as
a single packet will make the entire drop logic incorrect.

Consider all packets in the aggregate while computing the number of
enqueues & dequeues to fix the problem.

Change-Id: I70e65bcdfdbaf7821b36606ac6eeae61eaca7406
CRs-Fixed: 2948104
2021-05-20 00:52:47 -07:00
Madan Koyyalamudi
4baa4feae8 Release 2.0.8.17W
Release 2.0.8.17W

Change-Id: I41618663ecc99f2a5d4737e5843496704e2cc648
CRs-Fixed: 774533
2021-05-19 22:40:44 -07:00
Arun Kumar Khandavalli
6c1722233f qcacld-3.0: Remove obselete wma_needShutdown code
wma_needShutdown related code is now obselete, during the cds_preenable
failure, this is obselete code is being invoked which is setting
wma->needShutdown. If the same is set the wma_close will not be
inokved resulting in the reference leak of of pdev object.

Remove obselete wma_needShutdown code.

Change-Id: Ia1463c9197593165eb5844e154f78fe3fe278fbd
CRs-Fixed: 2947133
2021-05-19 22:40:44 -07:00
Madan Koyyalamudi
fa1d4504de Release 2.0.8.17V
Release 2.0.8.17V

Change-Id: Ia6bee4c8fd0c50de44456a1f2aa030b812e84444
CRs-Fixed: 774533
2021-05-19 13:31:08 -07:00