Commit Graph

20139 Commits

Author SHA1 Message Date
Yue Ma
7554af3936 qcacld-3.0: Export if DRV is supported through platform capability
Add PLD_HAS_DRV_SUPPORT to platform capability to indicate if PCIe
DRV is supported or not.

Change-Id: I25dcba18b795988c4cdecd3f0c355de6786e0f3f
CRs-fixed: 2722430
2020-07-02 08:48:01 -07:00
nshrivas
834ea0b828 Release 5.2.0.192J
Release 5.2.0.192J

Change-Id: Id5639371445e91ed1ae7f8fdf4fe6b7e6a6a7570
CRs-Fixed: 774533
2020-07-02 05:55:35 -07:00
Utkarsh Bhatnagar
4537efa54b qcacld-3.0: Print tx_complete in assoc and auth complete cnf
print “tx_complete" values in lim_auth_tx_complete_cnf and
lim_assoc_tx_complete_cnf along with success/fail as well

Change-Id: I0fe60da725df0b90d2e0957877c53bc793826dc6
CRs-Fixed: 2722114
2020-07-02 05:55:34 -07:00
Manjunathappa Prakash
d269df54b3 qcacld-3.0: Reduce FSE cache invalidation messages
Current flow learning algorithm invalidates the cache for every time
flow is learnt. This results in multiple invalidation when there
multiple flows in quick succession of single NAPI soft IRQ processing.
FW has restriction on number simultaneous message processing.
Delay cache invalidation message so that single message serves multiple
flow learning.

Change-Id: Iee8cb5f12546890f2da32195dc3c4878e7a39ffd
CRs-Fixed: 2718968
2020-07-02 05:55:31 -07:00
nshrivas
9dae6a54c3 Release 5.2.0.192I
Release 5.2.0.192I

Change-Id: Ib1db6f13f5492bda1d753883af346b3b619668b8
CRs-Fixed: 774533
2020-07-01 18:06:13 -07:00
Abhishek Ambure
f9dc5f972f qcacld-3.0: Add basic rates if probe rsp don't have supported rates
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: Ie2d75a980f5aede0b7985ddf385516a6b15c7560
CRs-Fixed: 2706797
2020-07-01 18:06:13 -07:00
Bapiraju Alla
cbef1eafad qcacld-3.0: Update default value for gFwDebugModuleLoglevel INI param
Update default value for gFwDebugModuleLoglevel to get more logs
to debug firmware issues.

Change-Id: I388f7af62b00b6af5d963e2c6f2dec90389cca18
CRs-Fixed: 2722193
2020-07-01 18:06:09 -07:00
Pragaspathi Thilagaraj
40339f25aa qcacld-3.0: Add support for send vdev pcl command api
Add new connection manager API to send vdev pcl command for
sta + sta roaming per vdev. For vdev pcl command, the weight of
the 1st sta connected band will be set to 0.
Add connection manager roam API files for TX ops,
connection manager target if wrapper to send the vdev
pcl command to wmi. Introduce new API to get dual sta
roaming support and save it in cm roam public struct.

Change-Id: I56a7475b0b9865e969917ec05a117f206f198111
CRs-Fixed: 2712346
2020-07-01 18:06:05 -07:00
nshrivas
53f5280466 Release 5.2.0.192H
Release 5.2.0.192H

Change-Id: Idd2f5ea56743f7d0c3d2f9bd2b5a7ab52f45c2fa
CRs-Fixed: 774533
2020-07-01 07:50:45 -07:00
Srinivas Girigowda
1fa6dbbc37 qcacld-3.0: Replace obsolete WMA_LOGI() with wma_info()
Replace obsolete WMA_LOGI() macro with wma_info().

Change-Id: I537751027559f09792b61131b13566c058d03a91
CRs-Fixed: 2722291
2020-07-01 07:50:45 -07:00
Lincoln Tran
d8a2fcc25d qcacld-3.0: Fix set band cases failed
Recent changes to hdd_regulatory_dyn_cbk broke WWAN n79 and
WIFI 5 GHz co-existence, failure:
1. AGO won't switch channel to 2G even 5G channel disabled.
2. SAP can switch to 2G if 5G disabled, but won't restore back
to 5G when 5G re-enable.

Update callback to call the proper function so that band for
SAP or P2P GO is updated accordingly.

Change-Id: I4087466c9a05250921159d5daff077a8ea7ea495
CRs-fixed: 2718339
2020-07-01 07:50:40 -07:00
nshrivas
99151af73b Release 5.2.0.192G
Release 5.2.0.192G

Change-Id: I55592150f8024c18d9560e8b92311842370d7bcc
CRs-Fixed: 774533
2020-07-01 05:42:40 -07:00
Abhishek Ambure
07204a8ccb qcacld-3.0: Update STA nss in OMN ie of assoc req for WFA CERT
For WFA certification testing, host updates station's max nss support
value in the omn ie of association request.

Change-Id: I0b001e0a0953aff0ff8ba614fab3e67c23eb2cfa
CRs-Fixed: 2690460
2020-07-01 05:42:40 -07:00
Abhinav Kumar
2147196fd8 qcacld-3.0: Update opclass and others param in pilot frame
Update opclass, randomizationInterval and DialogToken in
pilot frame as a response of beacon report request.

Change-Id: Ibf6a6b4d5dea1c87826d7755778c8f559a1a0fa3
Crs-Fixed: 2717259
2020-07-01 05:42:36 -07:00
nshrivas
f1141afdc6 Release 5.2.0.192F
Release 5.2.0.192F

Change-Id: Ia2635ccbbaa93e99e055dc13acf6ec66ac0f3936
CRs-Fixed: 774533
2020-07-01 00:26:07 -07:00
sheenam monga
f63c83abc1 qcacld-3.0: Consider phy mode sent by fw to get dot11 mode
Currently, after roaming only vht ie is used to get dot11 mode
which may casue issue whenever vendor vht ie is present but vht
ie is not present in beacon. Host updates dot11 mode to
11N based on missing vht ie and does not consider vendor vht but
fw considers vendor vht ie which causes different dot11 modes in
fw and host.

Consider phy mode sent by fw in roam sync event to get dot11
mode to maintain compatibility between host and fw.

Change-Id: Ie9e4cbadd84d239c6f386f296c77677b15ce0500
CRs-Fixed: 2714566
2020-07-01 00:26:07 -07:00
gaurank kathpalia
06ecb758cd qcacld-3.0: Remove unused scan filter
Remove unused scan filter params.

Change-Id: I2b34f78616a13e99483792c83ac3df63b1c94d03
CRs-Fixed: 2722138
2020-07-01 00:26:02 -07:00
Abhishek Singh
fb4325a69d qcacld-3.0: Replace different struct of ssid with struct wlan_ssid
There are different version of SSID structure used in driver, replace
them with struct wlan_ssid.

Change-Id: I8a5bfdafbdc4365afccc11980633272be9c75a81
CRs-Fixed: 2721873
2020-07-01 00:25:57 -07:00
nshrivas
704f1a056f Release 5.2.0.192E
Release 5.2.0.192E

Change-Id: I0684af125f7ea641dedfc597840d5598e553477d
CRs-Fixed: 774533
2020-06-30 14:58:17 -07:00
Alok Kumar
2b43ad3c11 qcacld-3.0: Avoid NULL pointer derefence for PDEV
Currently, NULL pointer dereferencing of objmgr PDEV
is observed in wlan_objmgr_pdev_get_comp_private_obj.

Add NULL check for pdev inside ipa_uc_force_pipe_shutdown
and ipa_fw_rejuvenate_send_msg before pass PDEV to
wlan_objmgr_pdev_get_comp_private_obj.

Change-Id: I4e19cc9c254febabad551aa62f72d2ce4897b852
CRs-Fixed: 2719149
2020-06-30 14:58:16 -07:00
nshrivas
c4ec8d5b9f Release 5.2.0.192D
Release 5.2.0.192D

Change-Id: I549b3c5ba0e398fb0bba90c7fd769c497ae02d55
CRs-Fixed: 774533
2020-06-30 12:30:03 -07:00
Sourav Mohapatra
584440c8d1 qcacld-3.0: Assert early on to enable dump info collection
Presently, in the host initiated recovery the handler checks whether
the support for recovery is enabled via the ini or triggers the panic.
Whenever the panic is triggered the irq's will be disabled,
this results in some targets not able to collect the important
MHI, PCI information on what caused the issue to root cause the issue.

So, for different targets check the ini at different places. In this
case, move PCI based check to the start.

Change-Id: Ia184a265d0f76e43d1d5edc4bcc0849a05726dac
CRs-Fixed: 2720999
2020-06-30 12:30:03 -07:00
Bapiraju Alla
9a61eedc9b qcacld-3.0: Override powersave configuration for monitor mode
Currently, powersave configuration is being overwritten before INIs
are initialized by mlme component. As a result INI configuration is
not being overwritten in case of monitor mode.

To resolve this issue, overwrite PS configuration during start
modules and restore it in stop modules.

Change-Id: I2707b431b81881c943104b211d55c6f48f348ba9
CRs-Fixed: 2682164
2020-06-30 12:29:59 -07:00
nshrivas
9858a65c74 Release 5.2.0.192C
Release 5.2.0.192C

Change-Id: Icbd630805982c1253a16c78326e285ef6fbdc94f
CRs-Fixed: 774533
2020-06-29 23:46:47 -07:00
Sourav Mohapatra
e25710a25c qcacld-3.0: Relocate fetching of hdd_ctx to avoid stale pointer
In the function hdd_driver_unload, the hdd_ctx is fetched at the
beginning before the dsc_wait_for_trans. In the scenario where this
wait_for_trans is active and in the other thread (for example when
wlan_pld_remove and rmmod run in parallel) the hdd_ctx is invalidated,
the local copy of the pointer becomes stale. Accessing this stale
pointer leads to page fault.

Do not fetch the hdd_ctx before waiting for dsc trans. Rather fetch it
just before where it is actually used.

Change-Id: Ia5524c7a2af8ff2e976a6f1d3e87f2f374fdc371
CRs-Fixed: 2720714
2020-06-29 23:46:47 -07:00
nshrivas
dbcaef0ec1 Release 5.2.0.192B
Release 5.2.0.192B

Change-Id: I406ad3e3d97052b78f2d86ef46582d50cd046656
CRs-Fixed: 774533
2020-06-29 19:15:48 -07:00
Abhinav Kumar
7d3c309952 qcacld-3.0: Allow the driver to process multiple measurement req
As per requirement, the driver should able to process up to
MAX_MEASUREMENT_REQUEST (5) measurement request in a single
beacon report request.

Update driver logic to process up to 5 measurement request and
make sure the driver should not issue rrm scan for the duplicate
channel.

Change-Id: Iea3be8a0efef605852ac6b6b54dd06774ac0adac
CRs-Fixed: 2712112
2020-06-29 19:15:48 -07:00
Abhinav Kumar
8ece9b14c2 qcacld-3.0: Change the size of Measurement Request IE
To process up to 5 Measurement Request in a single beacon
report request, modify the size of Measurement Request IE
to 5.

Change-Id: I87025ce12886cc3129b01de6eb48b45e85babe9a
CRs-Fixed: 2712109
2020-06-29 19:15:44 -07:00
Abhishek Ambure
e5b5a03aeb qcacld-3.0: Add support for sae auth retry
Host retransmits WPA3 SAE authentication frames after 1 second
if there is no response for previous auth frames from AP.
Host keep retransmitting SAE auth frames for max WLAN_SAE_AUTH_RETRY
times.

Change-Id: I1be0bd5354586518781876646b063592e667b0bb
CRs-Fixed: 2716719
2020-06-29 19:15:40 -07:00
Vevek Venkatesan
e28544d9ee qcacld-3.0: initialize peer hang_data in recovery_notifier_cb
Initialize peer_hang_data in  ol_peer_recovery_notifier_cb.

Change-Id: I04d819ba9048b1877dadd4d0678424f2e6fa5b1a
CRs-Fixed: 2719727
2020-06-29 19:15:36 -07:00
nshrivas
259db3057e Release 5.2.0.192A
Release 5.2.0.192A

Change-Id: I81c565e07aba9e4a43943df37f87611b80f31f2f
CRs-Fixed: 774533
2020-06-29 07:38:07 -07:00
Mohammed Siddiq
335ba9e938 qcacld-3.0: Add code to support modularizing ICNSS ICNSS2 and CNSS2
Add code to support modularizing ICNSS, ICNSS2 and CNSS2.

Change-Id: I696715592f6000f2a64f8940f324b699acd5fcf1
CRs-fixed: 2685412
2020-06-29 07:38:04 -07:00
nshrivas
b3188a8c78 Release 5.2.0.192
Release 5.2.0.192

Change-Id: I7280bfdd8279458b073a295b3f6f0cdfabc6b528
CRs-Fixed: 774533
2020-06-29 02:38:34 -07:00
Arun Kumar Khandavalli
793ac05021 qcacld-3.0: Add cfgops implementation for bitrate mask
Add the cfg80211 ops for the bitrate mask.

Previously the bitrate mask is added via the iwpriv

iwpriv wlan0 set11NRates 0x8f --> for MCS7

will be configured via below through iw

iw dev wlan0 set bitrates ht-mcs-2.4  7

Change-Id: I3415fa3f89e2af3fb3bae4c9b56c57af7da2382f
CRs-Fixed: 2699468
2020-06-29 02:38:34 -07:00
Arun Kumar Khandavalli
3d15529d3e qcacld-3.0: Defer recovery cleanup to shutdown
As part of the firmware down notification if the indication comes
in the non-interrupt context the driver flushes the idle timeout
work and purges the shutdown down notifier.

If the the idletimeout is already running, as part of the idletimeout
work the platform,mhi irq's will also be freed, if the firmware crashes
and enters the RDDM mode during this time, platform driver will notify
the host through the uevent. Since free_irq waits for all the pending
interrupts to be serviced resulting in the deadlock.

Dont flush the work for the pci bus so the interrupt could
be completed and free irq could also be unblocked.

Change-Id: I4e106ff774fa90544ba97737a87682f42f9288df
CRs-Fixed: 2720348
2020-06-28 14:15:05 +05:30
nshrivas
164a1c630f Release 5.2.0.191Z
Release 5.2.0.191Z

Change-Id: I1610190511c44a203373cb0c6e1c60c6fb0b33c0
CRs-Fixed: 774533
2020-06-27 22:45:34 -07:00
Amar Singhal
ea151c9219 qcacld-3.0: Change 6 ghz channel frequencies
Add orphan channel with center frequency 5935 to 6ghz channels. Also shift
center frequency of other channels by 10 mhz. Also change the maximum
possible frequency of 5 ghz channels.

Change-Id: Ic86fb8ded10b32871a9edf532bbc4e0889efb543
CRs-Fixed: 2686624
2020-06-27 22:45:34 -07:00
Liangwei Dong
3c8333a753 qcacld-3.0: Adjust 6Ghz channel frequency in INI normalize_acs_weight
In 11ax draft 6.1, the 6G starting frequency has been shifted by 10 MHz
to the right. Change the default channel value of INI "normalize_acs_weight"
accordingly.

Change-Id: I6b08f3c604f4410dbddf25bbe7c7491047b676ea
CRs-Fixed: 2695542
2020-06-27 22:45:30 -07:00
nshrivas
bb32e201b2 Release 5.2.0.191Y
Release 5.2.0.191Y

Change-Id: I1a7373b6cc28ee8736c43f20c1749e334efeeae4
CRs-Fixed: 774533
2020-06-27 15:16:28 -07:00
Srinivas Girigowda
f4fbeca7d7 qcacld-3.0: Remove get_/set_ prefix from sysfs attribute name
sysfs attribute name should not have get_/set_ prefit, it should
just be attribute name.
read operation is a get and a write operation is a set.

Change-Id: I3b87424d1c5cadd836e24f39c20a8bd9ed9ef45e
CRs-Fixed: 2720000
2020-06-27 15:16:28 -07:00
nshrivas
2e78940aef Release 5.2.0.191X
Release 5.2.0.191X

Change-Id: Ibe955261923eede4c1f8d564b2c0712531633aa3
CRs-Fixed: 774533
2020-06-27 11:25:44 -07:00
Srinivas Girigowda
1175d34eaf qcacld-3.0: Return the number of bytes placed in to the buffer
When the sysfs file 'gtx_bw_mask' is read, DEVICE_ATTR 'show' callback
function is called and currently its returning 'ret' which is 0 and hence
the content of sysfs file "/sys/class/net/wlanxx/gtx_bw_mask" is empty.

Hence the fix is 'show' callback function should return the number of
bytes placed in to the buffer.

Change-Id: I44b7eda40cd2963b4be52f97b513badc48244120
CRs-Fixed: 2720141
2020-06-27 11:25:44 -07:00
nshrivas
15e711ae37 Release 5.2.0.191W
Release 5.2.0.191W

Change-Id: I3578761ed3cedd585116e068f34de3053a39b562
CRs-Fixed: 774533
2020-06-27 06:18:14 -07:00
gaurank kathpalia
56993c8df9 qcacld-3.0: Add make file changes for connection manager
Add make file changes for connection manager.

Change-Id: Ifea0426e3ac4a2c43ce64967375cc5f99855394f
CRs-Fixed: 2713471
2020-06-27 06:18:14 -07:00
gaurank kathpalia
6ebfc3c01b qcacld-3.0: Add AP to BLM reject list
Currently the driver calls the BLM API
to add the BSSID to the reject list if
STA kickout event comes from the FW.
Now since the event comes in interrupt
context and BLM takes a mutex lock, it
is not allowed.

Fix is to change the context
and call the BLM API from lim del sta
which would execute in scheduler
thread.

Change-Id: I3c2726ea152eeeee6ae30d80388aedac631f6c39
CRs-Fixed: 2716192
2020-06-27 06:18:10 -07:00
Lincoln Tran
2d357482b9 qcacld-3.0: Update to match scheduler_msg callback
This change corresponds to the callback updates in scheduler_msg.
Changes include:
	1. Update hdd_data_stall_process_event and its caller
	2. Update umac_stop logic to allocate buffer for callback
	   and update its caller
	3. Register beacon reporting callback as a direct function
	   call without message posting.

Change-Id: Ic07a6102ea75d8bccb57a800e9670750e98356ce
CRs-fixed: 2718977
2020-06-27 06:18:07 -07:00
Pragaspathi Thilagaraj
3bbb4610b6 qcacld-3.0: Introduce new ini for dual sta roaming
Add new ini enable_dual_sta_roam_offload to enable/disable dual
sta romaing feature. Enabling this ini will allow firmware to
roam on both the vdev if firmware supports dual sta roaming and
the hw is dbs capable.

This ini will be checked in the dual sta roaming offload state
machine to enable roaming on both the STA or to fallback to the
current implementation where first connected sta will have rso
enabled.

Change-Id: I04f141ac31e0f168b6f19fe878bca219a36cfae7
CRs-Fixed: 2709036
2020-06-27 06:18:03 -07:00
nshrivas
1f299f5e53 Release 5.2.0.191V
Release 5.2.0.191V

Change-Id: I7c140911b0d4f9910cab45cd1136aa0f0bac6ec5
CRs-Fixed: 774533
2020-06-27 03:57:33 -07:00
Srinivas Girigowda
5e5cf5996f qcacld-3.0: Replace obsolete WMA_LOGA() with wma_alert()
Replace obsolete WMA_LOGA() macro with wma_alert().
In some error cases, usage of wma_alert() is incorrect and
hence use wma_err().

Change-Id: Ife02033c4f981c31f5e6b165d5e8961e2ce1f9d8
CRs-Fixed: 2716176
2020-06-27 03:57:33 -07:00
Alok Kumar
1571401e34 qcacld-3.0: Enable FISA feature for QCA6750 in Kbuild
Enable FISA feature in the host driver for QCA6750.

Change-Id: I1f025cf1336db81a327524e932adaa5401183613
CRs-Fixed: 2717541
2020-06-27 03:57:30 -07:00