Commit Graph

16645 Commits

Author SHA1 Message Date
Yeshwanth Sriram Guntuka
3199046f44 qcacld-3.0: TDLS sta_id cleanup for hdd_update_dp_vdev_flags
hdd_update_dp_vdev_flags takes sta_id as input and as a
part of clean up of sta_id, replace it by peer mac address.

Change-Id: Id9a8c132546d312f5b048485de48535807e2db4b
CRs-Fixed: 2506497
2019-08-15 20:38:21 -07:00
Sourav Mohapatra
a93de1c382 qcacld-3.0: Refactor HDD according to cdp_peer_get_vdev_by_sta_id
Currently, cdp_peer_get_vdev_by_sta_id takes as input the sta_id. As a
part of cleaning up the usage of sta_id, replace it by peer mac address.

Change-Id: Ibb7f3489899ac3fda48ad5e54891cd2d7623c6c8
CRs-Fixed: 2507219
2019-08-15 20:38:15 -07:00
Rakshith Suresh Patkar
6a8802ff1a qcacld-3.0: Cleanup ol_txrx_get_vdev_by_peer_addr[PEER_ID_PHASE1]
Rename API ol_txrx_get_vdev_by_sta_id to ol_txrx_get_vdev_by_peer_addr
and cleanup ol_txrx_get_vdev_by_peer_addr to be peer mac address based
from local peer id based.

Change-Id: Ie3b8a1d97b5196e7306e5641cb894f31b8abe154
CRs-Fixed: 2504565
2019-08-15 20:38:09 -07:00
nshrivas
f37d3bb077 Release 5.2.0.144F
Release 5.2.0.144F

Change-Id: I185dd5ee4a4edc9d82454650cea78b2de6e8665f
CRs-Fixed: 774533
2019-08-15 12:28:34 -07:00
gaurank kathpalia
b4539e1cf1 qcacld-3.0: Check vdev state before ACS cb
Currently the driver calls the pre bss scan cb
which is used to calculate the weight to start
the SAP on best channel. This API depends upon
the SAP context pointer which is passed as a arg
to the scan module, which in turn returns the arg
as part of the scan cb. But it may happen that
the SAP was deleted before the scan cb was called.
In that case pre bss scan cb and weight calculation
does not matter to the driver as SAP in any case is
OFF. Here the sap context which was passed as an arg
to the ACS cb is used after free, and there is no way
currently to validate the pointer. But as part of scan
cb, the driver gets a vdev pointer, which would be in a
logically deleted state, if the stop adapter for SAP has
been done. Using this data, the driver can know the object
status, and then decide to continue with the weight calculation.

Fix is to try get vdev ref before the weight calculation algo
kicks in, and return if the reference cannot be taken to avoid
use after free for SAP-context.

Change-Id: Ib9c3bde4a36ee49efdadab3dc531991b8688f79e
CRs-Fixed: 2509249
2019-08-15 12:28:34 -07:00
nshrivas
6c6993dee6 Release 5.2.0.144E
Release 5.2.0.144E

Change-Id: Ic31f8a34c6c2c48e9c3e88446da4a85055733eeb
CRs-Fixed: 774533
2019-08-15 01:03:16 -07:00
hqu
54e6ba12b6 qcacld-3.0: Follow concurrent SAP switch channel in the same band
When lte channel avoidance event triggered, multiple SAP will choose
safe channel from pcl/acs combination and switch to the safe channel
one by one.

Actually when force SCC mode is enabled, if one SAP is the same band
as other concurrent SAP whose channel is already safe, it doesn't
need to choose safe channel from pcl/acs again, just needs to
follow concurrent SAP channel. Add code to implement this policy.

Change-Id: Icc9b2a53bb56915daeab8d94eceaaa64a660cb65
CRs-Fixed: 2500183
2019-08-15 01:03:16 -07:00
nshrivas
618100452b Release 5.2.0.144D
Release 5.2.0.144D

Change-Id: I585f08afe7b34f0fa09754686ec3737d6cac181c
CRs-Fixed: 774533
2019-08-14 21:31:26 -07:00
Jinwei Chen
b681a483ca qcacld-3.0: Skip GRO flush indication when T-put is low
To meet 11a/b/g TCP RX T-put KPI, disable GRO flush indication
when T-put is low.

Change-Id: I2932f9161631b082f8ffacb3c24a1cf609f28d35
CRs-Fixed: 2493829
2019-08-14 21:31:25 -07:00
nshrivas
38ce3e2868 Release 5.2.0.144C
Release 5.2.0.144C

Change-Id: Ie08e39a11a426b40c090dd6cdadb6b49770f90ae
CRs-Fixed: 774533
2019-08-14 17:01:56 -07:00
Alan Chen
34250b7fe7 qcacld-3.0: Add vdev start, stop, and set-key wakelock for runtime PM
There is only vdev start, stop, and set-key wakelocks for system suspend
as of now. Add vdev start, stop, and set-key wakelocks for runtime PM
also.

Change-Id: Ic071bcfb112ae8861a446298677d190484f0c01b
CRs-Fixed: 2507852
2019-08-14 17:01:55 -07:00
nshrivas
5a56c082b3 Release 5.2.0.144B
Release 5.2.0.144B

Change-Id: Ice1173284b5fe3d800ed6ebed3d49924007cc8e0
CRs-Fixed: 774533
2019-08-14 15:43:09 -07:00
Abhishek Ambure
8c1d2a403b qcacld-3.0: Rename WLAN_SER_CMD_DEL_STA_SESSION macro
As a part of vdev manager conversion, vdev delete code is
refactored. Legacy code and naming is removed. In vdev manager
operations, STA_SESSION is addressed as VDEV.

Hence WLAN_SER_CMD_DEL_STA_SESSION macro is renamed to
WLAN_SER_CMD_VDEV_DELETE.

Change-Id: I34b0a34191bef1f279582178f25b9b20b33e709e
CRs-Fixed: 2508150
2019-08-14 15:43:08 -07:00
Pragaspathi Thilagaraj
af84059e8d qcacld-3.0: Add NULL pointer validation on pmkid received
In wlan_hdd_extauth_copy_pmkid(), pmkid received from userspace
could be NULL. Currently there is no validation for the PMKID.

Add check to validate the received PMKID before copy.

Change-Id: I756458562bf20226a202a5ecdbbe9e79884169c7
CRs-Fixed: 2508935
2019-08-14 15:43:02 -07:00
nshrivas
29bfc8af7a Release 5.2.0.144A
Release 5.2.0.144A

Change-Id: Ibe9aa3c13d4a355e758dff462b13f5fb3f866b68
CRs-Fixed: 774533
2019-08-14 14:30:08 -07:00
Liangwei Dong
86ff710471 qcacld-3.0: Handle channel switch in SAP+SAP SCC
SAP1 chan6, SAP2 chan6, LTE channel avoidance event marks
chan6 unsafe, driver will do channel switch for SAP1 and SAP2 to
safe chan 1.
In the middle of channel switch of SAP1, policy_mgr_allow_concurrency
disallows the channel switch request because new SAP1 channel 1
will cause MCC with existing SAP2 (channel 6) and firmware
doesn't support MCC for dual-beacon entities on same band.
This change removes all the SAP entry on the old channel
before do concurrency check for SAP channel change request.

Change-Id: Ic2c828a3fec4cbe2f11d4bedf471211bee442e9e
CRs-Fixed: 2491265
2019-08-14 14:30:07 -07:00
nshrivas
58b66f1959 Release 5.2.0.144
Release 5.2.0.144

Change-Id: I8ed1ee642fca693b12d49d6d0d7d04e23b493b81
CRs-Fixed: 774533
2019-08-14 05:42:42 -07:00
gaurank kathpalia
7ca94aead5 qcacld-3.0: Retain channel info from hostapd
Currently the driver modifies the channel list
which came from hostapd in trim channel list API
in case of concurrency present.
This would in turn prevent SAP to change channel
to a safe channel whenever a LTE-COEX event comes
as the acs channel list would contain only one channel
that would be the SAP channel itself.

Fix is to retain the info of channels which came from
the hostapd, and use this info to restart he SAP.

Change-Id: I9d43930d78f1eaedb01139a9ddc319b610d21862
CRs-Fixed: 2501400
2019-08-14 05:42:41 -07:00
nshrivas
dae6817208 Release 5.2.0.143Z
Release 5.2.0.143Z

Change-Id: I8b374729c4c7986d8b79cd792759a646f3a5fd5d
CRs-Fixed: 774533
2019-08-13 20:26:03 -07:00
Mohit Khanna
b9d7e4e20a qcacld-3.0: Reduce high throughput detection level
Currently the API hdd_is_current_high_throughput considers any
throughput level higher(or equal) than PLD_BUS_WIDTH_HIGH as high
throughput level. Based on this level, driver decides to take up RX
wakelock and log certain stats(TDLS). This can have an impact on power
even in HT20 modes.

Reduce the high throughput detection level to PLD_BUS_WIDTH_MEDIUM. So
throughput >= 60Mbps is considered high by the API.

Change-Id: I2225edc55568facf4b74a389b4a0a53845ea14ae
CRs-Fixed: 2495719
2019-08-13 20:26:02 -07:00
Mohit Khanna
ba8b3fe3a8 qcacld-3.0: Use different wait queues for threads
Currently DP RX threads are using the same wait_q for all operations.
The problem with this is that when there is traffic for only one
threads, we end up waking up other threads as well moementarily.
This wastes power and is in-efficient.

Use different wait queues for different threads.

CRs-Fixed: 2495719
Change-Id: I689659b7aa0ab93b7e2f009d2dc7fe741b66ee78
2019-08-13 20:25:57 -07:00
nshrivas
bced046373 Release 5.2.0.143Y
Release 5.2.0.143Y

Change-Id: I76b256662a14c5e1a2a735a967fe4f7867f71c7c
CRs-Fixed: 774533
2019-08-13 16:23:28 -07:00
Mohit Khanna
f0620ce6ca qcacld-3.0: Add support for GRO flush indications
Add support for sending GRO flush indication to DP Rx Thread.

CRs-Fixed: 2495719
Change-Id: I8723dc696d8af705067a50dcf5f161ef4f28d485
2019-08-13 16:23:28 -07:00
Alan Chen
6a5eb9339c qcacld-3.0: Clear recovery flag after idle restart
Clear recovery flag after idle restart such that next time wifi can
turn on properly.

Change-Id: I7063a9edd08334a84068f88c0564dd4f2aabf666
CRs-Fixed: 2507899
2019-08-13 16:23:22 -07:00
nshrivas
bb673cfc19 Release 5.2.0.143X
Release 5.2.0.143X

Change-Id: If759d941bbb1ceecdab95f5be503cbe4198f3b4c
CRs-Fixed: 774533
2019-08-13 11:01:31 -07:00
Abhishek Ambure
93bb96104d qcacld-3.0: Add SERIALIZE_VDEV_RESP_TIMER in Kbuild
SERIALIZE_VDEV_RESP_TIMER macro enables target_if common code for
vdev response timer callback handlers.

Change-Id: Ic1f647a99a0c90f2492bdb0c9d2d525fabb6d86a
CRs-Fixed: 2507526
2019-08-13 11:01:31 -07:00
nshrivas
a2c8314f12 Release 5.2.0.143W
Release 5.2.0.143W

Change-Id: Iada1494b96f33a02f4c834ce68349d1adaec3b96
CRs-Fixed: 774533
2019-08-13 07:33:11 -07:00
gaurank kathpalia
ccfca4a11e qcacld-3.0: Update HE capabilities in wiphy structure
Update the mac, phy, mcs, nss caps of bands
2.4ghz, and 5ghz for HE capabilities in the
wiphy structure to inform userspace about
the driver capability.

Change-Id: I9fb1233e5396bf3ea411c057af9cbcd5b358271c
CRs-Fixed: 2486266
2019-08-13 07:33:10 -07:00
gaurank kathpalia
620027937f qcacld-3.0: Select default channel is no scan results present
Currently if the driver does not find any scan results
in the ACS scan, it selects a best channel as the PCl
channel by filtering the PCl list based upon the start
and end channel, which may not be correct everytime
as start and end channel does not specify the channels
to be selected.

Fix is to select a default operating channel from the
acs list itself, if no scan results are present.

Change-Id: I9a76957087b9349da66545e0fcaede2355f732cd
CRs-Fixed: 2504796
2019-08-13 07:33:05 -07:00
Ajit Pal Singh
9a0705e818 qcacld-3.0: HL: Iterate over txqs of a selected category
When CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL is enabled each group
has its own credit limit.
It may happen that when the High Latency TX Scheduler selects a category
the txq at the head may belong to a group which has credits less than the
"credit_reserve" of that group. In this case the scheduler will return
without downloading any frames although the other group may have credits
and also frames to be downloaded.
The scheduler will be called again if there is a credit update from FW or a
packet arrives from network stack and the next txq will be picked up which
belongs to the group which has sufficient credits.

It is seen that sometimes there is no credit update from FW (since the
host has sufficient credits) and the network stack also does not
transmits packet since it has already queued packets in driver's queue.
In such case the scheduler is not called and throughput drop to zero is
seen although there are enough credits on host.

To avoid such a situation, in case scheduler is unable to download
packets from a txq since its group does not have enough credits, iterate
over to the next txq in the chosen category and download its packets.
Exit from the schduler is case able to download from any txq OR not able
to download from any txq.

Change-Id: I6143d5c3aa40761d1997846896e5e77435252b26
CRs-Fixed: 2485819
2019-08-13 07:33:01 -07:00
gaurank kathpalia
c99859b8cb qcacld-3.0: Convert channel to freq in vdev start structure
Convert channel to freq in vdev start structure to
avoid duplicate channel numbers in 6ghz, and 2.4ghz
operation.

Change-Id: Ie78d93a34d1d558b9c94fc8a54aa95ee07bda55e
CRs-Fixed: 2508040
2019-08-13 07:32:57 -07:00
nshrivas
839520b0cc Release 5.2.0.143V
Release 5.2.0.143V

Change-Id: Iabf51fc2fcd1234dabea4f21b54772479aec063e
CRs-Fixed: 774533
2019-08-13 04:17:19 -07:00
Pragaspathi Thilagaraj
ba42a982b3 qcacld-3.0: Check SAE & OWE target capability to enable RSO
Currently the host driver blocks roam scan offload command to
the target if the connected akm is OWE or SAE.

Add changes to read the WMI_SERVICE_WPA3_SAE_ROAM_SUPPORT and
WMI_SERVICE_WPA3_OWE_ROAM_SUPPORT service capability advertised
by the target and set it to the mlme fw_akm_bitmap. Read this
bitmap in csr_roam_offload_scan() to allow RSO command.

Also the connected akm is sent to the target via the
WMI_AP_PROFILE command. Translate the CSR akm type for OWE and
SAE akm also.

Change-Id: I68527722ab099e0c8e1681ed64ea416b9a6e9936
CRs-Fixed: 2491021
2019-08-13 04:17:19 -07:00
Yeshwanth Sriram Guntuka
4fb838c4e9 qcacld-3.0: TDLS sta_id cleanup for hdd_roam_deregister_tdlssta
hdd_roam_deregister_tdlssta takes sta_id as input and as a
part of clean up of sta_id, replace it by peer mac address.

Change-Id: Ie0d8e16606bd72d77cc5f152cf5bfe530bd3856b
CRs-Fixed: 2503949
2019-08-13 04:17:14 -07:00
Sourav Mohapatra
ffbd027f6b qcacld-3.0: Refactor HDD callers as per changes to cdp_clear_peer
Currently, the cdp API cdp_clear_peer takes as input the sta_id. As a
part of cleaning up the usage of sta_id, replace it by peer mac address.

Change-Id: I4f8bee21ae42d8c9929da8fe2fcfa534778647ed
CRs-Fixed: 2503139
2019-08-13 04:17:08 -07:00
Rakshith Suresh Patkar
0dd44df12c qcacld-3.0: Cleanup ol_txrx_clear_peer[PEER_ID_PHASE1]
Cleanup ol_txrx_clear_peer to be peer mac address based
from local peer id based.

Change-Id: I63154508e6a08f973a4c602de58217e6bf23d683
CRs-Fixed: 2503737
2019-08-13 04:17:04 -07:00
nshrivas
17f3e67be6 Release 5.2.0.143U
Release 5.2.0.143U

Change-Id: I9ddd5f51448cfa36289bb8c1c1b700e1c6865a9b
CRs-Fixed: 774533
2019-08-12 17:32:12 -07:00
Kiran Kumar Lokere
389c1f8bd0 qcacld-3.0: Set color collision detection period to 120 sec
Set the color collision detection period to 120 sec for
STA and SAP.

Change-Id: If34246b8b2899ae6f9daadcda6639a14d7bcf1c7
CRs-Fixed: 2507044
2019-08-12 17:32:11 -07:00
nshrivas
8e95142f82 Release 5.2.0.143T
Release 5.2.0.143T

Change-Id: I711b34e019ec50c0c010ab0b72bc8d8864e8730c
CRs-Fixed: 774533
2019-08-12 16:18:14 -07:00
Pragaspathi Thilagaraj
a97d498743 qcacld-3.0: Send preauth status for SAE hybrid roaming
For WPA3 SAE LFR-3.0 roaming, authentication is offloaded to the
wpa_supplicant via the host driver due to the target crypto
inavailability limitations. The target does candidate selection
and sends the WMI_ROAM_PREAUTH_START_CMDID to the driver.

Once the SAE authentication is done, the supplicant sends the
external auth NL command with the authentication status, PMKID
derived. On receiving this event, send the PMKID, bssid, auth
status to the target over WMI_ROAM_PREAUTH_STATUS_CMDID command.

The host driver decides if the external authentication event is
received for preauth candidate or for initial connection by
checking the connected state information of the csr session.

When the authentication fails with the first candidate, the
target triggers the preauth start for the next candidate. This
happens till there are no candidates available to roam.

There could be a situation where the firmware sends preauth
event for candidate1 and before the supplicant could send the
external auth command to the host driver, the candidate1 preauth
timer could have expired and firmware sends the preauth start for
second candidate. After SAE is done with second candidate also,
the supplicant sends external auth event for second candidate. So
in this situation the firmware should decide to choose the
latest candidate. The host driver here is a mere passthrough and
doesn't maintain timer for the preauth event for each BSSID to
drop the expired candidate preauth events.

Change-Id: I799a05e55a59677dfc2ddf5b55ebc888ccfea03e
CRs-Fixed: 2507003
2019-08-12 16:18:14 -07:00
nshrivas
d9a80277f6 Release 5.2.0.143S
Release 5.2.0.143S

Change-Id: Id2731c62baf4bcb12b3973552915d6215ae6ac37
CRs-Fixed: 774533
2019-08-12 12:24:06 -07:00
Rajeev Kumar
50b60da282 qcacld-3.0: Enable HW filters in runtime pm mode
Enable hw filter in runtime pm mode such that target
CPU wake ups can be avoided in order to achieve max
power savings.

Change-Id: I97aa26b063e70db5e3023faf6aa40cc53bfac3af
CRs-Fixed: 2502744
2019-08-12 12:24:05 -07:00
nshrivas
72dc87e3e0 Release 5.2.0.143R
Release 5.2.0.143R

Change-Id: I18f6596e779aa040ec7fb30c8c337ff289bc2c08
CRs-Fixed: 774533
2019-08-12 10:22:36 -07:00
Abhishek Ambure
d6a16152ce qcacld-3.0: Cleanup CMN_VDEV_MGR_TGT_IF_ENABLE in Kbuild
Remove "CMN_VDEV_MGR_TGT_IF_ENABLE" from Kbuild as target_if common
code is used for vdev operations and legacy code is removed.

Change-Id: I15fb2311aa1b6eeec506d9a6bdc720abaf93244e
CRs-Fixed: 2507456
2019-08-12 10:22:35 -07:00
nshrivas
14f10d1d78 Release 5.2.0.143Q
Release 5.2.0.143Q

Change-Id: I90826545dc0a2987e54c5396adc1d19323cfdcc8
CRs-Fixed: 774533
2019-08-12 08:50:36 -07:00
sheenam monga
fed7e28e4e qcacld-3.0: Return success status in case stop_ap command after SSR
In case Device is P2P GO and SSR is triggered due to any reason,
Stop_adapter is called. Inside stop adapter adapter->session.ap.beacon
 is freed. When P2P GO negotiation is initiated after SSR,
__wlan_hdd_cfg80211_stop_ap function tries to access
adapter->session.ap.beacon which freed during SSR.
Failure is returned in case adapter->session.ap.beacon is NULL,
Which causes failure of p2p negotiation.

Fix is to return success to upper layers in case SAP is already
down, So that beacon interval can be cleaned up.

Change-Id: Ie7a30475b2a54860843b1430964585d22f02c110
CRs-Fixed: 2503216
2019-08-12 08:50:36 -07:00
nshrivas
ae5b012c4e Release 5.2.0.143P
Release 5.2.0.143P

Change-Id: Ib663cf603aa9b6fa790241e4cd6a505fe841e4bf
CRs-Fixed: 774533
2019-08-12 05:35:15 -07:00
Guisen Yang
7d6e03669e qcacld-3.0: Enable IPA3 for sdxprairie arch
Enable IPA3 in qca6390 for sdxprairie platform. The IPA
over gsi and smmu are also enabled to make IPA workable.

Change-Id: I5ce6b22dcc4a6678deb6a5ac2d712fb82b6c5bf3
CRs-Fixed: 2496838
2019-08-12 05:35:15 -07:00
nshrivas
7e13d0f4cc Release 5.2.0.143O
Release 5.2.0.143O

Change-Id: Ib26d40ff1c3e102919ecd4ba484df3e4c105d542
CRs-Fixed: 774533
2019-08-12 04:23:31 -07:00
Jianmin Zhu
f07aa51b88 qcacld-3.0: Rename and replace typedef tpAddBssParams
The Linux Coding Style frowns upon mixed-case names so rename
identifier tpAddBssParams to be compliant.

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 tAddBssParams typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a properly named struct.

Change-Id: Icf7fe19cfe6eb6fbac5689e3b5474d38c520b311
CRs-Fixed: 2506539
2019-08-12 04:23:30 -07:00