Commit Graph

11017 Commits

Author SHA1 Message Date
Ajit Pal Singh
44273d6464 qcacld-3.0: Call cnss_wlan_enable() for QCN7605 USB
Call cnss_wlan_enable() for QCN7605 USB.

Change-Id: I566e934ee43db0b95dad799cac6731695f62992e
CRs-Fixed: 2269602
2018-07-11 14:28:45 -07:00
Ajit Pal Singh
6c6e81c714 qcacld-3.0: Add support for CNSS USB
Adds support in pld_usb.c for registering with CNSS driver.
pld_usb can now register directly with Linux USB stack or with
CNSS driver.
For QCN7605, registration is to be done with CNSS.

Change-Id: Ibf7e51679e1848bcd8e1acfa43c457f42ff40c0b
CRs-Fixed: 2269602
2018-07-11 14:28:41 -07:00
Will Huang
b52446a70e qcacld-3.0: Fix SAP stop fail while detect radar in cac wait state
If radar detected while in SAP CAC wait state, and stop AP command
invoke at same time, SAP machine will go to eSAP_DISCONNECTING but
ignore eSAP_HDD_STOP_INFRA_BSS message in sap_fsm_state_disconnecting()
because is_chan_change_inprogress is not set for this case.

Set is_chan_change_inprogress as case radar detected after cac
wait time.

Change-Id: I156cf8375520eeb258d5cde53bd13e80881a36a3
CRs-Fixed: 2273169
2018-07-11 14:28:38 -07:00
Will Huang
ba035ec953 qcacld-3.0: Fix deadlock of rmmod and wlan start module
On cnss2 platform, the cnss callbacks in wlan driver are called with
serialization, and in wlan driver stop module and start module has
mutex of iface_change_lock, it might hit deadlock if race condition
happen of rmmod and start module, because start module might call
pld_power_on for this case.

Fix by setting unload flag earlier in __hdd_module_exit which in
different context of cnss serialized work queue, it prevents new
interface open at this point and wait for external thread complete
after it, it close race window before call wlan_hdd_pld_remove.

Change-Id: I8eb3740701070428c59f1fe3e8d2f439d9173413
CRs-Fixed: 2265691
2018-07-11 14:28:35 -07:00
nshrivas
63c28ba20f Release 5.2.0.88
Release 5.2.0.88

Change-Id: If22a0d0d2496217674288168f17f059baa3b40c7
CRs-Fixed: 774533
2018-07-10 18:41:56 -07:00
Dustin Brown
0ea8d3b85f qcacld-3.0: Add "unit_test" IOCTL
Add a unit test IOCTL for components to hook their unit tests into.

Change-Id: I676394771a35263454bc0f6d13174fbb7d957e67
CRs-Fixed: 2274538
2018-07-10 18:41:55 -07:00
Lin Bai
5dc5495d9a qcacld-3.0: Allocate/Free skb in same function
The skb used for HW-mode-change vendor event will be freed twice
in failure scenario.
To avoid this, just keep the free in same function as allocation.

CRs-Fixed: 2274784
Change-Id: Ibd37bc9787470da6de93c87a16c4c3bed7d1f78e
2018-07-10 18:41:52 -07:00
Jeff Johnson
7b3c98f329 qcacld-3.0: Clean up the wlan_hdd_power API
Clean up issues identified in wlan_hdd_power.h:
- Make sure all APIs have documentation
- Make sure all APIs adhere to the coding standard

Change-Id: I955b2eaec5f583d8d558df1dac7708b7b455e089
CRs-Fixed: 2275266
2018-07-10 18:41:49 -07:00
bings
6fb9bf69d3 qcacld-3.0: Check txrx_vdev before calling cdp_fc_vdev_flush
When txrx_vdev is NULL, zero address access happens if cdp_fc_vdev_flush
is called.

Before calling cdp_fc_vdev_flush, make sure txrx_vdev is not NULL.

Change-Id: I13b52bd3f2fb5e7db6150c8bf645c5bec703bc2b
CRs-Fixed: 2272005
2018-07-10 18:41:45 -07:00
Krunal Soni
d90ed4ea85 qcacld-3.0: Fix peer ref-count while deleting peer as part of LFR3
There are two instances where peer ref counting leak has been observed
1) When DUT-STA is connected to AP1 and if it tries to roam to AP2 or
   to same AP1 then as part of roam sync indication, it needs to delete
   the old peer and create the new peer. Deletion of old peer is
   happening through force delete operation which is No-OP for some of
   the platforms. In such cases, do normal peer delete operation, so
   that peer ref count can be deleted properly.

CRs-Fixed: 2270761
Change-Id: Ibcad72943258e531e29498961d3d7e692fd05b36
2018-07-10 18:41:42 -07:00
Lin Bai
772fbaf169 qcacld-3.0: NULL pointer dereferenced when starting 11ax SAP
BSS Desc pointer will be NULL when starting SAP, in function
csr_roam_issue_start_bss(). And it is causing NULL pointer
dereference when get bss channel number from BSS Desc.

Get channel number from csr_roamstart_bssparams instead.

CRs-Fixed: 2272749
Change-Id: Idf4eeb21f1298db03a030af72bf9f0a530ba3e68
2018-07-10 18:41:39 -07:00
nshrivas
d83af03643 Release 5.2.0.87Z
Release 5.2.0.87Z

Change-Id: I04662b69afec1321eeb533ac94ceb8aadf0a9373
CRs-Fixed: 774533
2018-07-10 15:39:59 -07:00
Sravan Kumar Kairam
1f8f8b320e qcacld-3.0: Add IPA TX complete nbuf call back function
For IPA MCC SW TX path add IPA TX complete nbuf call back which
frees the IPA TX descriptor after TX completion.

Change-Id: Ic7baae3db11c6ae92daa722b30fa7028481c0f93
CRs-Fixed: 2240220
2018-07-10 15:39:58 -07:00
nshrivas
588c3029fb Release 5.2.0.87Y
Release 5.2.0.87Y

Change-Id: I25c4155b14f46a404863333da00137f18a635263
CRs-Fixed: 774533
2018-07-10 14:06:37 -07:00
Jeff Johnson
fb0857d3b5 qcacld-3.0: Clean up the wlan_hdd_softap_tx_rx API
Clean up issues identified in wlan_hdd_softap_tx_rx.h:
- Make sure all APIs have documentation
- Make sure only public APIs are present
- Make sure API identifiers do not use camelCase
- Remove obsolete API hdd_softap_rx_mul_packet_cbk()

Change-Id: Icacd2c7b1358cd6f71d86dc5d8a966973ff7a110
CRs-Fixed: 2275265
2018-07-10 14:06:37 -07:00
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