Graf commitů

21294 Commity

Autor SHA1 Zpráva Datum
Jyoti Kumari
fb46c5c273 qcacld-3.0: Fix vdev null pointer access in disconnect handler
Vdev is NULL before completion of hdd disconnect process

Use hdd_objmgr_get_vdev() to get vdev reference and then pass it
to ucfg_if_mgr_deliver_event(). After using, release the
reference.

Change-Id: I683851a2b7b4376440637edc70b7fdaf71acfbd0
CRs-Fixed: 2812480
2020-11-12 05:40:11 -08:00
Srinivas Girigowda
27d9cc4eec qcacld-3.0: wma: Remove logs for cds_get_context() checks
cds_get_context() function already takes care of logging the
caller function name in case of any error.
Hence there is no need to add the error log again.
Getting rid of these unnecessary logs reduces driver memory footprint.

CRs-Fixed: 2815522
Change-Id: Ibb17fb043d6addaf0fa86aeb882178ef27535162
2020-11-12 05:40:05 -08:00
Srinivas Girigowda
1e37c63d94 qcacld-3.0: sap: Remove logs for cds_get_context() checks
cds_get_context() function already takes care of logging the
caller function name in case of any error.
Hence there is no need to add the error log again.
Getting rid of these unnecessary logs reduces driver memory footprint.

CRs-Fixed: 2815522
Change-Id: I735ba28f98a38e832ecb8781e39d5d8e134ad01f
2020-11-12 05:40:00 -08:00
Srinivas Girigowda
382132b749 qcacld-3.0: mac: Remove logs for cds_get_context() checks
cds_get_context() function already takes care of logging the
caller function name in case of any error.
Hence there is no need to add the error log again.
Getting rid of these unnecessary logs reduces driver memory footprint.

CRs-Fixed: 2815522
Change-Id: I8bc78db0276ad0c1547ae0e046d99bf749bd7125
2020-11-12 05:39:54 -08:00
snandini
2d690b8d7b Release 5.2.0.210A
Release 5.2.0.210A

Change-Id: Ib8038c6f2fc8726a494dcfd4b19aeedb56bdf9cf
CRs-Fixed: 774533
2020-11-12 03:28:29 -08:00
Paul Zhang
866061de62 qcacld-3.0: remove dup invoking sap_init_dfs_channel_nol_list
When enable SAP, it invokes function sap_init_dfs_channel_nol_list
twice.
1\  __wlan_hdd_cfg80211_do_acs
    -> wlan_hdd_cfg80211_start_acs
    -> wlansap_acs_chselect
    -> sap_init_dfs_channel_nol_list
2\  wlansap_start_bss
    -> sap_fsm
    -> sap_fsm_state_init
    -> sap_init_dfs_channel_nol_list

Remove the function in 1\ path.

Change-Id: I8c0bda1fafadc463f6594e0f4c127e9cf98bf4de
CRs-Fixed: 2808989
2020-11-12 03:28:29 -08:00
Jia Ding
e6afd40dd6 qcacld-3.0: Allow to vote link for STA mode
On MDM platforms, STA only IPA offload is supported.
Therefore there'll be scenarios when STA is connected
and APPS is suspended, IPA offload traffic will still
flow through WLAN HW.

Thus define a feature flag FEATURE_STA_MODE_VOTE_LINK
and allow to vote link for STA mode on MDM platforms.

Change-Id: I5c7aa3b35e3cd56249a5b34996fcea538b0da69d
CRs-Fixed: 2803802
2020-11-12 03:28:25 -08:00
Rakesh Pillai
c7d5c4a52f qcacld-3.0: Fix the UDP qos upgrade logic
The UDP qos upgrade is skipped currently if the setting
from userspace is set to best effort. Also with the current
logic the priority of packets at "best effort" gets
downgraded to "background".

Fix the UDP qos upgrade logic to take care of using
the "background" priority value as a trigger to skip
UDP qos upgrade.

Change-Id: I5111a930995ddd71b082db95440ed778f09a3cba
CRs-Fixed: 2816426
2020-11-12 03:28:22 -08:00
snandini
6d2312e9ae Release 5.2.0.210
Release 5.2.0.210

Change-Id: Iea770f67f58b5479d173380a591c72c5c71b8fa1
CRs-Fixed: 774533
2020-11-11 14:53:20 -08:00
Srinivas Dasari
b1768cdccf qcacld-3.0: Consider peer mac addr also for duplicate frame detection
Currently, sequence number of the authentication frame is cached
to detect if the same frame is received again. But in SAP case,
it's possible to get authentication frame from two different
clients with the same sequence number. Host driver drops auth
frame from the second station as it is considered as a
duplicate frame. Though the driver drops the frame only if it's
a retry, it's possible to get auth frame from second client with
same sequence number and retry bit set.
Cache the client mac address along with sequence number to
avoid this.

Change-Id: I194adc9e0f90d074aef50340d2cd6c7b138cc9b5
CRs-Fixed: 2815784
2020-11-11 14:53:20 -08:00
snandini
9fde8b97fa Release 5.2.0.209Z
Release 5.2.0.209Z

Change-Id: I3fdc0fb0301ff730879fe8f506d475ad3c609cf4
CRs-Fixed: 774533
2020-11-11 02:50:27 -08:00
Xueqiang Gong
05bb528b36 qcacld-3.0: support GENOA PCIE Global Reset
add CONFIG_QCN7605_PCIE_GOLBAL_RESET_SUPPORT
which is used to support Genoa Pcie Global Reset
this feature only used for 3rd party platform
which do not support hardware reset by toogle WLAN_EN pin

Change-Id: I0fa356e362ebafe18378e0a803bf3f4a00c77628
2020-11-10 17:19:30 -08:00
snandini
80023d938d Release 5.2.0.209Y
Release 5.2.0.209Y

Change-Id: I0ac1e37009c7a7190bbadfb1346d28d7085bdd2a
CRs-Fixed: 774533
2020-11-10 13:02:40 -08:00
Ananya Gupta
b205491920 qcacld-3.0: Retry sending packets in htc queue
A race condition is observed when runtime suspend is aborted
due to pending TX packets but context switch happened and pm_state
did not revert to active state yet. In parallel, WMI_PEER_DELETE
command is queued but not sent as pm_state is still in suspending
state.
To fix this, schedule HTC queue kicker work to resend pending
commands again after dp_runtime_suspend aborts due
to pending TX packets.

Change-Id: I6d2c4140a4635c0aec304f48b15fb2b539ac39ea
CRs-Fixed: 2813657
2020-11-10 13:02:40 -08:00
snandini
d35c37dad5 Release 5.2.0.209X
Release 5.2.0.209X

Change-Id: Ia85e2df53d692c4582be3334ddc0ad16b96b1b0b
CRs-Fixed: 774533
2020-11-10 07:03:14 -08:00
Abhinav Kumar
d61845ba6c qcacld-3.0: Enable roaming after start bss command
In case of STA + SAP/GO, Driver fist disable roaming on all
adapters before bss start and enable roaming after start bss
(SAP/GO) in case of failure/success.

Due to commit I4870c69a0e0ca1e8cad734a591f09e402b7a32fa,
Driver fails to re-enable roaming after failure/success
of SAP/GO process.

Fix is to enable roaming after start bss in case of
failure/success.

Change-Id: Ibe90f0685f41984a5841859ea96834f7760ff9a1
CRs-Fixed: 2811306
2020-11-10 07:03:14 -08:00
snandini
60ccd579ff Release 5.2.0.209W
Release 5.2.0.209W

Change-Id: Ibfed5d7cda5741429450a74353ee83c5eec6947b
CRs-Fixed: 774533
2020-11-10 04:57:34 -08:00
Rakesh Pillai
087a958395 qcacld-3.0: Create adapter features update work for all interfaces
Currently the adapter features update work is created only
for the STA types of interfaces, since this feature is only
used for STA mode. But this can cause an issue when a SAP
interface is changed to STA runtime, since the workqueue will
not be initialized (since create adapter was of SAP type) but
it will be attempted to be destroyed (since the adapter is of
STA type) during the cleanup of adapter.

The creation/destruction of this workqueue cannot be done
in the start/stop adapter, since the rtnl lock will be held
during this operation and the cancelling of the adapter features
workqueue can cause it to wait on rtnl lock, leading to a
possible scenario of a deadlock.

Hence as a mitigation for this issue, we create the adapter
features update workqueue for all the interfaces and clean it
up for all the interfaces as well.

Change-Id: I598480e9f248f50e46764f7f32b876a8efaeee8d
CRs-Fixed: 2811934
2020-11-10 04:57:33 -08:00
gaurank kathpalia
effa6ef7f0 qcacld-3.0: Filter out the 6ghz chan freq from valid freq list
Currently the driver does not have a support to
filter out the 6ghz frequencies from the valid freq
list, and hence there is a high chance of selecting
the 6ghz freq as an operating freq for SAP, which
the legacy clients won't be able to scan.

Fix is to add a support for filtering out the 6ghz
frequencies from the valid freq list.

Change-Id: I3c32b4c8c5b93eae04d49d2d5b6bd4ec9852c2a9
CRs-Fixed: 2808350
2020-11-10 04:57:29 -08:00
Abdul Muqtadeer Ahmed
7027df689a qcacld-3.0: Add helper function to typecast channel band parameter
Prior to the kernel version4.7 struct ieee80211_channel used enum
ieee80211_band. Beginning with kernel version4.7 struct ieee80211_channel
use enum nl80211_band. So there is an issue of typecasting of the channel
band parameter.

To resolve the above issue a helper function is added to typecast the band
parameter according to the kernel version.

Change-Id: I1af692bb7cae5ab2e71556128ce672c6b145f92f
CRs-Fixed: 2815201
2020-11-10 04:57:25 -08:00
Rajeev Kumar
a515c97cf3 qcacld-3.0: Add debug log when cached get station stats is returned
As part of power optimization to club LL and get stats request add
a debug log to indicate when cached get station stats is getting
returned to user space.

Change-Id: Id1f80e1589c1913d0129b435cd2bdbd807800230
CRs-Fixed: 2814701
2020-11-10 04:57:21 -08:00
snandini
2371cc273e Release 5.2.0.209V
Release 5.2.0.209V

Change-Id: I9d9927e3d40f9b11f6c67361dc2b5eebe13053dd
CRs-Fixed: 774533
2020-11-09 21:03:09 -08:00
Sachin Ahuja
de8caa1add qcacld-3.0: Add the QCN IE in assoc response
Currently if peer client supports the MCS12 and
MCS13 support in assoc request then also DUT(as SAP)
is not sending the QCN IE in assoc response.
This results into the low Tput as peer client uses
only rates till MCS11.

To fix this issue, send the QCN IE with MCS12 and
MCS13 support in assoc response if peer client
supports it.

CRs-Fixed: 2814863
Change-Id: I17c16705b5a015e1dd22849212a19365ac78acaa
2020-11-09 21:03:09 -08:00
snandini
f7d73d707d Release 5.2.0.209U
Release 5.2.0.209U

Change-Id: Iadbabc4e06a1c4790b68955a3deadcf3a0540063
CRs-Fixed: 774533
2020-11-09 03:03:10 -08:00
Abdul Muqtadeer Ahmed
1eb57fce21 qcacld-3.0: Add new WMI wakeup reason
Add the new WMI wakeup reason “WOW_REASON_LOCAL_DATA_UC_DROP".

Change-Id: Ibae5d98de8e63b03930837de8ce3062fef319718
CRs-Fixed: 2798184
2020-11-09 03:03:09 -08:00
snandini
1fdde10aa7 Release 5.2.0.209T
Release 5.2.0.209T

Change-Id: I66bf9c95ca2c18aef6d2c426761722709eac20a4
CRs-Fixed: 774533
2020-11-07 00:10:09 -08:00
Srinivas Girigowda
0d27162992 qcacld-3.0: sme: Remove logs for cds_get_context() checks
cds_get_context() function already takes care of logging the
caller function name in case of any error.
Hence there is no need to add the error log again.
Getting rid of these unnecessary logs reduces driver memory footprint.

CRs-Fixed: 2814480
Change-Id: I1459d7af76b19614775e0a5b0982a2ca0fbdb935
2020-11-07 00:10:09 -08:00
snandini
e5740f44d5 Release 5.2.0.209S
Release 5.2.0.209S

Change-Id: I8cf330f707bff25ee9254416acc7ec9ec28220c6
CRs-Fixed: 774533
2020-11-06 20:59:46 -08:00
Srinivas Girigowda
009835571d qcacld-3.0: cds: Remove logs for cds_get_context() checks
cds_get_context() function already takes care of logging the
caller function name in case of any error.
Hence there is no need to add the error log again.
Getting rid of these unnecessary logs reduces driver memory footprint.

CRs-Fixed: 2814471
Change-Id: I70351edc06db00171270369a91589b0d9409f70a
2020-11-06 20:59:46 -08:00
snandini
d611ab6290 Release 5.2.0.209R
Release 5.2.0.209R

Change-Id: Ia7633a677dc83b8c7a014f7804cb04ecb103210a
CRs-Fixed: 774533
2020-11-06 14:59:13 -08:00
Srinivas Girigowda
12294bf4af qcacld-3.0: hdd: Remove logs for cds_get_context() checks
cds_get_context() function already takes care of logging the
caller function name in case of any error.
Hence there is no need to add the error log again.

Getting rid of these unnecessary logs reduces driver memory footprint.

CRs-Fixed: 2813747
Change-Id: I025b5882f86b0b9f52e5ac903b873c06c458d07c
2020-11-06 14:59:13 -08:00
snandini
95b4db80c6 Release 5.2.0.209Q
Release 5.2.0.209Q

Change-Id: Iaa77de5b549e442fd46ba41935dd31d22e45da71
CRs-Fixed: 774533
2020-11-06 08:09:26 -08:00
Abhinav Kumar
418b5af117 qcacld-3.0: Stop roaming while disconnection
When host receives ap capability change indication,
internal disconnection is triggered from csr without
sending stop roaming (RSO stop) to fw. So in STA+STA
scenario, after connection on 1st sta, roaming will
be enabled on 2nd sta, but since RSO stop was not sent
on 1st sta, firmware will assert as btm offload is not
disabled at the 1st STA.

Disable roaming first, followed by vdev stop/vdev down to
firmware.

Change-Id: I183b590b36ecfd81150bb59c33c4752c718c93ba
CRs-Fixed: 2798081
2020-11-06 08:09:26 -08:00
snandini
044933760b Release 5.2.0.209P
Release 5.2.0.209P

Change-Id: Ifb4e60c2b4b044a3638e69ea902da11b236746ce
CRs-Fixed: 774533
2020-11-06 06:01:49 -08:00
Ashish Kumar Dhanotiya
8f5554da65 qcacld-3.0: Use correct api to get country info
Currently for ll stats host fill country information from
mac context which is not updated with latest country information.

To address above issue use correct api to fill country info
for ll stats.

Change-Id: I744b172cf935e44568b9ee902a97275887e45001
CRs-Fixed: 2805196
2020-11-06 06:01:49 -08:00
snandini
9640b21a7c Release 5.2.0.209O
Release 5.2.0.209O

Change-Id: Iaaa2d3226202c536746a7b248df77611ab211cb3
CRs-Fixed: 774533
2020-11-06 02:02:45 -08:00
Abhinav Kumar
466382d492 qcacld-3.0: Print roam related info in kmsg
The event WMI_ROAM_STATS_EVENTID is received after
every roam, once the roam synch complete is sent by the host.
This event contains details regarding the btm response.

This helps to debug the scenario when roam failure happen.

Print the info received related to roam scan type & roam status
info into kmsg.

Change-Id: Idd688eb4d1e699573fa1e243873c30ffdc5bf96f
CRs-Fixed: 2794555
2020-11-06 02:02:44 -08:00
snandini
28302eda07 Release 5.2.0.209N
Release 5.2.0.209N

Change-Id: I1538677185d76f9da92193752a540cc5652255cd
CRs-Fixed: 774533
2020-11-05 22:50:31 -08:00
Karthik Kantamneni
51cd57c4d9 qcacld-3.0: Fix wrong calculation of DP thread stats
In FISA path number of list elements in head nbuf is not updated,
leading to wrong calculation of dp thread stats and packets are dropped.
Update the number of list elements in head nbuf before flush.

During calculation of outstanding packets to be processed
by dp rx thread take rx flushed packets into consideration.

Change-Id: Id96ceee71e035fdbe17f0da4b662c6f848296fbd
CRs-Fixed: 2811001
2020-11-05 22:50:31 -08:00
snandini
86e35318db Release 5.2.0.209M
Release 5.2.0.209M

Change-Id: I6b001e2ba423914ab5f1ea0f9017aff494ced39e
CRs-Fixed: 774533
2020-11-05 18:25:15 -08:00
Arun Kumar Khandavalli
66734a0b36 qcacld-3.0: save hang data to extract from the dumps
In order to improve the hang data it will be now processed internally
on every dump, hence store the data in the global variable to get
parsed by tools internally.

Change-Id: I0cfacd0643e5e486630a8ba0989c0d7d0c9a63c8
CRs-Fixed: 2810338
2020-11-05 18:25:14 -08:00
snandini
35e52aff4e Release 5.2.0.209L
Release 5.2.0.209L

Change-Id: I3bffa90108654bd5bb5873ec5275879367274c3a
CRs-Fixed: 774533
2020-11-05 16:12:32 -08:00
Srinivas Dasari
c584c24287 qcacld-3.0: Add 6ghz scan files for compilation
New files are created for 6ghz scan functionality. Add the same
for compilation.

Change-Id: I3f715db50fb5020afea74297794d07ddc5b39913
CRs-Fixed: 2806415
2020-11-05 16:12:32 -08:00
Bapiraju Alla
171719ca30 qcacld-3.0: Remove unnecessary net_device validation
Currently net_device is being validated inside the
hdd_for_each_adapter_dev_held_safe loop. This is not required as
hdd_for_each_adapter_dev_held_safe will hold the reference for
net_device and prevent it from being deleted. So net_device validation
is not required inside hdd_for_each_adapter_dev_held_safe loop.

Change-Id: Id7e78748b80e7a3bbe50fee43a28fd0d48bd6856
CRs-Fixed: 2812716
2020-11-05 16:12:26 -08:00
snandini
c832dbc84b Release 5.2.0.209K
Release 5.2.0.209K

Change-Id: I4824dcad1839449732cf1322fe4090704cd6b5ef
CRs-Fixed: 774533
2020-11-05 14:02:59 -08:00
Ashish Kumar Dhanotiya
b45c6c1a18 qcacld-3.0: Update legacy cmm script
Currently driver has parse_mac_trace cmm script which is
not updated for long time. There are many modules which were
added and many new messages were added and some of the
messages were removed.

Update the script according to current code.

Change-Id: I87bfe7fe74e73ccdc63b52ed6b96e163d214bb57
CRs-Fixed: 2810396
2020-11-05 14:02:58 -08:00
snandini
adb3ffc95f Release 5.2.0.209J
Release 5.2.0.209J

Change-Id: Ib4f014219b590eeb8f7389dd39fc69aa22491fa0
CRs-Fixed: 774533
2020-11-05 11:55:08 -08:00
Bapiraju Alla
8b75fabcb7 qcacld-3.0: Print station info in the driver
Currently, driver doesn't print STA info before passing it to the
kernel. This is making difficult to debug the STA disconnection
issues.

To address this, print sta info before giving to the kernel.

Change-Id: I8346bc489bfa3ca88b307fcb8d5cd4691ca8fe0d
CRs-Fixed: 2791922
2020-11-05 11:55:08 -08:00
snandini
c64851d3ed Release 5.2.0.209I
Release 5.2.0.209I

Change-Id: Icf8c946355b2701ced1ebeb8e364615218e3c86e
CRs-Fixed: 774533
2020-11-05 09:51:07 -08:00
Abhishek Ambure
dd1ef0c18b qcacld-3.0: Update basic rates if rates not present in probe resp/bcn
Some IOT APs set supported rates to zero in probe response. Host uses
probe response/beacon to update scan cache. Host uses supported rates
from scan cache to update in assoc request.

As the supported rates in probe response are zeros, host doesn't
add supported rate IE in assoc request which leads to association
failure. Hence add BSS basic rates in assoc request if supported
rates in scan cache is not present.

Change-Id: I1eb56f437c39494f386e7c97aac4b4bc56b156c8
CRs-Fixed: 2813072
2020-11-05 09:51:07 -08:00