Commit graph

21,730 commits

Author SHA1 Message Date
snandini
d40fa54cc8 Release 2.0.8.12E
Release 2.0.8.12E

Change-Id: I2d8762e25b83f7117ac26b86dd62569c33e20eef
CRs-Fixed: 774533
2021-03-06 23:41:33 -08:00
Bapiraju Alla
7ad9b94a09 qcacld-3.0: Don't create vdev sync for pre CAC adapter again
Currently, for every pre CAC request a new vdev sync is getting created
and it will be destroyed only when SAP is stopped. So, there is a possible
memory leak if a valid pre CAC request is issued second time without SAP
stop.

To avoid this, don't create vdev sync for pre CAC request if pre CAC
adapter already exist.

Change-Id: If3f65648645b6801a1504a2d184dbc6928ff4771
CRs-Fixed: 2891360
2021-03-06 23:41:33 -08:00
snandini
adca116282 Release 2.0.8.12D
Release 2.0.8.12D

Change-Id: Ief7c0bfa1be86d4e743c4966f70375d1f25230c7
CRs-Fixed: 774533
2021-03-05 19:32:12 -08:00
Lincoln Tran
0d24bce1ac qcacld-3.0: Move regulatory event initializtion
Currently, the regulatory update event is created in
hdd_regulatory_init. In some cases, the country can be set before this
function, causing a crash. Move the event creation to before the country
setting logic.

Change-Id: I344d0de71f1983b3da7b47b816d6bbb0e402cbe8
CRs-fixed: 2891434
2021-03-05 19:32:11 -08:00
snandini
903070976f Release 2.0.8.12C
Release 2.0.8.12C

Change-Id: If771f5391a75a1adb4471c59111dbb149b7a817e
CRs-Fixed: 774533
2021-03-05 17:11:45 -08:00
Srinivas Girigowda
5d3a483424 qcacld-3.0: Fix possible NULL pointer dereference in hdd_twt_configure
Fix possible NULL pointer dereference in hdd_twt_configure.

Change-Id: If7e38923e3d5af0f99be0c7260df6437c4a021ac
CRs-Fixed: 2891438
2021-03-05 17:11:45 -08:00
Srinivas Girigowda
1fcd7befb1 qcacld-3.0: Add support for not in range and IE validation status code
Add support for TWT AP params not in range and IE validation failed
status code.

Change-Id: I939db5388c4e7aac86484b319638a57baf83171e
CRs-Fixed: 2888847
2021-03-05 17:11:41 -08:00
Madhvapathi Sriram
6cded05958 qcacld-3.0: twt_responder support advertisement in assoc resp
TWT responder support should be announced, if enabled, in the
Extended capabilities IE.

Change-Id: I1355a9ddf2fe0361cb542b4c49b754d8f8a158fc
CRs-Fixed: 2884862
2021-03-05 17:11:36 -08:00
snandini
8641cb2daa Release 2.0.8.12B
Release 2.0.8.12B

Change-Id: I9fb5efbb8abc5967b52dd670bc98edb99846eb30
CRs-Fixed: 774533
2021-03-05 00:02:29 -08:00
Deeksha Gupta
511055399f qcacld-3.0: Set command_in_progress before post the msg to WMA
Currently, in TWT after posting the msg via sme to WMA
using scheduler thread. Based on the success or failure
driver set the command_in_progress so that subsequent
commands can be rejected till the current command is completed.
There is a chance, context might be broken because of this,
command_in_progress is not set.
Set the command_in_progress before posting
the msg and if there is an error then again set the
command_in_progress as NONE.

Change-Id: If9dc4bd346178d49d5d940ecf8ae008969cb1e73
CRs-Fixed: 2886135
2021-03-05 00:02:29 -08:00
snandini
380dff8477 Release 2.0.8.12A
Release 2.0.8.12A

Change-Id: Ifd948cb15a8cedb10393ff78e31cc8f95c13c084
CRs-Fixed: 774533
2021-03-04 18:28:50 -08:00
Srinivas Girigowda
4e5778acd9 qcacld-3.0: Fix memory leak in TWT add dialog event handler error cases
Fix memory leak issues in TWT add dialog event handler error cases
before returning from the function.

CRs-Fixed: 2890261
Change-Id: Ia367084a3919be9275e1b5e327f79a1d43df3803
2021-03-04 18:28:50 -08:00
snandini
ddf92ee3a4 Release 2.0.8.12
Release 2.0.8.12

Change-Id: I0d9a377a2dc9e03263d6f99d4a19df548cb2c8a6
CRs-Fixed: 774533
2021-03-04 11:32:05 -08:00
Huashan Qu
10e5a62cf6 qcacld-3.0: Remove old rso path code [PART 1]
Since new rso ROAM_OFFLOAD_V1 path is enabled, remove
the old rso path code for file wma_scan_roam.c.

Change-Id: Ib50d49c566d9aaf124f2eecebe4b652dcbb3b5df
CRs-Fixed: 2807015
2021-03-04 11:32:05 -08:00
snandini
a4a81d97b2 Release 2.0.8.11Z
Release 2.0.8.11Z

Change-Id: Iaf4d2aa82107649506e3e644bb1f1045febd5fe9
CRs-Fixed: 774533
2021-03-04 09:23:11 -08:00
Huashan Qu
f386197c9f qcacld-3.0: Enable RSO ROAM_OFFLOAD_V1 path for all configs
Enable roam scan offload ROAM_OFFLOAD_V1 path for all configs.

Change-Id: Id3386c2f391f98fb67734fdd17919782d0240f18
CRs-Fixed: 2798357
2021-03-04 09:23:11 -08:00
snandini
f22d7227eb Release 2.0.8.11Y
Release 2.0.8.11Y

Change-Id: I6734b26a3664364a13c5c085569059e9523bd359
CRs-Fixed: 774533
2021-03-03 19:16:12 -08:00
Dundi Raviteja
093247e47e qcacld-3.0: Reduce stack frame size in lim_send_tdls_dis_req_frame
Reduce stack frame size of lim_send_tdls_dis_req_frame()
by allocating dynamic memory to tDot11fTDLSDisReq.

Change-Id: Iac065fbfeecd978dc212e84cfe686fea77a10ed5
CRs-Fixed: 2847109
2021-03-03 19:16:12 -08:00
snandini
209b6bcb44 Release 2.0.8.11X
Release 2.0.8.11X

Change-Id: I5b73ee29eb1ce331ec336c9b882dc9eb241c2a97
CRs-Fixed: 774533
2021-03-03 10:05:36 -08:00
Bapiraju Alla
1440b36957 qcacld-3.0: Reduce console logging from tasklet
Currently, WoW wakeup host event is handled in tasklet context and
it is taking more than 800ms to execute. This is due to excessive
logging to the console from the tasklet. As a result of this, IRQs
are getting blocked during this tasklet execution.

To avoid this, add a sysfs entry to enable/disable console logging
from host wakeup event based on requirement.

Change-Id: If91a8bd5f783f358dabf9dcf46bf4c50d05d7909
CRs-Fixed: 2881972
2021-03-03 10:05:36 -08:00
snandini
dbfa8c1275 Release 2.0.8.11W
Release 2.0.8.11W

Change-Id: Id3fd76a3662176e2497125d033ddbf765c00d6c7
CRs-Fixed: 774533
2021-03-03 07:36:44 -08:00
Mohammed Siddiq
bda2c4be27 qcacld-3.0: Add pld api to get PCI reg dump on SSR
Add pld api to get PCI register dump on FW crash due
to PCI bus failure.

Change-Id: Ie30edbe2c60b0e71912667491c9fadbbe92373c4
2021-03-03 07:36:44 -08:00
snandini
feb91356af Release 2.0.8.11V
Release 2.0.8.11V

Change-Id: I734ef0985934117d1fdb4a065d874b6fdd615021
CRs-Fixed: 774533
2021-03-02 23:41:52 -08:00
Srinivas Girigowda
1f44d239af qcacld-3.0: Inform teardown all TWT sessions in P2P client mode
When SSR happens, Inform the user space about teardown all TWT sessions
in P2P client mode also.

Change-Id: I190529724519a2520dfa190fcb10cafc398745a5
CRs-Fixed: 2879404
2021-03-02 15:57:53 -08:00
Srinivas Girigowda
6a80c77084 qcacld-3.0: Inform teardown all TWT sessions when SSR happens
When SSR happens, Inform the user space about teardown all TWT sessions.

Change-Id: I2bb321bacac02291bbea1f22e231669d911c53e7
CRs-Fixed: 2870599
2021-03-02 15:57:50 -08:00
snandini
9147cf4a2e Release 2.0.8.11U
Release 2.0.8.11U

Change-Id: I9d08d6c13eefc367a2c616b2c83496be8e4ba68f
CRs-Fixed: 774533
2021-03-02 05:51:28 -08:00
Jyoti Kumari
0a5dffb53e qcacld-3.0: Enhance existing ILP profiles setting
Currently, there are two ini option 0/1 to disable/enable ILP
profiles in HW.

Extend this option upto 3 where
0 indicates disable
1 indicates perf settings
2 indicates max power saving
3 indicates balanced settings

Change-Id: Iff41b92b84309a670e2ad301ee72fb3caaba3df3
CRs-Fixed: 2886526
2021-03-02 05:51:27 -08:00
Abhishek Singh
5b02cde5b3 qcacld-3.0: Remove disconnect event indication to kernel
As part of devices recovery, driver sends disconnect event
indication to kernel for all the interface but kernel does
not expects for NAN interface due to which frequent call trace
observed during NAN test.

Remove disconnect event indication from hdd_start_all_adapters()
and move this logic under SSR.

Change-Id: Ifa62a58264fa7c7247f8c0aa8f0ed33138572dd8
CRs-Fixed: 2848186
2021-03-02 05:51:23 -08:00
snandini
7eae7643d5 Release 2.0.8.11T
Release 2.0.8.11T

Change-Id: I0e98ee6727bf667489b8167c078321f58a228803
CRs-Fixed: 774533
2021-03-01 20:41:42 -08:00
Lincoln Tran
0af3ea008c qcacld-3.0: Add synchronization around country set
When the country is being updated via WMI, FW responds with a channel
list after some time. During this time, another event can come, blocking
the channel list from being updated. Add synchronization so that these
requests are blocked until the channel list is updated.

Change-Id: I4c1b7d33242226b8153821fdc14db54fff764c17
CRs-fixed: 2884840
2021-03-01 17:08:27 -08:00
snandini
47ddbb988e Release 2.0.8.11S
Release 2.0.8.11S

Change-Id: Idbe348bfbf2ba5837487517138a134cc8b09c2e6
CRs-Fixed: 774533
2021-03-01 15:49:28 -08:00
Vevek Venkatesan
b61b5a6186 qcacld-3.0: drop the Tx pkt if device is in system suspend
During suspend if the netif queue pause failed for some reason,
network stack may send the pkt for hard_start_xmit and will
crash due to device is in suspend state, so adding a check to
drop the pkt if device was already in system suspended.

Change-Id: I5b8f5511157f10e28297be4366fafe6e683c392b
CRs-Fixed: 2880892
2021-03-01 10:11:00 -08:00
snandini
d307f3e36b Release 2.0.8.11R
Release 2.0.8.11R

Change-Id: I70309ca6c8fdc4c1f70322663a8ad3b9d7addc46
CRs-Fixed: 774533
2021-02-28 23:09:53 -08:00
Pragaspathi Thilagaraj
d8505816d0 qcacld-3.0: Update peer TWT capabilities after roaming
While processing the roam synch indication reassoc response frame,
the new roamed peer object is not created. So call to
mlme_set_twt_peer_capabilities() to update the new peer capabilities
will fail with null peer object for new bssid. So after roaming,
update the peer TWT capabilities once the new peer object is
created.

Update peer TWT capabilities to new peer object after roaming to
avoid invalid peer capabilities.

Change-Id: Ic37bd4d96bf122b2ec3a60c1ae41650a672b9020
CRs-Fixed: 2870589
2021-02-26 08:12:50 -08:00
snandini
5ca1bd4034 Release 2.0.8.11Q
Release 2.0.8.11Q

Change-Id: I5cd47bfda1f8da2e74fe731efd993da92319d458
CRs-Fixed: 774533
2021-02-26 00:55:50 -08:00
Utkarsh Bhatnagar
d5b7105282 qcacld-3.0: Fill MCS rates of peer for TDLS
Fill MCS rates of peer for TDLS change station.

Change-Id: I9d3306ec6ec2d876dadede60a616b2fcaf46236a
CRs-Fixed: 2886245
2021-02-26 00:55:50 -08:00
Utkarsh Bhatnagar
dfb5f06bf6 qcacld-3.0: Introduce 11ax capabilities for TDLS
Introduce HE cap IEs in addstareq. Also, Add
HE capabilities in frames for TDLS Setup Req,
Setup Rsp, Discovery Rsp. Add He Operations
in TDLS setup Confirm.
Implement APIs under feature WLAN_FEATURE_11AX
which will be used to:
1) Fill HE capabilities in TDLS Discovery Response,
   TDLS Setup Request, TDLS Setup Response.
2) Fill HE operations in TDLS Setup Confirm.
3) Convert he_capa capabilities from station
   parameters to tdls tDot11fIEhe_cap type.
4) Set Chan width based on session, peer
   capabilities.

Change-Id: If36b1a3c3eed0e6026043494a097673f9d74b580
CRs-Fixed: 2883443
2021-02-26 00:55:46 -08:00
snandini
6416966df9 Release 2.0.8.11P
Release 2.0.8.11P

Change-Id: I2927c82b5ea88c4cdcddae24bafbaa93c45ac192
CRs-Fixed: 774533
2021-02-25 20:23:22 -08:00
Lincoln Tran
981b3b42d3 qcacld-3.0: Fix country IE validation logic
Update the logic to fix a potential memory leak when there is an
invalid country IE. Also update the logic to not reject the connection
in the case of an invalid country IE, since this is a bad user
experience.

Change-Id: I6a2b50a483e65554a6622dccbb0bac61331fc4fb
CRs-fixed: 2883385
2021-02-25 20:23:22 -08:00
Lincoln Tran
f493ef7ef4 qcacld-3.0: Add fixes related to 6ghz vlp feature
Fix the PSD start freq calculation for sap case.
Also, remove duplication of 6ghz freq checks in
tpc power calculation api.

Change-Id: I5f1773b551ff7b893514b5c7720c6684fc100077
CRs-fixed: 2879460
2021-02-25 20:23:17 -08:00
Gururaj Pandurangi
08fe80c89a qcacld-3.0: Fix issues related to 6ghz vlp feature
Call TPC calculation API from lim_handle_add_bss_rsp i.e.
after receiving vdev start response from FW.
TPC calculation API was called from lim_mlm_add_bss for SAP
and since this was happening before host received vdev start
response, HW limit for power from FW was zero and it
affected TPC calculation.
Also, API to check psd power flag for 6ghz returns true for
5ghz channels, so modify it to call under 6ghz channel check.
In TPE IE, max_tx_power_count values is one less than
num_pwr_levels so add 1 to count before assigning it to
num_pwr_levels for 5GHz TPE, non-PSD case.

Change-Id: I7e2ca0b6cf6c54528ade6263a87459e2c21098b2
CRs-Fixed: 2877654
2021-02-25 20:23:12 -08:00
Gururaj Pandurangi
3c26aa49a5 qcacld-3.0: Add backward compatibility for old TPC event
Host will send TPC power to FW via new WMI cmd
WMI_VDEV_SET_TPC_POWER_CMDID going forward instead of
WMI_VDEV_PARAM_TX_PWRLIMIT to accommodate even 6GHz channels.
But, to support backward compatiiblity for New Host+old FW
the TPC power will be sent to FW via old WMI cmd with the
help of a service bit.

Change-Id: I9324299ca4f92f2adce92983385b66c04368fe55
CRs-Fixed: 2872238
2021-02-25 20:23:08 -08:00
Lincoln Tran
675235a149 qcacld-3.0: Process country and TPE IE
Validate and process the country IE from the beacon frame.
Validate and process the TPE IE. Store the tx power values in the
vdev_mlme struct for future processing.

Change-Id: I57acca2257a263225d9bafb0f94e195a99224a60
CRs-fixed: 2841732
2021-02-25 20:23:03 -08:00
Gururaj Pandurangi
b0096c4477 qcacld-3.0: Add TPC calculation logic to obtain max tx power
Add new lim api to calculate an array of tx power values. Include
hw limit from Fw and TPE values from IE along with existing
params to determine TPC power.
The new struct reg_tpc_obj in vdev_mlme object will contain max
tx power, center frequencies, number of power levels,
PSD power check, EIRP power, AP power type for 6G and TPE
power values and will be sent to FW via new WMI cmd
WMI_VDEV_SET_TPC_POWER_CMDID.

Change-Id: I80a2454c2ef0dbc3b1d69e8b233b1a56567ec1a1
CRs-Fixed: 2841873
2021-02-25 20:22:58 -08:00
Gururaj Pandurangi
0aae9ef6c1 qcacld-3.0: Handle AP power type in he_ops IE for 6GHz
Parse reg_info subfield present in he_ops IE from beacon on
6GHz channels to obtain AP's power type for STA.
In case of SAP, get the AP power type from SAP decision
engine and populate it in dot11f API.

Change-Id: Iec317ea35936e7a5c2372d1188fe5940afb0c28d
CRs-Fixed: 2869367
2021-02-25 20:22:54 -08:00
Gururaj Pandurangi
dd2b8dc1a8 qcacld-3.0: Add TPE IE to beacon frame structure
Add TPE IE to beacon frame struct tDot11fBeacon.

Change-Id: Ibc6bf166ee2830cc253bde3788569f5a49225458
CRs-Fixed: 2864125
2021-02-25 20:22:50 -08:00
Gururaj Pandurangi
1bc782ae31 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-02-25 20:22:46 -08:00
Amar Singhal
efdd75523f qcacld-3.0: Modify TPE information elements for 6ghz
Re-write TPE IE populating code. For 6ghz AP, there can be multiple
TPE IEs.The TPE IE can be of type PSD or non-psd.

Change-Id: I029d4826cbc73abb382d885260c355217b2cc6b4
CRs-Fixed: 2863009
2021-02-25 20:22:42 -08:00
Amar Singhal
46b1af6a2e qcacld-3.0: modify populate_dot11f_country for 6 ghz
For SAP, country IE takes different input for 6ghz channels.
for 6 ghz, we need to add operating class triplet also. So, before
the sub-band triplet, operating class triplet needs to be added.

Change-Id: I43d37d0f23276dbe7fed35d8c2251d9e15b16fa9
CRs-fixed: 2862999
2021-02-25 20:22:38 -08:00
Lincoln Tran
46d53fb739 qcacld-3.0: Add INI for TPE preference
When the TPE IE comes to driver, there could be information for both
local and regulatory. Add an INI for preference in the case that both
sets are present.

Change-Id: I4b37123569f422863fc805063974c65878a9baea
CRs-fixed: 2854774
2021-02-25 20:22:33 -08:00