Commit Graph

16457 Commits

Author SHA1 Message Date
Saket Jha
73e0acb2e2 qcacld-3.0: Set 6Ghz frequencies for monitor mode
Allow lim_update_session_he_capable_chan_switch for 6 Ghz frequencies in
monitor mode.

Change-Id: Ied8983b18f1ad36c70b66fd6fb4149b7b5b79e51
CRs-Fixed: 2608687
2020-01-23 19:20:55 -08:00
nshrivas
6ddff62b32 Release 5.2.0.166V
Release 5.2.0.166V

Change-Id: Ic0946f515805c71d578b24323e45add2631b62f9
CRs-Fixed: 774533
2020-01-23 14:27:29 -08:00
Rakesh Pillai
ed73605fe2 qcacld-3.0: Remove usage of datapath handles in outer layers
Currently many layers store the datapath handles i.e.
pdev and vdev handles and use them for passing as an
argument to the CDP APIs. This gives way to possible
race conditions, where the datapath handle provided by
the outer layer might be a stale pointer, which in turn
leads to unexpected results.

Remove the storage and usage of all the datapath handles
from the layers currently using them.
- cds_context
- vdev objmgr
- pdev objmgr

Change-Id: Icf24bd3792af203d1a06e153f0badd6e7405559f
CRs-Fixed: 2602199
2020-01-23 14:27:28 -08:00
nshrivas
10be1a6241 Release 5.2.0.166U
Release 5.2.0.166U

Change-Id: I8c8a6def8f2dc83f8c2c0be0439b8b3892ef11f6
CRs-Fixed: 774533
2020-01-23 10:57:04 -08:00
Arun Kumar Khandavalli
bdba410daa qcacld-3.0: Selectively reduce cds logs
Reduce the cds logs from info to debug.

Change-Id: I2b69dd1c03f6823254098b2ab22532b956001e1e
CRs-Fixed: 2607010
2020-01-23 10:57:03 -08:00
nshrivas
a1354a635f Release 5.2.0.166T
Release 5.2.0.166T

Change-Id: Ie0f108efe58262210ffb5f31b3de87b47f71b12a
CRs-Fixed: 774533
2020-01-23 09:39:59 -08:00
Abhishek Singh
f68ceb14a4 qcacld-3.0: Fix disconnect wait logic in wlan_hdd_try_disconnect
wlan_hdd_disconnect logic changed as part of
Ib490021775a39614646f8e518860c878cc0fdaae, but wlan_hdd_try_disconnect
was not taken care to avoid the disconnect timeout.

As both API use same code move the logic to separate API and call
the API from wlan_hdd_try_disconnect and wlan_hdd_disconnect.

Change-Id: I20d0f85cc0bb4b6ba826d60051e6f4124b180c24
CRs-Fixed: 2608708
2020-01-23 09:39:58 -08:00
nshrivas
7125aedb21 Release 5.2.0.166S
Release 5.2.0.166S

Change-Id: I641540aa79a16b25d5f417490b5a220d62233035
CRs-Fixed: 774533
2020-01-23 07:55:32 -08:00
Abhinav Kumar
58f72636d0 qcacld-3.0: Update proper copyright years
Update proper copyright years in
core/cds/inc/cds_regdomain.h

Change-Id: Ia013943c33d6143c58def6a5ed5e3126a2e412da
CRs-Fixed: 2605822
2020-01-23 07:55:32 -08:00
Abhishek Singh
7a7799b04a qcacld-3.0: Fix pmfSaQueryTimer timer leak
In case of PMF connection the sta_ds is memset to 0 in case of
SA query timeout whithout deleting pmfSaQueryTimer.
Also in lim_update_sta_ds pmfSaQueryTimer is
created without any check if its already created and thus may
lead to overwrite of the previous timer.

Thus destroy the pmfSaQueryTimer before memset sta_ds to 0 and
before creating it in lim_update_sta_ds.

Also use peer deletion is in progress in lim_process_assoc_req_sta_ctx
to check if STA is in proper state and assoc can be handled.

Change-Id: I63a701c1bd4324c6fce62338df80d0911cc9b703
CRs-Fixed: 2606900
2020-01-23 07:55:15 -08:00
nshrivas
77aca6ed3c Release 5.2.0.166R
Release 5.2.0.166R

Change-Id: I96e5b68d6cb0e4d244714c1fdeca8597e320de89
CRs-Fixed: 774533
2020-01-23 05:10:04 -08:00
Srinivas Dasari
c5b2de38a6 qcacld-3.0: Allow RSO update cmds on RSO_STARTED state
Firmware operates on RSO update params only if state is RSO_STARTED.

Hence allow RSO update commands only in RSO_STARTED state.

Change-Id: Ic9d0d6df0608bfc4b4273f7c42c893dd52739d78
CRs-Fixed: 2605298
2020-01-23 05:10:04 -08:00
nshrivas
6d9e1aa4bf Release 5.2.0.166Q
Release 5.2.0.166Q

Change-Id: I3718f91f3305877931d2e9c6bc05a22c32070ddf
CRs-Fixed: 774533
2020-01-23 03:41:33 -08:00
nshrivas
9f97264d2d Release 5.2.0.166P
Release 5.2.0.166P

Change-Id: I2a135d6376a70ef0f4492d04c401315a36c7ba03
CRs-Fixed: 774533
2020-01-23 00:43:13 -08:00
Amruta Kulkarni
3e72b33bf0 qcacld-3.0: Fix to not set HT/VHT flag for 6ghz scan
During 6ghz scan, host should not set HT/VHT flag
when sending configuration to FW via WMI_SCAN_CHAN_LIST_CMDID.

Change-Id: I5a58c775f173e90f91f6e7472ced3d59adfd8f73
CRs-Fixed: 2605744
2020-01-23 00:43:13 -08:00
nshrivas
07bce4a14b Release 5.2.0.166O
Release 5.2.0.166O

Change-Id: Id652afe1a5430f1ab326c58c7e134780353b986b
CRs-Fixed: 774533
2020-01-22 23:02:41 -08:00
Arun Kumar Khandavalli
5ba2743676 qcacld-3.0: Selectively reduce the pe layer logs
Selectively reduce pe layer logs loglevel from info to debug.

Change-Id: I187040fe2862253b2c93b32ef3c6cd247a4f0b04
CRS-Fixed: 2607090
2020-01-22 23:02:41 -08:00
nshrivas
319d43650e Release 5.2.0.166N
Release 5.2.0.166N

Change-Id: I0c124c49b1c187aa746a39feb03994fbbdf51fc1
CRs-Fixed: 774533
2020-01-22 19:22:45 -08:00
Abhishek Ambure
f15c50bad1 qcacld-3.0: Restore default RSO values after STA disconnect
Restore default RSO values after STA disconnect.

Change-Id: I6b230b5a8e00449955d641b440f12925340ca0df
CRs-Fixed: 2605336
2020-01-22 19:22:45 -08:00
nshrivas
260ecd1d67 Release 5.2.0.166M
Release 5.2.0.166M

Change-Id: I4bc4f30eec5f06b67059476340ee6938d3274306
CRs-Fixed: 774533
2020-01-22 17:52:03 -08:00
Ashish Kumar Dhanotiya
bf3742bb12 qcacld-3.0: Change logging in wma_chan_phy_mode to ratelimit
Currently logs for invalid channel width are set as error logs,
if invalid channel width is passed to this api very frequently,
error logs are getting flooded.

To address this issue make the logs as rate limit.

Change-Id: I493002b63ab72438cce2b61c858a32acf12ea6b6
CRs-Fixed: 2607361
2020-01-22 17:52:02 -08:00
nshrivas
1477979df9 Release 5.2.0.166L
Release 5.2.0.166L

Change-Id: I1bdeb5fc5964af52a55e0cfd3d0dfebb976b2023
CRs-Fixed: 774533
2020-01-22 16:25:43 -08:00
Chaoli Zhou
b991ddfe99 qcacld-3.0: Change dma address size to 8 bytes for Genoa IPA
Currently, sizeof(qdf_dma_addr_t) is 4 bytes, but IPA driver
and WLAN FW always use 8 bytes, we should follow up with them,
otherwise, the numbers of rx complete ring entries will not be
same in both sides. Meanwhile, for tx complete ring, during the
first time initialization, we fill the buffer address with 4
bytes, while GSI FW read 8 bytes address content from tx complete
ring, which should cause the GSI FW get invalid address on the half
way and cause the smmu fault issue. So fill 8 bytes length buffer
address to the tx complete ring can avoid such issue.

Change-Id: I61021627b634d4b1525727cc944ee410ed3154db
2020-01-22 16:25:43 -08:00
nshrivas
f173c36169 Release 5.2.0.166K
Release 5.2.0.166K

Change-Id: If49f77faab1f6429cf0567a0fe1c7497f6b7e13b
CRs-Fixed: 774533
2020-01-22 12:19:18 -08:00
Alok Kumar
286a65ed19 qcacld-3.0: Send vdev param command to set pkt capture mode
Send vdev param command to FW for STA vdev to set the packet
capture mode. Send the command only if packet capture support
is enabled.

Change-Id: I014acfc5d97a2bf00831259b9811b3c5bc7610a1
CRs-Fixed: 2528554
2020-01-22 12:19:17 -08:00
nshrivas
9cb2c5c234 Release 5.2.0.166J
Release 5.2.0.166J

Change-Id: Ibd6e0280308e3bc63bdfc36b3ea8870cd6dc84f9
CRs-Fixed: 774533
2020-01-22 10:57:51 -08:00
Srinivas Dasari
a73e5f5dee qcacld-3.0: Clear static, dynamic roam channels on NCHO disable
For NCHO disable, clear static and dynamic channels from roam scan
list in driver and firmware.

Change-Id: I24bca4dfb34895b4e86455dea40764af163544f1
CRs-Fixed: 2605299
2020-01-22 10:57:51 -08:00
nshrivas
97c09a5a9e Release 5.2.0.166I
Release 5.2.0.166I

Change-Id: I147a95d739426b732f3a7802f3c6fef04abfd98c
CRs-Fixed: 774533
2020-01-22 09:24:54 -08:00
Jingxiang Ge
7ec9ead8d1 qcacld-3.0: Reset suspend_event before waiting for it
In dp_rx_tm_suspend, suspend_event should be reset before waiting
for it. otherwise, the suspend function will be break.

Change-Id: I9132f45b02386c54fb8e27f0f7c2c71205450c9d
CRs-Fixed: 2606227
2020-01-22 09:24:54 -08:00
nshrivas
6d6e49735f Release 5.2.0.166H
Release 5.2.0.166H

Change-Id: Idb01d5ee5efbc09420c4581df9f7ced5f46615dd
CRs-Fixed: 774533
2020-01-22 06:21:59 -08:00
Alok Kumar
909e3f9b43 qcacld-3.0: Register TxRx callbacks for pkt capture mode
Register TxRx callbacks to pktcapture_ops for packet capture mode

Change-Id: I7de52bfd94b992cd5fd7c64e5352fe76ed1a7f3b
CRs-Fixed: 2533876
2020-01-22 06:21:59 -08:00
nshrivas
a45ff4d3a5 Release 5.2.0.166G
Release 5.2.0.166G

Change-Id: I07f6e4c6e64b160369e86dc36b60d4e0bae056cb
CRs-Fixed: 774533
2020-01-22 04:47:15 -08:00
Arun Kumar Khandavalli
9bf53ab36f qcacld-3.0: Use new api to check for leaks wlan_objmgr_psoc_check_for_leaks
The current implementaion check for peer, vdev and pdev leaks on
psoc in order and if any leak is found for peer then QDF_DEBUG_PANIC
is called and vdev and pdev leaks are not checked. Similar is the case
if vdev leak is found, pdev leaks are not checked.

Invoke new API to check for all the object leaks and then result in panic.

Change-Id: Icf6622760f3646b82f893beb7415b95307e2ccd7
CRs-Fixed: 2604594
2020-01-22 04:47:15 -08:00
nshrivas
a04af933db Release 5.2.0.166F
Release 5.2.0.166F

Change-Id: I19e15378c699d324443c8ea81b49e0a5ce463aa0
CRs-Fixed: 774533
2020-01-22 02:45:32 -08:00
Vevek Venkatesan
2d88a6bc30 qcacld-3.0: cdp: Converge cdp_peer_ops
Currently cdp ops are given pdev/vdev/peer
handle as its arguments, which is directly
accessed in those APIs. This can cause a
race-condition in access of the respective
handles if it has been deleted in parallel.

Hence as a part of cdp convergence, pass only
the pdev_id or vdev_id or peer mac address,
which will be used to get the respective handles,
and hence avoiding the unwanted access of the
handles if it has been deleted.

Also remove the ops which are used to store
and retrieve such handles, that no more needed.

- register_peer
- clear_peer
- change_peer_state
- peer_get_ref_by_addr
- peer_release_ref
- peer_state_update
- get_vdev_by_sta_id
- register_ocb_peer
- get_peer_state
- get_vdev_for_peer
- update_ibss_add_peer_num_of_vdev
- remove_peers_for_vdev
- remove_peers_for_vdev_no_lock
- copy_mac_addr_raw
- add_last_real_peer
- is_vdev_restore_last_peer
- update_last_real_peer
- peer_detach_force_delete

Change-Id: I5134ca882f5fcf0e5941317e48712717eddb58fe
CRs-Fixed: 2541708
2020-01-22 02:45:32 -08:00
nshrivas
39671feed2 Release 5.2.0.166E
Release 5.2.0.166E

Change-Id: If0eb12233998267ebfd2ac9ecb629f98193d1b9f
CRs-Fixed: 774533
2020-01-21 23:59:44 -08:00
Liangwei Dong
d37987fcb7 qcacld-3.0: Add debug dump of curr_chan_list
Add call to hdd_regulatory_chanlist_dump to dump
the curr_chan_list. It will be processed by regulatory
test case in whunt.

Change-Id: I6a35fc61f13f92874b24602a572ebb7bf6c03250
CRs-Fixed: 2606980
2020-01-21 23:59:44 -08:00
nshrivas
32b562173f Release 5.2.0.166D
Release 5.2.0.166D

Change-Id: I9b64fdc6ce5b5b6e9bde84b190a6149bdbc4fdff
CRs-Fixed: 774533
2020-01-21 19:39:48 -08:00
Liangwei Dong
dc8baf36c3 qcacld-3.0: Add MBO IE in assoc frame based on MFPC
In OCE 4.2.1, REF AP sets MFPR = 0 and MFPC = 1, DUT STA
set MFPR = 0 and MFPC = 1 by default. The current driver
only add MBO IE when MFPR = 1 and MPFC = 1. Then the test
failed because of no MBO IE in DUT assoc request frame.

Driver needs to add MBO IE when MFPC = 1 in STA and AP
based on test plan spec. Add new API lim_get_bss_rmf_capable
to check MFPC and required mgmt cipher.

Change-Id: I54aaa096393702154d1d0df218ba334eda80b0aa
CRs-Fixed: 2604189
2020-01-21 19:39:47 -08:00
nshrivas
3f8a89bae9 Release 5.2.0.166C
Release 5.2.0.166C

Change-Id: I2a6403ba68417949a0643d4c0dda81207bf17a65
CRs-Fixed: 774533
2020-01-21 18:19:54 -08:00
Alan Chen
6569f97e67 qcacld-3.0: Use QDF API to check driver unload in DSC
Use newly defined QDF API in CMN qdf_is_driver_unloading() to check
if driver unload is in progress in DSC.

Change-Id: I2958c6cc3ee6f2ac4302e2dbbf1c68d986fea175
CRs-Fixed: 2605706
2020-01-21 18:19:54 -08:00
nshrivas
997a6ca318 Release 5.2.0.166B
Release 5.2.0.166B

Change-Id: I18a3d42230b10665d3f1c8a4727d4aa559f7fcbc
CRs-Fixed: 774533
2020-01-21 14:02:03 -08:00
Kiran Kumar Lokere
7ed8475e8a Revert "qcacld-3.0: Avoid to add duplicate HE IE"
This reverts Change-Id: Ia144bb5e96f00114658a371ef27c65f90a6c7df2

Change-Id: Id1cdce7bcda97c2567c3e57fb61cffb8288695db
CRs-Fixed: 2604727
2020-01-21 14:02:02 -08:00
nshrivas
201e8719b0 Release 5.2.0.166A
Release 5.2.0.166A

Change-Id: I01888d35155d9c5d58e0d16f2c1424808d0f78b8
CRs-Fixed: 774533
2020-01-21 03:38:18 -08:00
Saket Jha
45243809b9 qcacld-3.0: Correct featurization of PM QoS support for 5.4 Kernel
Currently PM QoS is only enabled for kernel version 4.19.0 and below but
is supported and needed in kernel version 4.19.72. So enable PM QoS if
kernel version is below 5.4.0.

Change-Id: I440abe1cf9737447faff250b1973f1e6e2fe378e
CRs-Fixed: 2603396
2020-01-21 03:38:17 -08:00
nshrivas
39784324f1 Release 5.2.0.166
Release 5.2.0.166

Change-Id: I5fc10b6a5b280873f7037d5cf70db7c031e5becc
CRs-Fixed: 774533
2020-01-21 01:59:22 -08:00
Wu Gao
498b684222 Revert "qcacld-3.0: Disable LDPC capability of peer"
This reverts Change-Id:  fb8137a35a.

Change-Id: I8a57cde45b3408ab66c26ed8079bde9ae5b09431
CRs-Fixed: 2604856
2020-01-21 01:59:22 -08:00
nshrivas
1d5e37cb22 Release 5.2.0.165Z
Release 5.2.0.165Z

Change-Id: I1c9a1327541a713cf2513df8c43f731963d3b206
CRs-Fixed: 774533
2020-01-20 20:06:59 -08:00
Abhishek Singh
eca7cd9389 qcacld-3.0: Remove suspend if off-channel logic during connect
Remove the unused suspend check is_lim_session_off_channel() logic
which is not been used.

Change-Id: Ie16475b324f7ba94b23a21c122865b742cace57b
CRs-Fixed: 2606230
2020-01-20 20:06:58 -08:00
nshrivas
4263718229 Release 5.2.0.165Y
Release 5.2.0.165Y

Change-Id: I540ceecbe29356ac595b7a4a7cd248253da6ffac
CRs-Fixed: 774533
2020-01-20 17:50:44 -08:00
Venkata Sharath Chandra Manchala
306b698156 Revert "qcacld-3.0: Provide vendor extended stats from host"
This reverts change-id: Ie73b1e823a54385c5b97e1844a93d4ecc38d9d3c.

Change-Id: I34924e143b19e7254343b7839798700d64a0b566
CRs-Fixed: 2604690
2020-01-20 17:50:44 -08:00
Vevek Venkatesan
e9fa59de57 qcacld-3.0: cdp: Converge cdp_ctrl_ops
Currently cdp ops are given pdev/vdev handle
as its arguments, which is directly accessed
in those APIs. This can cause a race-condition
in access of the respective handles, if it has
been deleted in parallel.

Hence as a part of cdp convergence, pass only
the pdev_id/vdev_id which will be used to get the
respective handles and hence avoiding unwanted
access of the handles if it has been deleted.

Also deleting few ops which stores and retrieves
such handles and adding ops to set/get pdev params.

- txrx_set_safemode
- txrx_set_drop_unenc
- txrx_get_pdev_param
- txrx_set_pdev_param
- wdi_event_sub
- wdi_event_unsub

Change-Id: Ib3511cbdead75b30e899dbf00f936ffdae316b71
CRs-Fixed: 2541657
2020-01-20 17:50:23 -08:00
nshrivas
70d980dd15 Release 5.2.0.165X
Release 5.2.0.165X

Change-Id: I2ae585b56ac933ead0a0310861d15f7a1197d784
CRs-Fixed: 774533
2020-01-20 14:01:33 -08:00
Nisha Menon
9db78810c9 qcacld-3.0: Update Wifi netdevs for IPA exception path NAPI
Starting Kernel 4.19 IPA LAN RX supports NAPI polling
mechanism. Netdevs that hook into IPA need to call
netif_receive_skb() or similar to deliver the packet
to network stack instead of using netif_rx_ni().

IPA driver exports ipa_get_lan_rx_napi(void) API for
this purpose. If this API call returns true use
netif_receive_skb() or fallback on legacy api.

Add the changes under a feature flag IPA_LAN_RX_NAPI_SUPPORT.
The flag is enabled only for linux kernel version 4.19 and
above.

Change-Id: I3bf200c993461e45da0d07697678c634760e9a89
CRs-Fixed: 2560360
2020-01-20 14:01:33 -08:00
nshrivas
3193c42596 Release 5.2.0.165W
Release 5.2.0.165W

Change-Id: If56db86ccce840dd8d4ea492680e5105b2292da5
CRs-Fixed: 774533
2020-01-20 12:31:40 -08:00
Jingxiang Ge
19042f697f qcacld-3.0: Reject Vdev trans when driver in unloading/recovering
Previously vdev trans will be rejected if psoc in trans. but
it causes issue when __hdd_psoc_idle_shutdown is in psoc trans,
if ifconfig comes here, the ifconfig will fail.

Add checking if psoc trans in driver recovering and unloading,
if yes, it will be safe to reject vdev trans, otherwise, we should
let vdev trans waiting for psoc trans.

At the same time, we also need to make sure driver state has been
set before psoc trans when unloading.

Change-Id: Ic47eebef76b8eadc90780b74f75d4ebef73b822d
CRs-Fixed: 2601435
2020-01-20 12:31:40 -08:00
nshrivas
fcb21d02f8 Release 5.2.0.165V
Release 5.2.0.165V

Change-Id: Ied3eab66193bcff4eb7d8d12ea75b60ff1143c2c
CRs-Fixed: 774533
2020-01-20 01:10:02 -08:00
Alok Kumar
2107a96e37 qcacld-3.0: Add driver support for QCA6750
Add driver support for QCA6750

Change-Id: I9e6716d5ed9f91532aba422c32b46b43760a0e88
CRs-Fixed: 2602141
2020-01-20 01:10:01 -08:00
nshrivas
b015196551 Release 5.2.0.165U
Release 5.2.0.165U

Change-Id: I451642d13f01d6d3c9e1d7c7f475e8a12647c391
CRs-Fixed: 774533
2020-01-19 22:13:18 -08:00
Chaoli Zhou
31bb825045 qcacld-3.0: Set ipa_disable flag for Genoa
Set ipa_disable flag in the target_resource_config,
which is decided by target Genoa need to support IPA
or not.

Change-Id: I1a66c83ea36d5402880ce62d66ea3e633049479a
CRs-Fixed: 2594726
2020-01-19 22:13:18 -08:00
nshrivas
26b7472019 Release 5.2.0.165T
Release 5.2.0.165T

Change-Id: I1c04ba214d64ed2d2f35c0c24c1f1dfe49a96009
CRs-Fixed: 774533
2020-01-19 05:00:04 -08:00
nshrivas
b78cc7286e Release 5.2.0.165S
Release 5.2.0.165S

Change-Id: I7cb1ae9f10a872d0dd43fcfed9a07056c64d896d
CRs-Fixed: 774533
2020-01-17 22:52:19 -08:00
Alan Chen
8732a5872c qcacld-3.0: Prevent link down for SAP, IBSS, and NaN
For SAP, IBSS, and NaN mode, the PCIe link down should be prevented
when first remote peer joins the network to avoid any throughput
latencies.

Change-Id: Iabea78b3a4916cce7e63eadce2e1ce2874cf2c88
CRs-Fixed: 2605563
2020-01-17 22:52:18 -08:00
nshrivas
2719c04d33 Release 5.2.0.165R
Release 5.2.0.165R

Change-Id: I83edddb3f2940c4583fce21c104a1f708e4a5d4c
CRs-Fixed: 774533
2020-01-17 18:23:32 -08:00
bings
32e066d5bf qcacld-3.0: follow ref-ap edca if ref-ap and sta intersection is 11ax
If ref-ap and sta are both support 11ax mode, make sta edca follow ref-ap.

Change-Id: I707409d242ec6f91bbf6620862120747d697af92
CRs-Fixed: 2600718
2020-01-17 18:23:32 -08:00
nshrivas
a9d8cf502f Release 5.2.0.165Q
Release 5.2.0.165Q

Change-Id: I869bf1d232dff8896b1725026d055f67681c9595
CRs-Fixed: 774533
2020-01-17 13:41:08 -08:00
nshrivas
0921fff605 Release 5.2.0.165P
Release 5.2.0.165P

Change-Id: I508484394ee08f94a4cb177f9b147106bb6bef7a
CRs-Fixed: 774533
2020-01-17 10:20:00 -08:00
Abhishek Singh
81df27d0ce qcacld-3.0: Remove unused crypto params
Remove unused crypto params from wma and peer mlme priv.

Change-Id: I85b4ba0e31b268e98be0afd15637ed3f704b39ac
CRs-Fixed: 2604383
2020-01-17 10:20:00 -08:00
nshrivas
d745fa3819 Release 5.2.0.165O
Release 5.2.0.165O

Change-Id: Ib8a80eaf9cfa3c1d863f3a68747bfd218f4cc372
CRs-Fixed: 774533
2020-01-17 08:53:00 -08:00
Naman Padhiar
07f0c719e2 qcacld-3.0: Add PLD layer for iWCN architecture
Add PLD layer and introdue IPCI bus type for iWCN architecture.

Change-Id: Ia0164314c539df84205263de16432eec0eb7fb34
2020-01-17 08:52:59 -08:00
nshrivas
73061b9180 Release 5.2.0.165N
Release 5.2.0.165N

Change-Id: Ib85ae7e89e8519a3490f85a65d46d4aa23b02124
CRs-Fixed: 774533
2020-01-17 06:01:34 -08:00
Abhishek Ambure
650f992fd2 qcacld-3.0: Update NDI close indication from ndi del resp handler
To close NAN data interface session, BSS stop request is sent to
firmware, as a response driver gets status and reason code for BSS
stop. To update NDI close session to user space, required information
is available in BSS stop response.

Hence, update NDI close indication to user space from ndi delete
response handler in HDD layer.

Change-Id: I2440cb6d15bd393ed9631d595634865fbee8bdd6
CRs-Fixed: 2600852
2020-01-17 06:01:33 -08:00
Manikandan Mohan
18aa38c7be qcacld-3.0: Add support to monitor PM QOS votes
CPU PM QOS votes can be used as a precondition to decide whether
WLAN device is worth to enter runtime PM suspend. Add support to
monitor PM QOS votes while WLAN device is powered on and enable
this feature if gRuntimePM config value is set as 2.

Change-Id: I7f47a50689efdcb15979e7983474bb23b86da00d
CRs-fixed: 2604780
2020-01-17 06:01:19 -08:00
nshrivas
4abe7cd764 Release 5.2.0.165M
Release 5.2.0.165M

Change-Id: If3932b2c5abc421ea3367c5b5c75cf6f6466e6d4
CRs-Fixed: 774533
2020-01-16 23:46:51 -08:00
Liangwei Dong
e0279e36b0 qcacld-3.0: Handle ACS freq list zero
When all chan in ACS freq list is filtered out
by wlan_hdd_trim_acs_channel_list, the hostapd start will
fail. This happens when PCL is PM_24G_SCC_CH_SBS_CH,
and SAP acs range includes 5G channel list.
One example is STA active on 6Ghz chan. Hostapd start
SAP on 5G ACS range. The intersection of PCL and ACS range
is zero.
Instead of ACS failure, add API wlan_hdd_handel_zero_acs_list
to select one channel from ACS range and report to Hostapd.
When hostapd "start_ap", the driver will force SCC to 6G
or move SAP to 2G based on SAP's configuration.

Change-Id: Ice8bef2a82f43940c570c74c0af8b05d18159f52
CRs-Fixed: 2603699
2020-01-16 23:46:19 -08:00
nshrivas
24740a0317 Release 5.2.0.165L
Release 5.2.0.165L

Change-Id: Ic4215ebd4855ab2319bc2e7e30248ce52682b0ad
CRs-Fixed: 774533
2020-01-16 15:47:21 -08:00
Abhishek Singh
fd74c68c85 qcacld-3.0: remove unused broadcast_sta_id from sta ctx
remove unused broadcast_sta_id from sta ctx.

Change-Id: I71265b214bfb1f0c7952f55527a57bfb02e5ad2d
CRs-Fixed: 2604330
2020-01-16 15:46:58 -08:00
Abhishek Singh
bda14831fa qcacld-3.0: Remove unused code for defer key
As setFTPTKState is never set to true the code for defer
key is not been used

Change-Id: I8afcebf00b00bcf39ba7da999c55e5eacdf26aaa
CRs-Fixed: 2604329
2020-01-16 15:46:48 -08:00
nshrivas
7f64fdbf2b Release 5.2.0.165K
Release 5.2.0.165K

Change-Id: Idc56ad308bf46d986bdb65849701fe5feb9d1847
CRs-Fixed: 774533
2020-01-16 10:24:02 -08:00
Rajeev Kumar
5f719277bc qcacld-3.0: Unify wow handling for SAP, IBSS and NaN mode
Unify wow handling for SAP, IBSS and NaN mode such that both DRV
and non DRV cases are handled in same way for SAP, IBSS and NaN modes.

Change-Id: I04c7a6488285511f34ef3a5c2288937dc74b6b73
CRs-Fixed: 2603912
2020-01-16 10:24:02 -08:00
nshrivas
ee462a396a Release 5.2.0.165J
Release 5.2.0.165J

Change-Id: I8bc42b5b132cb26f4f8dbfdb6d516fa677695416
CRs-Fixed: 774533
2020-01-16 00:49:13 -08:00
Abhishek Ambure
4706d0fe80 qcacld-3.0: Add INI to disable 6ghz support for oem
6Ghz channels information is not used by legacy OEM apps example
"lowi-server" having no support for 6Ghz channels.

Hence "oem_6g_support_disable" INI is added. By default INI value is
1. 6Ghz supported OEM applications sets INI value to 0 and gets 6Ghz
channel information from driver.

Change-Id: I2650e6ad2976b64e46ab0143b2bafc2df2343e94
CRs-Fixed: 2597651
2020-01-16 00:49:13 -08:00
nshrivas
0f66b0ad33 Release 5.2.0.165I
Release 5.2.0.165I

Change-Id: I7c86cce45200a38c810c3bb67aa5ee9fcb27364e
CRs-Fixed: 774533
2020-01-15 21:30:59 -08:00
Alan Chen
e3ef9a9add qcacld-3.0: Change CFG_INI_BOOL to CFG_INI_UINT
Change CFG_INI_BOOL to CFG_INI_UINT for enabling runtime PM.

Change-Id: I8470dcbe0cb6de72aa5cf5edcaea36f6e1276d21
CRs-Fixed: 2603915
2020-01-15 21:30:58 -08:00
nshrivas
203e26d3a0 Release 5.2.0.165H
Release 5.2.0.165H

Change-Id: I1c9f0ce2d0e1505c7d11952835fefc23c53f79d5
CRs-Fixed: 774533
2020-01-15 13:07:00 -08:00
Manjunathappa Prakash
a59028c1c9 qcacld-3.0: Update num_elem enqueued to rx_thread after head frag_list
Today we enqueue nbuf list to rx_thread via nbuf frags_list.
If deliver_head happens to have frags_list then it is delivered alone.
Remaining list of skbs are delivered using frags_list of next skb.
It does not takecare to update QDF_NBUF_CB_RX_NUM_ELEMENTS_IN_LIST of
the new head_skb with remaining num skbs, make sure to update it.

Also add nbuf_queued to take care of this accounting.

Change-Id: I5557b5c56576c46fc8564a87a27d167b8785bb95
CRs-Fixed: 2559875
2020-01-15 13:07:00 -08:00
nshrivas
1e07f5a6b3 Release 5.2.0.165G
Release 5.2.0.165G

Change-Id: Iadd1e4d919b94af112b7accd52efef7f498ac19a
CRs-Fixed: 774533
2020-01-15 11:29:48 -08:00
Tushnim Bhattacharyya
c682bfb442 qcacld-3.0: Replace channel id with frequency for monitor mode
Replace channel ID with channel frequency in
wlan_hdd_change_hw_mode_for_given_chnl.

Change-Id: If1583dae2f13c5e5553d916befb186de00840345
CRs-Fixed: 2584776
2020-01-15 11:29:48 -08:00
Saket Jha
d5c0e02813 qcacld-3.0: Record Monitor Mode Frequency from Pdev
Extend WAR mechanism to record monitor mode capture frequency from
pdev if RX PPDU TLV is empty.

Change freq type to qdf_freq_t.

iw dev wlan0 set freq <freq> [HT20|HT40+|HT40-]

Change-Id: Ic66f516f1f0f2ac97563e27b1d7c86032e8690ec
CRs-Fixed: 2568971
2020-01-15 11:29:35 -08:00
nshrivas
ee5dee039c Release 5.2.0.165F
Release 5.2.0.165F

Change-Id: Icde49dc4c568a84df8ee61fa69784ea3faee3335
CRs-Fixed: 774533
2020-01-15 09:57:53 -08:00
Liangwei Dong
e193a3582b qcacld-3.0: Handle HE capable flags during 6ghz ap chanswitch
Set he_6ghz_band flag when SAP is switching to 6Ghz band.
And clear the flag when switching to non-6ghz band.
The Driver will add the 6ghz op info in HE operation IE
in beacon frame if he_6ghz_band is set.

Change-Id: I281a9bb239c5fea693e640a8ecddf4ffc14ba7d8
CRs-Fixed: 2602152
2020-01-15 09:57:53 -08:00
nshrivas
eee8de1b96 Release 5.2.0.165E
Release 5.2.0.165E

Change-Id: I83f61f1fe24b3777ef7a729d951a03a33a42a406
CRs-Fixed: 774533
2020-01-15 08:19:21 -08:00
Jianmin Zhu
ae4d3c41ca qcacld-3.0: SAP hung in DFS state when disable channel during CAC
If SAP start on 5G DFS channel, it will keep in CAC for 1 minute.
If Disable 5G by cmd: hostapd_cli -iwlan2 set setband 2G during
this minute, SAP won't switch to 2G since SAP isn't in started
state, and SAP start also fail since SAP operate channel
becomes disabled instead of DFS state, SAP will be hung in DFS
state.
Fix: When CAC complete and SAP start, check SAP operate channel
with wlan_reg_chan_has_dfs_attribute_for_freq.
After SAP started, will check for SAP restart,
if found current band is disabled, will switch to 2G band.

Change-Id: I3c29b5d324d4324ce958a5c2cd2102df2cc183ff
CRs-Fixed: 2601081
2020-01-15 08:19:21 -08:00
nshrivas
8774845b80 Release 5.2.0.165D
Release 5.2.0.165D

Change-Id: I405bf7c0c9cc80c16712137826ba6f84bc274bf3
CRs-Fixed: 774533
2020-01-15 04:43:25 -08:00
bings
3d9cd95e51 qcacld-3.0: Fix build error when enable 6g in kernel 4.4
When CONFIG_BAND_6GHZ and CFG80211_6GHZ_BAND_SUPPORTED are defined in
kernel 4.4, which means 6g feature is enabled, currently there is a
build error: wlan_hdd_iftype_data_alloc_6ghz is defined but not used.

To fix this issue, refine iftype_data_*g defination with below rules.
1. If CONFIG_BAND_6GHZ and CFG80211_6GHZ_BAND_SUPPORTED are defined,
iftype_data_2g, iftype_data_5g and iftype_data_6g will be defined no
matter the kernel version.
2. If the kernel version is not smaller than 4.19, iftype_data_2g and
iftype_data_5g will be defined.
3. If the kernel version is not smaller than 5.4 and CONFIG_BAND_6GHZ
is defined, iftype_data_6g will be defined.

Change-Id: If75bea9fc4c11d6cacd8dbf49455277f055ed8de
CRs-Fixed: 2600962
2020-01-15 04:43:24 -08:00
Alan Chen
9fcd4d39f9 qcacld-3.0: Fix remaining compilation issues regarding WLAN_FEATURE_11W
When CONFIG_WLAN_FEATURE_11W is disabled, compilation of lahaina still fails
in a few areas. Even though CONFIG_WLAN_FEATURE_11W should be always be
enabled now, add appropriate fixes for the compilation issues in the event
that CONFIG_WLAN_FEATURE_11W is disabled.

Change-Id: I1743678df6b66a63160795374de7969f313f55d9
CRs-Fixed: 2601362
2020-01-15 04:43:08 -08:00
nshrivas
4939176a06 Release 5.2.0.165C
Release 5.2.0.165C

Change-Id: I3ba3277cd80cc3c0ef48a558ba48d87828fe27dd
CRs-Fixed: 774533
2020-01-15 03:03:50 -08:00
bings
a27327b2d8 qcacld-3.0: Handle dummy wmi_radio_link_stats_link wmi event
Sometimes wlan FW fails to return wmi_radio_link_stats_link because of
buffer, which makes timeout happen in wlan_hdd_cfg80211_ll_stats_get.

To fix this issue, FW returns wmi_radio_link_stats_link with dummy
information, and host need handle dummy wmi_radio_link_stats_link wmi
event.

Change-Id: Ibafc7f19ffc6d182601001f28dd7e85654155d02
CRs-Fixed: 2599725
2020-01-15 03:03:50 -08:00
nshrivas
8134b2fc69 Release 5.2.0.165B
Release 5.2.0.165B

Change-Id: Iaf029252327980e5dd78df1518f0e29f4221026d
CRs-Fixed: 774533
2020-01-15 01:29:42 -08:00
Abhinav Kumar
30874c3ac7 qcacld-3.0: Modify the MAX_TX_PWR_CAP to 24dbm
Modify the max tx power value from 30db to 24db
to pass certification test cases.

Change-Id: Idf9c3ca10d3216f0f4b1cf78f87586c6bd3c2c39
CRs-Fixed: 2601405
2020-01-15 01:29:42 -08:00
nshrivas
6b0c4dbbe8 Release 5.2.0.165A
Release 5.2.0.165A

Change-Id: Ifbb2228c06cb899b86945656023ac35f44d68486
CRs-Fixed: 774533
2020-01-14 21:13:30 -08:00
Wu Gao
fb8137a35a qcacld-3.0: Disable LDPC capability of peer
DUT as SAP and disabled LDPC, but peer supported LDPC and DUT still
TX data packages by LDPC coding. This behavior is different to other
vendors. This change disable LDPC capability of peer when associating.

Change-Id: If90944ca359c7164d4acecfe1d6146e3d2b30b5d
CRs-Fixed: 2599860
2020-01-14 21:13:30 -08:00
nshrivas
15c7c12fbf Release 5.2.0.165
Release 5.2.0.165

Change-Id: I75ccdd2870ed2edeea3ca7bdcd7d24dc5d3faa83
CRs-Fixed: 774533
2020-01-14 19:42:12 -08:00
nshrivas
ffc0b8ea67 Release 5.2.0.164Z
Release 5.2.0.164Z

Change-Id: Ia71ccc75f29ad8c450dc39bd6e9062cb665f5379
CRs-Fixed: 774533
2020-01-14 13:02:05 -08:00
nshrivas
8532a288dc Release 5.2.0.164Y
Release 5.2.0.164Y

Change-Id: Ia856c70b7e94d9631289bd8f40a50c006366f797
CRs-Fixed: 774533
2020-01-14 04:05:47 -08:00
Jingxiang Ge
6064426ef7 qcacld-3.0: Fix sta_info_container freed without init
Issue happens when wlan0 is created then hostapd change
it from sta to ap mode before start wlan0 adapter,
then interface is deleted; as hdd_sta_info_init only happens
when start ap adapter, so there will be issue when destroy
sta_obj_lock as sta_obj_lock was never init.

Change:
    Move init sta_info to open adapter and init sta_info
    for all modes, so this will simply the logic and
    no need to consider too much about adapter state change.

Change-Id: I5e90ec120b2ec487507d9bda2f8c18c9a54d2a01
CRs-Fixed: 2554812
2020-01-14 04:05:47 -08:00
nshrivas
6dfe34582d Release 5.2.0.164X
Release 5.2.0.164X

Change-Id: I810cfb6950b08ef674d13f7a3ec515684ae74eb4
CRs-Fixed: 774533
2020-01-14 02:01:44 -08:00
Tiger Yu
0da98c48ee qcacld-3.0: Refine RX GRO flush when detach the vdev device
There might be race condition when doing RX GRO flush between dp_rx_thread
and vdev detach thread.

Only doing RX GRO flush in the dp_rx_thread context, and use the events to
sync with dp_rx_thread and vdev detach thread.

Change-Id: I2dbf92c2c11e950ca790dd7429c8bb235c239d0c
CRs-Fixed: 2601826
2020-01-14 02:01:44 -08:00
gaurank kathpalia
b3b2194db6 qcacld-3.0: Check for valid BW in monitor mode
Check for invalid BW if received as part of
monitor mode vdev start command and reject if
invalid.

Change-Id: I1dfd7936af354622c52295cfba16941b96dfe649
CRs-Fixed: 2600906
2020-01-14 02:01:30 -08:00
nshrivas
ed1a697bf4 Release 5.2.0.164W
Release 5.2.0.164W

Change-Id: I01beafd7581700b04e98989c99ce8a7d2705ffd3
CRs-Fixed: 774533
2020-01-13 23:17:50 -08:00
Kai Liu
a664146e1d qcacld-3.0: skip channel switch if best channel is in PCL list
Currently during ACS process, if best channel after weight sorting
is not in PCL list, then further check if there is a channel in PCL
has some weight, if there is, then switch to this new channel.

Skip above process if best channel is already in PCL list.

Change-Id: I5bfb6d18c531e6b7b4ff0b8b2bb2bd47388fed0c
CRs-Fixed: 2589033
2020-01-13 23:17:50 -08:00
nshrivas
9f964fbed7 Release 5.2.0.164V
Release 5.2.0.164V

Change-Id: I1f5026990c3e476ac7ec3154f9e553fe418ee396
CRs-Fixed: 774533
2020-01-13 01:02:43 -08:00
hqu
e32e52a575 qcacld-3.0: Intersect he_capable from SAP and ref STA
When SAP doesn't support 11ax phymode, ref STA which support
11ax phymode connect to SAP, this will result in firmware crash
due to WMI_PEER_ASSOC_CMDID set peer_flags with WMI_PEER_HE and
peer_phymode set with SAP session phymode which doesn't support
HE capability.

Fix is to intersect he_capable from SAP and ref STA.

Change-Id: I9f63f5474db03e96a404ac86ff7929e8ebabc9f3
CRs-Fixed: 2599957
2020-01-12 20:27:05 -08:00
nshrivas
f6aeae92e0 Release 5.2.0.164U
Release 5.2.0.164U

Change-Id: Ie3536f6b313479cd0db78c33f18b09e4d0285c3f
CRs-Fixed: 774533
2020-01-12 18:57:55 -08:00
Liangwei Dong
c1956bd4cb qcacld-3.0: Handle 6Ghz channel switch
Always use ECSA for STA/SAP channel switch between 6GHz band and
other 2Ghz or 5Ghz band since operating class is required to identify
an unique channel together with channel number in IE.
Change channel switch APIs to use frequency.

Change-Id: Ie655ae88b5223a3213146cb2684a70f91cdd5b04
CRs-Fixed: 2600136
2020-01-12 18:57:55 -08:00
nshrivas
6fbf71acd3 Release 5.2.0.164T
Release 5.2.0.164T

Change-Id: Iba8b483e598430bb36d5a4728232e274870ea943
CRs-Fixed: 774533
2020-01-12 06:23:53 -08:00
Sravan Goud
96509f80bb qcacld-3.0: Provide vendor extended stats from host
Currently in lithium FW is not always in datapath. As a result
can not provide all the wlan vendor extended stats. So as part
of this host provides some of the extended stats.

Change-Id: Ie73b1e823a54385c5b97e1844a93d4ecc38d9d3c
CRs-Fixed: 2539662
2020-01-12 06:23:38 -08:00
nshrivas
7a4559892f Release 5.2.0.164S
Release 5.2.0.164S

Change-Id: I5f9dc1a2a1c2a065b941ddc43f9d53053a531128
CRs-Fixed: 774533
2020-01-11 17:53:06 -08:00
sheenam monga
1fa0514eb7 qcacld-3.0: Fix sta_ds use after free
lim_is_pkt_candidate_for_drop() uses sta_ds to update last assoc
and deauth/disasocc received time without taking any lock for
sta_ds. deletion of sta_ds in pe_delete_session before accessing
sta_ds in dph_lookup_hash_entry can lead lead to Assert.
Similar is the case with sta_ds->last_assoc_received_time and
sta_ds->last_disassoc_deauth_received_time.

Fix is to use peer_priv instead of sta_ds and update
last_assoc_received_time and last_disassoc_deauth_received_time of
peer_mlme_priv_obj. In this case refcount gets increased for valid
peer and peer won't be deleted until lim_is_pkt_candidate_for_drop
releases the ref count of the peer.

Change-Id: I9daf31f9dd7b509eaf38a93078bb7418605b1c74
CRs-Fixed: 2598841
2020-01-11 17:53:06 -08:00
nshrivas
36c9da3135 Release 5.2.0.164R
Release 5.2.0.164R

Change-Id: Ic7f89d077a05428d086adfda2aef8e2098306626
CRs-Fixed: 774533
2020-01-11 13:56:06 -08:00
Jianmin Zhu
7ff7fe7d37 qcacld-3.0: Some AP are missed in Beacon Report response
In radio measurement beacon report frame,  The BSSID field
indicates the BSSID of the BSS(s) for which a beacon report is
requested. When requesting beacon reports for all BSSs on the
channel, the BSSID field contains the wildcard BSSID; otherwise
the BSSID field contains a specific BSSID for a single BSS.

If BSSID is wildcard BSSID, bssid num should be 0 when use fill
scan result filter, or filtered scan result is always empty
since wildcard BSSID can't match any normal bssid.

Change-Id: Ia172ac8160d0c38ce4c875fc29458c6c8f26c804
CRs-Fixed: 2599634
2020-01-11 13:56:06 -08:00
nshrivas
010f447523 Release 5.2.0.164Q
Release 5.2.0.164Q

Change-Id: If001f21e4bbd10516a45a2e0b89e1fa7f5d59884
CRs-Fixed: 774533
2020-01-11 11:12:30 -08:00
bings
b188056965 qcacld-3.0: Don't disable dfs phyerr offload when no sap/go in DFS ch
According to FW, DFS phyerr offload should be enabled before vdev start,
otherwise FW can't start DFS phyerr offload function.

Do not send DFS phyerr offload disable wmi command before vdev stop, and
FW will handle all the necessary cleanup in vdev stop wmi command.

Without DFS phyerr offload disable wmi command, DFS phyerr offload is
enabled before vdev start.

Change-Id: Id6275e9716afb34316cf46b69dd0b4f82b73ac5d
CRs-Fixed: 2598263
2020-01-11 11:12:29 -08:00
nshrivas
ea97347bfd Release 5.2.0.164P
Release 5.2.0.164P

Change-Id: I4db3f57c3b6b06f0252431971c5a938ce9a3da29
CRs-Fixed: 774533
2020-01-11 01:50:08 -08:00
Kiran Kumar Lokere
4dd5c4f06b qcacld-3.0: Set the default SW retry limit value to 16
Set the default software retry limit value to 16 and fix the typo
in configuring the non aggregation software retry limit.

Change-Id: Ia6ef7cc39f47ef91c2c338e48561e0275445750f
CRs-Fixed: 2599467
2020-01-11 01:50:08 -08:00
nshrivas
0de5a1e7dd Release 5.2.0.164O
Release 5.2.0.164O

Change-Id: I3dbd37733c23fe62f99554a2ddffcd54ccb336d3
CRs-Fixed: 774533
2020-01-10 21:33:06 -08:00
Arun Kumar Khandavalli
0cc6233157 qcacld-3.0: Add flush callback for umac stop
During the scheduler_stop it tries to flush all the pending messages
in the queue, during the same the flush callbacks of all the pending
messages are invoked. If there is no flush callback for
SYS_MSG_ID_UMAC_STOP, it will free the bodyptr of the message which
contains the global variable g_stop_evt, which can result in invalid
access in the other thread.

Add a dummy flush callback message for the sys_stop message to
avoid the invalid access.

Change-Id: I46ca4240d787dce5b21cc2f99ced66a4c01b737c
CRs-Fixed: 2537773
2020-01-10 21:33:05 -08:00
nshrivas
82fc5bb295 Release 5.2.0.164N
Release 5.2.0.164N

Change-Id: Ia777e8e04e238d75527fe730cadcc9048bdc7ce6
CRs-Fixed: 774533
2020-01-10 04:07:57 -08:00
bings
059c4a06c2 qcacld-3.0: Configure TDLS off channel mode when band switches
Disable TDLS off channel if 2g or 5g is disabled, restore TDLS off
channel configure when all bands are enabled.

Change-Id: Iabfdcdbf84e4a6313ad04e381b70e21c871d66c2
CRs-Fixed: 2595303
2020-01-10 04:07:57 -08:00
Alok Kumar
a71b36fc0a qcacld-3.0: Register callbacks for packet capture
Add callbacks to register pktcapture Rx Ops and
pktcapture adapter context in pdev for packet capture
mode.

Change-Id: Iefbb24c364dfb460788f7512dee1a6ec4d2b29c1
CRs-Fixed: 2528553
2020-01-10 04:07:42 -08:00
Alok Kumar
5730524bdc qcacld-3.0: Register network interface for pktcapture mode
For packet capture mode, register an interface through
hdd_add_virtual_intf and delete using hdd_del_virtual_intf.
During register, remove the P2P interface and add it back
during deregister.

Change-Id: I79d933c96591cd462e27eda73f5aed2cc7cad8af
CRs-Fixed: 2528549
2020-01-10 04:07:28 -08:00
nshrivas
025ea586c8 Release 5.2.0.164M
Release 5.2.0.164M

Change-Id: Ibb41aa3383c5799ce622797f3974c7263b375876
CRs-Fixed: 774533
2020-01-10 02:46:55 -08:00
Alok Kumar
f1d581361d qcacld-3.0: Open a mon thread for packet capture mode
Create a mon thread to process the packets for pktcapture
mode only if packet capture mode is enabled.

Change-Id: I64e3687d08acd0d27019ed9e11b5b92b13fcd878
CRs-Fixed: 2528545
2020-01-10 02:46:55 -08:00
nshrivas
9182d59ad6 Release 5.2.0.164L
Release 5.2.0.164L

Change-Id: Ie157ed0b224696652d369c15c055fc673ce7ecc1
CRs-Fixed: 774533
2020-01-09 20:22:23 -08:00
Yue Ma
e63f42fb57 qcacld-3.0: Remove deprecated code in MAC layer
Remove deprecated code because of CRYPTO_SET_KEY_CONVERGED cleanup
in MAC layer.

Change-Id: I65bc90b457cdd642d64d6ab0e6829856ee93e472
CRs-fixed: 2593528
2020-01-09 20:22:23 -08:00
Yue Ma
34321601a6 qcacld-3.0: Cleanup CRYPTO_SET_KEY_CONVERGED for WMA layer
CRYPTO_SET_KEY_CONVERGED 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 in WMA layer.

Change-Id: If70fc5cb01f2a0123030c92410e126ce8078e1c6
CRs-fixed: 2593526
2020-01-09 20:21:57 -08:00
Yue Ma
e5a28495ab qcacld-3.0: Cleanup CRYPTO_SET_KEY_CONVERGED for MAC layer
CRYPTO_SET_KEY_CONVERGED 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 in MAC layer.

Change-Id: I34fb7a6a67dd6dba3fa69c98ef10a1bd51383e36
CRs-fixed: 2593525
2020-01-09 20:21:42 -08:00
nshrivas
85205b41d2 Release 5.2.0.164K
Release 5.2.0.164K

Change-Id: I572efae2b0da23e9e4ca11ad7dc414bc6769e2d3
CRs-Fixed: 774533
2020-01-08 23:38:43 -08:00
Alok Kumar
45b9e9c730 qcacld-3.0: Add CDS API to update parameter for pkt capture mode
Update packet capture mode param in the HDD context
after reading the INI parameter.

Change-Id: I3ea88e376f1ad8ebc96715d08395331470c23d4a
CRs-Fixed: 2528536
2020-01-08 23:38:43 -08:00
nshrivas
6bf58bebf1 Release 5.2.0.164J
Release 5.2.0.164J

Change-Id: I6199a24f63f24414c2a5baf8383bd097baf4ff53
CRs-Fixed: 774533
2020-01-08 21:34:58 -08:00
Wu Gao
6f585aba54 qcacld-3.0: Don't indicate P2P client deletion event
DUT formed P2P connection with second device and as P2P GO, trigger
assert in target, supplicant get P2P client deletion event, and then
DUT remove P2P GO and change interface type from P2P GO to P2P device
but failed since recovery in progress. This change avoid to indicate
P2P client deletion event to up layer since host will sent P2P GO
stopping event to up layer.

Change-Id: I2221332d062f1e5f74846187ce9b478a11b8eb9f
CRs-Fixed: 2589866
2020-01-08 21:34:57 -08:00
nshrivas
9f90d60fa2 Release 5.2.0.164I
Release 5.2.0.164I

Change-Id: I954230e341909fc1a90c2b414dc7cb1d64bd1406
CRs-Fixed: 774533
2020-01-08 20:10:31 -08:00
Amruta Kulkarni
e673511908 qcacld-3.0: Change info/err prints to debug in roaming path
In roaming path, while processing roam synch indication info/err
prints at the driver adds up latency to the total roaming
transition time and the KPI for maximum transition time exceeds
the expected 100ms. The printk buffer is protected by a global
raw spinlock for readers and writers. This restricts the contexts that
are allowed to access the buffer. So large latencies exists when
printing to kmsg done with QDF trace levels WARN, INFO, ERROR.

Change the redundant/less significant info, error, warn level
prints in roaming path to debug level.

Change-Id: I8e2a03ddef8f3cd680263939f6e0275b8703e681
CRs-Fixed: 2597624
2020-01-08 20:10:31 -08:00
nshrivas
850279a6e9 Release 5.2.0.164H
Release 5.2.0.164H

Change-Id: I925f5763bb17d8320a7b420046c7159b6a210fe8
CRs-Fixed: 774533
2020-01-08 15:46:44 -08:00
Bapiraju Alla
80334ca5d6 qcacld-3.0: Validate add del tx pattern configuration
Currently there is no information maintained in the driver regarding the
tx patterns configured, this can result in sending the commands to
firmware without a proper validation i.e. sending the delete pattern
without validating.

To resolve this issue, maintain the add pattern history and validate
whether when the del pattern is issued.

Change-Id: Ie097a36fe46640ddfd539c481491025512571300
CRs-Fixed: 2596705
2020-01-08 15:46:18 -08:00
nshrivas
fd415a1369 Release 5.2.0.164G
Release 5.2.0.164G

Change-Id: Ifcd4bcf6990e7546fb5bb5ee790bfafe47eb04f8
CRs-Fixed: 774533
2020-01-08 11:30:50 -08:00
Yue Ma
b49b7fedc5 qcacld-3.0: Cleanup CRYPTO_SET_KEY_CONVERGED for SME layer
CRYPTO_SET_KEY_CONVERGED 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 in SME layer.

Change-Id: Iff9ba19887caaa39f43cb58d519a14cf6e759d59
CRs-fixed: 2593523
2020-01-08 11:30:50 -08:00
Yue Ma
cc35052654 qcacld-3.0: Cleanup CRYPTO_SET_KEY_CONVERGED for HDD layer
CRYPTO_SET_KEY_CONVERGED 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 in HDD layer
and SAP module.

Change-Id: Ic92e44e53c63ba2752907ace3ffc0f55d18470e2
CRs-fixed: 2593520
2020-01-08 11:30:29 -08:00
Yue Ma
d03d10bcd1 qcacld-3.0: Cleanup WLAN_CONV_CRYPTO_IE_SUPPORT flag
WLAN_CONV_CRYPTO_IE_SUPPORT 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: Ide9fa97a9eb0b5c197c762205f386651efc51e33
CRs-fixed: 2592096
2020-01-08 11:30:05 -08:00
nshrivas
00ab5f4399 Release 5.2.0.164F
Release 5.2.0.164F

Change-Id: Id8efbd35842c4e1f288b14087a183a8ea1e0a9f9
CRs-Fixed: 774533
2020-01-08 07:50:03 -08:00
Alan Chen
8dd79fb92c qcacld-3.0: Release the PDEV ref count by adding a new goto label
The function hdd_rx_mic_error_ind() is not releasing the pdev reference,
causing a pdev object manager leak for the WMI command WLAN_MLME_SB_ID.
To solve this, add a new goto label release_ref_and_return that releases
the pdev ref count before exiting the function.

Change-Id: Ic798cf5064403120058e01099bb846397e887951
CRs-Fixed: 2598665
2020-01-08 07:50:02 -08:00
Pragaspathi Thilagaraj
9cece7211d qcacld-3.0: Send PER config command before WMI_ROAM_SCAN_MODE command
The host driver sends WMI_ROAM_PER_CONFIG_CMDID command after
WMI_ROAM_SCAN_MODE as part of RSO start/update. But the
expectation from firmware is that host should send this after
WMI_VDEV_PARAM_ROAM_FW_OFFLOAD but before WMI_ROAM_SCAN_MODE.
Also the WMI_VDEV_PARAM_ROAM_FW_OFFLOAD is sent after set key
response from csr->lim->wma->wmi. But the
WMI_ROAM_PER_CONFIG_CMDID is directly posted wma (csr->wma->wmi)
which can cause this command to go before the
WMI_VDEV_PARAM_ROAM_FW_OFFLOAD is sent to firmware.
One more instance where the WMI_ROAM_PER_CONFIG_CMDID can go
before vdev roam fw offload init is if the userspace sends
blacklist update command before offload init happens.

So route the WMI_ROAM_PER_CONFIG_CMDID via lim before posting
it to wma and add changes in rso update config to block the
blacklist command being sent in ROAM_DEINIT state.
Also Call csr_roam_offload_per_scan before csr_roam_send_rso_cmd
in csr_roam_offload_scan to send WMI_ROAM_PER_CONFIG_CMDID before
WMI_ROAM_SCAN_MODE.

Change-Id: I2600cfeafcc3e3ebfac6694c1f2cdb5df0366411
CRs-Fixed: 2596257
2020-01-08 07:49:45 -08:00
nshrivas
161934821f Release 5.2.0.164E
Release 5.2.0.164E

Change-Id: I6f7d1345e0e3913136afb941973c8857da20f594
CRs-Fixed: 774533
2020-01-08 06:25:47 -08:00
Pragaspathi Thilagaraj
a9a5f31448 qcacld-3.0: Validate number of APs before filling diag event
When WMI_ROAM_STATS_EVENTID is received, the driver copies the
roam scan candidate AP data from the event to destination
buffer. This num_ap count is used directly to fill the diag
buffer. When the number of candidates sent by the firmware
is greater than MAX_ROAM_CANDIDATE_AP(8), corruption of the
destination scan->ap buffer occurs.

Validate the number of APs before filling the diag event.

Change-Id: I5258bc0d4ce0108cbc5195aa464afd498ae9fbf9
CRs-Fixed: 2598513
2020-01-08 06:25:47 -08:00
nshrivas
b1e41a7a08 Release 5.2.0.164D
Release 5.2.0.164D

Change-Id: I6ee08c297eb80cd0a9e97e936a99c6e7fd16d041
CRs-Fixed: 774533
2020-01-08 04:52:46 -08:00
Tiger Yu
6bc77dc9c3 qcacld-3.0: Do RX GRO flush when detach the vdev device
If there are still RX packets pending in the napi gro_hash list, do RX GRO
flush after flushing the RX thread pending packets when detach the vdev to
avoid net_device might be invalid later which has been stored already in
the pending skb.

Change-Id: Iff0a5cf49c87b91b8cae3dbcb541d1cf0bc480a6
CRs-Fixed: 2598149
2020-01-08 04:52:46 -08:00
Pankaj Singh
dc48e39e8d qcacld-3.0: Fix uapsd auto trigger command failing after addts
Modify sme_enable_sta_ps_check() to take power save mode
parameter as new argument.During certification WMMAC test
cases failed due to recent change of saving user power save
configuration. The uapsd auto trigger cmd could not be send
due to user power save configuration.

Apply the user power save configuration in conjunction with
power save mode.

Change-Id: I79bdfc3f4d168df23415bfb3418913de7a45886a
CRs-Fixed: 2592560
2020-01-08 04:52:24 -08:00
nshrivas
eb63c8916b Release 5.2.0.164C
Release 5.2.0.164C

Change-Id: I139d6dc10b0a9ef08a74ef947029d57acdcff202
CRs-Fixed: 774533
2020-01-08 02:03:40 -08:00
gaurank kathpalia
570f0aff4f qcacld-3.0: Fix issue for SMM before vdev start on 2.4ghz
Scenario:-
1. Turn on SAP and STA on 2.4ghz and 5ghz
2. Turn off SAP
3. Turn off STA
4. Turn on SAP on 2.4ghz

Issue:-
In the start ap function, the driver calls
the stop opportunistic timer and calls the handler
to goto SMM mode.
After this, the SAP checks whether it requires the
DBS or not and then requests for DBS also, but since
the driver is already in DBS mode this command gets
rejected, so there would be 2 commands in the serialization
queue which would be SMM and start AP, which would lead to
a crash as SMM is sent before a connection on 2.4ghz as
Hastings is not capable to start a vdev in 2.4ghz without
DBS mode.

Fix:-
1.Not allow SMM if the current connection requires DBS
2. Check the HW capabilty in the active command only and
not before that to protect the reliability of hw mode.

Change-Id: I1c0c05ea05ba14d1556af2612daa3de2ffcba367
CRs-Fixed: 2587508
2020-01-08 02:03:40 -08:00
nshrivas
29ffb45ec5 Release 5.2.0.164B
Release 5.2.0.164B

Change-Id: I8e3552b496467e05d07fbbf64ba9aebc655e669a
CRs-Fixed: 774533
2020-01-07 19:20:58 -08:00
nshrivas
27b5d6cfa7 Release 5.2.0.164A
Release 5.2.0.164A

Change-Id: I35432ac2765b487db2b801c3c855961be55c8e76
CRs-Fixed: 774533
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
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
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
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
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
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