Граф коммитов

17979 Коммитов

Автор SHA1 Сообщение Дата
Naman Padhiar
fb90ce5ccb qcacld-3.0: Add wrapper APIs for HIF layer
Add wrapper APIs which can be used to route calls
to PLD layer if PLD layer.

Change-Id: I4423483f5f3660f7743832d05fd38b45661d02e7
2019-12-26 11:37:52 -08:00
nshrivas
032a0f7aa7 Release 5.2.0.162R
Release 5.2.0.162R

Change-Id: I36f3fa55549bdad40626c8c9464ee7ab3da282eb
CRs-Fixed: 774533
2019-12-26 10:17:04 -08:00
Chaoli Zhou
b8c766afd3 qcacld-3.0: Fix PKTLOG failure with Genoa
The PKTLOG function broken with Genoa caused by
2857937, so add the needed macro back to avoid
crash issue while PKTLOG enable.

Change-Id: I3f9621830dcad415868fdee5fbeef8fdb86604b0
2019-12-26 10:17:03 -08:00
nshrivas
da2ce637a0 Release 5.2.0.162Q
Release 5.2.0.162Q

Change-Id: I44353b391319cd6ab9052487f19d14a9b5df9dd9
CRs-Fixed: 774533
2019-12-26 07:34:18 -08:00
Pragaspathi Thilagaraj
1799c4170d qcacld-3.0: Send SNR values for roam trigger minimum rssi
When the firmware doesn't advertise the
wmi_service_hw_db2dbm_support target capability host should send
rssi values in SNR equivalent so that the hardware can trigger
interrupts. Else low rssi, idle roam, emergency deauth roam
interrupts will not be triggered.

Add changes to convert RSSI values coming from ini to
SNR and send it to firmware. Below ini parameters need
conversion:
bss_load_trigger_2g_rssi_threshold
bss_load_trigger_5g_rssi_threshold
idle_roam_min_rssi
candidate_min_rssi_for_beacon_miss
candidate_min_rssi_for_disconnect

Change-Id: Ied0325031b336d0b6c03ad5dda772170bc54190c
CRs-Fixed: 2590848
2019-12-26 07:34:18 -08:00
nshrivas
19d1c6f4f9 Release 5.2.0.162P
Release 5.2.0.162P

Change-Id: I9f179fdb961209c805e4be1fb648807f0f1e4b78
CRs-Fixed: 774533
2019-12-26 06:06:54 -08:00
sheenam monga
63736f6880 qcacld-3.0: Add ini support to enable/disable ring buffer
Currently, There is no support to disable ring buffer. Each Ring
buffers is using 2MB and overall 10MB is consumed by 5 ring buffers.

Fix is to add ini support to enable/disable ring buffer.
Boolean ini CFG_ENABLE_RING_BUFFER is added. Default value of
gEnableRingBuffer is 1 which indicates that ring buffers are enabled
by default.

CRs-Fixed: 2592476
Change-Id: I30f95668de6df96e5c388e92e202f8c236132dc2
2019-12-26 06:06:53 -08:00
Liangwei Dong
57ef9a3da1 qcacld-3.0: Save client operation class IE
SAP's client operation class IE shows the supported band and
bandwidth of the peer. Driver will use the information
to identify the peer's band capabilities. Save operation class
IE to sta_ds peer struct.

Change-Id: Idf0b40cdd85b3da07f9db2e8de0ee2a86b307f40
CRs-Fixed: 2592870
2019-12-26 06:06:32 -08:00
nshrivas
2826782d0d Release 5.2.0.162O
Release 5.2.0.162O

Change-Id: I7bb49fdb30e68cd61ddc2276127cbc3c1066b432
CRs-Fixed: 774533
2019-12-26 02:26:56 -08:00
Ashish Kumar Dhanotiya
3257cee47e qcacld-3.0: Update the ini for SAR version
This change addresses 2 issues:
1. Currently the ini for SAR version specify the SAR
version. If value of the ini is 1 it specifies the SAR
version 1 and if value of ini is 2 it specifies SAR
version 2 and driver converts SAR version 1 (SARV1)
command to SAR version 2 (SARV2) command based on FW
capability.

2. If the value of the ini is SARV1 and FW expects
SARV2 command, currently driver is sending SARV1
command to FW which results in undefined behavior
at FW.

Since the use of this ini is to convert the SARV1 command
to SARV2 command, change this ini from int type to bool
type to just specify if the conversion is enabled or not
to avoid any kind of confusion.

If the ini is SARV1 and FW expects SARV2 command, reject
the user space command to set SAR power limits.

Change-Id: Ie8e3790bd8737fcb251a0481e2e6001a26295773
CRs-Fixed: 2581034
2019-12-24 21:55:49 -08:00
nshrivas
88adfa02ef Release 5.2.0.162N
Release 5.2.0.162N

Change-Id: I82a808f15866ff855440a5de63fff257076fafec
CRs-Fixed: 774533
2019-12-24 02:20:34 -08:00
Liangwei Dong
adbb5df9b7 qcacld-3.0: Add g_pcl_band_priority - Set 5G/6G Channel order
g_pcl_band_priority - Set 5G/6G Channel order
This ini is used to set preference between 5G and 6G channels
during population of PCL.
0 - Prefer 5G channels, 5G channels will be placed before
    the 6G channels in PCL.
1 - Prefer 6G channels, 6G channels will be placed before
    the 5G chennels in PCL.

The change will only add 6Ghz channel to PCL for SAP or STA
mode.

Change-Id: I51b3073d6f4fb01af72ccb0a50d10822ac115bca
CRs-Fixed: 2590007
2019-12-24 02:20:34 -08:00
nshrivas
80ee944b82 Release 5.2.0.162M
Release 5.2.0.162M

Change-Id: I928132c6da3c227352dd80a455df2749fc4031b1
CRs-Fixed: 774533
2019-12-23 11:42:51 -08:00
Arun Kumar Khandavalli
3801c4f263 qcacld-3.0: Use stop adapter during SSR
Presently, during Subsystem Restart(SSR) the object references
are not released cleanly, invoke stop adapter during the SSR
to have common functionality between the netdevice going down
and SSR.

Change-Id: I2980379022f62ef27dea92868c8033c087544d50
CRs-Fixed: 2587443
2019-12-23 11:42:51 -08:00
nshrivas
9e23ab47ae Release 5.2.0.162L
Release 5.2.0.162L

Change-Id: Ie1f0bb78f19cd6332ce3a62a1bd0b1e396605c27
CRs-Fixed: 774533
2019-12-23 09:35:06 -08:00
Liangwei Dong
10054b9f9e qcacld-3.0: Channel to Freq conversion for channel overlap API
Use frequency as parameter for channel overlap handling
APIs - csr_check_concurrent_channel_overlap,
csr_calc_chb_for_sap_phymode, csr_get_ch_from_ht_profile,
csr_handle_conc_chnl_overlap_for_sap_go.

Change-Id: Ie3c9d466f21d7313998328432c063b1f6c7e5d0f
CRs-Fixed: 2577706
2019-12-23 09:35:06 -08:00
nshrivas
6d6d5be3f4 Release 5.2.0.162K
Release 5.2.0.162K

Change-Id: If701ffba32c43e87d9d7a51070cec5592109652d
CRs-Fixed: 774533
2019-12-23 04:14:23 -08:00
Hangtian Zhu
8edf8c6c17 qcacld-3.0: Fix monitor mode radiotap bw and rssi info
For vht bw, there is a transformation of rx_status->vht_flag_values2
in qdf_nbuf_update_radiotap_vht_flags(), so strictly copy
rx_status->vht_flag_values2 from rx_desc, do not transform twice which
leads to wrong vht bw.
For rssi, only show first mpdu rssi info in a ppdu, firmware reports
-86 rssi_comb for mpdus other than the first one, calculate
ANTSIGNAL by adding with noise floor will show a wrong rssi for those
mpdus.

Change-Id: I776d85cea2cf0f48beeed351ed0643699d805d54
CRs-Fixed: 2588768
2019-12-23 04:14:22 -08:00
nshrivas
c1020daa87 Release 5.2.0.162J
Release 5.2.0.162J

Change-Id: I207cca3b33eaa69e75b76aac05231f219c85d3b0
CRs-Fixed: 774533
2019-12-23 02:34:37 -08:00
sheenam monga
cdeddfbf1f qcacld-3.0: Drop Excessive Disassoc frames
Currently, In function lim_is_pkt_candidate_for_drop
to drop excessive management frames subType should be
SIR_MAC_MGMT_ASSOC_REQ, SIR_MAC_MGMT_DISASSOC and
SIR_MAC_MGMT_DEAUTH. As subType can not be equal to
3 management subtypes at same time,excessive frames for Assoc,
Disassoc and Deauth will never drop.

To drop excessive frames keep a check of OR instead of AND for
ASSOC, DISASSOC AND DEAUTH subTypes. Send diag event after all
duplicate checks in lim_process_disassoc_frame and
lim_process_deauth_frame.

Change-Id: I595378d409804d3fbd9c5d22a37090d6dc429075
CRs-Fixed: 2588832
2019-12-23 02:34:37 -08:00
nshrivas
a4120d5fa7 Release 5.2.0.162I
Release 5.2.0.162I

Change-Id: I911b248902f40839b88fb3a5e719481b384e1d48
CRs-Fixed: 774533
2019-12-22 23:50:15 -08:00
Sandeep Puligilla
a6b845d2c8 qcacld-3.0: Force STA connection in VHT
Force STA connection in VHT mode if AP HE adveritised rates
does not match with STA supported HE rates

Change-Id: Ia691a66ad4a2d2d2d59e07d07104e6771c6e4a84
CRs-Fixed: 2580041
2019-12-22 23:50:15 -08:00
nshrivas
532cbe0017 Release 5.2.0.162H
Release 5.2.0.162H

Change-Id: I1572358f296e4931c6eb5e18c0e1e219ca42af56
CRs-Fixed: 774533
2019-12-22 14:22:53 -08:00
Min Liu
a51b62649d qcacld-3.0: Send deauth to AP when SAE auth failed
For some IOT issue on specific AP:
STA failed to connect to SAE AP due to incorrect password is used.
Then AP will still reject the authentication even correct password
is used unless STA send deauth to AP upon authentication failure.

Change-Id: I394041177425267e1b213ae468ec316e207cc0fc
CRs-Fixed: 2576247
2019-12-22 14:22:53 -08:00
nshrivas
22747cb865 Release 5.2.0.162G
Release 5.2.0.162G

Change-Id: I1362b255deac1117737d834029bfa6c013bf8520
CRs-Fixed: 774533
2019-12-21 21:12:00 -08:00
Pragaspathi Thilagaraj
1e30b6ac29 qcacld-3.0: Clear Country code information after roaming
The connected profile in csr_roam_session is filled after join
success with an AP in csr_roam_process_join_res(). The connected
profile information also has the country code advertised by the
AP over its beacon in the Country Element (EID 7). When STA
roams from AP1 having country IE to AP1 which doesn't have
country IE, the driver checks if the country IE is present in
the AP2 beacon IEs. If the country code is present, new value is
copied, else the older country code value is not cleared.
This results in beacon report failure when roamed to AP2 due
to country code and op class mismatch.

Clear the country code in connected profile before checking if the
country code IE is present.

Change-Id: I503f9761ff33fb245a25b23893360389d7a0b258
CRs-Fixed: 2590117
2019-12-21 21:12:00 -08:00
nshrivas
87fc43fe69 Release 5.2.0.162F
Release 5.2.0.162F

Change-Id: Id74dd64fa0b383aec816bea5bc5afd76320c7c29
CRs-Fixed: 774533
2019-12-21 12:15:05 -08:00
sheenam monga
d87a3b89cb qcacld-3.0: Handle bus bandwidth in start and stop modules
Currently, bus bandwidth is initialized and deinitialized in
different memory domains which may cause leaks due to async bandwidth
init and deinit.

Fix is to initialize and de-initialize bus bandwidth in active domain.

Change-Id: I67cf9ecdd47c8f3ca6e9b272ca379f0cac9a6c7b
CRs-Fixed: 2568881
2019-12-21 12:15:05 -08:00
nshrivas
febc981b59 Release 5.2.0.162E
Release 5.2.0.162E

Change-Id: Ibdda53437f5e1ae5749c45677f2954052def3ff4
CRs-Fixed: 774533
2019-12-20 20:05:56 -08:00
Tiger Yu
db568a828c qcacld-3.0: Don't set unload flags before unregister_driver when unloading
Don't set unload flags earlier before unregister_driver when driver
unloading to avoid runtime resume failure. And set this flags earlier
before wait_for_ops in the pld_pcie_remove to give chance SSR will be
skipped if unloading is in progress.

Change-Id: I084db32b436148932a2a90e3e1dcb1122f4303b5
CRs-Fixed: 2589413
2019-12-20 20:05:56 -08:00
nshrivas
dde47fa72d Release 5.2.0.162D
Release 5.2.0.162D

Change-Id: Icb8833e1e2894d0773a3ae825e141f1a49d19991
CRs-Fixed: 774533
2019-12-20 03:51:52 -08:00
Jianmin Zhu
e75eb51af1 qcacld-3.0: 5G SAP failed to channel switch for sta connecting
When 5G band is disabled by set band,  need SAP switch channel
to 2G. When 5G band is enabled again, need SAP switch back to
original 5G channel. When sta connecting, SAP can't switch
channel.

Merge logic of SAP channel switch for band change and for force
scc with sta, both are implemented in:
policy_mgr_check_concurrent_intf_and_restart_sap now.

After sta associate succeed or fail,
policy_mgr_check_concurrent_intf_and_restart_sap is called again
to check and try SAP CSA for band capability change.

Change-Id: I8574209aac3cabb748a8ec05050244f480e1a0e9
CRs-Fixed: 2589021
2019-12-20 03:51:51 -08:00
nshrivas
de150569b2 Release 5.2.0.162C
Release 5.2.0.162C

Change-Id: Iccb4709b9aad298fbac0954b3d1783e65b9eea1e
CRs-Fixed: 774533
2019-12-19 16:54:10 -08:00
Manikandan Mohan
14d2bf80b3 qcacld-3.0: Fix get channel list with existing connections
Reinitialize pcl_weight index in policy_mgr_get_channel_list
for correct connection count.

Change-Id: I96d38f1cb29014517f2c22e360db5d942eb66519
CRs-Fixed: 2589478
2019-12-19 16:54:10 -08:00
nshrivas
1d0aa329d6 Release 5.2.0.162B
Release 5.2.0.162B

Change-Id: Ib2b5b8eb42e4fd03e892ccffafa8c4d3bd156d5e
CRs-Fixed: 774533
2019-12-19 11:45:08 -08:00
Jianmin Zhu
569aa029a6 qcacld-3.0: Fix LFR2 failure for no better AP event
LFR2 also need set roam offload flag to fw:
WMI_ROAM_FW_OFFLOAD_ENABLE_FLAG of
WMI_VDEV_PARAM_ROAM_FW_OFFLOAD.

Change-Id: Idbb602b717f46f88426ef36a738efd456ac7af8b
only sets roam offload flag to fw for LFR3.

Change-Id: I0abdab998b7a7c336379ab44ca43ac2fb823eed9
CRs-Fixed: 2580519
2019-12-19 11:45:08 -08:00
nshrivas
72c436ab9a Release 5.2.0.162A
Release 5.2.0.162A

Change-Id: I57d830be73c4bd10c2bbfdd4264f226a3d9a0d2d
CRs-Fixed: 774533
2019-12-19 07:09:32 -08:00
Amar Singhal
4ecd7dbe66 qcacld-3.0: Send max AMSDU size to firmware
Firmware needs maximum amsdu size for through-put optimization.
Send host configured amsdu size to firmware when vdev is created.

Change-Id: Ib292c6d9ddc828d5d0a02cf8f6d9a577c8a5c01a
CRs-Fixed: 2573857
2019-12-19 07:09:32 -08:00
nshrivas
7b31b9e751 Release 5.2.0.162
Release 5.2.0.162

Change-Id: I3e65f7ecf7fba45286ee553ff75b97f4b3efc348
CRs-Fixed: 774533
2019-12-19 03:03:53 -08:00
Wu Gao
8805369eb0 qcacld-3.0: Don't create new P2P IE just for NoA attribute
Host still create new P2P IE for NoA attribute even if there is P2P
IE in additional IE from up layer. This change adds NoA attribute to
existing P2P IE directly.

Change-Id: I8585e09ce3d97eb2f6eb67e552659be9962913c9
CRs-Fixed: 2583887
2019-12-19 03:03:53 -08:00
nshrivas
e6b7425e09 Release 5.2.0.161Z
Release 5.2.0.161Z

Change-Id: If34263b1a308d4be982bc641e8012778c127c784
CRs-Fixed: 774533
2019-12-18 18:56:56 -08:00
hqu
d109f767f6 qcacld-3.0: Remove enable_snr_monitoring from hdd_config struct
Currently, enable_snr_monitoring doesn't be initialized properly, in
some acs scenario, hostapd will dump survey(NL80211_CMD_GET_SURVEY),
driver return error due to uninitialized enable_snr_monitoring, this
will result in acs won't be started and sap fail to start.

Fix is to remove enable_snr_monitoring from hdd_config struct,
calling ucfg_scan_is_snr_monitor_enabled() everywhere that
enable_snr_monitoring is being used.

Change-Id: I8784867683b21d9441e980a1215b2db712db381a
CRs-Fixed: 2585661
2019-12-18 18:56:56 -08:00
nshrivas
fb6757f24d Release 5.2.0.161Y
Release 5.2.0.161Y

Change-Id: Idced29a9f74146ee91cf8f9485014b4aeb63ce95
CRs-Fixed: 774533
2019-12-18 08:07:04 -08:00
Abhinav Kumar
0c6565b815 qcacld-3.0: Connection fails due to reassociation in progress
Below are the scenarios where host fails to clear roam in
progress flag:

Case 1: While processing disconnection request
Host should clear roam in progress flag irrespective of
connection state of STA.

case 2: While processing a try-disconnect request
Currently, Host waits for WLAN_WAIT_TIME_STOP_ROAM (4 sec) to
process disconnection, if firmware has already started roaming.
In case if Host doesn't receive roam completion indication from
fw, Host set connection state to not connected and fails to clear
roaming in progress flag. This results host refuses all further
connection request with reason connection in progress.

Fix is to clear roaming_in_progress flag in both cases.

Change-Id: I45d9771bcd546d8914321e3be1a6d0ce6566cdac
CRs-Fixed: 2588803
2019-12-18 08:07:04 -08:00
nshrivas
4a63087564 Release 5.2.0.161X
Release 5.2.0.161X

Change-Id: I950784e682bffa3903f08ac5fe1d2ebf76dccf8e
CRs-Fixed: 774533
2019-12-18 02:46:18 -08:00
Will Huang
3c0285f029 qcacld-3.0: Move back set vdev crypto pararams to wlansap_start_bss
When SSR sap restart, vdev objmgr object will recreate new, if put set
vdev crypto pararams in wlan_hdd_cfg80211_start_bss(), it will not be
invoked by SSR sap restart procedure, so there is no crypto pararams in
vdev and lead to association failure when compare crypto pararams.

Move back set vdev crypto pararams to wlansap_start_bss so sap start
and restart will both invoke it.

Change-Id: I56656ffacbe153fbe73fb6e474048e055cb6a153
CRs-Fixed: 2584138
2019-12-18 02:46:18 -08:00
nshrivas
655c28c51f Release 5.2.0.161W
Release 5.2.0.161W

Change-Id: I4ae85fe1a3692ae6cdb22458765744cf8d5ae911
CRs-Fixed: 774533
2019-12-18 01:21:45 -08:00
bings
eb28e19903 qcacld-3.0: Modify dfs phyerror pulse dur to increase radar detection rate
When radar is injected at +/-30MHz separation from center frequency
in VHT 80MHz mode incorrect pulse duration is reported in the radar
summary reports and lead to decreased radar probablity detection.

Fix the issue by capturing pulses with such characteristics and
modify them to fit within the valid phyerror pulse duration range.

Change-Id: Ic6314a372d6909448fbe4eb694c41736d1719712
CRs-Fixed: 2577632
2019-12-18 01:21:45 -08:00
nshrivas
fd3488f009 Release 5.2.0.161V
Release 5.2.0.161V

Change-Id: I35180db93b56cf4ab4f660ab51e93fe62f7324d8
CRs-Fixed: 774533
2019-12-18 00:07:01 -08:00
sheenam monga
ec59a16f71 qcacld-3.0: Fix null session dereference in lim_populate_he_mcs_set
Currently, ch_width of session is checked without validating
session  which may lead to NULL pointer derefrence.

validate session_entry before accessing element of
pe_session

Change-Id: I1f785555fa77a0c588e9b5245ad513fe059974d0
CRs-Fixed: 2585928
2019-12-18 00:07:01 -08:00