Commit Graph

16080 Commits

Author SHA1 Message Date
sheenam monga
6e49e5c314 qcacld-3.0: Add roam_reason in roam auth event
Currently, there is no information for roam reason
in hdd.

Fix, Handle roam reason recived from csr, print roam
reason and add roam reason in roam auth event.

Change-Id: Ib9188cb443fa81307fe23d73cce09f7c23bc7a41
CRs-Fixed: 2425910
2019-05-16 05:57:17 -07:00
Yue Ma
0631a756fb qcacld-3.0: Add PLD API to check DRV connection
Add PLD API in order to check if DRV (Direct Resource Vote) subsystem
is connected or not.

Change-Id: I3b600b0760e27c7111320088034c555aee4ff773
CRs-fixed: 2452039
2019-05-16 05:57:13 -07:00
nshrivas
e30731dc75 Release 5.2.0.133J
Release 5.2.0.133J

Change-Id: Iaeadfa53a1964c18556008f42839e9599b6d2919
CRs-Fixed: 774533
2019-05-16 02:28:24 -07:00
Yue Ma
b4ebd87f7b qcacld-3.0: Add WLAN device version to SOC info API
Populate WLAN device version related info along with other SOC info
in pld_get_soc_info() API.

Change-Id: Ie0e862c6755d10fbc80b11fbf39d004fafcfd9af
CRs-fixed: 2437413
2019-05-16 02:28:23 -07:00
Yue Ma
9f7d35c752 qcacld-3.0: Add comments for a PMO API
Any new param_id added to target_if_pmo_send_vdev_update_param_req
should be added to wmi_tag_vdev_set_cmd to be tagged for runtime PM
feature so that it will not invoke runtime PM get which may result
resume right after suspend (WOW_ENABLE).

Change-Id: Ifa154b38ec91599023e30a37b7fcfef88f5f0491
CRs-fixed: 2451994
2019-05-16 02:28:19 -07:00
Yue Ma
80fb30c778 qcacld-3.0: Remove PSOC sync protection for runtime PM resume
Unlike runtime PM suspend, resume may need happen synchronously
during driver shutdown or idle shutdown, hence remove PSOC sync
protection for runtime PM resume.

Change-Id: I4112215d3415dbe6da225d8feb2af7207d88753a
CRs-fixed: 2451994
2019-05-16 02:28:14 -07:00
nshrivas
77d8f3daf8 Release 5.2.0.133I
Release 5.2.0.133I

Change-Id: I6008dc7e0b48353d0b13795d53f498e39fb589e0
CRs-Fixed: 774533
2019-05-15 21:34:10 -07:00
nakul kachhwaha
5913f35b27 qcacld-3.0: Check neighbor roam state before issuing disconnect
wlan_hdd_try_disconnect should wait for LFR 2.0 based roaming
sequence to complete before triggering disconnect to avoid
potential race conditions.

Change-Id: Ib5ee542350fb8c375bb3629f5437bc37cc79dbb7
CRs-Fixed: 2434842
2019-05-15 21:34:09 -07:00
nshrivas
b7a6d1a405 Release 5.2.0.133H
Release 5.2.0.133H

Change-Id: I9b32a9b366d48d10b32af6a5a7795c38a4498287
CRs-Fixed: 774533
2019-05-15 13:22:06 -07:00
Pragaspathi Thilagaraj
98e70590d4 qcacld-3.0: Cleanup lim_update_fils_config()
The function lim_update_fils_config(), is invoked when
csr_send_join_req() sends the join request message to lim. It
copies the fils related configurations to lim from csr. The
variable csr_fils_info is used for destination lim structure.
This is misleading.

Rename csr_fils_info to pe_fils_info in lim_update_fils_config.

Change-Id: Idac1f73bba5ceff646e09b588f3e08ed4968a0fd
CRs-Fixed: 2445238
2019-05-15 13:22:06 -07:00
Yu Ouyang
346191a403 qcacld-3.0: fix reassociation issue
While getting reassociation request frame, user space hostapd will
trigger diassociate with reason code 13. Association can't be
established.

The root cause is host driver forwards more 6 bytes to user space.
The 6 bytes is current AP address in association request frame.
Hostapd can't paras association request frame because the additional
6 bytes.

Skip current AP address before forwarding reassociation request
frame to user space.

Change-Id: I94a7c26289f24a1f0716fe64c4ee58eae1a913c6
CRs-Fixed: 2435392
2019-05-15 13:22:02 -07:00
nshrivas
560dfabd8d Release 5.2.0.133G
Release 5.2.0.133G

Change-Id: I4dbdcc0e8acd9329affc05849470db66ddcb720c
CRs-Fixed: 774533
2019-05-15 05:47:02 -07:00
Rakshith Suresh Patkar
d31f1e5ed9 qcacld-3.0: Move enum WDI_EVENT to common datapath
Move the enum WDI_EVENT from wdi_event.h to
cdp_txrx_stats_struct.h as it is used in
common datapath.

Change-Id: If3a2dcc481d59e6615e4a50ffbb721bf61fb75c2
CRs-Fixed: 2449966
2019-05-15 05:47:01 -07:00
nshrivas
0734993ceb Release 5.2.0.133F
Release 5.2.0.133F

Change-Id: Ia852078e4a8aea55c49b4cef825bae1aec745637
CRs-Fixed: 774533
2019-05-14 23:57:46 -07:00
Sourav Mohapatra
618f208d24 qcacld-3.0: Add check for zero before division
Currently in function pmo_core_config_modulated_dtim there is a possible
scenario of a division by zero. The parameter dtim period can have zero
value.

Add a check before performing the operation.

Change-Id: Ida4a798e5c7914966db25bd188821a75caaf4353
CRs-Fixed: 2432010
2019-05-14 23:57:46 -07:00
nshrivas
4c085174de Release 5.2.0.133E
Release 5.2.0.133E

Change-Id: I706755243d01e316653d3766efc8267b5239ad74
CRs-Fixed: 774533
2019-05-14 18:39:44 -07:00
Mohit Khanna
a8c9f569ea qcacld-3.0: INI support for RX softirq time limit
Add changes to configure params for RX softirq time limit feature via
INI file.

Change-Id: I714a64e3d4ba7f094a81b4d11dab9bc63c7ee2de
CRs-Fixed: 2423622
2019-05-14 18:39:43 -07:00
Mohit Khanna
d02e9b8b42 qcacld-3.0: Enable RX_SOFTIRQ_TIME_LIMIT flag
Add support to enable RX softirq yield time limits.

Change-Id: I99c7e2515c3aa75dda8ddf3b5fd849ed0063cdf0
CRs-Fixed: 2423622
2019-05-14 18:39:38 -07:00
nshrivas
cd6ac97ba2 Release 5.2.0.133D
Release 5.2.0.133D

Change-Id: I5a7824f8fa39de933c47730443a46938d24804bd
CRs-Fixed: 774533
2019-05-14 13:03:09 -07:00
Arun Kumar Khandavalli
43fdd25d72 qcacld-3.0: Move allocation of tdls private to tdls component
Presently osif tdls memory is freed as part of the osif_priv
when the vdev is logically destroyed. There is case seen
wherein the  tdls is holding vdev reference and in the other
thread the  interface down is received and the osif_priv is
freed resulting in the tdls osif priv also, if the other thread
tries to dereference the tdls os priv it will result
null pointer exception.

Move the tdls osif priv memory creation/deletion to the tdls component.

Change-Id: I3782f6304bee5a6eaab4d9122a569ba56fd29947
CRs-Fixed: 2436379
2019-05-14 13:03:08 -07:00
nshrivas
f151174be6 Release 5.2.0.133C
Release 5.2.0.133C

Change-Id: I1fa7f35e84840ac7ff88cdac5a30886f25497436
CRs-Fixed: 774533
2019-05-14 11:15:43 -07:00
Bala Venkatesh
5f34f7ffc4 qcacld-3.0: Allow SAP on channel 165 with BW 40MHZ
Currently, SAP channel switch is failed if the BW given
is 40Mhz on channel 165. But for some country's like IN
BW 40Mhz can be used. Hence allow the SAP on channel 165
with BW 40Mhz

Change-Id: I89a023d52d9a52e342b3e08e37ad20aec65db1a6
CRs-Fixed: 2447398
2019-05-14 11:15:42 -07:00
nshrivas
711f54ecdd Release 5.2.0.133B
Release 5.2.0.133B

Change-Id: I043570dd519d66c40f58473cc3e554571f469ce0
CRs-Fixed: 774533
2019-05-14 05:46:21 -07:00
Liangwei Dong
9a91b8a0fe qcacld-3.0: AP-AP chan override
If FW does not support WMI_SERVICE_DUAL_BEACON_ON_SINGLE_MAC_MCC_SUPPORT,
in AP+AP case start the second SAP on same band and
different channel will be failed.
For force mcc to scc switch enabled case, override the second AP's
chan to same chan of first AP instead of return failed in start AP.

Change-Id: I83ad3db3160cfc2dd66163bb1e1b2e19ae7c5fa3
CRs-Fixed: 2439440
2019-05-14 05:46:20 -07:00
Wu Gao
eaa472be0f qcacld-3.0: Correct configurations' description and type
Correct INI description for "gTDLSRSSIDelta", and configuration type
for below items:
 - CFG_VALID_CHANNEL_LIST
 - CFG_COUNTRY_CODE

Change-Id: If7ae2845c06b39ba9ce5af96c21bbe3900edbdf4
CRs-Fixed: 2448134
2019-05-14 05:46:15 -07:00
nshrivas
b0423d0f0e Release 5.2.0.133A
Release 5.2.0.133A

Change-Id: Id1f30be8d218af9bc4a510f3f3cb2c812a7433c7
CRs-Fixed: 774533
2019-05-14 03:51:52 -07:00
Rakshith Suresh Patkar
03eee08aad qcacld-3.0: Enable SMMU S1 TRANSLATION for LITO
Enable SMMU S1 TRANSLATION flag for LITO

Change-Id: If4bcdbbb5ac4036588383c83338a6e1fe4760272
CRs-Fixed: 2451546
2019-05-14 03:51:52 -07:00
nshrivas
51caaac904 Release 5.2.0.133
Release 5.2.0.133

Change-Id: I229c6d69cd956e487d5a6171e008db1c01b8b181
CRs-Fixed: 774533
2019-05-13 03:31:32 -07:00
Rajeev Kumar Sirasanagandla
105318b8b0 qcacld-3.0: Avoid OBSS scan fail during SSR
When SSR is in progress, OBSS vendor scan request is rejected with
reason code -EAGAIN, but hostapd doesn't consider this reason code
and resulting in the failure of hotspot start.

To fix this, return error code -EBUSY which makes hostapd to reissue
OBSS scan.

Change-Id: I71119f542011aebece5692347ceb99f4a65decef
CRs-Fixed: 2443341
2019-05-13 03:31:31 -07:00
Abhishek Singh
b5c73a475c qcacld-3.0: Cleanup sme_scan_flush_result to use cmn scan API
Cleanup sme_scan_flush_result and csr_scan_flush_result to
use ucfg_scan_flush_results API to flush scan results.

Change-Id: If4ee6c56662d8b214c3b15325a5aef83c449d7c0
CRs-Fixed: 2450775
2019-05-13 03:31:26 -07:00
Abhishek Singh
d1cd4aed4f qcacld-3.0: Use new scan API to get scan results in ACS
ACS used old csr API's to get scan results, move it to use
converged scan API.

Change-Id: Ic62ac940bb6a5cc2eb3ea0e9888807ed74974d3a
CRs-Fixed: 2450559
2019-05-13 03:31:21 -07:00
Rajeev Kumar
473f9afe2a qcacld-3.0: Serialize psoc idle shutdown and restart via PLD
Serialize psoc interface inactivity idle shutdown and restart via PLD
such that platfrom driver can serialize psoc idle shutdown and restart
to driver unload and SSR events to avoid any race conditions.

Change-Id: Ibac40158ad5b94468b09c53eaf7f3d9a3cb8badf
CRs-Fixed: 2430868
2019-05-13 03:31:17 -07:00
nshrivas
c5cece1057 Release 5.2.0.132Z
Release 5.2.0.132Z

Change-Id: I84f648d4cb87489c9d45d6a7ecd454e8a3167f5f
CRs-Fixed: 774533
2019-05-13 00:29:50 -07:00
Min Liu
afd51828ff qcacld-3.0: Fix incorrect conditional statement in wma_start_extscan
In wma_start_extscan, it will always return error due to an
incorrect conditional statement.

Change-Id: Iddb81e34a59ff541d4a17e45b8eca13e704fb89d
CRs-Fixed: 2450704
2019-05-13 00:29:50 -07:00
nshrivas
b835e32d11 Release 5.2.0.132Y
Release 5.2.0.132Y

Change-Id: I8b4c1c21f543c7baa7a41f2e564b164b20151a33
CRs-Fixed: 774533
2019-05-10 19:07:06 -07:00
Abhinav Kumar
0ed614c1c9 qcacld-3.0: Send scan start indication to userspace
If firmware starts off-channel scan, driver does not
receive beacons. In this case driver should send a
pause event to userspace.

Change-Id: I90ba5c586656486df110778b73b236e5877f8684
CRs-Fixed: 2431359
2019-05-10 19:07:05 -07:00
Abhinav Kumar
4d1f9f442d qcacld-3.0: Send connected AP beacon data to userspace
Once driver gets QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING vendor
command with an attribute for start, firmware sends all
beacons to host for the connected peer. Host extract required info
(SSID, BSSID, Channel number, Beacon Interval, Timestamp, System
timestamp) from incoming beacon for connected AP and sends it to
userspace. Userspace needs this data for WIPS.

Change-Id: I9d6dd068a076bda79881043946be3133ee87fe84
CRs-Fixed: 2431354
2019-05-10 19:07:01 -07:00
Abhinav Kumar
dbbfd2c3ff qcacld-3.0: Support asynchronous beacon reporting feature
Add new vendor cmd : QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
This subcommand is used to implement asynchronous beacon
reporting feature. Userspace can request driver/firmware to
report details of each beacon received whose bssid is same as
currently connected BSS's mac address. The driver will encapsulate
the details of these beacons as an asynchronous event within this
command id until userspace requests to stop sending beacons.

Change-Id: I9a32fe5431767b077983c7db90a2f825709f368c
CRs-Fixed: 2431351
2019-05-10 19:06:56 -07:00
nshrivas
721b5f34b6 Release 5.2.0.132X
Release 5.2.0.132X

Change-Id: I0d47b2395cb342a365bd1d4dbc666523b426579e
CRs-Fixed: 774533
2019-05-10 16:28:33 -07:00
Abhishek Singh
06522c56cd qcacld-3.0: On CSA complete, check if all peer need to be disconnected
CSA on DFS channels requires CAC period after RESTART response, peers
can leave during CAC period due to HB failure. But peers remain
connected in SAP and are not deleted.
Now if vdev down is called during CAC wait period, the peer delete
all is not called, and vdev delete is sent without sending peer
delete to firmare leading to assert.

This change adds the logic to internally disconnect all peers before
channel switch if CAC is required on new channel, i.e new channel is
DFS and pre-CAC is not done and ignore cac is not set.

Change-Id: I923fd11d1b9d4a2c606b19ff94baaf44397d3e20
CRs-Fixed: 2449104
2019-05-10 16:28:32 -07:00
sheenam monga
a4efa2af85 qcacld-3.0: Add support to pass scan priority in cfg initiated scan
Add support to pass scan priority to override the def scan priority
for cfg initiated scan.

Change-Id: I454c2667d1814d96fbb611e6ecbb90d4154ec9b5
CRs-Fixed: 2449730
2019-05-10 16:28:27 -07:00
Rajeev Kumar Sirasanagandla
05f1f2dc2b qcacld-3.0: Avoid integer overflow in set_wifi_test_config
While processing vendor command WIFI_TEST_CONFIG_TWT_SETUP,
in respective command handler __wlan_hdd_cfg80211_set_wifi_test_config()
there is no maximum range check of INTVL_EXP and INTVL_MANTISSA attrs
which can lead to potential integer overflow.

Also there is no check whether mandatory attrs like DURATION,
INTVL_MANTISSA etc., are present. If these mandatory attrs are
not present then driver is initializing them to zeros
which can lead to divide by zero error when calculating wake interval.

To address this, return error when mandatory attributes are not
present and add maximum range check.

Change-Id: If3ac71e1263906fdd502c77103e1fff91f65e816
CRs-Fixed: 2435728
2019-05-10 16:28:21 -07:00
Min Liu
d35ae31641 qcacld-3.0: Fix stats ext callback deregistration
In hdd_deregister_cb, wlan_hdd_cfg80211_stats_ext_callback should
be deregistered instead of registered.

Change-Id: Ib7051aeb4579e2573b1b1845601aee07f596bcbc
CRs-Fixed: 2449023
2019-05-10 16:28:16 -07:00
nshrivas
e937a1f560 Release 5.2.0.132W
Release 5.2.0.132W

Change-Id: Idd35ce40a01a0b88080025eb5cc41d5cc88cf86d
CRs-Fixed: 774533
2019-05-10 01:34:33 -07:00
Rachit Kankane
3621f7b32a qcacld-3.0: Enable WLAN_FEATURE_PACKET_FILTERING
Enable WLAN_FEATURE_PACKET_FILTERING for Genoa

Change-Id: I7d438e42015217585e6145d52ec8c3469e149680
CRs-Fixed: 2449886
2019-05-10 01:34:32 -07:00
Yue Ma
66984e2bd4 qcacld-3.0: Return error code for PMO runtime suspend failure
Some failures in PMO runtime suspend do not return any error code.
Fix them by returning proper error code.

Change-Id: Icc6b8fef45707cba6dc2cef7ec44cd5c71d2f07d
CRs-fixed: 2450271
2019-05-09 14:27:45 -07:00
nshrivas
9f3bd236ef Release 5.2.0.132V
Release 5.2.0.132V

Change-Id: I2e4ecbcd83b879a2e0dc1a6e292b87974d667ebb
CRs-Fixed: 774533
2019-05-09 04:59:02 -07:00
gaurank kathpalia
d778617b39 qcacld-3.0: Use acs scan request timestamp in scan req
Currently the driver flushes all the scan results during
ACS request, and then scans the specific channels as
mentioned in the request, which leads to a scan again
for the STA interface as no scan results are available.

Fix is to have a timestamp, and get only the latest scan
results, instead of the scan database flush.

Change-Id: Icc343fcca77fb7074071ca1d467947ef70fd1930
CRs-Fixed: 2446490
2019-05-09 04:59:02 -07:00
nshrivas
887e7aa8b6 Release 5.2.0.132U
Release 5.2.0.132U

Change-Id: I0fbf8cf0e4abd4bcf101b8e8d2a7de81121995e9
CRs-Fixed: 774533
2019-05-08 04:47:01 -07:00
gaurank kathpalia
b8db936cfe qcacld-3.0: Select a different channel than self for SAP restart
Scenario of the issue is :-
1. Keep sta+sap_scc_dfs_ch as 0 to disable the dfs concurrency
2. Start a SAP on any 5ghz channel(NON-DFS).
3. Start a STA on a DFS channel.

Expectation: The SAP should not do MCC, SCC as the above
mentioned ini is 0, also MCC is not prefereed in a HW
solution where DFS is preferred, hence the SAP should go
to 2.4ghz and DBS should be the expectation.

Observation: The SAP does not do a DBS operation, and falls to
MCC here.

Reason: When the SAP gets a PCL in the path of SAP restart,
the PCL feels that a new SAP is going to come up, and hence
gives the best channel (first element of PCL ) as its own,
which leads to restart being rejected, as the SAP cannot start
on a channel which is the same as existing.
The final channel then selected is the STA channel, leading to
DFS SCC which is also not allowed. Hence the SAP is now stuck
in MCC(STA+SAP , one on DFS, and the other on NON-DFS channel).

Fix: The fix is to get an alternate channel for SAP restart, other
than the channel on which the SAP is already up, to lead to DBS,
if the STA channel is not suitable for SCC operaion.

Change-Id: Iab3ad22b2f970ca26ce3e6bc7a9b5ee34bc7e7ba
CRs-Fixed: 2443718
2019-05-08 04:47:00 -07:00