Grafico dei commit

19666 Commit

Autore SHA1 Messaggio Data
Jinwei Chen
d3f4ccf4d6 qcacld-3.0: add vdev->osif_rx failure handling for fisa path
Currently there is no vdev->osif_rx result check in fisa path,
so if vdev->osif_rx returns failure, the RX skb may not have been
handled and it may be leaked.

Add vdev->osif_rx failure handling to avoid skb leak.

Change-Id: I6c194c31bbe71cba5c56c2b93f505225de439b72
CRs-Fixed: 2695084
2020-06-02 13:33:01 -07:00
Dundi Raviteja
8cd3c79d59 qcacld-3.0: Add calls to disable pkt capture events
Add calls to disable packet capture events and
delete monitor interface while sta interface is
going down if packet capture mode is enabled.

Change-Id: I4094e072ac723348d4d0d8a4ccefb5bf2b77e6d5
CRs-Fixed: 2647503
2020-06-02 13:32:56 -07:00
Dundi Raviteja
9fca084961 qcacld-3.0: Add tgt layer for packet capture mode
Add tgt layer for packet capture mode.

Change-Id: I8e69701c69d6ec1989e36cb09826c1c0bf3f51e7
CRs-Fixed: 2674337
2020-06-02 13:32:50 -07:00
nshrivas
9b1c3c0ea9 Release 5.2.0.188R
Release 5.2.0.188R

Change-Id: I06b7e17a863e06e75ed7a51db4d854bce75ffdba
CRs-Fixed: 774533
2020-06-02 08:37:36 -07:00
Paul Zhang
7a7fdbb23e qcacld-3.0: enable gSapGetPeerInfo by default
hdd_get_connected_station_info ignores some peer txrx
statistics if gSapGetPeerInfo is not set.

Change-Id: I02e607c081a932601c9c84998f5e9ede3563110e
CRs-Fixed: 2691717
2020-06-02 08:37:36 -07:00
nshrivas
9458987fb8 Release 5.2.0.188Q
Release 5.2.0.188Q

Change-Id: Iccbc6cd16057203f3b3034102f8d00aae141fc2f
CRs-Fixed: 774533
2020-06-02 07:01:45 -07:00
Nirav Shah
f8dec49049 qcacld-3.0: Check CFG_TGT_DEFAULT_MAX_STA_VDEVS for P2P-CLI mode
In FW CFG_TGT_DEFAULT_MAX_STA_VDEVS considers total no of
STA and P2P-CLI vdevs. Enable CFG_TGT_DEFAULT_MAX_STA_VDEVS
check for P2P-CLI mode.

Change-Id: Ic21cf39628e7ad19102b040ffdf493a14205043a
CRs-Fixed: 2680645
2020-06-02 07:01:45 -07:00
nshrivas
44fa70c1a8 Release 5.2.0.188P
Release 5.2.0.188P

Change-Id: I2f84b8adc4ee5e75d2d44ca08c4e7d576894e2ee
CRs-Fixed: 774533
2020-06-01 23:13:28 -07:00
Bapiraju Alla
7740bf96b9 qcacld-3.0: Log Tx power setting in the driver
Log tx power value in the driver before sending to firmware

Change-Id: I602612433407e89bfa5288fa89a181a0db329f71
CRs-Fixed: 2699480
2020-06-01 23:13:27 -07:00
Lincoln Tran
aa5716f95f qcacld-3.0: Update nan_discovery_flush_callback
Update return type of nan_discovery_flush_callback to return
QDF_STATUS to match scheduler_msg_process_fn_t.

Change-Id: I3a2c32beaff471ed3a2e8e3956292257e074cd50
CRs-fixed: 2698305
2020-06-01 23:13:23 -07:00
Bapiraju Alla
498953e600 qcacld-3.0: Update rx retry count in peer stats
Currently, Rx retry count statistic is not supported by firmware.
So host driver also not updating the corresponding statistic in
peer stats. Datapth is updating this counter using retry bit in the
rx MPDU. Update peer Rx retry count value from data path.

Change-Id: I4fd422faa7a766090991c461cd6fd2cc70d2fcc3
CRs-Fixed: 2691704
2020-06-01 23:13:20 -07:00
nshrivas
7229b508f4 Release 5.2.0.188O
Release 5.2.0.188O

Change-Id: Ie8f3bed03886137ff2b9fa82bd2343d446fc1f71
CRs-Fixed: 774533
2020-06-01 21:47:46 -07:00
Srinivas Dasari
698272c0b7 qcacld-3.0: Replace NLA_UNSPEC with NLA_BINARY
NLA_UNSPEC usage is restricted from kernel version 5.4 by adding
a strict check while validating the nla_policy. The advantage
of this is that types not specified in the policy will be
rejected.
Driver can give exception to NLA_UNSPEC by setting
strict_start_type in the policy of a vendor command to NLA_U8
or some greater value. But it's better to set the type to a
valid type so that kernel can validate.
So, use NLA_BINARY with valid length instead of NLA_UNSPEC.

Change-Id: If6d559a3aa7b8719a515e00e271e313c02f8135f
CRs-Fixed: 2692293
2020-06-01 21:47:46 -07:00
nshrivas
30a9a85c61 Release 5.2.0.188N
Release 5.2.0.188N

Change-Id: Ia52189c4f800801164bf53f6f82b612eadcda9c2
CRs-Fixed: 774533
2020-06-01 20:30:00 -07:00
Abhinav Kumar
7f67effb98 qcacld-3.0: Fix connection failure with SAP in WPA3 mode
In case if the EXTERNAL_AUTH_SUPPORT is present natively
in kernel, then the backport flag CFG80211_EXTERNAL_AUTH_SUPPORT
will not be present.

Currently host checks for defined(CFG80211_EXTERNAL_AUTH_SUPPORT)
flag to register ops for external_auth. This results in external
auth fail in the above case.

In the driver all instances of
“defined(CFG80211_EXTERNAL_AUTH_SUPPORT)” should be paired with
|| (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0))

where 4.17.0 is the kernel version where the external auth support
gets added to the upstream kernel.

Change-Id: I67b687b37ab60b581e97ea81243c0d30bbb17acd
CRs-Fixed: 2692697
2020-06-01 20:30:00 -07:00
nshrivas
2841cd9e2c Release 5.2.0.188M
Release 5.2.0.188M

Change-Id: I7472acbb35cd5f77b8aedc07c886fec98f71a536
CRs-Fixed: 774533
2020-06-01 16:28:02 -07:00
Min Liu
bc1a807ec5 qcacld-3.0: Add a sysfs replacement for set_he_bss_clr
Add the sysfs entry for set_he_bss_clr.
Previously these commands would be queried via iwpriv
--> iwpriv wlan0 set_he_bss_clr [value]
it is now changed to support via sysfs:
--> echo [value] > /sys/class/net/wlanxx/he_bss_color

Change-Id: I4700414469be018de9758277c4e095e64cabb376
CRs-Fixed: 2692916
2020-06-01 16:28:02 -07:00
nshrivas
7b3c654516 Release 5.2.0.188L
Release 5.2.0.188L

Change-Id: I9a3f8b9010a7778ed15140b9c9a9d8cb1e758874
CRs-Fixed: 774533
2020-06-01 13:26:54 -07:00
Pragaspathi Thilagaraj
c7a796fd53 qcacld-3.0: Cleanup rrm measurement data based on the index
Currently when rrm measurement is completed for a particular
index, the rrm_cleanup() is called which clears the measurement
data for all the index. This can cause failure with multiple
measurement request where on completion of the first request,
second request data structure will also be made null.

Pass the measurement index to rrm_cleanup() and clear only
that index data.

Change-Id: Ib712c2da3ddfea374d60b250dd474b08093b24c7
CRs-Fixed: 2695836
2020-06-01 13:26:54 -07:00
nshrivas
17c8e52eff Release 5.2.0.188K
Release 5.2.0.188K

Change-Id: I083e7aa73365fef3ae6b7a5eb3d78d89b8f73d64
CRs-Fixed: 774533
2020-06-01 03:01:50 -07:00
Jingxiang Ge
cc6e046103 qcacld-3.0: checking fw down when handle runtime suspend failure
In pmo_core_psoc_bus_runtime_suspend, when handing pm suspend fail,
Don't call qdf_bug if fw is already down.

Change-Id: I4be872a27bbc100e85432e42a33ac329fad1dd24
CRs-Fixed: 2694416
2020-06-01 03:01:49 -07:00
nshrivas
118aaaca1a Release 5.2.0.188J
Release 5.2.0.188J

Change-Id: Ib663db7e23f4fe2f97ee87509249d86fc4f48ea3
CRs-Fixed: 774533
2020-06-01 01:37:25 -07:00
Abhishek Ambure
94d53d68a7 qcacld-3.0: Add ini support to send oce subnet id scoring
Introduce an INI "oce_subnet_id_weightage" to indicate firmware
about oce subnet id weightage so that firmware can use subnet id
weightage to calculate candidate AP's score.

Change-Id: Iaf3be1947f8966a2e2c34162d251a31950058231
CRs-Fixed: 2674596
2020-06-01 01:37:25 -07:00
Arun Kumar Khandavalli
7f6b2addb3 qcacld-3.0: Reject interface up when the recovery is inprogress
During the interface UP the driver will take rtnl lock and if the
recovery is going on at the same time it will wait for the recovery
to complete.

If its a modem ssr, the IPA related module would register all the
netdevices which need the rtnl_lock held by the driver.

Reject the interface up when the SSR is inprogress.

Change-Id: I7b2451f16c86cbe86a7c377d112bec12f7eb0252
CRs-Fixed: 2693540
2020-06-01 01:37:20 -07:00
nshrivas
cc268ff2df Release 5.2.0.188I
Release 5.2.0.188I

Change-Id: I7bf214d06f0a0b77706c107df2841d85de9a0467
CRs-Fixed: 774533
2020-05-31 20:57:52 -07:00
Paul Zhang
3f43118702 qcacld-3.0: fix use-after-free in hdd_put_sta_info_ref
sta_info ref is wrongly put in function
hdd_get_cached_station_remote. Modify the typo code
to correct the issue.

Change-Id: Ia0de774603c1570598848f7d699a128a5da6d8f0
CRs-Fixed: 2692694
2020-05-31 20:57:52 -07:00
nshrivas
a1edb0ebc4 Release 5.2.0.188H
Release 5.2.0.188H

Change-Id: I0aa5a877b696c354012478ce07ff71dd07e87ade
CRs-Fixed: 774533
2020-05-31 04:04:18 -07:00
Lincoln Tran
cf98b324aa qcacld-3.0: Update wma_discard_fw_event
Update return type of wma_discard_fw_event to return QDF_STATUS
to match scheduler_msg_process_fn_t.

Change-Id: I1746b170318be30810ddf7cc6be8156a3940b595
CRs-fixed: 2698308
2020-05-31 04:04:18 -07:00
nshrivas
749eebbc06 Release 5.2.0.188G
Release 5.2.0.188G

Change-Id: Iad49a43e86481653366c1dc3da44a028b8d57ad0
CRs-Fixed: 774533
2020-05-31 02:45:14 -07:00
Rajeev Kumar
5ccdee7ce2 qcacld-3.0: Change copy right year of wlan_hdd_sysfs_set_fw_mode_cfg.c
wlan_hdd_sysfs_set_fw_mode_cfg.c is derived from wlan_hdd_wext.c and hence
maintain original copyright year in wlan_hdd_sysfs_set_fw_mode_cfg.c.

Change-Id: I034fbb2bc9ea205ca92ee017c3e9111405306bd7
CRs-fixed: 2698256
2020-05-31 02:45:13 -07:00
nshrivas
b2bfc02e2e Release 5.2.0.188F
Release 5.2.0.188F

Change-Id: Idbcdc07b4161ae596a1eafb7ac958f3525646cdf
CRs-Fixed: 774533
2020-05-29 21:05:43 -07:00
Abhinav Kumar
8c45456a60 qcacld-3.0: Send proper Link Rates to user space
Currently, host consider self NSS capability while sending
link rates statistics to userspace for "iw wlan0/1 link" command.
This results host sends incorrect link rates in case of STA and
AP has different NSS capabilities.

Fix is to send intersection of Self and AP's NSS capability
to userspace.

Change-Id: I7a31998ccb6988aa95de9fa25f49dda20f9f8b96
CRs-Fixed: 2686251
2020-05-29 21:05:42 -07:00
nshrivas
de6f87ce5c Release 5.2.0.188E
Release 5.2.0.188E

Change-Id: I9cd6d6fcfee7d08f4a6493193ffade51f3d2d422
CRs-Fixed: 774533
2020-05-29 18:36:53 -07:00
Lincoln Tran
d2c51be72a qcacld-3.0: Update lim_send_action_frm_tb_ppdu_cfg_flush_cb
Update the return type of
lim_send_action_frm_tb_ppdu_cfg_flush_cb to return QDF_STATUS
to match with scheduler_msg_process_fn_t.

Change-Id: I48e382422f2c970f2f347f1fe716ca974efdd5fb
CRs-fixed: 2698312
2020-05-29 18:36:53 -07:00
nshrivas
1d0a41cb7b Release 5.2.0.188D
Release 5.2.0.188D

Change-Id: I0bcf9f33dd64d35baeb7f175500317aaf21e1dd9
CRs-Fixed: 774533
2020-05-29 17:18:52 -07:00
Lincoln Tran
96e8d8ddf1 qcacld-3.0: Update target_if_nan_event_flush_cb
Update return type of target_if_nan_event_flush_cb to return
QDF_STATUS to match scheduler_msg_process_fn_t.

Change-Id: I2f0380edeb21a1c6016358725abab39fdc741466
CRs-fixed: 2698302
2020-05-29 17:18:52 -07:00
Ashish Kumar Dhanotiya
1fbe964622 qcacld-3.0: Update freq attributes of ch_params in start ap
Currently frequency attributes mhz_freq_seg1 and mhz_freq_seg0
are not getting updated in start ap before calling set channel
params api of regulatory component from start bss,
regulatory component uses these attributes to set the correct
channel params.
Since these frequencies params are not correct, regulatory
component is returning invalid ch_params for 80+80Mhz operation
which is resulting in failure of start bss for 80+80Mhz.

To address above issue, update the frequency attributes correctly
in start ap.

Change-Id: If0a8e0ed121b2167ff0226d2bd0048a1fa120f31
CRs-Fixed: 2697754
2020-05-29 17:18:49 -07:00
nshrivas
9e36e0b408 Release 5.2.0.188C
Release 5.2.0.188C

Change-Id: I8f23206eb8015c89ebe90ee129ca89cf22eb97f6
CRs-Fixed: 774533
2020-05-29 14:50:46 -07:00
Surabhi Vishnoi
ff7585ee9d qcacld-3.0: Add support to optimize latency using pm_qos
For Voice and Music (V&M) products, extreme latency optimization is
needed while playing music and discovery, higher power consumption
in this mode could be accepted. With CONFIG_WLAN_LL_MODE enabled,
when latency_level is set to ultra low via cfg80211 vendor command,
update request pm qos type PM_QOS_CPU_DMA_LATENCY to level
DISABLE_KRAIT_IDLE_PS_VAL to speed up CPU efficiency and irq response.

Change-Id: Ifb5bc8169f1cd08500c4b4bc0dd65dd0b3667ab6
CRs-Fixed: 2685074
2020-05-29 14:50:46 -07:00
nshrivas
40518c382c Release 5.2.0.188B
Release 5.2.0.188B

Change-Id: Id3d21c123b553dae9c5ecf06c72e4c0706183fe3
CRs-Fixed: 774533
2020-05-29 13:13:31 -07:00
Lincoln Tran
c88a47f84a qcacld-3.0: Update hdd_data_stall_process_event
Update hdd_data_stall_process_event to match scheduler_msg_process_fn_t.
Change the argument to scheduler_msg struct and add return status
to match function type.

Change-Id: Id4d2eaaa2262d7fe2dd6241ae4581a3d0cb09805
CRs-fixed: 2697445
2020-05-29 13:13:31 -07:00
bings
ed94c9349b qcacld-3.0: Fix WLAN_AKM_SUITE_* redefinition build error
Do not define WLAN_AKM_SUITE_OWE if it is defined.
Do not define WLAN_AKM_SUITE_EAP_SHA256 if it is defined.
Do not define WLAN_AKM_SUITE_EAP_SHA384 if it is defined.

Change-Id: Id06961a4c0d03f97279e2b45f9bfc5befb943e66
CRs-Fixed: 2666448
2020-05-29 13:13:27 -07:00
nshrivas
a174527a2c Release 5.2.0.188A
Release 5.2.0.188A

Change-Id: I2729103f3a1580dfdf85eb88a969d0b0627c4c6d
CRs-Fixed: 774533
2020-05-29 03:13:43 -07:00
Jia Ding
51a9fa1c4a qcacld-3.0: Properly set WLAN_IPA_MAX_STA_COUNT
Set WLAN_IPA_MAX_STA_COUNT to WLAN_MAX_CLIENTS_ALLOWED
if WLAN_MAX_CLIENTS_ALLOWED is defined.

Change-Id: Ic7b3706897cec8ee149bab12cd91c94ae04f75ef
CRs-Fixed: 2658585
2020-05-29 03:13:43 -07:00
bings
d1aef8217c qcacld-3.0: proc_create_data support for 5.6+ kernel
One parameter of proc_create_data is changed from struct
file_operations to struct proc_ops.
Add support for it under the kernel version compilation flag.

Change-Id: Ic87222f9c267debef56dcc66fc629854058ffabd
CRs-Fixed: 2666490
2020-05-29 03:13:38 -07:00
bings
9341e24bb2 qcacld-3.0: ndo_tx_timeout support for 5.6+ kernel
New parameter txqueue is added for callback ndo_tx_timeout.
Add support for it under the kernel version compilation flag.

Change-Id: I0234dade56f65d15a4370404e17ff51a8a73ee4e
CRs-Fixed: 2666436
2020-05-29 03:13:28 -07:00
nshrivas
e50e7c0ea2 Release 5.2.0.188
Release 5.2.0.188

Change-Id: I027d3acbd3bc1afd7fb75a641de623ea2d3f0632
CRs-Fixed: 774533
2020-05-28 21:07:36 -07:00
Min Liu
6bceefd884 qcacld-3.0: Fix compilation issue in perf build
Fix insmod failure in perf build which is caused by undefined
symbol when MPC_UT_FRAMEWORK is not defined.

Change-Id: I1a1ae76af596a3d219a7367d45a2fb38a08107a4
CRs-Fixed: 2696540
2020-05-28 21:07:35 -07:00
Baowei Liu
78aa7bdfc1 qcacld-3.0: Skip recovering check if host assert target
In cds_trigger_recovery_handler, Host driver first set flag recovering
before cds_force_assert_target. For Rome, ol_target_failure run when
FW crash, Self-Recovery stop when detect flag recoverying be set

Add CDS_DRIVER_STATE_ASSERTING_TARGET to record Host asserting in
cds_force_assert_target. Skip recovering check in ol_target_failure
if detect this flag.

Change-Id: I290e2f21bd0bca6dc6d76de43de4f8dd801d7ff5
2020-05-28 21:07:32 -07:00
Utkarsh Bhatnagar
09431aa329 qcacld-3.0: Fix usage of wlan_reg_legacy_chan_to_freq
In wma_vdev_pre_start() freq is already available with des_chan->ch_freq
so no need to get the freq again from using wlan_reg_legacy_chan_to_freq.
In hdd_cfg80211_update_channel_info() use wlan_reg_chan_band_to_freq
to get the freq from channel.

Change-Id: I179907c9f5a80f355b44aa9c9509d8d12d8825f8
CRs-Fixed: 2696687
2020-05-28 21:07:28 -07:00