Commit graph

15,460 commits

Author SHA1 Message Date
nshrivas
98e93b772c Release 5.2.0.128W
Release 5.2.0.128W

Change-Id: I52d29ddda09c1b737bbedcbb8bc36015cda41c67
CRs-Fixed: 774533
2019-03-31 20:56:53 -07:00
Qun Zhang
043635a34f qcacld-3.0: Update wiphy band info after FW ready event is received
The driver can be configured to support only 2.4 GHz operation
via INI setting "BandCapability=1". Currently, when the driver
is configured in this manner, the RF bands attribute in the
WPS IE in Probe Request frames incorrectly indicates the driver
can support both 2.4 GHz and 5 GHz operation. This is because
the logic used to configure the wiphy->bands occurs before the
INI file has been processed, and hence the BandCapability is
not properly applied. To address this issue relocate the logic
that updates the wiphy->bands until after the INI file has been
processed.

Wiphy supported band info is also dependent on FW capabilities,
so update wiphy band info after FW ready event is received.

Change-Id: Ic210cafd730f56feb9df06d8ad5fcd8cca8355fc
CRs-Fixed: 2377343
2019-03-31 20:56:52 -07:00
hangtian
c847946ced qcacld-3.0: Add qcs40x.snoc.perf_defconfig
Add qcs40x.snoc.perf_defconfig. Enable CONFIG_FEATURE_TSO_DEBUG by
default, avoid spinlock bad magic issue(without spin_lock_init() for
tso_stats_lock).

Change-Id: If2fb00bd2298aa6f43418b3e4694aa995887b4f3
CRs-Fixed: 2424181
2019-03-31 20:56:47 -07:00
nshrivas
2687b551f3 Release 5.2.0.128V
Release 5.2.0.128V

Change-Id: Iad93025c9136ad8511ca0d6693073eb75b6b38de
CRs-Fixed: 774533
2019-03-30 08:07:12 -07:00
Rakshith Suresh Patkar
388e745fb2 qcacld-3.0: Add support for DPT in IPA exception path
Currently, DPTRACE is not supported for IPA exception
path. So, in softAP Mode with IPA enabled, DPTRACE
RX logs are not seen.

Add support for DPTRACE in IPA exception path.

Change-Id: I551e7380a46004fcc8dcf5f8d30e4c0a700fa3bf
CRs-Fixed: 2425310
2019-03-30 08:07:11 -07:00
nshrivas
c27fa91ab5 Release 5.2.0.128U
Release 5.2.0.128U

Change-Id: I4459582fcbfef260b5e62dd366926034c1409e87
CRs-Fixed: 774533
2019-03-30 04:53:13 -07:00
jiad
bce4f0f520 qcacld-3.0: Enable SMMU S1 for sdxprairie
Enable ENABLE_SMMU_S1_TRANSLATION option for sdxprairie.

Change-Id: I3eedee61bce6fbe2442fd15b282c054b5dd935d2
CRs-Fixed: 2425028
2019-03-30 04:53:12 -07:00
nshrivas
b80a9a918f Release 5.2.0.128T
Release 5.2.0.128T

Change-Id: I12b868775f1e8dfc43aff76ab3b4553277c76e58
CRs-Fixed: 774533
2019-03-29 21:59:00 -07:00
Abhishek Singh
97e8a71156 qcacld-3.0: Process eWNI_SME_DISCONNECT_DONE_IND even after stop bss
If LIM initiate disconnect for a peer (eSmeCommandWmStatusChange) and
at same time bss is stopped, disconnect may get processed after stop
bss and thus will return from LIM as AP has already stopped.

LIM will post eWNI_SME_DISCONNECT_DONE_IND to sme to remove
the eSmeCommandWmStatusChange command from serialization active queue.
But eWNI_SME_DISCONNECT_DONE_IND is not processed in CSR sub state
eCSR_ROAM_SUBSTATE_STOP_BSS_REQ the command is not removed.

Fix is to handle the eWNI_SME_DISCONNECT_DONE_IND in
eCSR_ROAM_SUBSTATE_STOP_BSS_REQ state.Also allow
hdd_cfg80211_del_station call during unload.

Change-Id: I79cd1f413f2f9f12e6da6702098b782b6c156d24
CRs-Fixed: 2425724
2019-03-29 21:58:59 -07:00
nshrivas
4687817c34 Release 5.2.0.128S
Release 5.2.0.128S

Change-Id: If8a2fa5d4d0d11dde0a2faa5748c1a7e90aaf0f6
CRs-Fixed: 774533
2019-03-29 16:58:51 -07:00
Jeff Johnson
43b0c6a123 qcacld-3.0: Refactor put_wifi_peer_info()
In order to simplify put_wifi_peer_info() refactor the logic for
attribute QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO into a
separate function.

Change-Id: I72f4aef0a4df340a52eea59579216e5978a0d98c
CRs-Fixed: 2424696
2019-03-29 16:58:50 -07:00
Jeff Johnson
7e10ec3eda qcacld-3.0: Rename HDD identifier pWifiPeerStat
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pWifiPeerStat to be
compliant.

Change-Id: I3ca4d8a2e03ad1cab8512f9f665db1e6aebdc285
CRs-Fixed: 2424503
2019-03-29 16:58:45 -07:00
Jeff Johnson
35a70254ac qcacld-3.0: Rename HDD identifier pWifiPeerInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pWifiPeerInfo to be
compliant.

Change-Id: Ib0652a6b2f20fdd3c4ced29689b5428be4d4ac0d
CRs-Fixed: 2424502
2019-03-29 16:58:40 -07:00
Jeff Johnson
8439667256 qcacld-3.0: Rename HDD identifier pWifiIfaceStat
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pWifiIfaceStat to be
compliant.

Change-Id: I91fbbeef154f27600699a3cf761779fd4b1282cb
CRs-Fixed: 2424501
2019-03-29 16:58:34 -07:00
Jeff Johnson
0dc4211730 qcacld-3.0: Rename HDD identifiers wmmInfo & wmmStats
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifiers wmmInfo & wmmStats to be compliant.

Change-Id: Ie285a7d71aaa7df1d4de02067f84bc2f3df2e874
CRs-Fixed: 2424500
2019-03-29 16:58:30 -07:00
nshrivas
36d85f7a0a Release 5.2.0.128R
Release 5.2.0.128R

Change-Id: I04e50f9ef1d22ede34d2cc9bb63c2f5d77607c42
CRs-Fixed: 774533
2019-03-29 15:26:59 -07:00
Bala Venkatesh
0f74545bb3 qcacld-3.0: Replace duplicate api's of vdev_connected
Currently, the vdev connection status is checked by getting
the bss peer of that vdev, and if the bss peer is in associated
state then vdev connected status is sent as true. It can happen
vdev is present and bss peer is deleted after getting the bss peer
from vdev pointer. Then bss peer can not be dereferenced to get the
its status.

Instead remove all the duplicate api's tdls_is_vdev_connected,
pmo_core_is_vdev_connected, and wlan_vdev_is_connected with
wlan_vdev_is_up. wlan_vdev_is_up gives success status
if associated.

Change-Id: I863c3c0689f329870bd08c813813c16956135209
CRs-Fixed: 2424996
2019-03-29 15:26:58 -07:00
nshrivas
219b9065ff Release 5.2.0.128Q
Release 5.2.0.128Q

Change-Id: I4737f3271b978ab1c1ade8f1e150de6c0cbfcea1
CRs-Fixed: 774533
2019-03-29 11:05:44 -07:00
wadesong
4e0852344d qcacld-3.0: Remove local variables not used
With the introduction of code change in
I16a5429c00034fe58fb4c70a8dacda666ac54227,
function __wlan_hdd_cfg80211_suspend_wlan doesn't
need the local variable 'scan_info' any more, so
remove it.

Change-Id: I09070d90004f740b25b45b424902521e7bfb6f6b
CRs-Fixed: 2425697
2019-03-29 11:05:43 -07:00
Manjunathappa Prakash
f5b6f5f4b7 qcacld-3.0: Add INI config option to control WMI credits
Add INI option to control consecutive WMI writes. Setting this 1
will essentially serializes the HTC WMI command writes.

Change-Id: I8e28990127f3e4dac2fa91ac9b9df87eed321a2a
CRs-Fixed: 2424795
2019-03-29 11:05:38 -07:00
nshrivas
feaf050e76 Release 5.2.0.128P
Release 5.2.0.128P

Change-Id: I1b943973b7100d2605bb4307daaebd68a5fa7441
CRs-Fixed: 774533
2019-03-29 00:47:53 -07:00
Arun Kumar Khandavalli
deda5a812c qcacld-3.0: Add support to improve coex logging
Add support to get the various Coex data from the debugfs.
This commit adds the support to get the various coex data:
            * COEX STATE
            * COEX DPWB STATE
            * COEX TDM STATE
            * COEX IDRX STATE
            * COEX ANTENNA SHARING STATE
The specific state information can be read via the debugfs.
Example to read the COEX STATE logging:
            sm6150:/ # cat /sys/kernel/debug/wlan/mws_coex_state
                    vdev_id = 0
                    coex_scheme_bitmap =  0
                    active_conflict_count = 0
                    potential_conflict_count = 0
                    chavd_group0_bitmap = 0
                    chavd_group1_bitmap = 0
                    chavd_group2_bitmap = 0
                    chavd_group3_bitmap = 0

Change-Id: I92272ad7edf44df22730ac0fa992d876840ba632
CRs-Fixed: 2413943
2019-03-29 00:47:53 -07:00
Srinivas Girigowda
a9ce5e64db qcacld-3.0: Change argument data type from int to unsigned int
kstrtou32() expects 3rd argument to be of data type unsigned int,
but currently argument of type int is passed.
Fix this by changing int to unsigned int.

Change-Id: I9ee73a67ab609fe646877db3c967f9972dacc988
CRs-Fixed: 2425520
2019-03-29 00:47:49 -07:00
nshrivas
df8389f488 Release 5.2.0.128O
Release 5.2.0.128O

Change-Id: I918400ba6367e915458e5e1e035a014f622fdb92
CRs-Fixed: 774533
2019-03-28 16:50:17 -07:00
Visweswara Tanuku
0b2e5e8e47 qcacld-3.0: Add config option for Thermal Throttling
Add driver config option for FW_THERMAL_THROTTLE_SUPPORT

Change-Id: I17fc8062cb18ed828578f97a1b24908f68e3a8cf
CRs-Fixed: 2419919
2019-03-28 16:50:16 -07:00
Ajit Pal Singh
3d50c8e7d0 qcacld-3.0: Do not change bus/target delta for QCN7605
Do not change bus/target delta for QCN7605. All the credits
received from FW will be released to the schheduler.

Change-Id: I17dbd1a4545d8b577ea521773c17506a0fc818cf
CRs-Fixed: 2423138
2019-03-28 16:50:12 -07:00
Mohit Khanna
b7194395ee qcacld-3.0: Handle unregistered OS RX handles in DP RX Thread
On association completion, RX handles are registered with the DP layer
as a part of cdp_vdev_register. It is possible that immediately after
association, host receives RX packets, but RX handles have not been
registered for the vdev with DP layer.

Drop packets in DP RX Thread if OS RX handles are not found for the
vdev.

Change-Id: I3bbd489ec9c5e6f6267521818663b123a85bb3f9
CRs-Fixed: 2419376
2019-03-28 16:50:07 -07:00
Min Liu
6de8633393 qcacld-3.0: Fix vdev leak in csr_roam_issue_set_context_req_helper
In csr_roam_issue_set_context_req_helper, reference of vdev is not
released after get.

Change-Id: I686cd6a8dfd7e7889ef8e9ac3a4c6eb6be217f6e
CRs-Fixed: 2424885
2019-03-28 16:50:03 -07:00
Srinivas Girigowda
a47b45f94f qcacld-3.0: Consolidate multiple MAC_ADDR_LEN to QDF_MAC_ADDR_SIZE
Consolidate multiple (redundant) MAC_ADDR_LEN to QDF_MAC_ADDR_SIZE
PMO_80211_ADDR_LEN
IEEE80211_ADDR_LEN
ETHER_ADDR_LEN
HTT_MAC_ADDR_LEN
ETHERNET_ADDR_LEN
DEFRAG_IEEE80211_ADDR_LEN
OL_TXRX_MAC_ADDR_LEN
QCSAP_ADDR_LEN

CRs-Fixed: 2406592
Change-Id: I829c5799e4724f81af996b23fdd4ea03f4728bc4
2019-03-28 16:49:58 -07:00
Jinwei Chen
e614397417 qcacld-3.0: configure rx_stack when register tdls peer
vdev->osif_rx_stack is overwritten to NULL when register tdls
peer, meantime, if there is RX data wait ro be indicated in
dp_rx_thread queue, host panic since vdev->osif_rx_stack
is NULL.

configure rx_stack when register tdls peer if dp_rx_thread is true.

Change-Id: I4afebce7f5f89485c9661f6394a8fd484409c05c
CRs-Fixed: 2423270
2019-03-28 16:49:54 -07:00
nshrivas
cf0abba433 Release 5.2.0.128N
Release 5.2.0.128N

Change-Id: I83c106a9098485deb285af7c5814d3c1da89fd64
CRs-Fixed: 774533
2019-03-28 13:13:18 -07:00
Ashish Kumar Dhanotiya
12de533e25 qcacld-3.0: Add support to send twt feature capability
Currently there is no support to send twt capability to
user space.
Add Support to advertise twt capability to user space using
vendor flag QCA_WLAN_VENDOR_FEATURE_TWT when get capability
vendor command is invoked.

Change-Id: I9a91b864d6233c0341c67e46669f0d938f262178
CRs-fixed: 2424361
2019-03-28 13:13:17 -07:00
Visweswara Tanuku
c949ad28ab qcacld-3.0: Handle epping disable and epping close during rmmod
In hdd_soc_remove, epping_disable/epping_close are called after
hif context is cleared by hdd_wlan_stop_modules.
hif context is needed to cleanup epping adapter and since hif
context is not available during epping disable/close, epping
adapter cleanup fails.

Handle epping_disable & epping_close by moving them to
hdd_wlan_stop_modules before hif is closed

Change-Id: I43d516006c413daa936d2401484cf3d745a94c74
CRs-Fixed: 2419665
2019-03-28 13:13:12 -07:00
nshrivas
3bd54f500b Release 5.2.0.128M
Release 5.2.0.128M

Change-Id: I93e49eac7c4486a66e2a91d93a26de672df29c78
CRs-Fixed: 774533
2019-03-28 09:04:34 -07:00
Nirav Shah
6f26133120 qcacld-3.0: Disable sw index inline update for Genoa PCIe
Disable sw index inline update for Genoa PCIe.

Change-Id: I80c6947604dbe61cc68f61a2daefb29e124e0663
CRs-Fixed: 2424876
2019-03-28 09:04:34 -07:00
nshrivas
45adc0c0af Release 5.2.0.128L
Release 5.2.0.128L

Change-Id: I039f300ca809bf1aa18466a841a24c7f113fbd88
CRs-Fixed: 774533
2019-03-28 04:36:43 -07:00
Min Liu
0daa786397 qcacld-3.0: Parse IE from ASSOC_REQ_IE_OFFSET in assoc req
Random failure is observed when trying to parse RSN IE from
assoc_ind->assocReqPtr in sap_fill_owe_ie_in_assoc_ind.
It should be parsed from ASSOC_REQ_IE_OFFSET.

Change-Id: I8f532f8850a7d997e0227a9e00d4285297243495
CRs-Fixed: 2408770
2019-03-28 04:36:41 -07:00
Rajeev Kumar
5f863eec8d qcacld-3.0: Disable periodic time sync feature from mainline
Periodic time sync feature is not needed on mainline hence
disable this feature by setting gRemoveTimeStampSyncCmd = 1.

Change-Id: Ifbffc02c61af3be8300a97d9be7b2c7dceaf263d
CRs-Fixed: 2422866
2019-03-28 04:36:15 -07:00
nshrivas
0bce3280fb Release 5.2.0.128K
Release 5.2.0.128K

Change-Id: I78d6c394bfc2584bbaa424b628e918cdd45567de
CRs-Fixed: 774533
2019-03-27 21:36:27 -07:00
Jeff Johnson
71277f5c32 qcacld-3.0: Harmonize wlansap_roam_callback()
Most of the identifiers used in the wlansap_roam_callback() prototype do
not match the ones used in the implementation, and furthermore the one
that does match does not conform to the coding standard, so update both
the prototype and the implementation to have identical, conforming
identifiers.

Change-Id: I3cf3622121d15bb6c9fb2f9a63a0f9b99dd675f6
CRs-Fixed: 2423731
2019-03-27 21:36:26 -07:00
Jeff Johnson
456e3b44e7 qcacld-3.0: Rename SAP identifier pScanResult
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename SAP identifier pScanResult to be
compliant.

Change-Id: I7a43a55f19d3d9bed4ba84d80347c49c944af45f
CRs-Fixed: 2423730
2019-03-27 21:36:21 -07:00
Jeff Johnson
66fc8d2e91 qcacld-3.0: Replace typedef tWLAN_SAPEvent
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tWLAN_SAPEvent typedef does not
meet any of those criteria, so replace it (and the "pt" variant) with
a properly named struct.

Change-Id: Ie39e51a24a16f0c19b7b0fe926748a6b90d31632
CRs-Fixed: 2423729
2019-03-27 21:36:16 -07:00
Jeff Johnson
b91e2d9eeb qcacld-3.0: Properly featurize sap_update_unsafe_channel_list()
Function sap_update_unsafe_channel_list() is conditional upon feature
flag FEATURE_WLAN_CH_AVOID. However there isn't a stub implementation
for when the feature is not enabled, and as a result in-function
conditional compilation is required at the call site. This is contrary
to the coding style, so introduce a stub implementation for when the
feature is not present. In addition make this function static since
the scope is local to a single source file.

Change-Id: I12f010ac8f6d2cb63794e3295977bfac4266cca1
CRs-Fixed: 2423728
2019-03-27 21:36:10 -07:00
Jeff Johnson
6c3368392b qcacld-3.0: Remove acsBestChannelInfo from struct sap_context
The information currently being stored in the sap_context's
acsBestChannelInfo is only utilized during the execution of function
sap_select_channel(). Since this use temporal there is no need to
cache the information, so remove the struct from the sap_context.

Change-Id: I6ca7ff73752ed44fdf11ad99f303538480942edb
CRs-Fixed: 2423727
2019-03-27 21:36:05 -07:00
Jeff Johnson
eb18030b81 qcacld-3.0: Remove SapQosCfg from struct sap_context
The SapQosCfg in struct sap_context is written, but is never read.
Since this information is unused, remove it.

Change-Id: Ic04980cd365524d458f6cb5d3e1ea411d1efd10f
CRs-Fixed: 2423726
2019-03-27 21:36:01 -07:00
nshrivas
b4813ac60d Release 5.2.0.128J
Release 5.2.0.128J

Change-Id: I19013d8b9f3dd8a00e10908377a46a6efeefaf44
CRs-Fixed: 774533
2019-03-27 17:45:49 -07:00
Veerendranath Jakkam
62fedb911f qcacld-3.0: Advertise mandatory OCE scan extended feature flags
Below scan flags introduced from Linux kernel version 4.15. Advertise
the mandatory flags from Linux kernel version 4.15 and backport versions
if OCE STA feature enabled.
- NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME
- NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP
- NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE
- NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION

Change-Id: I700c7021ff921066d6ca2f9a00ce3ea93c0552df
CRs-Fixed: 2418086
2019-03-27 17:45:48 -07:00
nshrivas
6e6faab55b Release 5.2.0.128I
Release 5.2.0.128I

Change-Id: I7b349bf09e226044fd7f24bc6d2362a4d5cf2ce4
CRs-Fixed: 774533
2019-03-27 14:31:48 -07:00
Srinivas Girigowda
ff8f5efad4 qcacld-3.0: Consolidate multiple SIR/CSR PMKID_LEN to PMKID_LEN
1. Change MAX_PMKID_LEN to PMKID_LEN (present in qcacmn)
2. Change SIR_PMKID_LEN to PMKID_LEN
3. Change CSR_RSN_PMKID_SIZE to PMKID_LEN

Change-Id: I7a25d49ab2fc032338b2f88915852ae7f3a6271f
CRs-Fixed: 2423876
2019-03-27 14:31:47 -07:00
nshrivas
2c3513d503 Release 5.2.0.128H
Release 5.2.0.128H

Change-Id: Ia154d314f78e9bce3df04c6338974b7fb8924b5a
CRs-Fixed: 774533
2019-03-27 12:51:54 -07:00