Commit Graph

16409 Commits

Author SHA1 Message Date
gaurank kathpalia
6fc5d5803c qcacld-3.0: Allow simultaneous scans for Hostapd scan
Currently the drivers blocks every simultaneous scan
that comes to the driver, and returns BUSY.
here if the STA SCAN which is low priority after connection
comes, and at the same time ACS has completed and the hostapd
tries to do a HT scan, it would get error as BUSY, and it
will try to scan again and again until successful or the timeout
happens. This will in turn delay the hotspot bringup as start
ap does not come until the hostapd does a OBSS scan.

Fix is to skip the check of simultaneous scan for SAP, and make
the priority of scan request high for SAP scan.

Change-Id: I5625a3e7c05f75238771ea1ec35b80ae5113bbc3
CRs-Fixed: 2471854
2019-06-25 13:06:09 -07:00
Srinivas Dasari
4bf1c934a4 qcacld-3.0: Set negotiated auth type to OPEN for SAE-pmk cache case
wpa_supplicant sends connect request with open auth and pmkid
when PMK caching is enabled and if it has PMK/PMKID cached.
Set rsn_auth_type to SAE when connect request has AKM as SAE
auth_type as open.
Set negotiated auth type to OPEN in SAE with pmk cache case as
open authentication going to happen. Similar fix is applicable
for FT-SAE. Handle the same.

Change-Id: I9ccc419bd439702041840b0194bb0622d7856255
CRs-Fixed: 2467813
2019-06-25 13:06:06 -07:00
Yeshwanth Sriram Guntuka
c52f24d0f4 qcacld-3.0: Add INI support for FIPS handshake offload feature
Add ini support for FIPS 4-way hanshake offload to firmware. FIPS
offload feature will add support to handle LFR 3.0 connection only
(auth/reassoc). If this ini is set then firmware will offload
4-way HS to supplicant. In the Roam sync indication firmware will
inform connected and not authenticated so that supplicant can take
care of 4-way HS.

Change-Id: I3da58910218ffc57094cac4c3cab4572631d9404
CRs-Fixed: 2459182
2019-06-25 13:06:01 -07:00
Pragaspathi Thilagaraj
b3472f0fcd qcacld-3.0: Implement WAR for P2P GO 1x1 HT association with peer
In P2P GO mode, if the P2P client device is not VHT capable and
only HT capable, but the DUT P2P GO is VHT capable and advertises
2x2 NSS and sends packets with 2x2 rates, it results in interop
issues with HT only capable P2P client devices.

When GO is operating in DBS mode, GO beacons advertise 2x2
capability but include OMN IE to indicate current operating mode
of 1x1. But here peer device is only HT capable and will not
understand OMN IE.

Check if the P2P client device is only HT capable and has
"\x00\x50\xf2\x04". Then downgrade the P2P GO operation to 1x1
nss. Modify rx mcs map value in association response to enable
only mcs 0-7.

Change-Id: I7177c5aee9a560a20c50a63886c0ee77f7d617ae
CRs-Fixed: 2464925
2019-06-25 13:05:57 -07:00
Abhishek Singh
0100fdd28a qcacld-3.0: Get HW mode info from roam fail indication
During roam fail, if firmware doesn't have any interface left on
2.4Ghz it moves to SMM from DBS, But doesn't inform to Host, which
assume DUT is in DBS mode and thus can send VDEV start on 2.4Ghz
without switching to DBS mode. This lead to assert in firmware.

To fix this firmware will indicate the new HW mode in ROAM INVOKE
FAIL and HO FAIL during roam. so handle the new HW mode indication
and update the host HW mode from the new HW mode indication. So
that host and firmware remain in sync

Change-Id: I854faea17c8eccf212b4efb9443b297cadca62b0
CRs-Fixed: 2473532
2019-06-25 13:05:53 -07:00
Jianmin Zhu
7f212f7e92 qcacld-3.0: Don't override 2nd 2G AP to DFS channel of 1st AP
If platform support dbs,  1st AP start on 5G DFS channel, 2nd
AP should be able to start on 2G on another MAC, no MCC will
happen.
If override 2nd AP from 2g channel to 5g, 2nd AP can't start.

Change-Id: Icee7a5c432e0b96d71b51685955d820b0f619c8d
CRs-Fixed: 2470807
2019-06-25 13:05:48 -07:00
Ashish Kumar Dhanotiya
14923e6271 qcacld-3.0: Fill correct info flags for station info
When get station command received by driver, host is
filling rx_mpdus and fcs_error count into output station
info buffer but corresponding flags are not getting set
because of which user space is not able to parse these
values.
To avoid this issue, set corresponding flags for rx_mpdus
and fcs_error count in stainfo buffer.

Change-Id: I0801501d0ede15c9c818d677b5e85e47963f4cff
CRs-Fixed: 2477654
2019-06-24 22:47:12 -07:00
nshrivas
3b2821951d Release 5.2.0.137X
Release 5.2.0.137X

Change-Id: Iccc832c89cd69930c73db97ea8e85e61eb221b04
CRs-Fixed: 774533
2019-06-24 16:52:53 -07:00
Saket Jha
451d3db96a qcacld-3.0: Check if wma pointer is NULL
In wma_is_roam_in_progress function, return false if wma pointer
returned from cds_get_context is NULL.

Change-Id: I0a3447f038a45ea93e769142cb5883a3f39c0991
CRs-Fixed: 2475071
2019-06-24 16:52:53 -07:00
nshrivas
a891536aaf Release 5.2.0.137W
Release 5.2.0.137W

Change-Id: Iba11def02eb8fc2ccbf22864c60dff7537ee4a61
CRs-Fixed: 774533
2019-06-24 14:26:20 -07:00
tinlin
a187e13aaa qcacld-3.0: Store rrm session bssid
Processing beacon request may fail due to
some reason.

In Ie07dbb1f45803cf93b45df2173f0ad064a194cb3,
sta fails to send empty beacon report to
AP and frees current rrm beacon request structure
because it doesn't find matched session by bssid
in rrm_process_beacon_report_xmit.

Copy bssid of beacon request to rrm session then
sta can send empty beacon.

Change-Id: I962d058d5e3f8f85194f4197c5ff8c061d56f60c
CRs-Fixed: 2472377
2019-06-24 14:26:19 -07:00
nshrivas
bd59505f8f Release 5.2.0.137V
Release 5.2.0.137V

Change-Id: Ic97eff5d3e8eb3e932a3a73856c749bff5182622
CRs-Fixed: 774533
2019-06-21 16:35:22 -07:00
Pragaspathi Thilagaraj
e4f0cc7ff5 qcacld-3.0: Change the default value of btm_offload_config
Firmware expects btm_offload_config value as 0x1c1 by default
so that BTM query is enabled. To enable BIT 7, "prefer_btm_query"
ini is used and its default value is 1. To enable BIT 8 in
btm_offload_config, "prefer_roam_score_for_candidate_selection"
ini is used and its default value is 1. Enable the BIT 6 also
by default.

Change the default value of btm_offload_config to set bit 6 by
default.

Change-Id: Ic0b222c281d1731aaf21aaff6a72ebf1f1f930de
CRs-Fixed: 2466687
2019-06-21 16:35:22 -07:00
Rachit Kankane
33bf18f2ef qcacld-3.0: Check vdev max limit before creating
Firmware allocates memory as part of WMI_INIT_CMDID based on number of
STA vdevs and max number of vdevs. If we try to create more then
max limit then firmware will crash.
Added check to check for max limit before creating the interface.

Change-Id: I3e73c9f1b3c925465452a23ea5f25f47e4eb1ada
CRs-Fixed: 2468171
2019-06-21 16:35:18 -07:00
nshrivas
25f6becdc4 Release 5.2.0.137U
Release 5.2.0.137U

Change-Id: I648d46e59012a174f7966c49ce34e9d6ff3287f7
CRs-Fixed: 774533
2019-06-21 12:27:17 -07:00
Kiran Kumar Lokere
2d53f9da90 qcacld-3.0: Disable full BW UL MIMO capability in testbed defaults
Do not advertise full BW UL MIMO support when device is configured
as testbed.

Change-Id: Iecb5ddb16ef2006d9592ad3524559dd8f942a950
CRs-Fixed: 2474986
2019-06-21 12:27:17 -07:00
nshrivas
e8465f9346 Release 5.2.0.137T
Release 5.2.0.137T

Change-Id: Ic9b5f1dfc8e7cce026d1903ce808095e3158392f
CRs-Fixed: 774533
2019-06-21 05:47:46 -07:00
Abhishek Singh
4e8524a35d qcacld-3.0: Handle vdev start resp failure in monitor mode
In monitor mode even if vdev start fails, vdev up is sent, which
leads to assert.

Fix is to move the vdev state machine to init state on vdev start
failure and not to send vdev up.

Change-Id: I89e6294329ba0541d0d86c5728ce36898a199659
CRs-Fixed: 2475370
2019-06-21 05:47:46 -07:00
nshrivas
ecc0a76765 Release 5.2.0.137S
Release 5.2.0.137S

Change-Id: I1bcb8a0d318a2f9be4f1edf462bc82e1c0f15878
CRs-Fixed: 774533
2019-06-21 04:27:12 -07:00
nakul kachhwaha
ed09dc9304 qcacld-3.0: Handle error returned by cfg_parse
Host driver should exit if it fails to initialize
__cfg_global_store to avoid assertion hit.

Change-Id: I404e5da69cd2c4cf06d55a1d7a96d0aee1e5e4a4
CRs-Fixed: 2454969
2019-06-21 04:27:11 -07:00
nshrivas
31578dd5fd Release 5.2.0.137R
Release 5.2.0.137R

Change-Id: I88dcc2c1b47611f4769e3f75fc4223fb4db5c7c8
CRs-Fixed: 774533
2019-06-21 03:09:12 -07:00
Vevek Venkatesan
dba9bc045b qcacld-3.0: add dummy feature flags for DP compilation
Add dummy feature flags for WIN/MCL converged data path
compilation.

Change-Id: Ia13757fcdcf21d050226fcc0e187658f6eda7b6d
CRs-Fixed: 2467183
2019-06-21 03:09:11 -07:00
nshrivas
136f77ea98 Release 5.2.0.137Q
Release 5.2.0.137Q

Change-Id: Ia286fe931445fb516f5eee6e0dc93432d0c0439b
CRs-Fixed: 774533
2019-06-20 20:15:15 -07:00
Venkata Sharath Chandra Manchala
af9e44acd9 qcacld-3.0: Enable per ring type configuration
Add flag WLAN_DP_PER_RING_TYPE_CONFIG
to enable per ring type configuration.

Change-Id: I14b078cf3c20f07a377ecc53b12f4c114ceb62b2
CRs-Fixed: 2474287
2019-06-20 20:15:14 -07:00
Rajeev Kumar
100b65bfb2 qcacld-3.0: Do not send DTIM related commands for runtime resume
Since system is awake when runtime PM suspend/resume happens, there is
no need to send DTIM related WMI commands with WOW sequence during runtime
PM resume as unlike system suspend, these commands are able to be sent from
other paths. It will just trigger runtime PM resume which is expected
behavior.

Change-Id: I51d0f45c0223a0c0e3c61bbcb7135a590359b08d
CRs-Fixed: 2475111
2019-06-20 20:15:10 -07:00
nshrivas
12c940a71d Release 5.2.0.137P
Release 5.2.0.137P

Change-Id: I5e8e39f5ee97f5817601efdada57966051f88570
CRs-Fixed: 774533
2019-06-20 18:36:15 -07:00
Rajeev Kumar
47b772928b qcacld-3.0: Add null check for hdd_ctx in mode change shutdown/restart
Add null check for hdd_ctx in mode change shutdown and restart callbacks.

Change-Id: I03be071f44b7315aab18d8d38250709553a20a9e
CRs-Fixed: 2475044
2019-06-20 18:36:14 -07:00
Bala Venkatesh
4e3f275a80 qcacld-3.0: Avoid OOB in function tdls_ct_idle_handler
In function tdls_ct_idle_handler, idx is assigned from
tdls_info->index which can be 0 254. But tdls_conn_info
is static array in tdls_soc_priv_obj of size
WLAN_TDLS_STA_MAX_NUM (8). So check idx is less than
WLAN_TDLS_STA_MAX_NUM or not to avoid OOB memory access.

Change-Id: I8387cb0a44a79f0f83b25c12de2aa9fbc39ab2f3
CRs-Fixed: 2474432
2019-06-20 18:36:10 -07:00
nshrivas
db24dda371 Release 5.2.0.137O
Release 5.2.0.137O

Change-Id: I98ead3b171da5bd3d96b44ddc5bee960a9ebcdb1
CRs-Fixed: 774533
2019-06-20 11:59:48 -07:00
Yeshwanth Sriram Guntuka
9d7b25a072 qcacld-3.0: Update default value of force max nss action OUI ini
Update default value of force max nss action OUI ini
to include AP that advertises rx nss as 1 before
connection and advertises rx nss as 4 in association
response and in beacons or probe responses immediately
after connection.

Change-Id: Ica6314547a2aa39d4887ac4231745d6a59cd6b0a
CRs-Fixed: 2466562
2019-06-20 11:59:48 -07:00
Srinivas Girigowda
a60b84c5fd qcacld-3.0: Remove obsolete/unused macros
Remove obsolete/unused macros.

Change-Id: I7a812c9b6ce4f2af151dd7262cb6d93dec6d0c2a
CRs-Fixed: 2475125
2019-06-20 11:59:45 -07:00
gaurank kathpalia
6ee1ab4a90 qcacld-3.0: Allow DBS scan if enabled in ini
Currently the driver checks that DBS for connection
is allowed or not, and on that basis rejects the scan,
but it may happen that FW supports DBS, and DBS for
scan is enabled in the ini, but the DBS for connection
is disabled.
In that case the diver opts for non-dbs scan.

Fix is to allow DBS scan in case of DBS scan enabled in ini.

Change-Id: I9feccdb434787f9ae1b87397b9c7a25cb2e40705
CRs-Fixed: 2473835
2019-06-20 11:59:41 -07:00
nshrivas
c125089162 Release 5.2.0.137N
Release 5.2.0.137N

Change-Id: I14bd08b44c74257fb58b26e35839fc163dc7d1e2
CRs-Fixed: 774533
2019-06-20 08:45:36 -07:00
Vevek Venkatesan
988a1395f2 qcacld-3.0: featurize PKTLOG send cmd under feature flag
Featurize PKTLOG send cmd under feature flag FEATURE_PKTLOG.

Change-Id: Ia7cc0ce3fb3ff2c3b28a0957353f7a3efa4fb6f0
CRs-Fixed: 2474100
2019-06-20 08:45:35 -07:00
Vevek Venkatesan
aa66a19a22 qcacld-3.0: enable QCA_WIFI_QCA6290_11AX_MU_UL feature flag
Enable QCA_WIFI_QCA6290_11AX_MU_UL feature flag for HAL layer.

Change-Id: Ia9cd4e0638fa4f340145f9523af14f720df198f8
2019-06-20 08:45:31 -07:00
nshrivas
200b28acf5 Release 5.2.0.137M
Release 5.2.0.137M

Change-Id: If4b8f69bfa0c7ac38c1fb2a2804d43bfa1426053
CRs-Fixed: 774533
2019-06-19 16:46:29 -07:00
Tushnim Bhattacharyya
72adeb5673 qcacld-3.0: Advertise twt capability correctly
Fix the logic to not to advertise twt requester for SAP &
twt responder for STA.

Change-Id: I153f7c52d0107c75f7c59b4c880bb4aa0757356b
CRs-Fixed: 2473541
2019-06-19 16:46:29 -07:00
Jinwei Chen
8cb25b3042 qcacld-3.0: Enable monitor mode based on VDEV SM
Enable monitor mode based on VDEV SM

Change-Id: I3ed95a7d741b802a67432bc8d8bcab05fe1b51d5
CRs-Fixed: 2457147
2019-06-19 16:46:25 -07:00
Ashish Kumar Dhanotiya
34507e052f qcacld-3.0: Update correct wiphy band capabilities
Driver is updating wiphy band capabilities incorrectly as
it is always updating 2G band as always supported, in case
if 2G band is disabled from ini "BandCapability", driver
should not update 2G band capabilities to wiphy.

To avoid above issue, add a api to check if 2G band is
supported and then only update 2G band capabilities to
wiphy.

Change-Id: Ib921fa106158d93bfdb7aa57cfd5aa4370fab7d8
CRs-Fixed: 2470067
2019-06-19 16:46:21 -07:00
nshrivas
df86b86ada Release 5.2.0.137L
Release 5.2.0.137L

Change-Id: Ida20182c19f78d5a29c604299dd5ea3f82e116e3
CRs-Fixed: 774533
2019-06-19 07:47:17 -07:00
Lihua Liu
e98a13599a qcacld-3.0: Disable QDF_LOCK_STATS_BUG_ON on SDXPRAIRIE platform
As single CPU and low frequency platform, the held time of spin lock
easily exceed the max time allowed when system taking heavy payload.
then crash occur. To address this, Disable QDF_LOCK_STATS_BUG_ON on
SDXPRAIRIE platform.

Change-Id: I156a003b361f3653591102de1cde9b131c467968
CRs-Fixed: 2456386
2019-06-19 07:47:16 -07:00
Rajeev Kumar Sirasanagandla
7172b499a6 qcacld-3.0: Fix out of bound access in sta_to_adapter
Array sta_to_adapter of hdd_ctx is accessed from several functions of
NAN and softap without bound check which can lead to out of bound read
or write access.

To fix this, add range check for sta_id.

Change-Id: I0b8c4e8bce26c6514df489c3305000691c7e1fe0
CRs-Fixed: 2456954
2019-06-19 07:47:12 -07:00
nshrivas
2c3e85f2ee Release 5.2.0.137K
Release 5.2.0.137K

Change-Id: I641190ede519458c214ce20920be056be31ee1f7
CRs-Fixed: 774533
2019-06-19 06:35:36 -07:00
Pragaspathi Thilagaraj
7fb14221a5 qcacld-3.0: Rename selfMacAddr
Linux coding guidelines don't allow use of camel case identifiers.
So rename selfMacAddr to self_mac_addr to be in compliance.

Change-Id: Id70e00744883f9fd797da8d4bb1cf4f65c8aa9ff
CRs-Fixed: 2463827
2019-06-19 06:35:35 -07:00
nshrivas
fb5213d36d Release 5.2.0.137J
Release 5.2.0.137J

Change-Id: Id8a889c9978477f5101876d5eb00978960e11766
CRs-Fixed: 774533
2019-06-19 00:42:36 -07:00
Rajasekaran Kalidoss
79947ffaa8 qcacld-3.0: prevent double free of iface staKeyParams
Memory pointed by stakeyparams is not made NULL after
freeing in wma_set_stakey. This results in double free
during wma_add_bss_sta.

Change-Id: Ifa24d536e116be60f572d9926a511f9f498e6696
CRs-Fixed: 2463399
2019-06-19 00:42:36 -07:00
hangtian
a6f91ce5ef qcacld-3.0: Move two fw-api host headers to driver
Move wlan_tgt_def_config.h wlan_tgt_def_config_hl.h to driver.

Change-Id: I5891d5ef557bb00b9a1632d79aa4c396074e0053
CRs-Fixed: 2474409
2019-06-19 13:36:55 +08:00
nshrivas
0ea20b09a3 Release 5.2.0.137I
Release 5.2.0.137I

Change-Id: I020e5a881e10899a8d355d6e5e7f1ab9cc4f725d
CRs-Fixed: 774533
2019-06-18 22:27:35 -07:00
Tiger Yu
e40e7836a5 qcacld-3.0: Add support for TCP delayed ack in driver
qcacld-2.0 to qcacld-3.0 propagation

This change adds support for driver supported TCP
delayed ack to increase TCP RX performance in
third-party platform which does't support kernel
TCP delayed ack feature.

TCP delayed ack is dependent on count and timer
values. Whatever is achieved first will trigger
sending TCP ack.

This feature can be controlled through ini values.
gDriverDelAckTimerValue - timer value in ms
gDriverDelAckPktCount - delayed ack count
gDriverDelAckEnable - enable/disable feature

Change-Id: I8105bbb90965295b5a4aefeb00d344a90155974d
CRs-fixed: 2414224
2019-06-18 22:27:35 -07:00
nshrivas
c3a3d5572c Release 5.2.0.137H
Release 5.2.0.137H

Change-Id: I74540d24fca47c012add758584fbd036107b5ce5
CRs-Fixed: 774533
2019-06-18 07:51:20 -07:00