Commit Graph

17736 Commits

Author SHA1 Message Date
Liangwei Dong
17b35c18f9 qcacld-3.0: Remove op_chan and wlan_reg_freq_to_chan
Remove unused op_chan local variable. Remove call to
wlan_reg_freq_to_chan.

Change-Id: I351fe9df7f419fe9345dce73c948d34a73bfcc8a
CRs-Fixed: 2940016
2019-11-27 14:15:28 -08:00
nshrivas
67f98a07a8 Release 5.2.0.158Z
Release 5.2.0.158Z

Change-Id: Ib22bf466fe5f0b7ea0e82d7f2a8344f75d6f39ea
CRs-Fixed: 774533
2019-11-27 13:01:08 -08:00
Lin Bai
d3557ff59f qcacld-3.0: Eliminate trivial warn-level print
Eliminate unnecessary warn-level print in
sch_set_fixed_beacon_fields().

Change-Id: I9ccaa077ee522665df4554f1a2c6be636d69804a
CRs-Fixed: 2574158
2019-11-27 13:01:07 -08:00
nshrivas
0792dd15bd Release 5.2.0.158Y
Release 5.2.0.158Y

Change-Id: Iac0dd247657cd6a975c16627eb4696acfaab167e
CRs-Fixed: 774533
2019-11-27 07:04:34 -08:00
wadesong
d8a7719df3 qcacld-3.0: Convert CSR legacy channel ID usage
1) Change the following functions to make them use channel
   frequencies intead of channel IDs:

   csr_process_roam_sync_callback
   csr_save_to_channel_power2_g_5_g
   csr_save_tx_power_to_cfg

2) Remove some local variable and code within function
   csr_save_tx_power_to_cfg as they're not used.

3) Retain the code for channel ID utilization within
   csr_get_channel_power_info as they're used to
   indicate diag info to upper layer apps.

Change-Id: Ib294fd04f770c008afaa0049fb1951aa912caf34
CRs-Fixed: 2573403
2019-11-27 07:04:33 -08:00
nshrivas
e5388d1ca9 Release 5.2.0.158X
Release 5.2.0.158X

Change-Id: Ia5f621f2c8d723ba3f380139791b0371f70d713d
CRs-Fixed: 774533
2019-11-27 05:37:47 -08:00
Ajit Pal Singh
f9e06bcb45 qcacld-3.0: DP: HL: Use netif_rx_ni to hand over packets
On HL systems use netif_rx_ni to hand over packets to network stack.

Change-Id: I14f9e50d74a6aca44c74e97c07372d391ada9aa9
CRs-Fixed: 2574352
2019-11-27 05:37:46 -08:00
Ajit Pal Singh
4c8f6720a1 qcacld-3.0: Kbuild: Do not enable SG and RX_THREAD_PRIO for QCN7605
Do not enable CONFIG_FEATURE_SG and CONFIG_RX_THREAD_PRIORITY for QCN7605

Change-Id: I3320e863dfbe427e326890d2f1d2ccfb2ea04db7
CRs-Fixed: 2574197
2019-11-27 05:37:34 -08:00
nshrivas
cc971f716c Release 5.2.0.158W
Release 5.2.0.158W

Change-Id: I088521cc71b15fa9d2cc213a1c0d87e796f71abb
CRs-Fixed: 774533
2019-11-27 04:17:03 -08:00
Saket Jha
a842ded897 qcacld-3.0: ndo_select_queue support for 5.4 kernel
In the 5.4 Linux kernel, the ndo_select_queue function signature has
changed. Add support for it under the kernel version compilation flag.

Change-Id: I7298f27ada14c0d96c19f5168a20971ad760fd77
CRs-Fixed: 2558984
2019-11-27 04:17:03 -08:00
Liangwei Dong
b5e89852ab qcacld-3.0: Fix Memory leak sta_ap_intf_check_work_info
At present policy_mgr_check_concurrent_intf_and_restart_sap
will allocate memory for sta_ap_intf_check_work_info for each
work scheduling of sta_ap_intf_check_work. Potential race condition
would be the pm_ctx->sta_ap_intf_check_work_info is overwritten
in other thread context which is calling same function.
It is not necessary to maintain the memory
sta_ap_intf_check_work_info dynamically since only one work
sta_ap_intf_check_work is expected to run at same time.

Move the sta_ap_intf_check_work_info memory allocation to
psoc open handler and free it when psoc close.

Change-Id: I29b2f2528a6d537cb853968153340a75fd5fe88b
CRs-Fixed: 2571624
2019-11-27 04:16:41 -08:00
nshrivas
1b3b9c352d Release 5.2.0.158V
Release 5.2.0.158V

Change-Id: I783f89265752283fb14f733651c4c50fe13530dd
CRs-Fixed: 774533
2019-11-26 23:19:15 -08:00
Min Liu
71abe09ede qcacld-3.0: Return error when invalid channel is set for SAP
For the vendor command QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG,
if invalid channel is specified, wlan driver return success.
It should return error for such case.

Change-Id: Ic5dbfaf04a41ee75b97ecba52a577e9ebf78dc05
CRs-Fixed: 2573244
2019-11-26 23:19:15 -08:00
nshrivas
569b31cec2 Release 5.2.0.158U
Release 5.2.0.158U

Change-Id: I71ce13de01a6b439add6d7b1ccf83bab42662cd3
CRs-Fixed: 774533
2019-11-26 22:00:17 -08:00
Liangwei Dong
d4a91a6f12 qcacld-3.0: Refine wma_get_caps_for_phyidx_hwmode
The current function doesn't handle "hw_mode" parameter.
And if band is specified the function needs to find the
correct "phy cap" in mac_phy_cap list.
The "supported_bands" can be a bit mask of
(WLAN_2G_CAPABILITY | WLAN_5G_CAPABILITY), use "&" to find
the phy cap of requested band.
Remove unused API wma_get_phyid_for_given_band.

Change-Id: I4b120d681b820e2a6e2b82f33d67fbcf6136af09
CRs-Fixed: 2571400
2019-11-26 22:00:17 -08:00
nshrivas
cb6c24411d Release 5.2.0.158T
Release 5.2.0.158T

Change-Id: I018365499fe11ce255628f068fd26a3f4076d848
CRs-Fixed: 774533
2019-11-26 15:47:40 -08:00
Amruta Kulkarni
0eb81451b3 qcacld-3.0: Fix out of bound memory access
In wma_link_status_event_handler() check added to fix
out of bound access.

Change-Id: Iea8346d82b5d766dca5da117f415f6fbe2f40706
CRs-Fixed: 2558009
2019-11-26 15:47:39 -08:00
Abhishek Singh
ec2dbe23e2 qcacld-3.0: Log vdev id and opmode while creating pesession
While pesession is created, the vdev id and opmode is not
logged. Thus it become difficult to check for which vdev the
session is created.

Add logs to print vdev id and opmode while creating pesession.

Change-Id: Ie550630c96342a812994fa6cb00b30427d3f5e93
CRs-Fixed: 2573242
2019-11-26 15:47:28 -08:00
nshrivas
3a5ca969df Release 5.2.0.158S
Release 5.2.0.158S

Change-Id: Iac04bddf202968fcf800e769f5b9b1292f7e1489
CRs-Fixed: 774533
2019-11-26 11:44:51 -08:00
Subrat Dash
42155f64d6 qcacld-3.0: Add support to retry gpio sync for capturing tsf
When the chip is power save mode it misses the gpio strobe
from the host platform. The TSF is not latched is not latched
in this case. As a result the reported TSF in the
WMI_VDEV_TSF_REPORT_EVENTID is not correct.

Fix this by adding a retry mechnism when the reported TSF is not proper.

Change-Id: Ica2d5c796e9d021b65e898ee3defe88d62183911
2019-11-26 11:44:50 -08:00
nshrivas
239b4fe9b5 Release 5.2.0.158R
Release 5.2.0.158R

Change-Id: I4186ab8485039482b232b68ef50480093a70a861
CRs-Fixed: 774533
2019-11-26 10:09:52 -08:00
Kiran Kumar Lokere
2f8a36092f qcacld-3.0: Validate peer HE mcs map before configuring to FW
Validate the HE mcs map in assoc response frame while sending it
in peer assoc command to FW. If the valid MCS is not found in assoc
response frame then populate HE mcs map from beacon HE caps as the
session Nss is derived from beacon capabilities.

Change-Id: Icea452bc23b86f8a45f6096ffcacbc6f8545aab5
CRs-Fixed: 2566959
2019-11-26 10:09:52 -08:00
nshrivas
2b81089239 Release 5.2.0.158Q
Release 5.2.0.158Q

Change-Id: I190b367ea0e071fa2626bd3a5fefa229b89ead8e
CRs-Fixed: 774533
2019-11-26 08:42:08 -08:00
Rachit Kankane
e599de301c qcacld-3.0: Add check ongoing deauth message
There are two path in code to deauth a associated STA in SAP mode:
1. Deauth issued from user space
2. Deauth issued from peer

Rectified the check for ongoing deauth before queuing for another.

Change-Id: Ib3f45968c770b1df25c77aed9fd1e3bc8edd6e72
CRs-Fixed: 2567087
2019-11-26 08:42:08 -08:00
nshrivas
524b578311 Release 5.2.0.158P
Release 5.2.0.158P

Change-Id: Ie26a5d3be60063cbb7b279b5a11bda31f8670e15
CRs-Fixed: 774533
2019-11-26 07:10:18 -08:00
Pragaspathi Thilagaraj
c051588e64 qcacld-3.0: Add support for RSNXE IE for SAE
SAE key derivation requires use of a secret element, PWE. This
element is deterministically discovered by repeatedly hashing
the password with some additional information until the
resulting hash is the abscissa of a point on the elliptic curve
(for ECC) or by exponentiating the hash digest to a constant to
produce an element (for FFC). This "hunting-and-pecking" loop
method is prone to side channel attacks.

To avoid this, a direct hashing to element technique in SAE is
introduced in IEEE P802.11-REVmd/D3.0. Support new RSNX IEEE
as part of the hash to element PWE derivation. The user space
sends the RSNX IE in the connect request.

Add support to save RSNXE from connect request and pack this IE
over SAE assoc request. Also send the IE in assoc IEs in RSO
commands.

Change-Id: I8eb756840400753794b1b80befe3a20f7d7c7705
CRs-Fixed: 2569596
2019-11-26 07:10:17 -08:00
nshrivas
f61ec0cc0e Release 5.2.0.158O
Release 5.2.0.158O

Change-Id: Ide25dcbf9d3575a131bfed47daa6c803c3f62a86
CRs-Fixed: 774533
2019-11-26 05:30:19 -08:00
Abhishek Singh
cc02c9b51b qcacld-3.0: Rename sme_sessionid to vdev_id in LIM APIs
Rename sme_sessionid to vdev_id in LIM APIs.

Change-Id: I93ff5c9fa7a7d045753bf4321fa0501f2ecef84d
CRs-Fixed: 2573439
2019-11-26 05:30:18 -08:00
Sourav Mohapatra
2a67b0ed24 qcacld-3.0: Add driver command to request ANI level
The ANI level determines how well the device is coping with interference
in the wireless environment. Add support in the driver to query the ANI
level from the firmware and populate it for userspace entities to use.

Change-Id: I54934f670aa11737e11eca4d64e12f9dffb4f430
CRs-Fixed: 2554674
2019-11-26 05:30:13 -08:00
Abhishek Singh
f554e7a205 qcacld-3.0: Remove unused csr serialization APIs
Remove unused csr serialization APIs.

Change-Id: I80b126abbb3c52aa854343dcad6834835ae53038
CRs-Fixed: 2573395
2019-11-26 05:30:00 -08:00
Abhinav Kumar
335074e703 qcacld-3.0: Set wdev for vendor event BEACON_REPORTING_INDEX
Currently host sends wdev as NULL to cfg80211_vendor_event_alloc,
this allows userspace to process nl_cmd for
QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX event with P2P
interface instead of WLAN.

Set wdev with proper value to avoid processing nl_cmd with P2P
interface by userspace.

Change-Id: If0b99efdc76c1f89b6b07ee72edc6c5e2994a90c
CRs-Fixed: 2568776
2019-11-26 05:29:47 -08:00
Chaoli Zhou
a8ed32b5ed qcacld-3.0: Support coex parameter set to fw although chainmask set failure
In the adapter start phase, if meet chainmask configure
failure, and it should not block other parameters set
to fw, like some coex parameters that still needed.

Change-Id: I3c47ec233efc774e70205b27d2e0b5c6815bfe82
CRs-Fixed: 2572001
2019-11-26 05:29:31 -08:00
nshrivas
38a529c2ec Release 5.2.0.158N
Release 5.2.0.158N

Change-Id: Id6e563210418712d8c45c7e16bb05812166c0102
CRs-Fixed: 774533
2019-11-26 02:14:27 -08:00
Alok Kumar
939ca50cf2 qcacld-3.0: Update Datastall callbacks definition
Update definitions for datastall callback which posts
DataStall Events.

Change-Id: I1aadb438afeafe1f13114b1472b2280f0f713db4
CRs-Fixed: 2563194
2019-11-26 02:14:27 -08:00
Alok Kumar
a6bdc6f28d qcacld-3.0: Add feature flag for DataStall
Add feature flag WLAN_SUPPORT_DATA_STALL to
support host datastall.

Change-Id: I263da2de9af1f2a1d17027601fc625c31d5ad76d
CRs-Fixed: 2564310
2019-11-26 02:14:14 -08:00
Venkata Sharath Chandra Manchala
06f1f1225b qcacld-3.0: Enable Force wake
Enable Force wake feature through Kbuild
to access address range greater than BAR+4K
at runtime.

Change-Id: Ibe3c3b9b765c256493b1d5f9258e462760d45dc6
CRs-Fixed: 2557978
2019-11-26 02:13:59 -08:00
nshrivas
d21e90a057 Release 5.2.0.158M
Release 5.2.0.158M

Change-Id: Ia50a00c524815c9f958822c13433aeda645034ea
CRs-Fixed: 774533
2019-11-25 16:14:57 -08:00
Rakesh Pillai
e9c7f1d89b qcacld-3.0: Check vdev handle before returning opmode
The query for an interface opmode returns the opmode
of a particular interface without checking if that
particular virtual interface handle is valid or not.

Fix this by checking the virtual interface handle
before trying to get the operation mode for that
particular interface.

CRs-Fixed: 2572981
Change-Id: I05b5f88455d6374adb41a037d3c5dda905de1497
2019-11-25 16:14:56 -08:00
Wu Gao
6fc2b727cc qcacld-3.0: Register spectral to DBR in hdd_wlan_start_modules
Since it will takes long time to register spectral to Direct Buffer RX
component, and it will affect wmi ready event handling in pdev open.
So register spectral to dbr after wmi ready event handled.

Change-Id: I51844a708ed69144618e5b0846747601d4d96a9d
CRs-Fixed: 2560822
2019-11-25 16:14:41 -08:00
nshrivas
f888d1b161 Release 5.2.0.158L
Release 5.2.0.158L

Change-Id: I3256038a1a476e33a8b96706cab3decbfc48cc61
CRs-Fixed: 774533
2019-11-25 13:43:14 -08:00
hqu
19f7c76165 qcacld-3.0: Convert SME code legacy channel ID usage
Add op_freq info for structure host_log_ibss_pkt_type and
host_event_wlan_connection_stats before indicate diag event.

Change-Id: Icbb69c0d93062654984b63e11969d0819818c56e
CRs-Fixed: 2554198
2019-11-25 13:43:13 -08:00
nshrivas
e6e71d1d34 Release 5.2.0.158K
Release 5.2.0.158K

Change-Id: If7d24584b9ca7f212988823b0be36d241149a155
CRs-Fixed: 774533
2019-11-25 03:56:59 -08:00
Min Liu
818395d83e qcacld-3.0: Fix race condition when disconnecting
Fix one more scenario which is not covered by the change
Ib6a30057469d60efcc905d97b5234ea5a0e097a8

For some timing issue, HDD conn state is set to disconnecting
after hdd_association_completion_handler is called. So
hddDisconInProgress is not set and disconnect_comp_var will not
be completed in hdd_association_completion_handler.

To fix this issue, QDF_STATUS_CMD_NOT_QUEUED should be set only
when scan for ssid is in progress, with pSession->scan_info.profile
we can check if scan for ssid is in progress. So set
QDF_STATUS_CMD_NOT_QUEUED only when pSession->scan_info.profile
is set.

Also if disconnect from LIM was already in progress (i.e.
csr_is_conn_state_connected and
csr_is_roam_command_waiting_for_session are false and
pSession->scan_info.profile is set), return failure and wait for
WLAN_WAIT_DISCONNECT_ALREADY_IN_PROGRESS ms for the disconnect
to be completed.

Change-Id: Ib490021775a39614646f8e518860c878cc0fdaae
CRs-Fixed: 2564992
2019-11-25 03:56:58 -08:00
nshrivas
23b0263034 Release 5.2.0.158J
Release 5.2.0.158J

Change-Id: I0df6f9c715476239ffb6373e5685be2a026eeb82
CRs-Fixed: 774533
2019-11-24 22:34:33 -08:00
Sandeep Puligilla
425a583863 qcacld-3.0: Kbuild change to enable SCAN priority algorithm
Kbuild change to enable SCAN priority channel list algorithm.

Change-Id: I2dc24dd22e19da6db516332ae14edf4bc0f8cce4
CRs-Fixed: 2568889
2019-11-24 22:34:32 -08:00
Alan Chen
f1096fd358 qcacld-3.0: Replace calls to get_monotonic_boottime() with qdf wrapper
Some functions have been calling get_monotonic_bootime() directly, which
is now obsolete, having been replaced with ktime_get_boottime(). Change
calls to get_monotonic_boottime() with qdf_get_monotonic_boottime(),
which has now been updated to call ktime_get_boottime().

Change-Id: I9ce4bf2104077b6aacf841416997acb6f64b2841
CRs-Fixed: 2564544
2019-11-24 22:34:14 -08:00
nshrivas
ac14007074 Release 5.2.0.158I
Release 5.2.0.158I

Change-Id: Ia0f0581d13ce487021c6341f20af91524245e0ce
CRs-Fixed: 774533
2019-11-22 08:32:25 -08:00
gaurank kathpalia
44f1abad87 qcacld-3.0: Block 3 port concurrency for MCC
Currently the 3 port concurrency combinations
which are not PORed should not be allowed to
connect or beacon as it could lead to functional
issues.

Fix is to bloack the 3 port concurrency which are
not PORed.

Change-Id: I792d0484da96fc0ae994fafa2c6b3ac787016815
CRs-Fixed: 2567322
2019-11-22 08:32:25 -08:00
gaurank kathpalia
fa8b2e18be qcacld-3.0: Remove the logic to move ACS to pending
Currently in SAP+SAP scenario the second ACS request
is moved to pending and is completed when the first
ACS is completed, but since FW serializes the scan
so the reuest for second ACS if not kept in pending
and sent down to FW would automatically be serialized
which would reduce latency in second SAP bringup.

Remove the pending work logic and implementation
to improve latency in second ACS scan.

Change-Id: I439398b406e9371a8e443f5409bd3f25b3062501
CRs-Fixed: 2570259
2019-11-22 08:32:12 -08:00
nshrivas
da3581a25e Release 5.2.0.158H
Release 5.2.0.158H

Change-Id: I92b1adad76f2c3cf49863a835ecd17300879dddf
CRs-Fixed: 774533
2019-11-22 07:12:46 -08:00