Commit gráf

20571 Commit-ok

Szerző SHA1 Üzenet Dátum
Srinivas Girigowda
7e11aadd9d qcacld-3.0: Replace QDF_TRACE(QDF_MODULE_ID_SAP,...) with sap log macros
qcacld-3.0: Replace QDF_TRACE(QDF_MODULE_ID_SAP,...) with
sap_{debug|info|warn|err|alert()}

CRs-Fixed: 2755126
Change-Id: I58ef919175e0043b8a5a60c7a14e4ca3e672cb84
2020-08-28 13:03:36 -07:00
snandini
236b0497f4 Release 5.2.0.200M
Release 5.2.0.200M

Change-Id: I2b62721cdd77588c5e902973652d3d93436d2e2e
CRs-Fixed: 774533
2020-08-28 08:53:45 -07:00
Amruta Kulkarni
697f1926d1 qcacld-3.0: Send multiple ssid probe req to same bss during join procedure
In some instances, AP does not respond to probe req
causing join timeout at STA and no connection.
To solve this,send multiple probe requests(every 200ms)
to AP until join failure timeout(1 sec) expiry,
if single bssid case retry same bss again
(configurable via ini, max allowed tries 2).

Change-Id: I7a7eeedcc24db1a74cd186ff957c638a39cdea6d
CRs-Fixed: 2763815
2020-08-28 08:53:45 -07:00
Abdul Muqtadeer Ahmed
02a1f113c8 qcacld-3.0: Purge shutdown notifier during modules close
During the driver initialization if there is any issue,
in the error path the shutdown notifiers are not getting freed.

To resolve the issue purge the shutdown notifier before the
stop modules.

Change-Id: I51b20e5cddf558bb366b46f0650ac65754f23dcd
CRs-Fixed: 2761406
2020-08-28 08:53:41 -07:00
snandini
1979c395f1 Release 5.2.0.200L
Release 5.2.0.200L

Change-Id: Idc0e2654c6aa6a70ce16889f8e6da0f0a5ca20db
CRs-Fixed: 774533
2020-08-28 06:35:36 -07:00
Arun Kumar Khandavalli
78693e0c2b qcacld-3.0: Add beacon stats support for the p2p
Beacon stats are supported for both STA and P2P client devices,
with the changes to move the sysfs creation on interface this is
regressed.

Add the support back for beacon stats creation for p2p.

Change-Id: Ia329752cc5d4f0a338395d9416b8d444417ea567
CRs-Fixed: 2764053
2020-08-28 06:35:36 -07:00
Min Liu
416789ae60 qcacld-3.0: Debug logs for wifi configuration vendor command
Add more debug logs for wifi configuration vendor command.

Change-Id: I0b5735fcd59071d044f7964c9629aa78b99d41c3
CRs-Fixed: 2762199
2020-08-28 06:35:32 -07:00
Arun Kumar Khandavalli
97a23a462f qcacld-3.0: Reduce log level in uevent callback
Uevent callback from the platform driver could be called
in the interrupt context. Logging in the interrupt context
could result in thread taking more time resulting in
other system issues. Hence reduce the loglevel so that log
would be sent to the logging thread instead of console.

Change-Id: Ia07325d5bc00603c5b6cf1e0f98256997526edec
CRs-Fixed: 2756175
2020-08-28 06:35:28 -07:00
snandini
4daca42801 Release 5.2.0.200K
Release 5.2.0.200K

Change-Id: I673b26078cd4f5440942f9caa5b7339fca49475d
CRs-Fixed: 774533
2020-08-27 18:37:00 -07:00
Srinivas Dasari
fb7989e27a qcacld-3.0: Send nan enabled/disabled flag of SRD channels to fw
Check if NAN SRD operation is enabled in the ini
"etsi13_srd_chan_in_master_mode" and send the same to firmware
for all SRD channels.

Change-Id: I2aa8fd34c67b2061963b62a34d29c73740af3a76
CRs-Fixed: 2748455
2020-08-27 18:36:59 -07:00
gaurank kathpalia
f955b44a6d qcacld-3.0: Enable/Disable SRD support for vdev
Currently the driver enables the SRD channels
support for both P2P_GO and SAP if the SRD master
mode is enabled.

Have individual ini values to enable/disable
the SRD channel for each op-mode as required.

Change-Id: If6e66996ed19dacbde7f71a6702f378a7e9a273c
CRs-Fixed: 2748446
2020-08-27 18:36:55 -07:00
Jinwei Chen
b79fd0c6ec qcacld-3.0: Fix DP thread stuck issue due to rtnl lock
scenario:
(1) thread A is doing hdd_stop_adapter() and the caller outside of
hdd_stop_adapter will acquire the rtnl lock, dp_vdev_detach_wifi3()
in hdd_stop_adpater() will notify DP thread B flush stack GRO frames
and wait DP thread B response/set vdev delete event.
(2) but if DP thread B is under processing RX frames and do local
ARP check for ARP request, it will wait and try to acquire rtnl
lock as well, dead lock happened. Until thread A wait vdev delete
event timeout and corressponding net_dev/hdd_adapter is freed, then
DP thread B get chance to acquire rtnl lock but hdd_adapter/net_dev
has been freed, hit panic.

Use rtnl_trylock() instead of rtnl_lock() in hdd_is_arp_local(),
if rtnl_trylock() failed, assume this is local ARP and return,
else do the local ARP checking same as before.

Change-Id: Ic6724b68f6e09e9d139c430396e4c76bf483d033
CRs-Fixed: 2760979
2020-08-27 18:36:51 -07:00
snandini
e0b0cd7445 Release 5.2.0.200J
Release 5.2.0.200J

Change-Id: Ibaa8eb67f9330c5fa905912cc27e7dc6d5250be5
CRs-Fixed: 774533
2020-08-27 02:05:35 -07:00
Madhvapathi Sriram
fce3c2b2b4 qcacld-3.0: Add support to configure rate mask to cap phy rate
The ini ratemask_type and ratemask_set can be used to limit
the maximum phy rate. The ratemask_type is used to select
the phy mode and the ratemask_set to select desired NSS and MCS.

It can be used to optimize link performance.

Change-Id: Ia5c9f3a80eb93710bdcf53dabc4a45e554753b01
CRs-Fixed: 2758859
2020-08-27 02:05:35 -07:00
snandini
fd6093151e Release 5.2.0.200I
Release 5.2.0.200I

Change-Id: I997ba51e881e36e706e1e624402b5a8704d1b7fc
CRs-Fixed: 774533
2020-08-26 19:49:36 -07:00
Abhishek Ambure
afe7df01d8 qcacld-3.0: Add support to process freq in driver cmd
Host add support to process frequency if user sends frequency in
place of channel number in driver commands i.e. REASSOC,
SENDACTIONFRAME, FASTREASSOC.

Change-Id: I6e6d15a237d9bb1a973e9f42772c2f02e32fc585
CRs-Fixed: 2760074
2020-08-26 19:49:36 -07:00
snandini
f10ed8133d Release 5.2.0.200H
Release 5.2.0.200H

Change-Id: I346f9e6ed64f962d9286ec8fb25e3bec1b613d31
CRs-Fixed: 774533
2020-08-26 17:19:14 -07:00
Pragaspathi Thilagaraj
6737b67acf qcacld-3.0: Invoke wma_remove_peer() in HO fail vdev stop resp path
In LFR3 Handoff failure case, data path peer teardown is not
done prior to cdp peer delete and this causes bug_on to be
triggered during cdp peer delete.

Fix is to invoke wma_remove_peer() in vdev stop response path
with ho_failed flag set.

Change-Id: I112b2e8fe1792a967c48138113766b649ee1ba26
CRs-Fixed: 2760180
2020-08-26 17:19:14 -07:00
snandini
6959f26dcf Release 5.2.0.200G
Release 5.2.0.200G

Change-Id: Ica856c9b29eb3bdb07e457e4bb82b599fd705127
CRs-Fixed: 774533
2020-08-26 14:32:04 -07:00
Srinivas Girigowda
354fd80768 qcacld-3.0: Avoid overflow of the output buffer
The 2nd parameter to qdf_scnprintf() represents size of the buffer.
If 'size' bytes is written in to the output buffer then for the next
subsequent qdf_scnprintf() 'size' bytes must be substracted from the
size of the output buffer.

The problem in this code is, 2nd parameter is mentioned as PAGE_SIZE,
but instead it should be PAGE_SIZE - size.

Change-Id: I82c6b4a279eb912c693a4f026c2f672902ce3f76
CRs-Fixed: 2760078
2020-08-26 14:32:04 -07:00
Kiran Kumar Lokere
6ae664ed6c qcacld-3.0: Add configuration support for vdev dot11 mode
Add user configuration support to configure dot11 modes for
different vdev types.

Change-Id: I338d9d76f000195d1798bbc8b3b7ff1fb33ee305
CRs-Fixed: 2760240
2020-08-26 14:32:00 -07:00
Ashish Kumar Dhanotiya
59d4af5c85 qcacld-3.0: Continue the driver load on set band failure
Currently driver does the pdev close on set band failure at
the time of load which results in driver load failure.

To avoid above issue, do not close pdev and continue the
driver load smoothly.

Change-Id: I0977336b57126b299bd40dd6c18d9009b52454dc
CRs-Fixed: 2756716
2020-08-26 14:31:56 -07:00
snandini
b869fa0e2f Release 5.2.0.200F
Release 5.2.0.200F

Change-Id: I2e3c150b15f82c016a36c28b75455821f26b4d36
CRs-Fixed: 774533
2020-08-26 12:13:30 -07:00
Abhishek Ambure
3edba3ed86 qcacld-3.0: Prepare non-zero IV for auth seq 3 frames
If the initialization vector is zero, some IOT APs unable to decrypt
auth sequence 3 frame, which leads to disconnection. As IV is first 3
bytes of uninitialized "seed local variable", there are the changes of
having IV value as 0.
Hence host prepares non-zero initialization vector to encrypt auth
sequence 3 frame.

Change-Id: Ifc24ccc6c669bac3fc0389670580f6a9ec2672a0
CRs-Fixed: 2750718
2020-08-26 12:13:29 -07:00
Sandeep Puligilla
60352aed62 qcacld-3.0: Add interface manager module
- Add interface manager module files
- Add start_connect event processing
- Add stubs for start_connect_complete and start_bss
event processing API's

Change-Id: I24756336c6e6c9d7f3276e4039c0b7236233d45e
CRs-Fixed: 2759275
2020-08-26 12:13:26 -07:00
snandini
7e9c64ca60 Release 5.2.0.200E
Release 5.2.0.200E

Change-Id: I0b06407e05a166d849ce744e8eda0a9a06bb5d29
CRs-Fixed: 774533
2020-08-26 01:35:38 -07:00
Ashish Kumar Dhanotiya
5bf2580f79 qcacld-3.0: Change data type of the code for mac trace to uint16_t
Curretly data type of code for mac trace is uint8_t and
qdf trace expects the data type of code as uint16_t because of
which it may result in incorrect code type for the messages with
message id in uint16_t.

To address above issue change the type of the mac trace to
uint16_t.

Change-Id: I11c5160e2b15258390134ec30c43c84219c2c587
CRs-Fixed: 2719765
2020-08-26 01:35:38 -07:00
Karthik Kantamneni
5e148e5431 qcacld-3.0: Fix nbuf double free for TSO packets
Nbuf users count is not updated properly during failure
case of TSO transmission this is leading to double free.

Fix is to update nbuf users count properly during failure cases.

Change-Id: I68722ec9e62157624dc8a2cd00fd479b9e9e7794
CRs-Fixed: 2759727
2020-08-26 01:35:34 -07:00
snandini
915f4cf70b Release 5.2.0.200D
Release 5.2.0.200D

Change-Id: I829dcb9af879aee3f00f5ed674cf497dacc76668
CRs-Fixed: 774533
2020-08-25 23:32:06 -07:00
Rakesh Pillai
d950c460ea qcacld-3.0: Add software latency manager base code
Add the basic attach code for software latency
manager.

Software latency manager currently tries to
handle the srng register write coaslescing
only.

Change-Id: I23cddf32a52f091b7c66d821e0625656e1a5af23
CRs-Fixed: 2759134
2020-08-25 23:32:06 -07:00
snandini
75d398788d Release 5.2.0.200C
Release 5.2.0.200C

Change-Id: I5b9c785171f208fe293d321bb10ef39ef7547e7e
CRs-Fixed: 774533
2020-08-25 20:25:59 -07:00
Amruta Kulkarni
a9a90ab587 qcacld-3.0: Retry sending join_req after timer expiry
If join fail reason is timeout, retry sending join req
after timer expiry, timer value can be configured
via join_failure_retry_interval.

Change-Id: If90071b3f6d7f48936db6f7088c3c1547e48b294
CRs-Fixed: 2760236
2020-08-25 20:25:58 -07:00
snandini
92a39e9b0f Release 5.2.0.200B
Release 5.2.0.200B

Change-Id: I246d60b1c883d6bf3c7727312b06c8c377263523
CRs-Fixed: 774533
2020-08-25 14:09:15 -07:00
Arun Kumar Khandavalli
09ec38e32f qcacld-3.0: Add a check for WLM latency manager support
Currently there is no check for WLM latency manager support,
while setting the latency level which may lead to undefined behavior.
To address the above issue add a check for WLM latency manager support
and return not supported to userspace.

Change-Id: Id095f162c1202c0a0926f4f73e553f46d4980543
CRs-Fixed: 2762357
2020-08-25 14:09:14 -07:00
snandini
5faf45a9a2 Release 5.2.0.200A
Release 5.2.0.200A

Change-Id: Iaae996c87ef55e030f2e814d4a2aa118f195ad0f
CRs-Fixed: 774533
2020-08-25 12:00:45 -07:00
Rajasekaran Kalidoss
390f19c617 qcacld-3.0: Increase timeout for twt commands
The TTL for management packets in firmware is
1.5 seconds. To accomodate other delays involved,
increase the TWT Host timeout value from 1 second
to 4 seconds.

CRs-Fixed: 2756397
Change-Id: Ib71487ec222d8160599ff1bd061958b72f928906
2020-08-25 12:00:45 -07:00
snandini
bd9ab592c6 Release 5.2.0.200
Release 5.2.0.200

Change-Id: Id64389dbc6c18de3daed1188ca08773f294ef233
CRs-Fixed: 774533
2020-08-25 05:41:15 -07:00
Pragaspathi Thilagaraj
eec05fff64 qcacld-3.0: Add support to send RSSI_CHANGE_THRESHOLD
Add support to send WMI_RSSI_CHANGE_THRESHOLD command to firmware
in connection manager.

Change-Id: I97d4b8f8fc0e938ede0e61d44eb8ffbcbb0fb4ff
CRs-Fixed: 2761043
2020-08-25 05:41:15 -07:00
snandini
f481997643 Release 5.2.0.199Z
Release 5.2.0.199Z

Change-Id: I9986332595bfbfad31b8a780769626e98f1adbd2
CRs-Fixed: 774533
2020-08-25 03:33:20 -07:00
Alan Chen
a9c7d3cf94 qcacld-3.0: Add nested attribute for SAR_LIMITS_SPEC
SET_SAR_LIMITS command expects nested attribute. Hence, add nested
attribute for SAR_LIMITS_SPEC.

Change-Id: Ib810682dcfcc051d50b835011cdd82c375dd390b
CRs-Fixed: 2754281
2020-08-25 03:33:20 -07:00
Pragaspathi Thilagaraj
33064de124 qcacld-3.0: Enable RRM by default
RRM 11k feature is enabled or disabled based on the
rrm_enabled flag. rrm_enabled is filled from the gRrmEnabled ini.
Change the default value of gRrmEnabled ini to 1.

Change-Id: Ie2a95293c3225abc667563fcc9eed8440e46727f
CRs-Fixed: 2754534
2020-08-25 03:33:16 -07:00
snandini
de747c1ac2 Release 5.2.0.199Y
Release 5.2.0.199Y

Change-Id: I8bc5da7f8fd5365c038be40e67d152142e25fe19
CRs-Fixed: 774533
2020-08-24 22:03:56 -07:00
Arun Kumar Khandavalli
92d2e8b530 qcacld-3.0: Add thermal mitigation support for moselle
For older targets thermal mitigation is supported for the apps.
In moselle there a new processor wpps on which firmware runs,
this commit adds the support for the thermal client wpps.

Change-Id: I89896dce808807486ef56b90812369f3d5f4b270
CRs-Fixed: 2757566
2020-08-24 22:03:56 -07:00
Lin Bai
15737d1abb qcacld-3.0: Fix default PM QOS vote
If cpu mask is empty, vote PM QOS with default value to allow system
sleep.

Change-Id: Idfeb20f495f5d6a420d1a0a6ce09fca587363c96
CRs-Fixed: 2760918
2020-08-24 22:03:52 -07:00
snandini
b334588d59 Release 5.2.0.199X
Release 5.2.0.199X

Change-Id: I00bb158daf22f9a99b28ffc211e848b10b462b64
CRs-Fixed: 774533
2020-08-24 19:56:33 -07:00
Liangwei Dong
0e8fb7fb9d qcacld-3.0: Wait for hw mode change done for vdev delete
Vdev delete will purge the serialization queue for the vdev.
If the hw mode change request is flushed without waiting for
the fw completion event, it will cause issues when the fw event
coming up later and no active serialization command in queue.
In one case, the “hw_mode_change_in_progress” is not cleared
in this condition. And finally causes the new Connection req
failed to wait for hw mode change event because there is no
hw change request actually.

Fix by check and wait for hw mode response if any hw mode change
is in progress.

Change-Id: I007643f48ff1d35fbdb2c9ca9a3127bbd66d7dec
CRs-Fixed: 2760395
2020-08-24 19:56:32 -07:00
Bapiraju Alla
8186760f9a qcacld-3.0: Update primary frequency from object manager
Currently, primary frequency is getting updated from STA context
during get_channel callback. This is causing STA disconnect issue
after channel switch. This is because sta_context won't contain
updated channel information after channel switch.

Update primary frequency from object manger. Object manager will
contain updated channel information after channel switch. Also
update the primary frequency in STA context after channel switch.

Change-Id: I059c3627fbd2c254adeb4c7e4407b1518aa0f771
CRs-Fixed: 2758925
2020-08-24 19:56:29 -07:00
snandini
81c343df68 Release 5.2.0.199W
Release 5.2.0.199W

Change-Id: Ib1f633aad9bb2b1a0482b7714fd473b2b2a7dafe
CRs-Fixed: 774533
2020-08-24 14:39:38 -07:00
Alan Chen
9fff553188 qcacld-3.0: Call new function pld_set_pcie_gen_speed()
Call new function pld_set_pcie_gen_speed() to set pcie
gen speed accordingly.

Change-Id: I31902a8e7978e09365041f57c6bfb54cf80bdea6
CRs-Fixed: 2747789
2020-08-24 14:39:38 -07:00
snandini
50cb510473 Release 5.2.0.199V
Release 5.2.0.199V

Change-Id: I445ec099e2f8a79d3eca2be2c700cf65ecd8fec5
CRs-Fixed: 774533
2020-08-24 12:40:07 -07:00