Commit Graph

19045 Commits

Author SHA1 Message Date
Abhishek Ambure
4f81aead61 qcacld-3.0: Add OMN IE in assoc request if VHT op mode present
If DUT connects to an AP in VHT mode with 40/80Mhz bandwidth in 5Ghz
band and then if user changes the country code(EC) where only 20Mhz
bandwidth present in 5ghz, then after association AP may ignore DUT's
support for only 20Mhz and keeps transmitting data in 40/80Mhz.
As DUT doesn't support these bandwidth, DUT doesn't ack the data
packets with higher received higher bandwidth. Thus DUT's RX throughout
degrades. This is an IOT issue where AP expects OMN IE with channel width
set to 20mhz . As DUT is not sending OMN IE low throughput issue is
observed

Hence host adds OMN ie in the association request only if the AP to
which DUT associates advertises OMN IE and DUT supports VHT.

Change-Id: Ie59323c4c7dc4e4abc332e7204768b6a560d22d1
CRs-Fixed: 2650234
2020-04-02 12:44:07 -07:00
nshrivas
82d7122b3f Release 5.2.0.179M
Release 5.2.0.179M

Change-Id: I5e5365561857964a16709553bbd18a445328b056
CRs-Fixed: 774533
2020-04-02 00:11:32 -07:00
Bapiraju Alla
5e23b7cfd7 qcacld-3.0: Add param for OCL mode configuration
Currently there is no provision to configure OCL mode in FW during
driver bootup.

To enable this configuration add a new INI configuration parameter
gOclCfg.

Change-Id: I87c9131f5395c394f745e0170f0d9b3d1571d030
CRs-Fixed: 2644312
2020-04-02 00:11:32 -07:00
nshrivas
c589449c9a Release 5.2.0.179L
Release 5.2.0.179L

Change-Id: Idfc28694d1fb73e2a7e46a122ce8c5cc3786b58d
CRs-Fixed: 774533
2020-04-01 14:28:23 -07:00
Kiran Kumar Lokere
b56a540667 qcacld-3.0: Fix 40MHz flag setting for 6GHz connection
In peer assoc the 40MHz flag is set if HT is enabled and bandwidth
is 40MHz which fails the 40MHz setting for 6GHz connection as HT
is not supported in 6GHz band.

Remove the HT check for 40MHz flag setting in peer assoc.

Change-Id: I2a34dd6fbbca50912952f532e8b485148bf3c3a2
CRs-Fixed: 2649524
2020-04-01 14:28:22 -07:00
nshrivas
4df7deec7f Release 5.2.0.179K
Release 5.2.0.179K

Change-Id: Ie9fa99b7a97d65974be49cad9f387f687fceb723
CRs-Fixed: 774533
2020-04-01 12:39:39 -07:00
Arun Kumar Khandavalli
74014d9143 qcacld-3.0: Update hdd hang data
Whenever a recovery is triggered in the hdd layer update the
various vdev data for hang event:
	1) Vdev id
	2) vdev opmode
	3) vdev state and substate

if the reason for recovery is max scan failures update the last
scan reject, reason and the vdev id on which scan is rejected.

Change-Id: I84928e56bac1fe58e7eada0a0574b2f23124ae65
CRs-Fixed: 2651694
2020-04-01 12:39:39 -07:00
Arun Kumar Khandavalli
81f73d678b qcacld-3.0: update the hang data for the cds module
Update the hang data for the cds module, as part of the hang
data following information is filled:
	1) Hang Event version
	2) Wlan Driver version
	3) Reason for recovery

Change-Id: Ie5a008d1f9512f8e83a1d099fe333b0d2ce90abb
CRs-Fixed: 2650848
2020-04-01 12:39:19 -07:00
Arun Kumar Khandavalli
29ca29fb41 qcacld-3.0: Add build configuration for the htc hang event
htc hang event configuration has been added, enable
the build configration for the feature.

Change-Id: I5441f95288db46ca58ef44f4c825b9f4f7cf59ac
CRs-Fixed: 2651750
2020-04-01 12:39:00 -07:00
nshrivas
fa5c0fd870 Release 5.2.0.179J
Release 5.2.0.179J

Change-Id: I7f99f52c506dcb98a4f6cf7da9cbe2c88d9b5dea
CRs-Fixed: 774533
2020-04-01 10:46:22 -07:00
gaurank kathpalia
82511bc630 qcacld-3.0: Add support for STA+NAN+NDI+NDI
Add support for four port concurrency for
STA+NAN discovery + NDI + NDI.

Change-Id: I7d6d3f482a61bef7f3d0a31eee3fdfe5e5e9d879
CRs-Fixed: 2633982
2020-04-01 10:46:22 -07:00
nshrivas
d6a5f31685 Release 5.2.0.179I
Release 5.2.0.179I

Change-Id: I222f1dd23b9975a6113ca35794952793a40141e4
CRs-Fixed: 774533
2020-04-01 05:57:21 -07:00
Yue Ma
c984192e1b qcacld-3.0: Fix bugs from PM QOS notifier for runtime PM
Destroy PM QOS spinlock after unregistering PM QOS notifier. Use
hif_pm_runtime_put() instead of hif_pm_runtime_put_noidle() so that
it can trigger a runtime PM suspend after usage count reaching 0.

Change-Id: I93949857636de6d9807fa2abceec818a8584c596
CRs-fixed: 2651516
2020-04-01 05:57:21 -07:00
gaurank kathpalia
82f3c99fc5 qcacld-3.0: Flush the blacklist BSSIDs in FW
Currently the expectation from the BLM is to flush
all the BSSIDs which are present in the blacklist
when the user does an explicit on-off, which is
meeting the expectation, but the FW does not flush
this info which leads to async between the two.

Fix is to send 0 blacklist BSSID to FW during
Wifi-off so that it also flushes the list.

Change-Id: I7a0629fefb12deaeec0b5eeea06169272621bf82
CRs-Fixed: 2647018
2020-04-01 05:56:59 -07:00
nshrivas
e90fd6667f Release 5.2.0.179H
Release 5.2.0.179H

Change-Id: Ia4a849b6ffa6606c3a4681f7ca6ba7fa9051a616
CRs-Fixed: 774533
2020-04-01 00:20:33 -07:00
Mohammed Siddiq
2dcd202ecf qcacld-3.0: Add pld code to handle hang event data info
Add code to handle hang event data and length received
from platform driver through uevent.
Change-Id: Ie4acf55cd7d2e602ad10eedbdeed045acfd85f56
CRs-fixed: 2650831
2020-04-01 00:20:33 -07:00
nshrivas
35cdd1e49b Release 5.2.0.179G
Release 5.2.0.179G

Change-Id: Ib744ccf643ea36084b7308fd9520ab2939c94097
CRs-Fixed: 774533
2020-03-31 22:39:20 -07:00
sheenam monga
3ac6630a69 qcacld-3.0: Remove check for conversion of RXMGMT flags to nl80211
Currently, wlan_hdd_cfg80211_convert_rxmgmt_flags  set rxmgmt flags
based on RXMGMT_FLAG_EXTERNAL_AUTH & flag provided by lim.
For some action category like FST, RVS driver itself sets flag value as
RXMGMT_FLAG_NONE. In this case, wlan_hdd_cfg80211_convert_rxmgmt_flags
return -EINVAL and considers it as err.

Fix is to remove if check for wlan_hdd_cfg80211_convert_rxmgmt_flags
to avoid err print in case flag received is RXMGMT_FLAG_NONE.

Change-Id: I321ef05d0571a5b14793d36abfd327dfa97c70a5
CRs-Fixed: 2654080
2020-03-31 22:39:19 -07:00
nshrivas
25f44260b6 Release 5.2.0.179F
Release 5.2.0.179F

Change-Id: I0a3557fdad0b2ee5bfd33263d836d8748bc1f188
CRs-Fixed: 774533
2020-03-31 16:47:40 -07:00
Sravan Goud
b57cdca976 qcacld-3.0: Deregister sap clients before stop bss
In stop bss write to reo remap control registers happen
after pcie power collapse is enabled. As pcie power collapse
is enabled sometimes reo remap register write is not going
through. For sta + sap concurrency this is resulting in NOC
error when other sta interface connecting to AP after stop bss.
Disable autonomy or reo remap registers to sw host destination
rings happen as part of last sap client deregistration. In this
change deregister sap clients before stop bss.

Change-Id: Ic84a1d45b5b376ec8ad28a05246efc4252b390ab
CRs-fixed: 2643092
2020-03-31 16:47:39 -07:00
nshrivas
903c23463d Release 5.2.0.179E
Release 5.2.0.179E

Change-Id: Ic971b69b5f30d1c2b621b194b0fe3af847cbe5d9
CRs-Fixed: 774533
2020-03-31 15:04:45 -07:00
Naman Padhiar
f959a91cdd qcacld-3.0: Protect pld_del_dev function as part of psoc trans
Protect pld_del_dev function as part of psoc transaction
to avoid race condition with pld_deinit.

Change-Id: I57531d649d02a37beb702c8f0467dc60b455804b
2020-03-31 15:04:45 -07:00
Arun Kumar Khandavalli
8a779258cf qcacld-3.0: Add build configuration for the wmi hang event
wmi hang event configuration has been added, enable
the build configration for the feature.

Change-Id: I8c7034d07f369f79191a2496e9000f83eecdba6e
CRs-Fixed: 2651741
2020-03-31 15:04:25 -07:00
nshrivas
a732cc6cb5 Release 5.2.0.179D
Release 5.2.0.179D

Change-Id: Id8717383fe527b3e224d1009b3e28e20f75f5b84
CRs-Fixed: 774533
2020-03-31 11:37:55 -07:00
Arun Kumar Khandavalli
b2e4ddd34c qcacld-3.0: Add build configuration for the qdf hang event
In qdf new hang event notifier chain has been added, enable
the build configration for the feature.

Change-Id: I98e2701499133d208af863b401fc47fafec35226
CRs-Fixed: 2648449
2020-03-31 11:37:54 -07:00
Arun Kumar Khandavalli
76bb1fa316 qcacld-3.0: Add build configuration for the qdf notifier chain
In qdf new os specicfic notifier chain has been added, enable
the build configration for the feature.

Change-Id: Ic08b3ebc3b173839496428a27d0eb4d7a1633cb6
CRs-Fixed: 2648245
2020-03-31 11:37:38 -07:00
nshrivas
6afbd02bc9 Release 5.2.0.179C
Release 5.2.0.179C

Change-Id: Ia443cc84911dad870429ec1dc68da337848d1d5c
CRs-Fixed: 774533
2020-03-31 09:58:14 -07:00
Bapiraju Alla
08410b2625 qcacld-3.0: Fix return type for scheduler_msg callbacks
This fixes a CFI failure in callback assignment

Change-Id: I01fbd8cb65f8e33a66065d29d1aab983647a40ac
CRs-Fixed: 2651013
2020-03-31 09:58:13 -07:00
nshrivas
8fda3ad748 Release 5.2.0.179B
Release 5.2.0.179B

Change-Id: I86975113e1355590910f0cc912d59a3c51eec357
CRs-Fixed: 774533
2020-03-31 08:28:48 -07:00
Srinivas Dasari
48d77649cd qcacld-3.0: Don't add/remove peer for NDIs
NDIs don't have any peers and there is no need to send/receive
any data frames on NDI as such. NDPs latched on to the NDI
have peers and they are registered as STA properly.

Change-Id: I545ab01c6c67febdeba39ab52c9e4263e1757002
CRs-Fixed: 2651435
2020-03-31 08:28:48 -07:00
nshrivas
54505fadbf Release 5.2.0.179A
Release 5.2.0.179A

Change-Id: I7b74aca6edd8eb368820a1165cac273ebaa611f4
CRs-Fixed: 774533
2020-03-31 02:22:49 -07:00
gaurank kathpalia
bafe011f2c qcacld-3.0: Call undo acs as part of deinit adapter
As part of SSR, hdd stop adapter is called which in
turn calls undo acs which frees the sap channel lists.
Now if SAP was already on, and then SSR happens then this
channel list would be freed.
After SSR the SAP would again be restarted.
Now if the driver gets an LTE-coex event from the FW,
there would be no channel-list left in the ACS list, as
it would freed, so there would be no suitable channel
for SAP restart leading to SAP stuck on an unsafe
channel which impact LTE throughput.

Fix is to call undo acs as part of deinit adapter which
would ensure that interface down has happened.

Change-Id: I5bf7bfcc20ccc686792b6b1df5d42b03288f7766
CRs-Fixed: 2650261
2020-03-31 02:22:49 -07:00
nshrivas
cc1ec9c03d Release 5.2.0.179
Release 5.2.0.179

Change-Id: Ie966c5b2edd96eff340f0e1c70d7b00632f2dcc1
CRs-Fixed: 774533
2020-03-31 00:43:10 -07:00
gaurank kathpalia
fd254c58e8 qcacld-3.0: Correct condition for DBS required
In the API policy_mgr_checkn_update_hw_mode_single_mac_mode
the driver checks that if the bands are different, then go
for DBS and single mac mode is not required.
In the case of STA on 5ghz and SAP now coming up on 6ghz
the bands would be different but the hw mode needed
would be single MAC mode and not DBS, but according to the
check mentioned above the driver would still return and
the final hw mode would be stuck into DBS which would
lead to unnecessary power consumption because of the second
MAC being still swithched on having no vdev attached to it.

Fix is to check whether DBS is required and avoid the condition
mentioned above.

Change-Id: I91d91894dde1a3b84c22f9de59c83a5f0b727315
CRs-Fixed: 2651178
2020-03-31 00:43:10 -07:00
nshrivas
588bc4b96e Release 5.2.0.178Z
Release 5.2.0.178Z

Change-Id: Ib23bbb6893915dc95c8f686c0fba78c38bde6f97
CRs-Fixed: 774533
2020-03-30 22:55:22 -07:00
wadesong
24e614d24a qcacld-3.0: Refine 5GHz/6GHz channel frequency checking
With the introduction of 6GHz channels, some of the channel
frequency checking code have to be refined to make sure
all non-2.4GHz channel frequencies are identified by
!WLAN_REG_IS_24GHZ_CH_FREQ().

Change the channel frequency identifying code within the
following functions according to the above guideline:

  wlan_hdd_cfg80211_start_acs()
  hdd_cfg80211_update_acs_config()
  hdd_get_sap_operating_band()
  hdd_update_acs_sap_config()
  wlan_hdd_sap_p2p_11ac_overrides()
  wlan_hdd_cfg80211_start_bss()
  wma_send_pdev_set_pcl_cmd()

Change-Id: I6dfb8b4e43a7f632255fb89552490ce404874998
CRs-Fixed: 2648176
2020-03-30 22:55:21 -07:00
nshrivas
b75e925166 Release 5.2.0.178Y
Release 5.2.0.178Y

Change-Id: I9664801a069527d18bbcf34c7a88a32a5e667672
CRs-Fixed: 774533
2020-03-30 21:18:11 -07:00
Yeshwanth Sriram Guntuka
250dd30af0 qcacld-3.0: Add support for logging hang event data
Add support to register recovery notifiers to log
hang event data.

Change-Id: I9b930d5f983d57a7359ba9f97ea65050c4f54a8a
CRs-Fixed: 2649142
2020-03-30 21:18:10 -07:00
nshrivas
473930c609 Release 5.2.0.178X
Release 5.2.0.178X

Change-Id: Idce4bbca2d404797508faacd37d1d988d099071b
CRs-Fixed: 774533
2020-03-30 15:28:44 -07:00
Chaoli Zhou
fdb7949d27 qcacld-3.0: Update policy manage table for GO+SAP+SAP case
Table pm_next_action_three_connection_dbs_2x2_table currently
doesn't support NeGo/Auto 5G + SAP 5G + SAP 2.4G case, which
cause the third connection for 2.4G SAP start failure, so update
the policy manage table to support it.

Change-Id: I4bed516f2ac31387d94c1753a7d539cc07d9814e
2020-03-30 15:28:43 -07:00
nshrivas
a0442fa3b6 Release 5.2.0.178W
Release 5.2.0.178W

Change-Id: I7797cea00e4a87fece042736c485657d1c56798f
CRs-Fixed: 774533
2020-03-30 13:38:54 -07:00
gaurank kathpalia
ec1bd31ce7 qcacld-3.0: BIGTK feature support
BIGTK feature support

Change-Id: Ide9b0db436e43152a4180a460f21a7340b443756
CRs-Fixed: 2648269
2020-03-30 13:38:54 -07:00
nshrivas
dca63a6617 Release 5.2.0.178V
Release 5.2.0.178V

Change-Id: I005e186c44b0836c5b503af760e8fa2d897636c0
CRs-Fixed: 774533
2020-03-30 11:41:47 -07:00
Qun Zhang
f4dd3e30e4 qcacld-3.0: Use dynamic memory allocation to avoid stack size limit
Due to stack size limit, use dynamic memory allocation instead of
using stack resource.

Change-Id: Icf00bc43718286e1b6239c5e35c6e11964712f8e
CRs-Fixed: 2650690
2020-03-30 11:41:47 -07:00
nshrivas
5163849797 Release 5.2.0.178U
Release 5.2.0.178U

Change-Id: If14b99438c534f8a91aaccf54ce34bdf57e3dc49
CRs-Fixed: 774533
2020-03-30 10:03:33 -07:00
Lihua Liu
ddb8d72760 qcacld-3.0: Add workaround for TXDMA HW limitation
Per HW team's analysis, we find a TXDMA HW limitation:
ADDR0&0x1FFFFFFF8 should not equal ADDR1&0x1FFFFFFF8.
Otherwise, TXDMA will run into exception, which cause TX fail.
ADDR0: the address of last words in previous buffer;
ADDR1: the address of first words in next buffer;

We hit this limitation in NAT forward TSO jumbo case whose buffer
address of two fragments like below:
tso_frags = (
(length = 0x42, vaddr = 0xFFFFFFD0F5FA2F82, paddr = 0x1F5FA2F82),
(length = 0x05A8, vaddr = 0xFFFFFFD0F5FA2FC4, paddr = 0x1F5FA2FC4)
In this case, ADDR0 = 0x1F5FA2F82 + 0x42 -2 = 0x1F5FA2FC2,
ADDR1 = 0x1F5FA2FC4, then
ADDR0&0x1FFFFFFF8 = ADDR1&0x1FFFFFFF8.
To avoid this, shift server bytes for ADDR0.

Change-Id: If9334a6861a03432eb70356df41a11ad971159e3
CRs-Fixed: 2641066
2020-03-30 10:03:33 -07:00
nshrivas
547733e56a Release 5.2.0.178T
Release 5.2.0.178T

Change-Id: Ic06eaf6a5c4a877687bf08e2200005f613309e46
CRs-Fixed: 774533
2020-03-30 06:10:18 -07:00
hqu
14cdfe2c91 qcacld-3.0: Add support for DCS channel switch from DFS to DFS
Bring up SAP+SAP with acs mode on 5G and set chanlist only with
DFS channel, run heavy traffic to make noisy on SAP beacon channel,
then DCS will be triggered to do ACS again for choosing better
channel to switch, new DFS channel will be choosed, but channel
switch is failed.

DCS policy is SAP do channel switch one by one with the same target
channel, ignore three fail point concurrency check in
wlan_hdd_cfg80211_start_acs/wlansap_set_channel_change_with_csa/
wlansap_roam_process_dfs_chansw_update, furthermore need to add DFS
channel to acs channel list in sap_get_freq_list.

Change-Id: I7360792105cd1fdd4f4c75040c510cc620c3d5c5
CRs-Fixed: 2648641
2020-03-30 06:10:18 -07:00
nshrivas
4531110f1c Release 5.2.0.178S
Release 5.2.0.178S

Change-Id: I4dff29747a714cc12fb1d49994fae9c1949f139b
CRs-Fixed: 774533
2020-03-30 04:25:36 -07:00
sheenam monga
bf390c6c5c qcacld-3.0: Register RVS action frames for wake up
Currently the bitmap of action frames that can wake up the host
is sent via the wmi command WMI_WOW_SET_ACTION_WAKE_UP_CMDID.
This bitmap doesn't include RVS action frames so currently the
host doesn't wake up for rvs action frames.

Enable wake up for rvs action frames during runtime.

Change-Id: I9fac8e74cdb7b529f858f7f2027906ca2b3083b3
CRs-Fixed: 2649927
2020-03-30 04:25:36 -07:00