Commit Graph

18064 Commits

Author SHA1 Message Date
Karthik Kantamneni
af0b9ec3c8 qcacld-3.0: Enable Bus Bandwidth feature in WHUNT config
Enable DP Bus Bandwidth feature in WHUNT config, this helps to
execute and detect issues in Bus Bandwidth feature code path.

Change-Id: Id4376236b77661519667c40c427c50af436a9dc2
CRs-Fixed: 2597300
2020-01-07 04:38:19 -08:00
nshrivas
cea60095b8 Release 5.2.0.164
Release 5.2.0.164

Change-Id: I066e1f141b119fa51f41813c152bb01abdf63ab2
CRs-Fixed: 774533
2020-01-07 00:41:09 -08:00
Sandeep Puligilla
511c6e2402 qcacld-3.0: Add ini support to control 6G SAP fils disc
6Ghz SAP needs to send either a probe response or fils
discovery at every 20ms.

Add a new ini to configure the probe response or
fils discovery frame.

enable_6g_sap_fils_discovery=1 sends fils discovery frame
at every 20ms.
enable_6g_sap_fils_discovery=0 sends probe response frame
at every 20ms

Change-Id: I6c5fb339135cf11be071d73970ea3704441380eb
CRs-Fixed: 2586524
2020-01-07 00:41:09 -08:00
nshrivas
4558769a68 Release 5.2.0.163Z
Release 5.2.0.163Z

Change-Id: I6ce57d191dac6664301a79592cd36a632974b3d1
CRs-Fixed: 774533
2020-01-06 20:35:43 -08:00
Pragaspathi Thilagaraj
71a1fa4ca0 qcacld-3.0: Add diag log support to print roaming related stats
When roaming is complete, firmware sends WMI_ROAM_STATS_EVENTID
to host driver. This event has details regarding the roam
trigger reason, roam scan and candidate details, roaming result
and 11kv info sent after roaming to AP. Parse this event and
fill the below diag log report to print this in logcat:
LOG_WLAN_AUTH_ASSOC_TX_RX_INFO
LOG_WLAN_ROAM_TRIGGER_INFO
LOG_WLAN_ROAM_SCAN_INFO
LOG_WLAN_ROAM_RESULT_INFO
LOG_WLAN_RRM_TX_RX_INFO

Change-Id: Ie09dc8ad5b236d0925327dba73a3f2e73a80109a
CRs-Fixed: 2597057
2020-01-06 20:35:43 -08:00
nshrivas
23719fc6db Release 5.2.0.163Y
Release 5.2.0.163Y

Change-Id: I5ff80bbf9be032830cc15d8ff3e1ea81514e5d4c
CRs-Fixed: 774533
2020-01-06 12:18:50 -08:00
Vevek Venkatesan
f856395465 qcacld-3.0: Enable SMMU S1 TRANSLATION for BENGAL
Enable SMMU S1 TRANSLATION flag for BENGAL.

Change-Id: I3eee86a7e7916146906e7cbda9b80fed532aa2aa
CRs-Fixed: 2595375
2020-01-06 12:18:50 -08:00
nshrivas
73b13259c4 Release 5.2.0.163X
Release 5.2.0.163X

Change-Id: Ie1da15f121231bfb7ef759ad0b52f4d1b1af5734
CRs-Fixed: 774533
2020-01-06 10:54:49 -08:00
Jianmin Zhu
62de00823d qcacld-3.0: Fix assert in sme_store_nss_chains_cfg
Need check whether vdev is NULL when pass to
sme_store_nss_chains_cfg.

Change-Id: I1bfa62c8a898ad28e7771e27583e5775d515924a
CRs-Fixed: 2597475
2020-01-06 10:54:49 -08:00
bings
bd56706c77 qcacld-3.0: Do not configure TXBF to FW if TXBF is disabled
If TXBF is disabled, do not configure TXBF to FW. Otherwise NDPA
packets are sent by SAP from air sniffer, which is incorrect.

Do not configure TXBF to FW through WMI_VDEV_PARAM_SET_HEMU_MODE
if TXBF is disabled for HE.

Change-Id: Ib1f9366ce18be8dadfdb46663f6606dd08f0e033
CRs-Fixed: 2596373
2020-01-06 10:54:34 -08:00
nshrivas
709a1ccf6a Release 5.2.0.163W
Release 5.2.0.163W

Change-Id: I3398c215b9e36925c897c91bb6f9835fa75a8963
CRs-Fixed: 774533
2020-01-06 04:28:48 -08:00
Will Huang
03d72d75b0 qcacld-3.0: Strip HE add ie when wep enabled
Certification test case HE-4.2.2 enable both 11ax and wep for sap, we
start sap as 11g mode as expected, but there is additional IEs from
hostapd which has HE cap/op IEs fails the case.

Strip these HE IEs from additional IE configure from hostapd when HE
has been decided to disable when sap start in host driver.

Change-Id: If1001255cc6528ab1a01d72d13f8376815aa5ebc
CRs-Fixed: 2594834
2020-01-06 04:28:47 -08:00
nshrivas
3dec70ff98 Release 5.2.0.163V
Release 5.2.0.163V

Change-Id: Icfd9c6e5ac214e2aefc2ddc88da5ab4dbfec83e7
CRs-Fixed: 774533
2020-01-04 02:15:04 -08:00
Yue Ma
cc2e88a2f9 qcacld-3.0: Cleanup WLAN_CONV_CRYPTO_SUPPORTED flag
WLAN_CONV_CRYPTO_SUPPORTED is a temporary flag which is used for
converged crypto component transition. The transition has already
been done, so cleanup legacy code related to the flag.

Change-Id: I6626a7c9d2ab46cf35ed3593b72c074100954ab8
CRs-fixed: 2593529
2020-01-04 02:15:04 -08:00
nshrivas
52aa85412f Release 5.2.0.163U
Release 5.2.0.163U

Change-Id: I48beb744ebee5af608ef5362c3de6cbdb040a2cb
CRs-Fixed: 774533
2020-01-03 18:17:17 -08:00
Jianmin Zhu
57692441c8 qcacld-3.0: LFR2 failed for deleting wrong pe session
During LFR2, new pe session is created before old pe session
deleted, the 2 pe sessions have different pe session id, but
same vdev id.
After change-Id: Ib2e7c72e0636765341792a79aa12968a84ed4879,
When delete old pe session DPH Entry,  get pe session by vdev
id instead of pe session id, since both new and old session have
same vdev id, so there is 50% chance to get wrong pe session.
then DPH Entry for STA 1 missing issue happens, then no reassoc
happens.

Fix: When delete old pe session DPH Entry,  get pe session by
both vdev id and PE mlm state: eLIM_MLM_WT_DEL_BSS_RSP_STATE.

Change-Id: I207a4291cd26175ea7013fb2f2a0c27865304db2
CRs-Fixed: 2593194
2020-01-03 18:17:16 -08:00
nshrivas
a010064c72 Release 5.2.0.163T
Release 5.2.0.163T

Change-Id: I484407a8ada8cafd25ca77ea5a8404e5b38d61a2
CRs-Fixed: 774533
2020-01-03 12:20:36 -08:00
Yeshwanth Sriram Guntuka
872ba80018 qcacld-3.0: Put the htc pkt in freelist on htc_send_pkt failure
In case of nbuf map failure as part of htc_send_pkt for
tx credit flow disabled endpoints, htc pkt is not put
back in the freelist as return status is not checked
resulting in memory leak.

Fix is to put the htc pkt back in the freelist based on
status returned by htc_send_pkt.

Change-Id: I9173fa3684bc887a360b92d48b689c53a5ad5dbe
CRs-Fixed: 2593729
2020-01-03 12:20:36 -08:00
Liangwei Dong
5f8906d29f qcacld-3.0: Fix unknown phymode in vdev start
If gDot11Mode=1 is set to INI, DUT STA will be failed to
connect to 5G AP due to "unknown phymode" included in
vdev start.
Correct the driver to use freq API to identify 5G band
BSS instead of channel API.
And the change forces 11ax mode for 6ghz bss.

Change-Id: I692fa744756490e7125ccd5fd82c15febc19ce68
CRs-Fixed: 2594048
2020-01-03 12:20:19 -08:00
Amruta Kulkarni
4edc97d877 qcacld-3.0: Add 6ghz HE band caps in peer_assoc cmd
While sending peer_assoc_cmd to FW,add 6ghz HE band capability
if chan_freq is 6ghz.

Change-Id: Icfe886e8c9089d2c58609866e5bc64250c2b6eea
CRs-Fixed: 2591039
2020-01-03 12:20:08 -08:00
nshrivas
88d2ca39e1 Release 5.2.0.163S
Release 5.2.0.163S

Change-Id: Icb898fe00381983d16d9c53f0066117101d99e30
CRs-Fixed: 774533
2020-01-03 06:26:07 -08:00
sheenam monga
10b9a7ff27 qcacld-3.0: Send RSO update after roaming to a whitelist SSID
When roaming to  whitelist SSID, firmware offloads
EAPOL 4-way HS to supplicant. Suppose initially if DUT connects
to SSID1 and then firmware roams to SSID2 then 4-way HS should be
offloaded to supplicant as the firmware doesn't posses the
pre-shared key. When roaming happens between same SSID, then
firmware has PSK and 4-way handshake is taken care by firmware.

But due to issue in roaming code, 4-way HS is offloaded to supplicant
even if roam happens between same SSID. Issue is for ROAM_RSO_STARTED
state in csr_roam_switch_to_rso_start API, there is no handling to send
RSO update if Roaming is already started, due to which
csr_roam_offload_scan is not invoked.
Second issue in roaming code is that RSO is not enabled with the
new SSID2 in firmware. RSO is not enabled as after set key
complete the state of roaming state was not set to
eCSR_NEIGHBOR_ROAM_STATE_INIT. Due to this the SSID in
firmware is still SSID1 and when firmware tries to roam again
to SSID2 it offloads 4-way HS to supplicant instead of handling
within firmware only.

Fix is to update the roam state from eCSR_NEIGHBOR_ROAM_STATE_CONNECTED
to eCSR_NEIGHBOR_ROAM_STATE_INIT in csr_process_roam_sync_callback after
roam synch propagation and also handle ROAM_RSO_STARTED state with
roam_command ROAM_SCAN_OFFLOAD_UPDATE_CFG instead of returing success from
csr_roam_switch_to_rso_start API. Now when supplicant does set key after
4-way HS, roaming is enabled via csr_roam_chk_lnk_set_ctx_rsp->
csr_roam_link_up->csr_neighbor_roam_indicate_connect->
csr_neighbor_roam_info_ctx_init->csr_post_roam_state_change.

Change-Id: I5b81f2e03fe1c7dee2820370d06f4e4f8017f12c
CRs-Fixed: 2587120
2020-01-03 06:26:06 -08:00
Will Huang
0e083cb878 qcacld-3.0: Fix runtime error if undefine WLAN_CONV_CRYPTO_SUPPORTED
wlan_set_vdev_crypto_prarams_from_ie() is defined in qcacmn code but
disabled in Kbuild if CONFIG_CRYPTO_COMPONENT=n, it caused runtime
error if run it.

The #ifdef/#else code should live in common code where define
wlan_set_vdev_crypto_prarams_from_ie(), but there is no motivation
from WIN side to add any code which is not converged.
And it is not appropriate to put it into exist head files, so just
define inlined wrapper functions to cover the not defined case.

Change-Id: I11916703fff860025728f904c8d3906eee1d0037
CRs-Fixed: 2592904
2020-01-03 06:25:57 -08:00
nshrivas
206f6e0501 Release 5.2.0.163R
Release 5.2.0.163R

Change-Id: Ic9078bbcbe61d053ebad7e5f173e8eecc3210b66
CRs-Fixed: 774533
2020-01-03 01:26:38 -08:00
Jianmin Zhu
b01384b43d qcacld-3.0: P2P Go failed to switch to 2G band when 5G disabled
If g_enable_go_force_scc isn't enabled, P2P Go failed to switch
to 2G band when 5G disabled.

Fix: Check whether need switch channel for band restriction
first, check go force scc later.

Change-Id: Icf8de51321debea2806585d47d2bd4fc6486075e
CRs-Fixed: 2594279
2020-01-03 01:26:38 -08:00
nshrivas
bdbba5fde6 Release 5.2.0.163Q
Release 5.2.0.163Q

Change-Id: I4cb7105add29b41f44bdc1743057127404e3742f
CRs-Fixed: 774533
2020-01-03 00:07:05 -08:00
gaurank kathpalia
1c6a5cf628 qcacld-3.0: Allow channel 12, 13 in 2.4ghz for ACS
Currently the driver does not allow the channels
12 and 13 for SAP ACS because most of the legacy
stations don't scan them and they can cause many
IOT issues. But if they are the only channels left
in the spectrum (for eg. all other channels became
unsafe), then the SAP would fail as the driver did
not consider channel 12-14 for ACS.

Fix is to consider 12-14 for ACS, remove them if
other channels are available and if they are the
only channels available in the spectrum, then start
the SAP on any one of these channels.

Change-Id: I599d0e95e9bdc3aed70d6a515d7a52c39846b6f2
CRs-Fixed: 2576635
2020-01-03 00:07:05 -08:00
nshrivas
b78ee0701c Release 5.2.0.163P
Release 5.2.0.163P

Change-Id: I5950cfcb62cd285fcd5c5fbbe1ce85c15a221138
CRs-Fixed: 774533
2020-01-02 17:04:10 -08:00
Yu Ouyang
1d8f5212b6 qcacld-3.0: Fix pdev undeclared issue
In function hdd_ocb_register_sta(), it will call function
cdp_peer_register(soc, (struct cdp_pdev *)pdev, &sta_desc), but pdev
is undeclared.

Change-Id: Ie0341b8ff880c21960a655399378b519fc240631
CRs-Fixed: 2595641
2020-01-02 17:04:10 -08:00
nshrivas
81a1df2b19 Release 5.2.0.163O
Release 5.2.0.163O

Change-Id: Iaf15579e7e7eaf18713a425034fe53023af1889b
CRs-Fixed: 774533
2020-01-02 13:08:43 -08:00
Jinwei Chen
8cfe20d562 qcacld-3.0: use user setting for mpdu_density if target value is 0
Use user setting for HT  mpdu_density if target reported value is
0 which means no restriction.

Change-Id: I4be7d3f4137744e5c9e5bdfc7b50e6c338bd4f79
CRs-Fixed: 2592163
2020-01-02 13:08:42 -08:00
nshrivas
2c795212b4 Release 5.2.0.163N
Release 5.2.0.163N

Change-Id: I6cf5c34c42c2f11cec23dce8e68dc4dc9bc14851
CRs-Fixed: 774533
2020-01-02 11:40:07 -08:00
gaurank kathpalia
9a4607b710 qcacld-3.0: Enable transition of STA from 20->40, 80 Mhz
Scenario: Turn on SAP in 2.4ghz in 20Mhz and connect
DUT to it.
Now trigger channel change command and change the SAP
channel to 5ghz in 80Mhz mode.

Issue:-
STA would not go to 80Mhz mode and would remain in 20Mhz
Issue in driver was that it was checking for the ht
supported chan width rather than the self capability.
HT self capability would always be 0 if the connection
is in 20Mhz, and thus the STA would never be able to
ramp up it's BW.

Expectation:
STA should move to 80mhz if it supports 80Mhz bandwidth.

Fix:-
Check for the self capability rather than the ht channel
BW supported.

Change-Id: I546d5edd9881c1013b1a08989cbab3d4ef8fae4d
CRs-Fixed: 2594982
2020-01-02 11:40:07 -08:00
Naman Padhiar
ed3ada0bb0 qcacld-3.0: Correct API name called from HIF layer
Correct API name for disable irq called from HIF layer.

Change-Id: I353723dec61aba877160dd1faa96afdffc1a416b
2020-01-02 11:39:51 -08:00
nshrivas
3529aa2304 Release 5.2.0.163M
Release 5.2.0.163M

Change-Id: I25d650b9c84779491ce9599358cca4ea61dd300e
CRs-Fixed: 774533
2020-01-02 08:16:12 -08:00
gaurank kathpalia
893de039ac qcacld-3.0: Add AP to avoid list if EAPOL failure happens
Scenario:
Configure two AP with same SSID and different
passwords, and try to connect to one and then roam to
other.
Observations: The DUT would connect to the second AP
but since the password is different, the EAPOL would
certainly fail, and hence it would result in overall
connection drop and the DUT could not establish a
secure connection with the second AP, and it
disconnected with the previous AP.

Fix is to avoid the AP for some time and try to
connect to other BSSIDs, and still if the EAPOl
fails with the new AP, blacklist it.

Change-Id: Ifb908823cd0eb1873ec7a4b08dffa86e548533fc
CRs-Fixed: 2591467
2020-01-02 08:16:12 -08:00
gaurank kathpalia
628d3ef690 qcacld-3.0: Check for zero/broadcast BSSID in BLM
Currently the BLM does not check the BSSID of
the entry for 0 or broadcast BSSID, and thus
can lead to addition of many entries with such
property.
This would also result in removal of old valid BSSID
entry data, which is essentially required.

Fix is to check the BSSID of the entry for 0
or broadcast, and reject them if not valid.

Change-Id: I2939673a1c4efb1a22e03ffe82121513c071fa4b
CRs-Fixed: 2595331
2020-01-02 08:15:55 -08:00
nshrivas
1d4a50bbc7 Release 5.2.0.163L
Release 5.2.0.163L

Change-Id: I160fbdf7552f025de0329ec4ed044b4ca4f30870
CRs-Fixed: 774533
2020-01-02 06:43:50 -08:00
Tingting Lin
ac2116799f qcacld-3.0: Enable mib stats feature
Add and enable mib stats feature in
qca6390_defconfig.

Change-Id: I6b83bfc6168f773cda252cceb4c3dae754421474
CRs-Fixed: 2592865
2020-01-02 06:43:49 -08:00
Tingting Lin
3c04146cb6 qcacld-3.0: Enable mib stats in genoa
Enable mib stats feature in qcn7605_defconfig.

Change-Id: Iec76d1403b06e415b97a5e2bc58896b6e9d5ef2a
CRs-Fixed: 2594406
2020-01-02 06:43:33 -08:00
nshrivas
d27bc2016f Release 5.2.0.163K
Release 5.2.0.163K

Change-Id: Ia7bcde72c5c22f7267663186ce0f27cce0e020cd
CRs-Fixed: 774533
2020-01-01 23:37:35 -08:00
Yu Ouyang
b08f9f47b7 qcacld-3.0: Enable WPA3 SAE feature for ROME SDIO
Enalbe WPA3 SAE feature in config file for ROME SDIO.

Change-Id: I894dd6a89be335c3e130d663a30734cfa06ac4e9
CRs-Fixed: 2593159
2020-01-01 23:37:34 -08:00
nshrivas
4733e917ad Release 5.2.0.163J
Release 5.2.0.163J

Change-Id: Id476cbbbc8181ef5ebb962be3fd446ccdd495b1c
CRs-Fixed: 774533
2020-01-01 20:04:12 -08:00
Srinivas Dasari
b020999b07 qcacld-3.0: Remove sta_id check in NDP peer handlers
sta_id is carrying an uninitialized value from the caller
lim_send_sme_ndp_(add/del)_sta_rsp(). So, it's failing the
check for its validity and skipping the first NDP peer creation
/last NDP peer cleanup.
Remove the sta_id check as it's no longer used. So that the NDP
peer creation/cleanup happens properly.

Change-Id: I8daff2bfbc57b7a2fa17a121a5a9dec6975137de
CRs-Fixed: 2594317
2020-01-01 20:04:12 -08:00
Srinivas Dasari
5cc0b7c087 qcacld-3.0: Increase max supported vdevs by driver to 6
Maximum no.of supported vdevs by driver are currently 5. Increase
it to 6 to allow the creation of a separate vdev for NAN.

Change-Id: I1cdc4cc88142bf7a2ad9ab7b8f518453482d2b86
CRs-Fixed: 2592023
2020-01-01 20:03:59 -08:00
Srinivas Dasari
c9e048e52f qcacld-3.0: Add NAN vdev_id entry to policy mgr
Firmware sends vdev id allocated for NAN discovery in NAN enable
response. Validate the same and add corresponding entry to
policy manager.

Change-Id: I5e7426c6739620e05480fb90cecdb8ff156fd4cd
CRs-Fixed: 2592021
2020-01-01 20:03:44 -08:00
nshrivas
2465b3b1cc Release 5.2.0.163I
Release 5.2.0.163I

Change-Id: If90b0808a871ee2e48eaad4fc586b42980c6e7b1
CRs-Fixed: 774533
2020-01-01 18:24:15 -08:00
Srinivas Dasari
ee454da9db qcacld-3.0: Disable NAN in stop_adapter
Framework might not disable NAN discovery explicitly in some
cases like driver unload. So disable NAN from stop_adapter to
terminate NDPs and NAN discovery properly.
Cleanup the API os_if_process_nan_disable_req() by using the
new API ucfg_disable_nan_discovery().

Change-Id: Ic2c834db44c42a44db902c93f67a887de1b6c2fb
CRs-Fixed: 2594318
2020-01-01 18:24:15 -08:00
Srinivas Dasari
baff7dc092 qcacld-3.0: Create an iface for NAN discovery in driver init
Currently, framework issues NAN commands on station interface.
But when connection happens, framework does interface down and
up on the station interface due to MAC randomization. This
terminates all of the NAN operations.
So NAN discovery needs a separate interface to avoid dependency
on the station interface. Create an interface "wifi-aware0"
of type NL80211_IFTYPE_NAN based on the firmware capability
and register to kernel.
Framework issues "IF UP" on the new NAN discovery interface when
it enables NAN. Driver shall create vdev and send VDEV_CREATE
command to firmware for the same. Framework shall issue all
NAN discovery commands on this new interface. Driver shall use
NAN vdev for these NAN operations.
Framework shall do "IF DOWN" once the NAN operations
are done(Ex: up on NAN disable).

Change-Id: Ifd1e1ab5ed64cd97edb00e793214edd2a2365274
CRs-Fixed: 2592020
2020-01-01 18:23:50 -08:00
Srinivas Dasari
d2ba26192b qcacld-3.0: Register dummy APIs to NAN ops
Kernel needs the below to create NAN interface from driver,
1. Register APIs to the NAN ops. Define dummy APIs as the APIs
   are not supported for the current driver design.
2. Define NAN supported bands and 2GHZ is mandatory.
3. Set the iftype NL80211_IFTYPE_NAN in the supported
   interface_modes.

Change-Id: I22db31840da2ba0e44b79077a8790b55f1151684
CRs-Fixed: 2592022
2020-01-01 18:23:26 -08:00