Commit Graph

11736 Commits

Author SHA1 Message Date
nshrivas
f7d3e88fa8 Release 5.2.0.95D
Release 5.2.0.95D

Change-Id: Ib8367eb8e988d375eeedf1f4b7c5acaa44f0bc0a
CRs-Fixed: 774533
2018-09-05 05:08:54 -07:00
hqu
bf1b618ba7 qcacld-3.0: Add process for userspace does not set avoid channel list
In platforms that support dual wifi instances, userspace doesn't
set avoid frequency channel list with command
QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY to trigger restart sap
process, but current handling is always to check avoid channel list
which is set by userspace so it will be failed for lte coex case.

Fix is to add process for userspace doesn't set avoid channel list.

Change-Id: Icc3356191411791f4cec9fd89e4490359cf6f1fc
CRs-Fixed: 2294109
2018-09-05 05:08:54 -07:00
Will Huang
6ab242c917 qcacld-3.0: Fix possible roam_synch_frame_event handler OOB
The length attributes for all message frames are retrieved from
param_buf->fixed_param rather than using the correct TLV length values.
This can result in multiple buffer overreads due to the fact that the
param_buf->fixed_param lengths are never properly checked against the
original TLV buffer.

Add check param_buf->fixed_param lengths against the TLV buffer to
prevent OOB happen.

Change-Id: Ib6e2c847b9a2cc7bfe1233eb1f8214be75f21850
CRs-Fixed: 2304631
2018-09-05 05:08:51 -07:00
Jianmin Zhu
aac14e0ac6 qcacld-3.0: Remove useless legacy roam reason eCsrLostLink1/2/3
1. Remove eCsrLostLink1/2/3 from csr_roam_reason.
2. Remove eCsrLostLink1/2/3 from csr_get_roam_cmd_type.
3. Remove csr_set_abort_roaming_command
4. Remove CSR_IS_ROAMING_COMMAND

Change-Id: Ibcc5dc63739b2764301f5a35a2110d570bc3928e
CRs-Fixed: 2308267
2018-09-05 05:08:47 -07:00
Jianmin Zhu
1ad0dadd83 qcacld-3.0: Remove useless legacy roam reason eSmeIssuedIbssJoinFailure
Remove all eSmeIssuedIbssJoinFailure relative code in disasssoc
and roam result handler.

Change-Id: Ia204fa331ec6f5de1ff52b8c2d2907d10f0d1ee4
CRs-Fixed: 2308522
2018-09-05 05:08:44 -07:00
Rajeev Kumar
75fc36eda0 qcacld-3.0: Free apf memory when interpreter is enabled
Dynamically allocated apf buffer memory is not freed in error case
when interpreter is enabled and leading to memory leak. Free APF
buffer memory in case APF interpreter is enabled to avoid memory
leak.

Change-Id: I012bf80eb6db7b986f812161b48f96b0965c0542
CRs-Fixed: 2308702
2018-09-05 05:08:41 -07:00
Rajeev Kumar Sirasanagandla
e3b599151d qcacld-3.0: Add support to store vdev object in PE session
Add support to store vdev object in PE session and acquire/release its
reference count during PE create/delete session respectively.

Change-Id: I476798c4c42992dec2a2648319780b206274e8c4
CRs-Fixed: 2306387
2018-09-05 05:08:37 -07:00
nshrivas
1119590a5f Release 5.2.0.95C
Release 5.2.0.95C

Change-Id: I2a40452a8b862a7ed940e1a5f8c0821bf0ad5a2a
CRs-Fixed: 774533
2018-09-05 00:17:53 -07:00
Rachit Kankane
ee1735c905 qcacld-3.0: Featurize RMC
Featurize RMC and disable for Genoa

Change-Id: I66b17622c89dd5736f152c4cd9506ce2706b4604
CRs-Fixed: 2304269
2018-09-05 00:17:52 -07:00
Rachit Kankane
39967f0e36 qcacld-3.0: allocate static variables dynamically
We have some local variables allocated statically in LIM.
To reduce data segment size, allocate these variables dynamically
and then free.

Change-Id: I9ab6a180a89342ebace6f92336bfe30a498f5848
CRs-Fixed: 2307644
2018-09-05 00:17:49 -07:00
Rachit Kankane
f6834c4b4c qcacld-3.0: Featurize Dynamic Voltage Config
Host provides INI way to control voltage configs, featurizing the
same for Genoa.

Change-Id: Ia58d84eb2e2a67ead189a51d2a0b98230513f8f9
CRs-Fixed: 2304125
2018-09-05 00:17:45 -07:00
nshrivas
f8273c3d02 Release 5.2.0.95B
Release 5.2.0.95B

Change-Id: I8f1da368837999244971dc4dba518931f391b92b
CRs-Fixed: 774533
2018-09-04 21:15:08 -07:00
Alok Kumar
81e1d73e68 qcacld-3.0: Reset NUD tracking status during hdd_start_adapter
NUD tracking is disabled in hdd_stop_adapter which needs to be
enabled back in hdd_start_adapter.

Enable the NUD tracking by setting NUD tracking status to false.

Change-Id: I606653d553d6282cfdb6e52a9bf5bc1100732375
CRs-Fixed: 2308351
2018-09-04 21:15:06 -07:00
Ashish Kumar Dhanotiya
8d039c8829 qcacld-3.0: Add mtrace logging for scan request
We are transitioning to new logging infrastructure
by using existing mtrace functionality.
Add new logging for complete scan request and response path.

Change-Id: Iab48b0f2a6ab9d0ec14e3110eb628b6d1731df53
CRs-Fixed: 2308237
2018-09-04 21:15:01 -07:00
nshrivas
e271e0e73d Release 5.2.0.95A
Release 5.2.0.95A

Change-Id: I53e66917a7bf434a705d26c0be37ab2450e9a2fc
CRs-Fixed: 774533
2018-09-04 15:27:37 -07:00
Dustin Brown
06fed35874 qcacld-3.0: Validate link layer stats adapter
__wlan_hdd_open_ll_stats_debugfs() currently does not ensure the given
adapter is up. This can lead to sending an invalid vdev Id to firmware.
Ensure the given adapter is up before sending the link layer stats
request to firmware.

Change-Id: I1c81f56ec795bc782404293c0f4abd8bbeb6b124
CRs-Fixed: 2306604
2018-09-04 15:27:37 -07:00
nshrivas
95cbbe524f Release 5.2.0.95
Release 5.2.0.95

Change-Id: I796cc86ab7687b61390a3bf2991478e4d5beffef
CRs-Fixed: 774533
2018-09-04 13:45:49 -07:00
Rachit Kankane
0cf4d4feb1 qcacld-3.0: Featurize WLAN_FEATURE_PACKET_FILTERING
Featurize packet filter properly, as this feature was partially featurized.

Change-Id: Ib4b0e94ab2b9847f824220e2cd4efc2cee6fae8d
CRs-Fixed: 2304233
2018-09-04 13:45:49 -07:00
nshrivas
e25209539c Release 5.2.0.94Z
Release 5.2.0.94Z

Change-Id: I5755eae89ae15c112c87d06a397640d736643c0e
CRs-Fixed: 774533
2018-09-04 11:53:30 -07:00
Venkata Sharath Chandra Manchala
c06175de57 qcacld-3.0: Remove HAL files from compilation
1. Remove hal_rx.c from compiling as the API's are
   now mapped target specific.
2. Remove hal_wbm.c from compiling as it is renamed
   as hal_wbm.h and included as part of header files.

Change-Id: I5316014fdc35b2b22a11fd8ba9197508fbf23003
CRs-Fixed: 2305011
2018-09-04 11:53:29 -07:00
nshrivas
6a77430d0c Release 5.2.0.94Y
Release 5.2.0.94Y

Change-Id: I3172a4b876df55c5bbfdb534ac48bd2870a3b342
CRs-Fixed: 774533
2018-09-03 12:59:43 -07:00
Rajeev Kumar
c27efb6fd1 qcacld-3.0: Stop bus bandwidth compute timer during SSR shutdown
Stop bus bandwidth compute timer during SSR shutdown such that
bus bandwidth timer is stopped and bus bandwidth compute work is
flushed cleanly in all the cases.

Change-Id: Ie79ddd1ab13b852fb5d23029c51f05e921f72989
CRs-Fixed: 2307304
2018-09-03 12:59:42 -07:00
nshrivas
a4b5574221 Release 5.2.0.94X
Release 5.2.0.94X

Change-Id: I6d0cc67b02674a2c41fb461f71a111d0e532af05
CRs-Fixed: 774533
2018-09-03 06:48:36 -07:00
Yeshwanth Sriram Guntuka
cbe6144d29 qcacld-3.0: Reduce log level for few prints to debug
Change log level for few messages from info/warn/err
to debug.

Change-Id: I2fd3df21d70326301b39b91efdf827d6b391f4e3
CRs-Fixed: 2301924
2018-09-03 06:48:36 -07:00
Vignesh Viswanathan
7813a3d4e0 qcacld-3.0: Set the minsize of SuppChannels IE to 2
qcacld-2.0 to qcacld-3.0 propagation.

Some stations send association request with zero length of SuppChannels
IE then currently dot11f decodes it to an invalid value.

To fix this, set the minsize of SuppChannels IE to 2.

Change-Id: If44807d2f2b8a62e5a137ca3d17af2e2654f72f2
CRs-Fixed: 2303702
2018-09-03 06:48:32 -07:00
nshrivas
c80030d3d8 Release 5.2.0.94W
Release 5.2.0.94W

Change-Id: Iac390198f43cbc5c59ff0e06c357d0b9766475c6
CRs-Fixed: 774533
2018-09-03 03:29:35 -07:00
Arunk Khandavalli
40943af150 qcacld-3.0: Send the lpass scan interface for station interface
Presently the lpass information is sent during the wlan startup
at that point session for the station interface is not created.

Send the lpass scan interface notifcation for station when the
interface up/down is received.

Change-Id: I50a68acc62a76f9e65e1758cd3b21688c0dd3500
CRs-Fixed: 2048439
2018-09-03 03:29:35 -07:00
nshrivas
ea69622ee1 Release 5.2.0.94V
Release 5.2.0.94V

Change-Id: Id1ee6af4913a23e8d630256040792f25999f04de
CRs-Fixed: 774533
2018-09-03 00:22:08 -07:00
Nirav Shah
5c083da176 qcacld-3.0: Remove hardcoded print message for ini parameters
Remove hardcoded print message for ini parameters during
insmod and use hdd_cfg_get_global_config to print ini
parameters.

Change-Id: I3ac077818e99c461866211e220232fa6c0e3e00d
CRs-Fixed: 2278888
2018-09-03 00:22:07 -07:00
nshrivas
1c0a07025e Release 5.2.0.94U
Release 5.2.0.94U

Change-Id: Ica8a18af956fd536d60543ee1b963d1913873f49
CRs-Fixed: 774533
2018-09-02 14:33:23 -07:00
Mohit Khanna
13ea524aa3 qcacld-3.0: Donot de-init DP RX threads if not inited
In one of the tests, when the driver switches to FTM mode, DP RX threads
are not initialized as the necessary configuration is not passed down
from CDS. However, cds_dp_close tries to de-initialize the threads and a
spinlock un-initialized error is seen.

Donot de-initialize the DP RX thread module if it is not initialized.

Change-Id: I14a1dcb678c9d953abd3262e86408d12f4eb2617
CRs-Fixed: 2301398
2018-09-02 14:33:23 -07:00
nshrivas
1e0213ab58 Release 5.2.0.94T
Release 5.2.0.94T

Change-Id: Ie60d32ffdd6ce803f4a9ea73b99551e80b8d24db
CRs-Fixed: 774533
2018-09-01 19:19:26 -07:00
Dustin Brown
20f9fc4f4d qcacld-3.0: Use enums for hdd bit flags
Hdd has two sets of bitmap flags which are using #define's. It so
happens that two of the flags use the same bit offset. To address this,
and ensure no such issues arise in the future, convert these into
auto-incrementing enumerations.

Change-Id: I8f0e9d0f3a0a493176227ccf16f25d0a4c5bdc73
CRs-Fixed: 2307446
2018-09-01 19:19:26 -07:00
nshrivas
3c94ecf30c Release 5.2.0.94S
Release 5.2.0.94S

Change-Id: Id4d75bc374ece618bfa789c590614e937a79400f
CRs-Fixed: 774533
2018-09-01 01:42:29 -07:00
Manjunathappa Prakash
1253c3d270 qcacld-3.0: peer_handling: Add more debug_ids to narrow down
Fix and add debug_ids iappropriately account for function holding the peer
reference. This will help to further narrow down the peer leak.
Also add signatures in ref_release functions to catch error path.

Change-Id: I7f091ca8270ba724e24550e80208739d63d57b22
CRs-Fixed: 2293477
2018-09-01 01:42:29 -07:00
Amar Singhal
f989879feb qcacld-3.0: Log country while doing ACS
Log the current country while executing ACS logic. Current country
helps in knowing the current channel list.

Change-Id: I05a0982d940da19f178f0432372eead0313e77be
CRs-Fixed: 2296561
2018-09-01 01:42:26 -07:00
nshrivas
feab00087b Release 5.2.0.94R
Release 5.2.0.94R

Change-Id: I128eeadb6f68b74b205609e1502ebcdc6d66913c
CRs-Fixed: 774533
2018-09-01 00:05:18 -07:00
Amar Singhal
6ee3f24bb7 qcacld-3.0: Reduce logging level while processing beacon
Channel bonding mode can be disabled when connection happens. So reduce the
log level and rate for this log.

CRs-Fixed: 2298986
Change-Id: I47ab8111613292781bddca435f9800544b1e6d58
2018-09-01 00:05:18 -07:00
nshrivas
8fdfdebd47 Release 5.2.0.94Q
Release 5.2.0.94Q

Change-Id: I83ec498fefeaac2261f571fd4f5901b276a684f3
CRs-Fixed: 774533
2018-08-31 14:49:19 -07:00
Pragaspathi Thilagaraj
96aff7736b qcacld-3.0: Fix possible OOB in wma_pdev_div_info_evt_handler
In the function wma_pdev_div_info_evt_handler, while handling
WMI_PDEV_DIV_RSSI_ANTID_EVENTID  event, the corresponding event
handler wma_pdev_div_info_evt_handler is invoked. In  the
function wma_pdev_div_info_evt_handler, event_buf argument comes
directly from firmware and event parameter is pulled from event
buf. The event->num_chains_valid is used as the maximum bound on
the array index of chain_rssi[] array which has a maximum limit
of CHAIN_MAX_NUM(8). When event->num_chains_valid has a value
greater than this maximum limit, OOB write could occur.

Add check to validate the event->num_chains_valid against
CHAIN_MAX_NUM(8) and return failure if it exceeds.

Change-Id: I40f1aa8a7b4bcffef3cab588c78c700e88e24673
CRs-Fixed: 2304662
2018-08-31 14:49:18 -07:00
Vignesh Viswanathan
7818250f0f qcacld-3.0: Fix camel case names in mlme_ht_capabilities_info structure
Rename camel case names of members of mlme_ht_capabilities_info
structure.

Change-Id: I576ad77c4744c240537d540f1efaab0e7d9cb109
CRs-Fixed: 2293859
2018-08-31 14:49:14 -07:00
nshrivas
eb28eced14 Release 5.2.0.94P
Release 5.2.0.94P

Change-Id: If0881f8ac8d976d9a9e24b445c9d5de5ab1e56c1
CRs-Fixed: 774533
2018-08-31 13:08:27 -07:00
Krunal Soni
b39a0289b1 qcacld-3.0: Read listen interval offload support bit with new method
Current driver reads WMI_SERVICE_LISTEN_INTERVAL_OFFLOAD_SUPPORT BIT
through WMI_SERVICE_EXT_IS_ENABLED macro which is deprecated.

Update it by reading wmi_service_listen_interval_offload_support through
wmi_service_enabled() API.

CRs-Fixed: 2305522
Change-Id: I1d6aedec31d035a3e9c2514ad6dc2b13b79dfff3
2018-08-31 13:08:27 -07:00
Dustin Brown
1faac91278 qcacld-3.0: Clear pending flag in hdd_destroy_acs_timer()
hdd_create_acs_timer() sets VENDOR_ACS_RESPONSE_PENDING, but
hdd_destroy_acs_timer() does not ensure this flag is cleared. This can
lead to a situation where the ACS timer is not initialized, but parts of
the code incorrectly assume that it is. Clear
VENDOR_ACS_RESPONSE_PENDING in hdd_destroy_acs_timer() to prevent
invalid access to the ACS timer.

Change-Id: I7c367b20e279fadc5ee329d94b7475711796b185
CRs-Fixed: 2305719
2018-08-31 13:08:24 -07:00
Alok Kumar
5a75b9d348 qcacld-3.0: Revert "Do not enable the pktlog when interface is up"
By default pktlog needs to be enabled during driver load.
To enable/disable pktlog use INI parameter.

This reverts Change-Id: Ie03a7e0a77bc5f525ad7ae74bb104a6d1bf21eb7

Change-Id: I8f74b4bcebfb8b4a35a29e321b2b6bd5e1920bf7
CRs-Fixed: 2296335
2018-08-31 13:08:20 -07:00
nshrivas
8987b4bbde Release 5.2.0.94O
Release 5.2.0.94O

Change-Id: I98ab19b399d79c1a8cecd2c08f39395747106d94
CRs-Fixed: 774533
2018-08-31 11:17:18 -07:00
Amar Singhal
0fcce7d7a3 qcacld-3.0: Add INI to enable 11d in world mode
In WORLD mode, there can be urgency to discover the current country
since WORLD mode restricts the channel and TX power availability.Add
INI enable_11d_in_world_mode to automatically enable 11d in WORLD
mode. This INI supersedes the setting in 11d INI variable
Is11dSupportEnabled.

CRs-Fixed: 2289349
Change-Id: I7b289cdb60be5e737f41f9de5a478f32a234e717
2018-08-31 11:17:18 -07:00
nshrivas
9b3701c8a3 Release 5.2.0.94N
Release 5.2.0.94N

Change-Id: I0e8b8900ee06faad0d913cd4693aa5ce5720b5d2
CRs-Fixed: 774533
2018-08-31 02:33:15 -07:00
Karthik Kantamneni
22dd0f69cb qcacld-3.0: Add MLME CFG items of rates [PART 1]
Add MLME CFG items of rates

Change-Id: I9f52f2ef0eef4698ddc13c55dd56d938a6e4c677
2018-08-31 02:33:14 -07:00
nshrivas
1db505d181 Release 5.2.0.94M
Release 5.2.0.94M

Change-Id: I014733cabbf5fbb8d3e4082e5b2f997fc8ad8640
CRs-Fixed: 774533
2018-08-30 23:21:51 -07:00