Commit Graph

15581 Commits

Author SHA1 Message Date
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
Wu Gao
c11affcc29 qcacld-3.0: Fix possible NULL pointer dereference about session entry
It will access pointer to session entry before NULL pointer check. So,
fix it and avoid to possible NULL pointer dereference.

Change-Id: I4a62b4600053ccc1eb4b63c3fbce9ebcfe0656ee
CRs-Fixed: 2423715
2019-04-09 04:00:11 -07:00
Arun Kumar Khandavalli
2d83ba1300 qcacld-3.0: Dont create the session from add virt interface
Presently for SAP and p2p go a session is created in the firmware
and umac once the add virtual interface is received. It was
added previously when the session is not supported from the interface
up.

Now driver supports creation of the session from the interface up
for the beaconing entities the legacy code is removed.

Change-Id: Icf6aaac3722cf9292fb1519ba5e0aed74834895f
CRs-Fixed: 2368329
2019-04-09 04:00:07 -07:00
nshrivas
b1dcb371b9 Release 5.2.0.129X
Release 5.2.0.129X

Change-Id: I495e4a2ee418b2105a4a75eaf8f40f74dfac44b8
CRs-Fixed: 774533
2019-04-09 01:53:23 -07:00
Rajeev Kumar
359c3baf20 qcacld-3.0: fix wlan_ipa_send_to_nw type
The only function called through this pointer type doesn't return
a value and the caller doesn't check for a return value. Change
the function pointer type to return void to fix a CFI failure due
to a type mismatch:

  CFI failure (target: [<ffffff853ba7cee8>]
      hdd_ipa_send_skb_to_network+0x0/0x4 [wlan]):
  ...
  Call trace:
    __ubsan_handle_cfi_check_fail+0x50/0x58
    __cfi_check+0x31fa0/0x3d5a4 [wlan]
    wlan_ipa_w2i_cb+0x5fc/0x8fc [wlan]
    ...

Change-Id: I94f6bb0fc06acebde12cf80294999d9419296c4a
CRs-Fixed: 2431600
2019-04-09 01:53:22 -07:00
donglian
79202c8ab6 qcacld-3.0: Disable fast path in ROME architecture
Fast path is not supported in ROME, remove CONFIG_WLAN_FASTPATH
from qca6174_defconfig

Change-Id: I3606abfc6f375852159a9d94345e165fbe4d06c6
CRs-Fixed: 2428550
2019-04-09 01:53:17 -07:00
nshrivas
40c339ce32 Release 5.2.0.129W
Release 5.2.0.129W

Change-Id: If0f5be2d7247d10edb2b196b40d4fa06769d0e29
CRs-Fixed: 774533
2019-04-08 19:42:36 -07:00
Harprit Chhabada
cb9f73c8b4 qcacld-3.0: Fix possible NULL pointer issues in sme_set_plm_request()
Pointer 'req' is dereference before null check which can lead
to null pointer dereference.

Pointer 'body' is never null check after allocation of memory.
qdf_mem_malloc can return null and when pointer 'body' is
dereference, it can lead to null pointer dereference.

Change-Id: I62f26341079d4849c56f7d35d0b7c64df6b49f3b
CRs-Fixed: 2424010
2019-04-08 19:42:35 -07:00
nshrivas
866f5e543e Release 5.2.0.129V
Release 5.2.0.129V

Change-Id: I79148b988fea0761c9d5937fc512a39e56a692c0
CRs-Fixed: 774533
2019-04-08 15:35:56 -07:00
Pragaspathi Thilagaraj
6695ba9181 qcacld-3.0: Handle assoc IE update sent from userspace
The host driver handles update connect params sent from
userspace and updates the FILS auth type or FILS Erp info based
on the UPDATE_FILS_AUTH_TYPE(2) or UPDATE_FILS_ERP_INFO(1) bit
set in the changed flag.

Handle the association IE update sent from userspace also.
UPDATE_ASSOC_IE(bit 0) will be used to check if assoc IE needs
to be updated. This assoc IE should be sent to firmware. MBO IE
is updated as part of this IEs from the WNM action frame
received by the userspace when setting non preferred channel list
from the AP. If host driver fails to update these IEs to
firmware, MBO IE will not be sent in reassociation request frame
and MBO testcases will fail.

Parse the assoc IE into hdd_adapter->roam_profile. If
parse and validation is successful, copy the assoc IE into
csr_roam_session of the corresponding vdev. Send RSO update
command to firmware, with updated assoc IEs.

Also currently the driver registers update_connect_params
event only if FILS compile flag and UPDATE_CONNECT_PARAMS
flag is enabled. Exclude FILS flag check from this conditional
condition and check only for UPDATE_CONNECT_PARAMS.

Change-Id: I29fadebc9a7fc43937b805f0f041bb86ddf85cbd
CRs-Fixed: 2429665
2019-04-08 15:35:56 -07:00
nshrivas
bb7cf15f9f Release 5.2.0.129U
Release 5.2.0.129U

Change-Id: I57bd78b515b620498ca9fdfb715a806e285c513c
CRs-Fixed: 774533
2019-04-07 22:24:59 -07:00
Jianmin Zhu
465c348898 qcacld-3.0: Fix Wlan Tx failed when bt-coex for Rome
Current gTxChainMask1ss is 1 by default, only chain 1 can be used
by wifi when bt co-ex, if only chain0 exist or green AP switch to
1x1 mode, wifi tx will fail, connect will fail.

Add clear comment for gTxChainMask1ss to avoid confusing.
gTxChainMask1ss is only used by Rome, not by Helium and HST.

NOTE WELL: This change will have an adverse impact on products
which implicitly expect gTxChainMask1ss=1 behavior. Any such
products must update their INI file to add an explicit
"gTxChainMask1ss=1" entry.

Change-Id: I44f34f80200d057188a77f6f564a13c768fc727e
CRs-Fixed: 2426623
2019-04-07 22:24:58 -07:00
nshrivas
12924fc780 Release 5.2.0.129T
Release 5.2.0.129T

Change-Id: Idd472a413bdf655a43f6aa45bfe99128c6fc67a0
CRs-Fixed: 774533
2019-04-06 11:35:48 -07:00
Kiran Kumar Lokere
05a618572a qcacld-3.0: Set HE caps to testbed defaults for testbed
Set device HE capabilities to testbed defaults when device is
configured as testbed device.

Change-Id: I5b1d9eb6f0b576f18a5e4d77131354639b0ae2f0
CRs-Fixed: 2428156
2019-04-06 11:35:47 -07:00
Arif Hussain
50689083eb qcacld-3.0: Add support to send bcast capability to firmware
If both INI and FW capability is set,
enable capability flag in twt enable command.

Change-Id: I1c070256c4b672b09a1323665fc5a2f166f951fb
CRs-fixed: 2423752
2019-04-06 11:35:42 -07:00
nshrivas
937f0d1777 Release 5.2.0.129S
Release 5.2.0.129S

Change-Id: Ifd5d0d6f3aa2c2fbccde887b5a21ce6d8906ceed
CRs-Fixed: 774533
2019-04-06 01:54:34 -07:00
Liangwei Dong
b677b9e6ec qcacld-3.0: Update rmf enable flag
Set rmf enabled flag in lim based on crypto component info
for WLAN_CONV_CRYPTO_IE_SUPPORT feature enabled case.

Change-Id: Ibb07531d6073015d67df94e3666883a6785de476
CRs-Fixed: 2421470
2019-04-06 01:54:33 -07:00
Srinivas Girigowda
6177126e67 qcacld-3.0: Consolidate SIR_MAC_EID_* to WLAN_ELEMID_*
Remove the element ID macros defined in qcacld-3.0 and
replace it with the macros defined in qcacmn.

Change-Id: I01a38e3d6c4857eb48868a34e278366ad9d5d099
CRs-Fixed: 2427311
2019-04-06 01:54:29 -07:00
Arif Hussain
9946563033 qcacld-3.0: Fix compilation from wma cleanup
Some cleanup missing from below change, remove the same to fix
compilation issue.
"Ia5b290e3367a894646f138cfeedcb9ab3012e9be"

Change-Id: I5aea8b2c5a00df6c1f8eef6a106918763816fdd0
CRs-Fixed: 2430444
2019-04-06 01:54:24 -07:00
nshrivas
cc0be949cc Release 5.2.0.129R
Release 5.2.0.129R

Change-Id: I0ef0ab98e982fb8b66e7ab024206e70923a69c26
CRs-Fixed: 774533
2019-04-06 00:16:05 -07:00
Harprit Chhabada
74007cf168 qcacld-3.0: Check range for pcl_count in policy_mgr_trim_acs_channel_list
In policy_mgr_trim_acs_channel_list(), check the range for
pcl to ensure it is less than QDF_MAX_NUM_CHAN

Change-Id: I1326e229e93edef6ac5963c7cc48557cc22e76ba
CRs-Fixed: 2424007
2019-04-06 00:16:04 -07:00
Harprit Chhabada
be221e6ed9 qcacld-3.0: Populate CFG values in SAP module
Currently HDD is populating SAP configuration values and
sending it down to SAP module instead use the respective
MLME CFG public API's to get the configuration values.
Move following CFG values:
1. auto_channel_select_weight
2. reduced_beacon_interval
3. dfs_preferred_channel_location

Change-Id: Ic0936a9d96d0587d927ea4d906bd659969415847
CRs-Fixed: 2425524
2019-04-06 00:16:00 -07:00
Srinivas Girigowda
d462f3b993 qcacld-3.0: Multiple cleanup regarding access category
1. Replace TX_WMM_AC_NUM/OL_TX_NUM_WMM_AC with QCA_WLAN_AC_ALL
2. Replace SIR_QOS_NUM_AC_MAX with QCA_WLAN_AC_ALL
3. Replace WME_NUM_AC with QCA_WLAN_AC_ALL
4. Fix the typo sme_qos_u_pto_ac_map

CRs-Fixed: 2430527
Change-Id: Id2b4624d60a2bd7dd1471c65699ef0de1b88aecf
2019-04-06 00:15:56 -07:00
nshrivas
2973e69281 Release 5.2.0.129Q
Release 5.2.0.129Q

Change-Id: I62a6d5cf28a6e429c1e41b7590d37a42c901417e
CRs-Fixed: 774533
2019-04-05 15:59:51 -07:00
Sravan Kumar Kairam
d68f27cba8 qcacld-3.0: Add feature flag for nbuff replenish
Add new feature flag for nbuff replenish timer apis to
replace CONFIG_MCL flag.

Change-Id: Ibb65dd28b657085a20b6e3b036e6f96b4851481e
CRs-Fixed: 2421564
2019-04-05 15:59:51 -07:00
nshrivas
fb7c6e6c66 Release 5.2.0.129P
Release 5.2.0.129P

Change-Id: I748ed45c25bf85dcd3ed6686e88e1f376fbca75d
CRs-Fixed: 774533
2019-04-05 11:18:25 -07:00
Jeff Johnson
af5452884b qcacld-3.0: Replace typedef tSirWifiIfaceStat
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirWifiIfaceStat typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a properly named struct.

Change-Id: I70f0e8c038d061cb201b52ce07097c68bcb93346
CRs-Fixed: 2428989
2019-04-05 11:18:25 -07:00