Wykres commitów

3647 Commity

Autor SHA1 Wiadomość Data
Kabilan Kannan
4a6b5e745c qcacld-3.0: Set valid min value for gTDLSPrefOffChanBandwidth
This is a qcacld-2.0 to qcacld-3.0 propagation.

Currently the min value of gTDLSPrefOffChanBandwidth
is set to zero which is invalid, min value should be
1 (zeroth bit set) for 20MHz.

Change-Id: Ibc2da1c2cca7e704b21686ab795224462dd9f913
CRs-Fixed: 2004116
2017-02-09 15:50:35 -08:00
Kabilan Kannan
05da368631 qcacld-3.0: Fix TDLS connection tracker restart problem
In some scenarios TDLS connection tracker is not
enabled correctly, When the system comes out of
concurrency. Due to this TDLS connection problem
observed in some corner cases.
Enable TDLS connection tracker exclusively, when
TDLS reenabled in the system.

Change-Id: Ibabcb8887708bd3bde3d7a9819d5bcc4ebda47bf
CRs-Fixed: 2003045
2017-02-09 15:50:33 -08:00
Jeff Johnson
441e1f7a58 qcacld-3.0: Add framework to deprecate Wireless Extensions
Although the wlan driver currently utilizes nl80211/cfg80211 as its
primary configuration interface, it still contains support for the
legacy wireless extensions ioctl interface. This interface, however,
is not being maintained and at some point in the future it should be
removed. But before it can be removed all applications which depend
upon this interface must be converted to use other supported
interfaces such as nl80211. To aid in this effort add a framework for
detecting and logging when wireless extensions ioctls are being used.

Change-Id: Ib2f3b64f74e673f3857f14ae12ff372a9f60de8d
CRs-Fixed: 2004194
2017-02-09 15:50:31 -08:00
Jeff Johnson
5b907621fa qcacld-3.0: Consolidate SIOCGIWRTS and SIOCGIWFRAG ioctls
Currently for both SIOCGIWRTS and SIOCGIWFRAG there are two separate
but identical handlers, one for STA-like interfaces and one for
SAP-like interfaces. For each ioctl consolidate the code into a single
handler. This is a prerequisite for further ioctl cleanup.

Change-Id: I4d4f288198bed2124ec96cf3ca1929e89705d4de
CRs-Fixed: 2004191
2017-02-09 15:50:30 -08:00
Jeff Johnson
f25ac10144 qcacld-3.0: Fix bad return status from __iw_get_bitrate()
There are currently several error paths in __iw_get_bitrate() which
incorrectly return internal status enumerations instead of returning
negative errno values. Fix these paths to correctly return negative
errno values.

Change-Id: I42254dbe1b362fb42b87418419b97ccbabfac355
CRs-Fixed: 2004190
2017-02-09 15:50:28 -08:00
Jeff Johnson
8e9edc8f6b qcacld-3.0: Fix QDF_STATUS misuse in __iw_softap_stopbss()
Currently __iw_softap_stopbss() uses a variable of type QDF_STATUS to
hold a potentially negative errno value. Since errno values do not
adhere to the QDF_STATUS enumerations, use an int variable for the
value. In addition appropriately convert QDF_STATUS to errno values
when returning status to userspace.

Change-Id: I105c6db4287384802b2f86d35fa5251954ea051d
CRs-Fixed: 2004188
2017-02-09 15:50:27 -08:00
Jeff Johnson
34746020bb qcacld-3.0: Remove obsolete collectedAuthType
The struct hdd_wext_state_s currently contains the field
collectedAuthType. This field is currently written, but is
never read, and hence it is useless, so remove all traces of it.

Change-Id: Ica2fc7a54cc92c8d4394cdcdd9470f624f705848
CRs-Fixed: 2004184
2017-02-09 15:50:25 -08:00
Jeff Johnson
957bc27daa qcacld-3.0: Change hdd_open_interfaces() to return errno
Desk review of hdd_wlan_startup() revealed improper use of the adapter
returned by hdd_open_interfaces() since in the failure case multiple
calls will be made to hdd_debugfs_exit() for that returned adapter.

Further review revealed the fact that having hdd_open_interfaces()
return an adapter is illogical since hdd_open_interfaces() can
legitimately open multiple interfaces, and hence the return value
should simply indicate whether all required interfaces were opened or
not. So update hdd_open_interfaces() to return errno instead of an
adapter.

Change-Id: I71117c32f053dad97a5c4bcaef33af27a903f511
CRs-Fixed: 2001662
2017-02-09 15:50:23 -08:00
Jeff Johnson
46bde3845d qcacld-3.0: Fix rtnl_lock usage in HDD startup failure path
Currently in the error-handling path of hdd_wlan_startup() there are
two issues with respect to the rtnl_lock:
1) hdd_close_all_adapters() may be called with the rtnl_lock parameter
   set to false even though the rtnl_lock is being held.
2) the function could possibly take the rtnl_lock and never release it.

Fix these issues in hdd_wlan_startup().

Change-Id: Iaa69d540dd7663355ceb66f6bc8ba0e5dd8c228e
CRs-Fixed: 2001611
2017-02-09 15:50:22 -08:00
Jeff Johnson
b90ab57f0c qcacld-3.0: Fix Kbuild path for wma_ocb.o
When CONFIG_WLAN_FEATURE_DSRC is enabled the resulting build fails
because there is no rule to make wma_ocb.o. The issue is that there is
a typo in the rule, so fix the rule.

Change-Id: I1b724736fcac175b9bf83e4a98878e1333a54b57
CRs-Fixed: 2002874
2017-02-09 15:50:20 -08:00
Jeff Johnson
21a4b17000 qcacld-3.0: Fix -Wmissing-prototypes in wma_ocb.c
When CONFIG_WLAN_FEATURE_DSRC is enabled the resulting build fails due
to -Wmissing-prototypes warnings in wma_ocb.c. Fix these warnings by
making the OCB response event handlers static.

Change-Id: I041ff4ebce7c5c8f99c7567fec913b9adf3e53e9
CRs-Fixed: 2002870
2017-02-09 15:50:18 -08:00
Sameer Thalappil
ec2e9c7553 qcacld-3.0: Add NULL check in cds_trigger_recovery()
Add a NULL check before de-referencing CDF context pointer.

CRs-Fixed: 2004243
Change-Id: I0aa644d9ad2d154526ee015e57e9132c26c5fd91
2017-02-09 15:50:17 -08:00
qcabuildsw
8cc533f285 Release 5.2.0.9N
Release 5.2.0.9N

Change-Id: I447fe7becd1a8cc807dee614fafb54bac7534548
CRs-Fixed: 688141
2017-02-09 13:46:47 -08:00
Himanshu Agarwal
cf9ecfafab qcacld-3.0: Use functions directly for cloning instead of a func. pointer
Use functions directly for cloning instead of a func. pointer as
qdf_nbuf_clone API has different signature when MEMORY_DEBUG is
enabled and when it is not.

Change-Id: I95fa6e7b2789dd97c0c500d0854210240feaac17
CRs-Fixed: 1114632
2017-02-09 13:46:46 -08:00
qcabuildsw
b05134acc4 Release 5.2.0.9M
Release 5.2.0.9M

Change-Id: Id4666f0bc3d6a39fc32db143f155438ce71a6b0b
CRs-Fixed: 688141
2017-02-08 22:25:32 -08:00
Mukul Sharma
c3e7a78d8f qcacld-3.0: Add target_if support for components
Add target_if support for components.

Change-Id: I5110460afff7c4f5797b3441719dddf9a37c8a50
CRs-Fixed: 2001969
2017-02-08 22:25:31 -08:00
qcabuildsw
fe0dc7b028 Release 5.2.0.9L
Release 5.2.0.9L

Change-Id: I37e81cc3dbc6336893c5ed49ae54c7914242744b
CRs-Fixed: 688141
2017-02-08 19:31:37 -08:00
Peng Xu
acfdda1b97 qcacld-3.0: Add maximum number of CSA counters in wiphy
Add maximum number of CSA counters in wiphy structure in order to
support channel switch command issued from supplicant CLI. By
default this value is set to 1, however supplicant assumes that
the counter is 2.

Change-Id: Idb9491585763f5e97efff1a5dd29d094d4553fd4
CRs-fixed: 2003465
2017-02-08 19:31:35 -08:00
qcabuildsw
af98af7364 Release 5.2.0.9K
Release 5.2.0.9K

Change-Id: I12987e60fef15e9a16ff3f371126fc52c119db32
CRs-Fixed: 688141
2017-02-08 08:09:59 -08:00
Nitesh Shah
960766f08e qcacld-3.0: Remove duplication of code in wlan_hdd_tdls_exit()
The propagation of the Change-ID
I52c3e7b67c7f61160c54a1a6688db09f0137b7e1 has introduced
duplication of the code in the function wlan_hdd_tdls_exit().

The change is to remove the duplicate code from this function.

Change-Id: I50119396a98206b60c3d39f245a9fdf96fc0b695
CRs-Fixed: 2002676
2017-02-08 08:09:58 -08:00
qcabuildsw
8131859c9f Release 5.2.0.9J
Release 5.2.0.9J

Change-Id: I4bd752786e4411d7e1c7110f8448215d85feb8ed
CRs-Fixed: 688141
2017-02-08 04:43:45 -08:00
Mukul Sharma
cc1f3f9ffd qcacld-3.0: Add WMI reference in PSOC and PSoc reference in WMI
Add WMI reference in PSOC and PSoc reference in WMI.

Change-Id: Ib5bb685039162fe84bac8ed6c98f848f8c7460b7
CRs-Fixed: 2002028
2017-02-08 04:43:43 -08:00
qcabuildsw
3f35691337 Release 5.2.0.9I
Release 5.2.0.9I

Change-Id: I48f01b507a4639ea6b424a5d3038abb137c6ccdc
CRs-Fixed: 688141
2017-02-07 22:35:10 -08:00
Dustin Brown
3d75fbb77e qcacld-3.0: Ignore suspend timeout during module (un)load
During suspend, the host driver asserts if the firmware does not
respond in a set amount of time. Avoid this assert if the driver
is loading or unloading when the suspend operation times out.

Change-Id: I38ff8663e29bcf1a373c1b91c8c358e2b037577d
CRs-Fixed: 2003478
2017-02-07 22:35:08 -08:00
qcabuildsw
14fd0940a8 Release 5.2.0.9H
Release 5.2.0.9H

Change-Id: I6c0f0f2783a4473cb67a04537e80acdaf73090d2
CRs-Fixed: 688141
2017-02-07 17:40:41 -08:00
Nitesh Shah
b75789dd2e qcacld-3.0: Protect ROC ctx with mutex lock during ROC callback
Multiple functions running in different thread context can access
the ROC context or alter its elements, after the roc context is
freed or its elements are altered by other functions which can
lead to crash or some other issues.

To address this, protect ROC context and its elements with mutex.
The possible scenarios addressed are during roc callback, roc
timeout and cancel roc.

Change-Id: I2c79216f71c720cd4b555061e8a69adab50dda5e
CRs-Fixed: 2002644
2017-02-07 17:40:40 -08:00
qcabuildsw
93d0611c50 Release 5.2.0.9G
Release 5.2.0.9G

Change-Id: Ic951f71cb67b13bd0ee7deb2186a127da0a401db
CRs-Fixed: 688141
2017-02-07 15:02:35 -08:00
Krunal Soni
e3399904cc qcacld-3.0: Deregister legacy & target queue callbacks upon scheduler down
Driver is missing couple of deregister handler while bringing down the
scheduler

Change-Id: I8fc181e621d56290623419bfc0fde896522e91e4
CRs-Fixed: 2001133
2017-02-07 15:02:34 -08:00
qcabuildsw
6dc8cedbb3 Release 5.2.0.9F
Release 5.2.0.9F

Change-Id: Ic63334a8d5883ada3462d55a2ab39a54c294c39e
CRs-Fixed: 688141
2017-02-07 10:57:57 -08:00
Mukul Sharma
5678be4c02 qcacld-3.0: Set peer state to associate state after connection
Currently in STA mode, host do not change the peer state to
associate state after successful connection. Hence other
components always find peer state as not associate.

As a part of this fix, move peer state to associate state.

Change-Id: Idf85e7f7b916c8c8ee19b117deb14696de8216e5
CRs-Fixed: 1115161
2017-02-07 10:57:56 -08:00
qcabuildsw
8a605d28b6 Release 5.2.0.9E
Release 5.2.0.9E

Change-Id: I71a04b90126c238956febf63aa3b2dea7a5f819d
CRs-Fixed: 688141
2017-02-07 02:30:14 -08:00
Selvaraj, Sridhar
0a71e5488d qcacld-3.0: Add INI/IOCTL for template for PowerSave/WOW functionality
Add IOCTL and INI template for PowerSave/WOW for documentation.

Change-Id: Id901feba17053e9f1c8783756d7207a93fc723d7
CRs-Fixed: 1109315
2017-02-07 02:30:13 -08:00
qcabuildsw
319a779260 Release 5.2.0.9D
Release 5.2.0.9D

Change-Id: I6410b43ab736cd42f7f184b29b6dc60fcc7fe846
CRs-Fixed: 688141
2017-02-06 13:46:12 -08:00
Kabilan Kannan
5a5b8640a7 qcacld-3.0: Fix TDLS peer idle timer memory leaks
TDLS peer list is deleted before TDLS exit
called, due to this TDLS peer idle timer
resources are not cleared correctly and
causes memory leak in the system.
Make sure TDLS peer list is deleted only
in TDLS exit function.

Change-Id: I2885d0ff21fa55a0514c68c40a9a15200bc4ed9a
CRs-Fixed: 2002378
2017-02-06 13:46:11 -08:00
qcabuildsw
679a149694 Release 5.2.0.9C
Release 5.2.0.9C

Change-Id: I37fe6480592d85cbce2a3dd85518309390bce3a2
CRs-Fixed: 688141
2017-02-06 05:20:36 -08:00
Ashish Kumar Dhanotiya
f928edf29c qcacld-3.0: Initialize modules for qdf debug framwork
Some modules are not initialized with qdf debug framework.

Initialize the new modules with the qdf debug framwork.

Change-Id: I7ff85da52d2c6c042f81e28c9e7becbc7c0d0713
CRs-Fixed: 2002626
2017-02-06 05:20:35 -08:00
qcabuildsw
8f8d678501 Release 5.2.0.9B
Release 5.2.0.9B

Change-Id: I386f0e67199024468ffe04f2e8716999815ef5f4
CRs-Fixed: 688141
2017-02-06 03:27:13 -08:00
Selvaraj, Sridhar
8fe6c67d2c qcacld-3.0: Logging enhancements to LFR3 Roaming
1) Add enhancements to the existing log prints for lFR3
with respect to host driver code.
2) Fix memory leak in Wma roaming config handler.

Change-Id: If3e26a7f374673a4c7c11862e94f042bcf9d3c58
CRs-Fixed: 1109354
2017-02-06 03:27:09 -08:00
qcabuildsw
a1f87d0ca3 Release 5.2.0.9A
Release 5.2.0.9A

Change-Id: I84a2b67256c74916ae3e21b85393a1d7eb6eeac2
CRs-Fixed: 688141
2017-02-05 22:34:59 -08:00
yeshwanth sriram guntuka
7419da7695 qcacld-3.0: Wait for vdev stop rsp before next connect
qcacld3.0-1.1 to qcacld3.0-2.0 propagation

As part of connect, when Probe resp/beacon from AP is not received,
vdev stop is sent to firmware. PE session is deleted and join rsp
is sent to sme after posting vdev stop command without waiting for
vdev stop response from firmware. SME will try to connect to next
BSS and host sends create peer to firmware. Firmware is not yet
done with vdev stop and panics.

To fix this, add callback function in lim_set_link_state to inform
when vdev stop resp from firmware is received. Upon reception of
this do the PE session clean up and send join resp to SME.

Change-Id: I43665f14736472da8da70b9c87361be769de7fac
CRs-Fixed: 1112551
2017-02-05 22:34:58 -08:00
qcabuildsw
06f6435ee4 Release 5.2.0.9
Release 5.2.0.9

Change-Id: I015f19844cedf58696a5affd161fb9c04694d777
CRs-Fixed: 688141
2017-02-03 23:37:27 -08:00
Himanshu Agarwal
471eaef30a qcacld-3.0: Add support to dump ICMPV6 RS and RA in wow wakeup stats
Propagation from qcacld-2.0 to qcacld-3.0.

Add support to dump information for ICMPV6 RS and RA packets in
wow wakeup stats.

Change-Id: I1a2852189664fff31e29b487d7a8c66ee83931c5
CRs-Fixed: 1115364
2017-02-03 23:37:26 -08:00
Himanshu Agarwal
ee3411a3b4 qcacld-3.0: Dump few bytes of rx packet in DPTRACE
Propagation from qcacld-2.0 to qcacld-3.0.

Add logic to dump first 32 bytes for rx packets
in DPTRACE.

Change-Id: I950108b9d1c9094ce3d285493ee36bda4f9d7e41
CRs-Fixed: 1074551
2017-02-03 23:37:24 -08:00
qcabuildsw
a0a6c25fa3 Release 5.2.0.8Z
Release 5.2.0.8Z

Change-Id: I5ef03f89a9e94df199a61b27a0a8e9cbd6d1b1df
CRs-Fixed: 688141
2017-02-03 22:23:19 -08:00
Dustin Brown
6807c74d09 qcacld-3.0: Reject Stop AP call if module is closed
Under situations where the driver detects wifi capabilities are not
being used, it cleans itself up transparently to the kernel and shuts
down. The kernel has been observed calling the stop AP callback in
these situations, even though no virtual devices are active, which
causes a crash. Gracefully reject the calls into stop AP by the
kernel in such cases.

Change-Id: Ic215b033526125412ebe12c0021c61b20f4c86a1
CRs-Fixed: 2001200
2017-02-03 22:23:18 -08:00
qcabuildsw
962baa021c Release 5.2.0.8Y
Release 5.2.0.8Y

Change-Id: Id72ea790868147b54b9e29d59c13b14c10774267
CRs-Fixed: 688141
2017-02-03 17:14:16 -08:00
Dustin Brown
67f16952a6 qcacld-3.0: Replace IEEE80211_BAND_2GHZ with NL80211_BAND_2GHZ
ieee80211_band has long since been deprecated and is superseded by
nl80211_band. Replace IEEE80211_BAND_2GHZ with NL80211_BAND_2GHZ to
prevent compilation issues against 4.7+ linux kernels.

Change-Id: I6a6fcc7eb88ff040504c8df22e779898a45081ae
CRs-Fixed: 2002311
2017-02-03 17:14:15 -08:00
qcabuildsw
fcb96b0a53 Release 5.2.0.8X
Release 5.2.0.8X

Change-Id: Ie7d952117d78d6691d6e7aa043b8e8f9e38d8a85
CRs-Fixed: 688141
2017-02-03 14:11:57 -08:00
Dustin Brown
860566f5c1 qcacld-3.0: Obsolete setMCBCFilter ioctls, remove clearMCBCFilter
The features exposed by the setMCBCFilter ioctl are exposed via newer,
standard APIs. Strip out setMCBCFilter, and replace it with instructions
for moving to the new APIs. Relatedly, clearMCBCFilter is not needed,
so remove it completely.

Change-Id: I091ca239240ea1b35afe755cfa791b83bcd91409
CRs-Fixed: 2000747
2017-02-03 14:11:55 -08:00
Dustin Brown
43992c232e qcacld-3.0: Remove unused mcast/bcast filter setting
The global HDD context contains mc/bc filter setting fields that
ultimately go unused. Remove these fields and clean up call sites as
appropriate.

Change-Id: I51dcc45d7f2d5ac8a55574b0c6dc0b30458047b8
CRs-Fixed: 1116051
2017-02-03 14:11:53 -08:00