Commit Graph

15607 Commits

Author SHA1 Message Date
Harprit Chhabada
468a4ade93 qcacld-3.0: Enable CFG INI/NON INI logging
Enable logging of cfg ini/non ini items.
Also, enable support for iwpriv wlan0 getConfig.

Change-Id: I938588bda4c1074a0531626d73e10e74afb4f9a6
CRs-Fixed: 2432426
2019-04-15 22:26:15 -07:00
sheenam monga
70a83dacbf qcacld-3.0: Fix null ptr dereference in hdd_set_power_save_offload_config
Currently, hdd_set_power_save_offload_config does not do null validation
for power usage before string comparison which can lead to null pointer
derefrence.

Add null pointer check for power usage in
hdd_set_power_save_offload_config.

Change-Id: I91eba2f5eb27aebf7451be58a6744634aaebd184
CRs-Fixed: 2423777
2019-04-15 22:26:10 -07:00
nshrivas
3b59080d82 Release 5.2.0.130L
Release 5.2.0.130L

Change-Id: I74bf8d62db3e7ba9ac4914dd7d9f87c46e2a423b
CRs-Fixed: 774533
2019-04-15 17:44:06 -07:00
Bala Venkatesh
1c66bfb5fd qcacld-3.0: Revert back the default INI values
Enable the below INI values by default
enable_esp_for_roam
oce_enable_probe_req_deferral
oce_enable_probe_req_rate

Change-Id: Ie707e9707e3cbdbc2f6bef17b35d6d74513daba7
CRs-Fixed: 2434825
2019-04-15 17:44:05 -07:00
nshrivas
19226005ad Release 5.2.0.130K
Release 5.2.0.130K

Change-Id: I49184639644b83450ad37864375623cf2ef8261c
CRs-Fixed: 774533
2019-04-15 15:21:06 -07:00
Pragaspathi Thilagaraj
42dc8c9360 qcacld-3.0: Update HLP data from FILS assoc rsp frame to PE session
HLP data extracted from FILS association response frame needs to
be sent to upper layer. When association success is posted to
sme, HLP data is copied from lim pe_fils_info structure to
sme_join_rsp->roam_fils_info. But the hlp data is parsed from
association response frame but its not copied to pe_fils_session
This resuts in hlp data not sent to hdd and upper layers.
Copy fils data from parsed association response frame into the
pe_fils_info for FILS connection.

Currently there is pointer to hlp_data in pe_session also. But
it is not used and memory allocation is also not done for this
hlp_data. Cleanup this unused hlp data in pe_session and only
use the hlp data from pe_fils_session structure.

Change-Id: I0ef6df6e55130e18a85e2ddf49f8293d8672ac0b
CRs-Fixed: 2424493
2019-04-15 15:21:05 -07:00
Pragaspathi Thilagaraj
14f72de820 qcacld-3.0: Introduce new ini to configure disconnect/idle roam scans
Add new ini to configure required parameters to trigger
disconnect/idle roam scan:
1.enable_disconnect_roam_offload
	When this ini is enabled firmware will trigger roam scan
	and roam to a new ap if candidate is found and it will
	not forward the deauth frame to the host driver. If
	roaming fails after this deauth, then firmware will
	forward the deauth frame to the host. If roaming is
	successful, we will follow the normal roam synch event
	path.
2.enable_idle_roam
	When this ini is enabled firmware will trigger roam scan
	and roam to a new ap if current connected AP rssi falls
	below the threshold. To consider the connection as idle,
	the following conditions should be met:
		1. When user space sends "SET SUSPENDMODE"
		   command with value 0.
		2. No TX/RX data for idle time configured
		3. Connected AP rssi change doesn't exceed the
		   threshold
		4. Connected AP rssi false below minimum rssi.
3. idle_roam_rssi_delta
	RSSI change in current connected AP above/below which
	idle roam scan will be triggered if other criteria is
	met.
4. idle_roam_inactive_time
	Time duration in milliseconds for which the connection is
	to be considered idle.
5. idle_data_packet_count
	number of tx/rx packets below which the connection is
	idle.

Change-Id: Ibd1c91656ecd681f8dc83bc77197668a7f3bfa3f
CRs-Fixed: 2427132
2019-04-15 15:20:59 -07:00
Abhishek Singh
cd131ae9dc qcacld-3.0: Add new roamed BSS to scan cache directly
During LFR3 driver post the message to add the scan entry in
scheduler to scan module and continue with roaming and send roam
event to CFG layer. Also it set the new AP' scan entry in scan
module as associated, to avoid age out of the entry.

Now as the message posted to scan module will get schedule after
roaming is complete, if new AP's entry is not present in CFG scan
cache the roam indication to CFG may fail. Also if it's not present
in the driver cache the new AP's entry may AGE out and channel will
not be added in occupied list, used for roaming.

Thus update the scan entry in scan module and CFG in same context.

Change-Id: I2c5f165b43d48a0b0b54fdf08a0e53b31fac07aa
CRs-Fixed: 2435410
2019-04-15 16:16:20 +05:30
nshrivas
c0b6754608 Release 5.2.0.130J
Release 5.2.0.130J

Change-Id: I7ef05fbd6e0ee233e801953d7702e9778bd5a3be
CRs-Fixed: 774533
2019-04-13 15:31:17 -07:00
Bala Venkatesh
40f20fd88e qcacld-3.0: Avoid changing measurement duration units in beacon report
Currently, while processing the beacon report req and response the
measurement duration units changed from MS to TU and TU to MS
respectively.
Avoid this conversion as both are close units.

Change-Id: I663b7c8969904a373461fb80c7d505c96e74b48f
CRs-Fixed: 2431912
2019-04-13 15:31:17 -07:00
nshrivas
32056bafe8 Release 5.2.0.130I
Release 5.2.0.130I

Change-Id: I1f6b66d6d3f6c35bd07f4765ebf76e31b088752f
CRs-Fixed: 774533
2019-04-12 10:12:55 -07:00
Jayachandran Sreekumaran
df553017a5 qcacld-3.0: Correct the dev pointer provided in pld_usb
Correct the dev pointer provided in pld_usb_is_fw_down.

Change-Id: Ibc5569c2ae1645813ef2e197c7ad525320312113
CRs-fixed: 2433662
2019-04-12 10:12:55 -07:00
nshrivas
1964b5bf3d Release 5.2.0.130H
Release 5.2.0.130H

Change-Id: I584aa7fee256552fa7073110d4f695911a5efcf5
CRs-Fixed: 774533
2019-04-12 05:20:16 -07:00
Jingxiang Ge
b6e0236a61 qcacld-3.0: Fix race between client connect/disconnect
In SAP if a peer is disconnecting, so CSR roamstate is set to
eCSR_ROAMING_STATE_JOINING. Now if at the same time another peer
is trying to connect, eWNI_SME_UPPER_LAYER_ASSOC_CNF will be dropped
in eCSR_ROAMING_STATE_JOINING state.

Fix this by processing eWNI_SME_UPPER_LAYER_ASSOC_CNF in
eCSR_ROAMING_STATE_JOINING state.

Change-Id: I7d4347013eca494e537aaeb4468814238cb3fca6
CRs-Fixed: 2430840
2019-04-12 05:20:15 -07:00
hangtian
1c37fb9ccc qcacld-3.0: Memory optimize for QCS403 platform
Memory optimize for QCS403 platform, 1x1 chip. Reduce CE1 htt data
dest ring buffer from 512 to 256, reduce CE2 wmi dest ring buffer from
128 to 64, reduce CE9 & CE10 desg ring buffer from 512 to 64, disable
CE11 pktlog. Note: this change only affect specific WLAN build config for
extremely saving memory, for debug purose, there is another build
selecting default WLAN config for reference HW.

Change-Id: I868e74b09cdb11df3dccaa3f9e051da55724983d
CRs-Fixed: 2432631
2019-04-12 05:20:10 -07:00
Ajit Pal Singh
8cf6754eca qcacld-3.0: usb: Add CNSS update_status callback
Add update_status callback to pld usb which will be called by
CNSS to update WLAN FW status(FW-DOWN, RECOVERY)

Change-Id: I159e09eac8bdb75525c64e7b42c3315141ec1f8d
CRs-Fixed: 2430265
2019-04-12 05:20:05 -07:00
Jayachandran Sreekumaran
1438216e41 qcacld-3.0: Add support for pld_is_fw_down in usb
Add support for pld_is_fw_down in usb case.

Change-Id: I2103964c6413734ec4f156fe3058e67984b8e09b
CRs-fixed: 2432112
2019-04-12 05:19:59 -07:00
Rajeev Kumar
60a34715cf qcacld-3.0: Move os_if psoc locking inside when doing psoc trans wait
Since os_if_psoc_trans_wait may sleep on a wait event if there is any
active ongoing transition on driver, psoc or vdevs. Hence move the
os_if_psoc_sync_lock(a spin lock bh) inside sync calback API for psoc
look up such that spin lock is not held before starting the wait on
event. os_if_psoc_sync lock is for psoc look up and not for wait
and hence this fix makes locking fine granular as well.

Change-Id: I0537604337a6b594be3e7dc34dc97b79d5987ad4
CRs-Fixed: 2433409
2019-04-12 05:19:54 -07:00
nshrivas
b636b36c4d Release 5.2.0.130G
Release 5.2.0.130G

Change-Id: I2591b9ecb06f83d5195f492af35db30e0b20b077
CRs-Fixed: 774533
2019-04-12 02:56:23 -07:00
nakul kachhwaha
8b6c2315e3 qcacld-3.0: Enable CONFIG_HOST_OPCLASS for genoa
Enable CONFIG_HOST_OPCLASS to include supported
operating class feature in host driver for genoa.

Change-Id: I44d6a3aa7c1c3372186532f7ff1f4353aba41350
CRs-Fixed: 2429681
2019-04-12 02:56:22 -07:00
nshrivas
1e2eda4e18 Release 5.2.0.130F
Release 5.2.0.130F

Change-Id: Ibeb585f50603261fba7fb43fd813743e6deca1e4
CRs-Fixed: 774533
2019-04-12 00:36:31 -07:00
Rajeev Kumar
e01118e85f qcacld-3.0: Define PLD APIs for idle shutdown and restart
Define PLD APIs for idle shutdown and restart such that platform
driver can serialize PSOC idle shutdown and restart with driver
load/unload and SSR shutdown/reinit.

Change-Id: I4e772343fbccb099b9af104ac978dcdb650a567a
CRs-Fixed: 2431405
2019-04-12 00:36:30 -07:00
lifeng
88e5800271 qcacld-3.0: Validate cfgLength to the upper bound
Validate cfgLength to the upper bound before using it in copy
inside csr_get_cfg_max_tx_power()/lim_get_dot11d_transmit_power.

Change-Id: Ibcc1f145db9b902a29a0332553323d0a3ac6b2ff
CRs-Fixed: 2423707
2019-04-12 00:36:25 -07:00
nshrivas
ad0e83df29 Release 5.2.0.130E
Release 5.2.0.130E

Change-Id: I20a8eb74065e509c88d25df9f20f64ba41bfe39e
CRs-Fixed: 774533
2019-04-11 22:09:33 -07:00
Rajeev Kumar
0118dc9cc9 qcacld-3.0: Move os_if vdev lock inside when doing vdev trans wait
Since os_if_vdev_trans_wait may sleep on a wait event if there is any
active ongoing transition on driver, psoc or vdevs. Hence move the
os_if_vdev_sync_lock(a spin lock bh) inside sync calback API for vdev
look up such that spin lock is not held before starting the wait on
event. os_if_vdev_sync lock is for vdev look up and not for wait
and hence this fix makes locking fine granular as well.

Change-Id: I2cca560aeed9b79648168a09f596dbaa374ecbb5
CRs-Fixed: 2433829
2019-04-11 22:09:32 -07:00
Rajeev Kumar
70d2e56aae qcacld-3.0: Move os_if driver lock inside when doing driver trans wait
Since os_if_driver_trans_wait may sleep on a wait event if there is any
active ongoing transition on driver, psoc or vdevs. Hence move the
os_if_driver_sync_lock(a spin lock bh) inside sync calback API for driver
look up such that spin lock is not held before starting the wait on
event. os_if_driver_sync lock is for driver look up and not for wait
and hence this fix makes locking fine granular as well.

Change-Id: I32c582bedbbee81d3a5b171666fc3009c3dc7e5a
CRs-Fixed: 2433825
2019-04-11 22:09:28 -07:00
nshrivas
291807f0a0 Release 5.2.0.130D
Release 5.2.0.130D

Change-Id: I7672e9dac18e3c0bd6728d7efb270b6c91eb54e6
CRs-Fixed: 774533
2019-04-11 12:38:34 -07:00
Harprit Chhabada
c67478f0d7 qcacld-3.0: Null check while calling md_host_evt_cb
wma_motion_det_host_event_handler() get called when FW sent
WMI_MOTION_DET_HOST_EVENTID message.
After the initial processing, pmac->sme.md_host_evt_cb() is
called to send the relevant data back up to the upper layers
of WLAN.
Since this callback function is dynamically registered there
are cases where it might not be registered before this FW event
is received, resulting in a NULL pointer dereference.

Change-Id: I06b7907b39f4da0837196ccf377ecc2da325be8c
CRs-Fixed: 2428803
2019-04-11 12:38:34 -07:00
Min Liu
e2b469f61f qcacld-3.0: Rename bssid in cfg80211_update_owe_info to peer
The field bssid in cfg80211_update_owe_info is renamed to peer
in kernel. Change it accordingly in WLAN driver.

Change-Id: Idf6e051d875c2a9dbe10c49eab7aa02536e5bdc4
CRs-Fixed: 2433437
2019-04-11 12:38:30 -07:00
nshrivas
a4d66f4736 Release 5.2.0.130C
Release 5.2.0.130C

Change-Id: Ia03521db0f77416a9f47c1bcf6914fc2aad0a362
CRs-Fixed: 774533
2019-04-11 01:13:25 -07:00
Liangwei Dong
bf6e36876e qcacld-3.0: Move second DFS AP to CAC wait
If the first DFS AP is in CAC progress and second
AP starts on DFS chan, move the second AP to CAC
wait state as well.
Otherwise, when CAC end, the second AP will always
stay in "WLAN_VDEV_S_START" state and can not
handle CAC end event.

Change-Id: I440ce3339dd2afb62bdb574f2f785d733a980933
CRs-Fixed: 2426714
2019-04-11 01:13:24 -07:00
Min Liu
4710404f78 qcacld-3.0: Fix delayed work leak in hdd_context_create
Delayed work leak is observed when hdd_wlan_startup failed in
__hdd_soc_probe. It will call hdd_context_destroy for cleanup, but
the delayed work created in hdd_context_create is destroyed in
hdd_wlan_exit.

To fix this leak, move this from hdd_wlan_exit to hdd_context_destroy

Change-Id: I237de3695e8915dee9ba085c5d3679a3b438d323
CRs-Fixed: 2432748
2019-04-11 01:13:18 -07:00
Manikandan Mohan
a1f29a9bfe qcacld-3.0: NAN component updates for SAP concurrency
Add NAN+SAP concurrency related changes to NAN component. This
handles NAN discovery and SAP SCC design constraint.

Change-Id: Ief0d6735d9f011eb3bac22d813b2d2ef41f3fe7c
CRs-fixed: 2431539
2019-04-11 01:13:13 -07:00
Manikandan Mohan
7ba3608afc qcacld-3.0: Add NAN+SAP concurrency config to policy manager
Add NAN+SAP concurrency config in 2x2 DBS table for design constraints.

Change-Id: I89ad35e862c8e0bc9b96dba35d9f2ad66144e5b1
CRs-fixed: 2431539
2019-04-11 01:12:56 -07:00
Manikandan Mohan
956b69e3e0 qcacld-3.0: Add NAN+SAP concurrency related checks
Add NAN+SAP concurrency setup constraints in HDD.

Change-Id: Ie7f2fa5694fc1b8af5931e9216164acbfcf3eafd
CRs-fixed: 2431539
2019-04-11 01:12:51 -07:00
Manikandan Mohan
ad93a751b5 qcacld-3.0: Add policy manager changes for NAN+SAP concurrency
Add policy manager changes for NAN discovery interface and SAP
mode concurrency setup related constraints. This handles NAN enable,
disable, SAP bringup and PCL related configuration for NAN+SAP
concurrency.

Change-Id: I04564e80e62189e2e6c0f810856b961b61ef70b4
CRs-fixed: 2431539
2019-04-11 01:12:45 -07:00
nshrivas
8574b81522 Release 5.2.0.130B
Release 5.2.0.130B

Change-Id: I788405b6d9dc20ee48b1315dabbb8cc66bc753a6
CRs-Fixed: 774533
2019-04-10 05:26:49 -07:00
Lin Bai
9dc616c9cb qcacld-3.0: Fix compilation failure of FILS
With kernel version before 4.10, and no CFG8011_UPDATE_CONNECT_PARAM
defined, compiler throw failure -
wlan_hdd_cfg80211.c:21402:1:
error: ‘hdd_update_connect_params_fils_info’
defined but not used [-Werror=unused-function]

Change-Id: I0b15e5822b36d881d484c241064f533f26f77b6d
CRs-Fixed: 2429665
2019-04-10 05:26:48 -07:00
Ashish Kumar Dhanotiya
d63d686510 qcacld-3.0: Disconnect STA/SAP if disable channel list is provided
Disconnect STA/SAP when disable channel list is provided by user
which contains the current STA/SAP operating channel.
Also add an ini parameter to use as featurization flag for this feature.

Change-Id: Ibe6c18ee7f6ed007794853293a0bde4999611167
CRs-Fixed: 2280989
2019-04-10 05:26:43 -07:00
nshrivas
acf6f16e18 Release 5.2.0.130A
Release 5.2.0.130A

Change-Id: I91faa874eee2f8f9560fb7e99ba40dd6deeb465d
CRs-Fixed: 774533
2019-04-09 22:20:45 -07:00
Bala Venkatesh
c697313c30 qcacld-3.0: Revert the default value of INI gfine_time_meas_cap
Revert the default value of gfine_time_meas_cap from 0x00BD
to 0x000D

Change-Id: Ie13a5d369f652346bcefed886c7d5c693e88ef37
CRs-Fixed: 2432009
2019-04-09 22:20:43 -07:00
Srinivas Girigowda
34fbba008b qcacld-3.0: Replace MAC_ADDR_ARRAY with QDF_MAC_ADDR_ARRAY
Replace MAC_ADDR_ARRAY with converged macro QDF_MAC_ADDR_ARRAY.

Change-Id: I8b2779272c32825976a0040e84432a493f83845c
CRs-Fixed: 2431569
2019-04-09 22:20:38 -07:00
jiad
134f78e5a6 qcacld-3.0: Fix SAP per peer REO stats
Currently for SAP mode, issue is only first valid sta is
requested to print REO stats where sta_info pointer does
not move along with the loop.

Fix is to print REO stats for both vdev peer and sta peers
in SAP mode.

Change-Id: I4864dbecace091fd086f184599e108ad3f2e3d37
CRs-Fixed: 2423173
2019-04-09 22:20:32 -07:00
nshrivas
8220f7d7f6 Release 5.2.0.130
Release 5.2.0.130

Change-Id: I3cc375debd1cb105c63aa87a390e7b95717a6807
CRs-Fixed: 774533
2019-04-09 11:56:40 -07:00
Subrat Dash
5f36fbef77 qcacld-3.0: Add gettime of PTP for NON-QC platform
Implement NON-QC platform TSF and TSF PLUS.
Implement gettime of PTP.
Implement TSF PLUS for SAP/GO

CRs-Fixed: 2399624
Change-Id: Id4f41a94256a8f035ae408c168c246569185c534
2019-04-09 11:56:39 -07:00
nshrivas
a4e2da1ab9 Release 5.2.0.129Z
Release 5.2.0.129Z

Change-Id: I11836d2f8aa229b32410176da23993015b7f9251
CRs-Fixed: 774533
2019-04-09 06:37:03 -07:00
Jianmin Zhu
4f3708d75a qcacld-3.0: Fix scan queue not unregistered
Scan queue isn't unregistered, lead to scheduler queue leakage,
after driver module start/stop several times, scheduler queues
are used out, can't register any more.

Change-Id: I98d81591aee25a5e18e560766fb077733eb1b671
CRs-Fixed: 2431696
2019-04-09 06:37:02 -07:00
nshrivas
219208d6fc Release 5.2.0.129Y
Release 5.2.0.129Y

Change-Id: If9b62e08d4ba95f59125821899bc6332efe2cafe
CRs-Fixed: 774533
2019-04-09 04:00:21 -07:00
Ajit Pal Singh
bd3d364871 qcacld-3.0: Disable ol_txrx_peer_release_ref() logs
Disable ol_txrx_peer_release_ref() logs

Change-Id: I8278c76e97e695daa594c057ecf9d40911ac7ccb
CRs-Fixed: 2430023
2019-04-09 04:00:20 -07:00
gaurank kathpalia
23afef1e15 qcacld-3.0: Update only positive nss values from BDF
If the FW doesn't send the ext service ready event, and
thus the host does not get the max chainmask that both
the macs can support, the host still updates the ini
with the minimum of the host, and FW config, which can
lead to functional issues in connection, and scan.

Fix is to honour the setting only if the FW sends a non
zero positive chainmask for both macs.

Change-Id: I2a321923a2f995cca20cef3980acb1bf41ca0db0
CRs-Fixed: 2429584
2019-04-09 04:00:16 -07:00