Commit Graph

20019 Commits

Author SHA1 Message Date
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
nshrivas
a97ff00ab9 Release 5.2.0.191U
Release 5.2.0.191U

Change-Id: I0b8e32d581fcaac51bce6136b3780134fa672c2e
CRs-Fixed: 774533
2020-06-26 22:48:26 -07:00
Srikanth Marepalli
89a9eb0370 qcacld-3.0: Fix Invalid EAPOL-Key MIC packet drop issue
After the roaming is offloaded to Firmware when the GTK rekey
happens in Host proper KCK should be used to verify MIC.
In WPA2 GTK rekey is offloaded to Firmware but not in WPA3 case.
In WPA3 SuiteB Firmware sends KCK in Key material extended TLV
instead of Key material TLV in Roam sync indication event, as the
Keys length is more in WPA3 SuiteB. And the Key material ext TLV
is parsed improperly in driver and the same is sent in roam+auth
event to wpa_supplicant. This wrong KCK was used to verify MIC
received in EAPOL.
This fix is to properly parse the KCK and KEK from Key buffer.

Change-Id: I57658b918bb41de2b5d2476d89b026d1f5982337
CRs-Fixed: 2713711
2020-06-26 22:48:26 -07:00
nshrivas
8cc18408f8 Release 5.2.0.191T
Release 5.2.0.191T

Change-Id: I09f817c4eedaab282fbd63e32f4906b165ae381e
CRs-Fixed: 774533
2020-06-26 20:18:32 -07:00
Alan Chen
dfcef91465 qcacld-3.0: Add handler for new optimized_power_management attribute
Add handler for the newly created optimized_power_management attribute.

Change-Id: I09d0a328f8685484e53e17329ffe40fbbcdd568a
CRs-Fixed: 2715055
2020-06-26 20:18:32 -07:00
nshrivas
9f0a752f83 Release 5.2.0.191S
Release 5.2.0.191S

Change-Id: Ia821b4f07f9b28b823d1b1d2d817db568a1a14c9
CRs-Fixed: 774533
2020-06-26 16:48:41 -07:00
Utkarsh Bhatnagar
2847ec9b74 qcacld-3.0: Overide the value of sta sap SCC DFS ini
Currently the driver allows standalone SAP and
STA+SAP SCC even if the dfs master mode is 0
and the ini g_sta_sap_scc_on_dfs_chan if
configured 2 assumes that the dfs master mode is
enabled.
If the user configures master mode as 0 then the
ini g_sta_sap_scc_on_dfs_chan should not be 2
since standlaone SAP can come up on DFS channel
according to the implementation.

Fix is to overide the value of g_sta_sap_scc_on_dfs_chan
to zero if the master mode is disabled.

Change-Id: Ife02a3545a5df7dfa7855feea7965628a1f513a3
CRs-Fixed: 2713392
2020-06-26 16:48:41 -07:00
nshrivas
e93eb35325 Release 5.2.0.191R
Release 5.2.0.191R

Change-Id: I849c0df14af0f8050536324cfb9d76b7f229cb17
CRs-Fixed: 774533
2020-06-26 11:08:47 -07:00
gaurank kathpalia
67b87cbde5 qcacld-3.0: Move BSS scoring logic to connection manager
Move bss scoring logic to connection manager.

Change-Id: Ie7639853dec303133705c3394bf0577670000c21
CRs-Fixed: 2707108
2020-06-26 11:08:47 -07:00
nshrivas
f2aed55e40 Release 5.2.0.191Q
Release 5.2.0.191Q

Change-Id: Iddb56403ffba636a6160a107d429cfa52a62f482
CRs-Fixed: 774533
2020-06-26 05:37:31 -07:00
Rachit Kankane
46554fb229 qcacld-3.0: Send only PCL to supplicant
For non-DBS and no Interband MCC supported targets, send only
PCL to supplicant when number of connections are more then 0.

Change-Id: I12b1d483de55cca2d70d17d7114bdbde72c59826
CRs-Fixed: 2711485
2020-06-26 05:37:30 -07:00
Rachit Kankane
24542c328e qcacld-3.0: Set default hw mode for ready ext
Update default HW mode after selecting default hw mode
while handling service ready ext event

Change-Id: I022644554df0824d760304fe99a86295b20660b1
CRs-Fixed: 2711482
2020-06-26 05:37:28 -07:00
Rachit Kankane
b8b4431052 qcacld-3.0: Check interband MCC for STA CSA
For single-MAC and no-interband MCC scenario, don't switch
channel for STA if the new channel is creating interband-MCC
concurrent combination.

Change-Id: I6886d58dfe8a8845bcded90ab3422b5f79abbe4a
CRs-Fixed: 2711469
2020-06-26 05:37:25 -07:00
Rachit Kankane
20ae27ea60 qcacld-3.0: For single MAC no-interband MCC
Concurrency related changes for single MAC target which
doesn't support Inter-Band MCC as well.

Change-Id: Id9d02d6353103f21dee8b9e6767d2fc8b1277278
CRs-Fixed: 2711462
2020-06-26 05:37:21 -07:00
nshrivas
a20d8c02af Release 5.2.0.191P
Release 5.2.0.191P

Change-Id: I299df2eba3686cf82dc26efca29f78ad998de2a7
CRs-Fixed: 774533
2020-06-25 21:27:07 -07:00
Wu Gao
a68714fc61 qcacld-3.0: Drop action frames for SAP mode
For SAP mode, FW doesn't support tx action on different band, and
shouldn't send on DFS channel. So drop action frames for SAP mode.

Change-Id: I2015957346824787d0d902b2d21746d10e2cc9c0
CRs-Fixed: 2718417
2020-06-25 21:27:07 -07:00
Srinivas Girigowda
589c525f8b qcacld-3.0: Send the function return status up the call stack
hdd_wlan_clear_stats() invokes the function cdp_clear_stats(),
hdd_wlan_clear_stats() always returns 0 instead of returning the
callee return status.

Fix is to return the callee function return status up the call stack.

Change-Id: I591fb743d000463ffebd4207450de82ab7463a9c
CRs-Fixed: 2719088
2020-06-25 21:27:03 -07:00
Srinivas Girigowda
68c954548f qcacld-3.0: Replace obsolete WMA_LOGW() with wma_warn()
Replace obsolete WMA_LOGW() macro with wma_warn().

Change-Id: I4257ccf22bfa45465ffbd44a7ef5b5712ebb754f
CRs-Fixed: 2718987
2020-06-25 21:26:58 -07:00
nshrivas
8141ec5e92 Release 5.2.0.191O
Release 5.2.0.191O

Change-Id: I21abdf176e19f6587b54cc2c2ccce062b1882eac
CRs-Fixed: 774533
2020-06-25 18:13:49 -07:00
Jianmin Zhu
d3f49cbc4b qcacld-3.0: 2nd SAP CSA failed when 5G disabled
Reproduce steps:
 1. SAP+SAP SCC on channel 36
 2. Set band to disable 5G band
Observed Results:
 Only 1 SAP switched to 2G channel 6, another keeps in channel
 36.
 When wlan_hdd_get_channel_for_sap_restart for 1st SAP return
 success, will break from loop, so 2nd SAP won't CSA at all.
Expected Results:
 Both SAP need switch to 2G by CSA.

Change-Id: I67807fb77bfc5a33011576d577b734b038637075
CRs-Fixed: 2718664
2020-06-25 18:13:49 -07:00
nshrivas
14aa30650e Release 5.2.0.191N
Release 5.2.0.191N

Change-Id: Id25e9303b2513eb0c6bf06d07a7198b280d0e221
CRs-Fixed: 774533
2020-06-25 16:46:48 -07:00