Commit Graph

11202 Commits

Author SHA1 Message Date
Jeff Johnson
b9feee40b6 qcacld-3.0: Fix indent in hdd_pld_request_bus_bandwidth()
Checkpatch flagged the following issue, so fix it:

ERROR:CODE_INDENT: code indent should use tabs where possible
+^I^I          next_rx_level, avg_rx);$

Change-Id: Ib6133df181ec7517bf0b212bd8d677666d99ccb9
CRs-Fixed: 2275264
2018-07-10 14:06:34 -07:00
Jeff Johnson
dd6fd48b3d qcacld-3.0: Remove obsolete 11d scan callback mechanism
SME exposes an 802.11d scan callback mechansim that was used by a
prior generation of the driver. The current generation no longer uses
this callback, so remove it.

Change-Id: I11b7916fd8244f3ba03ec73779a8c7e61c2a06ab
CRs-Fixed: 2273914
2018-07-10 14:06:30 -07:00
nshrivas
611522dd8b Release 5.2.0.87X
Release 5.2.0.87X

Change-Id: I9aadde060089d36afa80db59ec6bd92d9f3f635b
CRs-Fixed: 774533
2018-07-09 15:55:27 -07:00
Kabilan Kannan
8de9238d10 qcacld-3.0: Do not call wma_remove_peer(), when peer is invalid
Do not call wma_remove_peer() function, when TDLS peer
is invalid.

Change-Id: I8dba5b9db0b55b8dd21a876dea9f7861e67434eb
CRs-Fixed: 2271733
2018-07-09 15:55:27 -07:00
nshrivas
3d877266bd Release 5.2.0.87W
Release 5.2.0.87W

Change-Id: I220e65b8dc0168a83aca1f0bbb10644eebc68c46
CRs-Fixed: 774533
2018-07-09 14:24:30 -07:00
Dustin Brown
bec5806fea qcacld-3.0: Move panic messages into QDF_DEBUG_PANIC
QDF_DEBUG_PANIC has recently gained a reason parameter. Move instance of
logging followed immediately by QDF_DEBUG_PANIC to single calls.

Change-Id: I6633296fb1c82a3945cedc967de222410b9f5d9b
CRs-Fixed: 2274413
2018-07-09 14:24:30 -07:00
nshrivas
2b6c925995 Release 5.2.0.87V
Release 5.2.0.87V

Change-Id: I33fe67d28f1280ab5408ed00ba373924f2a2c505
CRs-Fixed: 774533
2018-07-09 09:57:20 -07:00
Wu Gao
b422f77258 qcacld-3.0: Check txrx vdev pointer before tx mgmt frame
It get NULL pointer to txrx vdev when Rome platform tx mgmt frame in
cdp_mgmt_send_ext, and then DUT broken since access NULL pointer.
So, add protection before call cdp_mgmt_send_ext.

Change-Id: Ia51a8183bf89115a4f0f3520b80186daa379602d
CRs-Fixed: 2265687
2018-07-09 09:57:20 -07:00
nshrivas
8582ad9b92 Release 5.2.0.87U
Release 5.2.0.87U

Change-Id: I1d6bf355b0c5be63f2b8a44b661fece5c6039cb3
CRs-Fixed: 774533
2018-07-09 08:31:11 -07:00
jsreekum
ac44b92ac6 qcacld-3.0: Add default target configs for Genoa
Add Genoa specific default target configurations for
offload configs, max tx pattern config and max sta
vdev config

Change-Id: Id682b1103d87021e207de335721805515db6a932
CRs-Fixed: 2258999
2018-07-09 08:31:10 -07:00
nshrivas
d3215e97db Release 5.2.0.87T
Release 5.2.0.87T

Change-Id: Ia662c55d4c5223e39d819530655e6b0d0d8f0bc1
CRs-Fixed: 774533
2018-07-09 05:32:48 -07:00
Tiger Yu
8c3877001d qcacld-3.0: Deregister tx flow control when reset all adapters
Deregister tx flow control when reset all adapters to miss unregister
the tx_flow_control_timer.

Change-Id: Idfa29dfc319532b7203008c2ee83a4e10aa8a8bc
CRs-Fixed: 2273178
2018-07-09 05:32:47 -07:00
nshrivas
936a3d0a88 Release 5.2.0.87S
Release 5.2.0.87S

Change-Id: I363b0f43804c632f45faa11a7bc14465f7327a74
CRs-Fixed: 774533
2018-07-09 02:02:16 -07:00
Sravan Kumar Kairam
1cbfb00f1c qcacld-3.0: Fix compilation issue for legacy DP
As part of DP CP interaction UMAC pdev objmgr handle is
passed at dp pdev attach. But in legacy DP config handle
is passed which leads to compilation issue. In this change
handle compilation issue by type casing handles.

Change-Id: I40986c8fd07d007aced91621f338f31332be6782
CRs-Fixed: 2260753
2018-07-09 02:02:15 -07:00
nshrivas
616fdef426 Release 5.2.0.87R
Release 5.2.0.87R

Change-Id: I5749822319b99ddb8adb16cba77ca25f4fe1ee3b
CRs-Fixed: 774533
2018-07-08 23:30:39 -07:00
Rachit Kankane
45d8b8c46a qcacld-3.0: Allocate MAC Trace buffer dynamically
Allocate memory for g_qdf_trace_tbl buffer dynamically.

Change-Id: I1d5435860a104d86537f42c97336099171c3595b
CRs-Fixed: 2267933
2018-07-08 23:30:39 -07:00
nshrivas
99e526a038 Release 5.2.0.87Q
Release 5.2.0.87Q

Change-Id: Ia0e7ecda67fa1939d9e74ec46e1179ac790cd5cf
CRs-Fixed: 774533
2018-07-07 17:03:40 -07:00
gaurank kathpalia
ea6b5e603c qcacld-3.0: Fix KW issue in hdd_sme_roam_callback
The driver may dereference pRoamInfo by calling APIs
in hdd_sme_roam_callback which have arguements of
structure tagCsrRoamInfo.

Fix is to have a check for pRoamInfo, and then only
pass its struct members as arguments to other API.

Change-Id: I28acee0ff42a50221f6dbef7af4b9c04dd6e8d1e
CRs-Fixed: 2259290
2018-07-07 17:03:40 -07:00
nshrivas
a8972c2d67 Release 5.2.0.87P
Release 5.2.0.87P

Change-Id: I8b2eda2a8dafd9747350464971b769b6539e905e
CRs-Fixed: 774533
2018-07-07 10:26:08 -07:00
Jeff Johnson
6a18c96ba2 qcacld-3.0: Rename csr_roam_completeCallback
Rename csr_roam_completeCallback to avoid having camelCase.

Change-Id: Ic84cf07c352da5c445df599657a050feef997f1f
CRs-Fixed: 2273780
2018-07-07 10:26:07 -07:00
Jeff Johnson
ea70b9480d qcacld-3.0: Introduce hdd_handle_to_context()
Currently direct typecasting is used to convert an HDD handle to HDD
context. Typecasting has the disadvantage that it does not allow the
compiler to validate that the input item being typecast really is an
hdd_handle_t. In order to allow the compiler to typecheck the input
item introduce a converter API, and update the current existing
typecasts to use the converter.

Change-Id: Ifc7c3e062af234b378f1fb806cae0814ac52e423
CRs-Fixed: 2273915
2018-07-07 10:26:03 -07:00
nshrivas
d2111fa3ae Release 5.2.0.87O
Release 5.2.0.87O

Change-Id: Ibc1022b9047921ddc33e2d3df893ac7ddfb05b5c
CRs-Fixed: 774533
2018-07-06 20:31:17 -07:00
Nachiket Kukade
5f0ce4f65d qcacld-3.0: Move APF context to per adapter
APF commands are using a global context and so the current
implementation can only entertain one command at a time. Since
APF in Firmware is vdev specific, simultaneous APF commands on
different vdev's should be supported.

Move APF context inside hdd adapter to support simultaneous
commands on multiple vdev's.

Change-Id: Ife148065ebc6387af3a690cc0cb788e23066e67e
CRs-Fixed: 2192408
2018-07-06 20:31:16 -07:00
nshrivas
2ec25aeb65 Release 5.2.0.87N
Release 5.2.0.87N

Change-Id: I1f31ed2c12777b3cbc07ba15bbd9f53621d3d453
CRs-Fixed: 774533
2018-07-06 17:59:56 -07:00
Varun Reddy Yeturu
adc0090770 qcacld-3.0: Change the minimum value for twt_congestion_timeout
Change the minimum acceptable value for twt_congestion_timeout to
Zero. This also indicates that it will be a host triggered TWT.

Change-Id: I827afc2d360f13990f6261388692b0d49a98b2f0
CRs-Fixed: 2272549
2018-07-06 17:59:55 -07:00
nshrivas
8659248b9e Release 5.2.0.87M
Release 5.2.0.87M

Change-Id: I2ced57d5bd0bc8232650bbcff42b94d4e7129e67
CRs-Fixed: 774533
2018-07-06 16:34:20 -07:00
Dustin Brown
f39413aa16 qcacld-3.0: Enable NBUF_MAP_UNMAP_DEBUG in Kbuild
Currently network buffer map/unmap tracking is enabled by the
MEMORY_DEBUG compile time flag.
I6b62539d39664db3ff62411fe8632633f53488c8 is giving this feature its own
compile time flag, NBUF_MAP_UNMAP_DEBUG. When CONFIG_LEAK_DETECTION is
enabled, also enable NBUF_MAP_UNMAP_DEBUG to retain current behavior.

Change-Id: I9d18ff8401710e3964cb6decb01ac1a282421d37
CRs-Fixed: 2273769
2018-07-06 16:34:19 -07:00
Kiran Kumar Lokere
f3044852b7 qcacld-3.0: Add Tx beamformee NSTS configuration support
Add wifi test configuration support for Tx beamformee NSTS

Change-Id: Ia338e276376f68e2caa6b717db7c51e3d3308266
CRs-Fixed: 2261728
2018-07-06 16:34:16 -07:00
Rajeev Kumar
ce779d8697 qcacld-3.0: Optimize string log size in hdd_rssi_threshold_breached
Optimize string log size in hdd API hdd_rssi_threshold_breached such
that wlan.ko size is optimized.

Change-Id: I71fb6fc8e9f71e52b11dc67aeec58095555eceaf
CRs-Fixed: 2271644
2018-07-06 16:34:13 -07:00
Lin Bai
fac7797657 qcacld-3.0: Fix memory leak in hdd cfg80211
Fix SAP channel_info leak when updating ACS config, and skb leak
when sending HW mode changed event.

CRs-Fixed: 2273544
Change-Id: Ib08ecbcff6acdc5f3b47ec20969e97b6bfca6da3
2018-07-06 16:34:09 -07:00
nshrivas
1251ac1e16 Release 5.2.0.87L
Release 5.2.0.87L

Change-Id: I7656a176fe080706c0a1e0dc298e08cdff1597d5
CRs-Fixed: 774533
2018-07-06 04:45:12 -07:00
tinlin
d05b3621ca qcacld-3.0: Fix empty beacon report issue in 802.11k
While connected AP requires DUT to do radio
measurement for itself in passive scan mode,
DUT sends empty beacon report.

In passive scan, sta only listens beacons.
Connected AP beacon is offloaded to firmware, and
Firmware discards it except that special
IE exists in the beacon. Connected AP beacon will
not be sent to host. Hence, timer of connected BSS
is not updated in scan result lists
and cannot meet "scan timer > RRM_scan_timer".
Fix the issue by adding connected
BSS judging condition.

For cld3.2, csr_is_duplicate_bss_description is not
defined. So compare bssid only between scan results
and connected BSS.

Also fix some config issues in sme_rrm_issue_scan_req.

Change-Id: Ibd6ed53329303b558c61622f95ee0f131451f148
CRs-Fixed: 2261364
2018-07-06 04:45:11 -07:00
nshrivas
b956849069 Release 5.2.0.87K
Release 5.2.0.87K

Change-Id: I772133de761e86bfbd753fed3dd24c6ec1ab3214
CRs-Fixed: 774533
2018-07-06 01:45:59 -07:00
Rachit Kankane
74dc5b8b11 qcacld-3.0: Enable genoa features
Enable features for genoa, create new file genoa.common
where we added list of common features and then include
this common file in all other genoa defconfig variants.

Change-Id: I50a1f4f95a96ce2e489002131b5cc9215c17a0ae
CRs-Fixed: 2272740
2018-07-06 01:45:58 -07:00
nshrivas
adfbc20742 Release 5.2.0.87J
Release 5.2.0.87J

Change-Id: I36e87d2f3692cd142ed7ae54397e29e4e80e43f9
CRs-Fixed: 774533
2018-07-05 20:49:26 -07:00
Kiran Kumar Lokere
1a43bcf236 qcacld-3.0: Add support for SRD channels in ETSI domain
Add support for SRD channels in ETSI regulatory domain

1) Add SRD channels only if DSRC feature is disabled.
2) Add user configuration to enable/disable these channels
in master mode PCL/ACS. Default is disabled.
3) Allow these channels in ACS/PCL only if the INI is set.

Change-Id: Ibd79dc95e9911ce3a0fd101f4716d9bbb8b75466
CRs-Fixed: 2264786
2018-07-05 20:49:25 -07:00
nshrivas
199dab21ff Release 5.2.0.87I
Release 5.2.0.87I

Change-Id: Idc6c13e8cb79175a951540829a7bdd60fda1ea87
CRs-Fixed: 774533
2018-07-05 18:01:27 -07:00
Tiger Yu
415a97e476 qcacld-3.0: Fix the double free for the txrx stats req
The txrx stats req has been freed in the ol_txrx_pdev_detach by checking
req_list of pdev.
Remove the txrx stats req free in the ol_txrx_fw_stats_desc_pool_deinit
to avoid the double free.

Change-Id: Idb2d5517e90ee873e7fd62d58c48a4f793266bac
CRs-Fixed: 2272696
2018-07-05 18:01:26 -07:00
nshrivas
888a9bbfc3 Release 5.2.0.87H
Release 5.2.0.87H

Change-Id: I8fc680df3afc1e5a9aa7c913e169fbffcb255cab
CRs-Fixed: 774533
2018-07-05 14:13:56 -07:00
gaurank kathpalia
6e40bbc830 qcacld-3.0: Fix hw mode change issue in case of DBS
The driver stops the oppurtunitistic timer for DBS, when
the start AP requests come, which results in HW mode stuck
in DBS if the next vdev start request comes on the same MAC
This further results in NSS = 1 for the MAC, hence throughput
decreases.

Fix is to set hw mode to single MAC in case the STA/SAP comes up
in the band/channel

Change-Id: I85664bb5d64f5ce6506f47da4b62328631f01616
CRs-Fixed: 2267106
2018-07-05 14:13:56 -07:00
Dustin Brown
84f46eae30 qcacld-3.0: Enable converged configuration component
Enable the converged configuration component in the Kbuild. Also, hook
into the cfg parse and release APIs.

Change-Id: Id0df669a34463e9f51bd5cc5bf2939fb1ac6228d
CRs-Fixed: 2258233
2018-07-05 14:13:53 -07:00
Bala Venkatesh
2f25c81c88 qcacld-3.0: Skip DFS channels if sta_sap_scc_on_dfs_chan enabled
If sta_sta_sap_scc_on_dfs_chan enabled then SAP is not allowed
on DFS channel in standalone mode. If ACS and sta_sap_scc_on_dfs_chan
are enabled ini then skip the DFS channels from the ACS channel list

CRs-Fixed: 2159816
Change-Id: I396d0c8996f8870de1570ed9932451567f5c77f3
2018-07-05 14:13:51 -07:00
nshrivas
8d225af8ff Release 5.2.0.87G
Release 5.2.0.87G

Change-Id: I83c1a746cc741be312c2fb7607dc81b60e7eb7a0
CRs-Fixed: 774533
2018-07-05 12:44:04 -07:00
gaurank kathpalia
b4d4472ba1 qcacld-3.0: Fix possible buffer over-read condition
In the API csr_roam_roaming_state_reassoc_rsp_processor
the driver extracts pNeighborRoamInfo from pMac, but it
may happen the session id is greater than CSR_ROAM_SESSION_MAX
which results in a out of bound access of memory.

Fix is to have a max check of session ID and then extract
pNeighborRoamInfo from that session.

Change-Id: If3fb98fa278562abe40137ffead8ff4f85b40b1f
CRs-Fixed: 2259229
2018-07-05 12:44:04 -07:00
nshrivas
e92137eb7e Release 5.2.0.87F
Release 5.2.0.87F

Change-Id: I5f0026bd4e69a41aec9891652972c0ded66346d7
CRs-Fixed: 774533
2018-07-05 11:28:35 -07:00
Padma, Santhosh Kumar
4155278ee6 qcacld-3.0: Do not allow suspend during roaming
There is a chance that kernel can trigger suspend while reassoc
in progress. If driver allows this suspend, this can result in
two issues:
1. Authentication timeout in supplicant and leads to connection
   failure if reassoc is triggered using reassoc bssid hint.
2. Roam synch timeout in firmware if roaming is triggered from fw.

Add one more check for roaming in progress to fix this issue.

Change-Id: I84a5d6e70e28f98440affb968c0b0bb90e21ac95
CRs-Fixed: 2269316
2018-07-05 11:28:35 -07:00
Vignesh Viswanathan
769866eac8 qcacld-3.0: Validate device mode before setting LL_STATS
LL_STATS is supported only for STA mode and currently no check
is present to validate the device mode while setting the LL_STATS
from the vendor command.

Allow LL_STATS to be set from the vendor command only for STA mode.

Change-Id: I40e9a6beb20524a84d87105455fe9b28cdc50816
CRs-Fixed: 2266936
2018-07-05 11:28:32 -07:00
nshrivas
7cab500c2d Release 5.2.0.87E
Release 5.2.0.87E

Change-Id: I1096560bf1c85f467eb56f786e9656c3bbcaf56d
CRs-Fixed: 774533
2018-07-05 10:01:03 -07:00
Abhinav Kumar
43ab01b116 qcacld-3.0: Validate sessionId before use in csr_roam_substate_change
csr_roam_set_bss_config_cfg invokes csr_roam_substate_change
with sessionId as one argument to change roam substate. In
csr_roam_substate_change, sessionId is uses as index of array
curSubState of max allowed index CSR_ROAM_SESSION_MAX(5). But
there is no any check present in csr_roam_substate_change to
validate sessionId against maximum allowed concurrent sessions.
This results Out-of-Bound access if sessionId >=
CSR_ROAM_SESSION_MAX.

Add check for sessionId against CSR_ROAM_SESSION_MAX in
csr_roam_substate_change.

Change-Id: Iae7da836001a9ccbec77cdc64df27b259f15bf4e
CRs-Fixed: 2268547
2018-07-05 10:01:02 -07:00
Jeff Johnson
75873e9608 qcacld-3.0: Replace wmi_unified_nat_keepalive_enable()
There are multiple issues with wmi_unified_nat_keepalive_enable():
1) WMA global functions should have a wma_ prefix.
2) The function prototype indicates it should return int status, and
   the one caller, wma_add_sta_req_sta_mode(), is expecting that, but
   it actually returns QDF_STATUS.
3) The function is a very thin wrapper that calls the unified WMI API
   wmi_unified_nat_keepalive_en_cmd() and hence adds no real value.

Rather than address these issues, just remove the function and update
wma_add_sta_req_sta_mode() to directly call the unified WMI API
wmi_unified_nat_keepalive_en_cmd().

Change-Id: I13a4140ba6343240bde51704af2921c001f66a21
CRs-Fixed: 2271552
2018-07-05 10:00:59 -07:00