Revīziju grafs

445 Revīzijas

Autors SHA1 Ziņojums Datums
Naveen Rawat
664a7cb3c6 qcacld-3.0: Send beacon frame in wmi_roam_invoke_cmd
Send beacon frame in wmi_roam_invoke_cmd to firmware.
This helps firmware skip scan to connect to requested
BSSID.

Change-Id: I5c6e375309dcb3bdd6430a3d501bade5cfe2e88d
CRs-Fixed: 1116901
2017-02-22 17:46:25 -08:00
Rajeev Kumar
5324d75ee1 qcacld-3.0: Enable active mode power offload feature by default
Enable active mode power offload feature by default for all targets.

Change-Id: Iadfd2da196397196268c9b9f67cf445cbe641e6f
CRs-Fixed: 2006203
2017-02-21 22:33:17 -08:00
Kabilan Kannan
6ca9848fe7 qcacld-3.0: Change TDLS API to provide abstraction to other modules
TDLS timer related API is directly exposed to
other modules, and it induces code portability
and compilation problem.
Change the API implementation and provide only
abstraction to other modules.

Change-Id: I8cec34558366ab500a66d4c9f4d36e042490a6bf
CRs-Fixed: 2006815
2017-02-21 22:33:08 -08:00
Yu Wang
996a2639e6 qcacld-3.0: remove redundant definition for HDD_MOD_EXIT_SSR_MAX_RETRIES
If CONFIG_HL_SUPPORT is enabled, HDD_MOD_EXIT_SSR_MAX_RETRIES
has 2 definitions in one file, one of the value is 75 and the
other is 200, which has conflict and cause compilation error.

Remove the redundant definition of HDD_MOD_EXIT_SSR_MAX_RETRIES

Change-Id: Ib707d8b338c394a173ce7dfcefe9040d630a6d5b
CRs-Fixed: 2004355
2017-02-20 19:09:40 -08:00
yeshwanth sriram guntuka
ba13ea6c88 qcacld-3.0: Remove unused scan ini parameters
Remove unused scan result age count and scan result
aging time ini parameters.

Change-Id: Iae00c053429230706b9d0c9cb5ed8470a9b62812
CRs-Fixed: 2007156
2017-02-20 03:56:44 -08:00
yeshwanth sriram guntuka
bdfe435baf qcacld-3.0: Add INI/IOCTL template for Scan functionality
Add INI and IOCTL template for Scan functionality for
documentation.

Change-Id: I8a12d9f8ae964e84fdad32b96634fbdea51bd739
CRs-Fixed: 1113968
2017-02-20 01:41:42 -08:00
Jeff Johnson
7af334bfc3 qcacld-3.0: Use request manager for OCB
We are transitioning to the new request manager framework. Change all
of the OCB interfaces which currently use the hdd_ocb_ctxt to this
framework. Note that this framework provides the infrastructure to
pass data from the response thread to the request thread and hence
eliminates the need to maintain transient OCB data in the HDD adapter
struct.

Change-Id: I4151221b81cfcaec25bad79da4aa25164c0f83ad
CRs-Fixed: 2005320
2017-02-16 20:32:45 -08:00
Jeff Johnson
cd113fc76a qcacld-3.0: Use request manager for BPF offload
We are transitioning to the new request manager framework. Change
hdd_get_bpf_offload() and hdd_get_bpf_offload_cb() to this framework.

Change-Id: I33f6d50299065c253265e0824e9e3d0483f1a561
CRs-Fixed: 2005314
2017-02-16 20:32:43 -08:00
Jeff Johnson
e50427c7a8 qcacld-3.0: Use request manager for linkspeed
We are transitioning to the new request manager framework. Change
wlan_hdd_get_linkspeed_for_peermac() and hdd_get_link_speed_cb() to
this framework. Note that this framework provides the infrastructure
to pass data from the response thread to the request thread and hence
eliminates the need to maintain tSirLinkSpeedInfo in the HDD adapter
struct.

Change-Id: I27cdbb986b23c4895f7e6e444697994f26bc6ea1
CRs-Fixed: 2005313
2017-02-16 20:32:42 -08:00
Jeff Johnson
c13bdf105a qcacld-3.0: Use request manager for tsm metrics
We are transitioning to the new request manager framework. Change
hdd_get_tsm_stats() and hdd_get_tsm_stats_cb() to this framework. Note
that this framework provides the infrastructure to pass data from the
response thread to the request thread and hence eliminates the need to
maintain temporary tsmStats in the HDD adapter struct.

Change-Id: I341b46650245f9039685781059041d44bcca5b9e
CRs-Fixed: 2005310
2017-02-16 20:32:41 -08:00
Jeff Johnson
52133119f2 qcacld-3.0: Use request manager for power debugfs
We are transitioning to the new request manager framework. Change
__wlan_hdd_read_power_debugfs() and hdd_power_debugstats_cb() to this
framework. Note that this framework provides the infrastructure to
pass data from the response thread to the request thread and hence
eliminates the need to maintain temporary chip_power_stats in the HDD
adapter struct.

Change-Id: I2fe85b0ffb82587a9c5d59cec1803ba96a95b14c
CRs-Fixed: 2005309
2017-02-16 20:32:40 -08:00
Jeff Johnson
253c0c22ad qcacld-3.0: Use request manager for link status
We are transitioning to the new request manager framework. Change
wlan_hdd_get_link_status() and hdd_get_link_status_cb() to this
framework.

Change-Id: I15470bbb9738d78a1e201df9cf12fcb054c7da31
CRs-Fixed: 2005307
2017-02-16 20:32:39 -08:00
Jeff Johnson
0c5a2ba407 qcacld-3.0: Use request manager for temperature
We are transitioning to the new request manager framework. Change
wlan_hdd_get_temperature() and hdd_get_temperature_cb() to this
framework.

Change-Id: I01d0ce6d1f23b3c4bddc69d4ee1498408cb50b6c
CRs-Fixed: 2005306
2017-02-16 20:32:38 -08:00
Jeff Johnson
002cb97a95 qcacld-3.0: Use request manager for SNR
We are transitioning to the new request manager framework. Change
wlan_hdd_get_snr() and hdd_get_snr_cb() to this framework.

Change-Id: Ib7628ee6931450b3b1ee73a0ede6c21ba6427407
CRs-Fixed: 2005305
2017-02-16 20:32:37 -08:00
Jeff Johnson
a544494791 qcacld-3.0: Use request manager for RSSI
We are transitioning to the new request manager framework. Change
wlan_hdd_get_rssi() and hdd_get_rssi_cb() to this framework.

Change-Id: Ib0b74e288ad3dc4588440f0de7cfbebc9f88a49a
CRs-Fixed: 2005304
2017-02-16 20:32:37 -08:00
Agrawal Ashish
e2219bb97b qcacld-3.0: Add INI template for 11AC feature
Add INI template for 11AC feature for documentation.

Change-Id: I6ce302b060360444b9a15d4540612d45cc080b13
CRs-Fixed: 1109628
2017-02-14 04:36:42 -08:00
Kapil Gupta
4f0c0c1c50 qcacld-3.0: Report more information in survey dump
qcacld-2.0 to qcacld-3.0 propagation

Currently host only report connected frequency and noise in
survey dump.
Add changes to report all supported frequencies, active time,
TX time, busy time and noise.

CRs-Fixed: 1061040
Change-Id: I2fa509f53b47d65ba0f4abbc438834b85b9c21f6
2017-02-13 23:01:25 -08:00
Kapil Gupta
8878ad9517 qcacld-3.0: Add support for external auto channel selection
Add changes to enabled driver to use external auto selection
logic instead of current driver based implementation.
In case external application is not present, driver will fall
back to current solution.

Change-Id: Ib7474e82bc7f5878af46c91ea09711775a7c046a
CRs-Fixed: 1110061
2017-02-13 23:01:23 -08:00
Kapil Gupta
94ca6f67f6 qcacld-3.0: Add APIs to validate vendor ACS channel
If channel set is coming from external application, it could be
possible that it doesn't fall into valid channel criteria.

Add APIs to validate the channel.

Change-Id: I1aa855b64c7702418471111d59c92ebaebe8be49
CRs-Fixed: 1110061
2017-02-13 23:01:21 -08:00
Kapil Gupta
086c6206de qcacld-3.0: Add changes to collect channel info from regulatory
Vendor ACS requires regulatory channel info for each channel.

Add changes to collect channel information of each channel
and save it in sap config.

Change-Id: Ib96c3f7ddfc8476306e9a13127472be9dd0a9488
CRs-Fixed: 1110061
2017-02-13 23:01:19 -08:00
Ashish Kumar Dhanotiya
53c2f693ab qcacld-3.0: Add Vendor command for QDF Debug Framework
There is no vendor command support for QDF Debug Framework.

Add vendor command support to dynamically update the trace levels
for modules.

Change-Id: I807365ec035d75372d4ff0f1ea27ba6f7bbff62d
CRs-Fixed: 2003455
2017-02-11 03:40:28 -08:00
wadesong
9b81907d27 qcacld-3.0: Add conditional check for SAP key clearing
qcacld-2.0 to qcacld-3.0 propagation

SAP keys should be retained at HDD layer when wlan driver
performs internal restarting due to MCC to SCC switch

Change-Id: I5458f7602a0e3851d678981e107ef3b5bda17dd7
CRs-Fixed: 1095584
2017-02-10 08:09:57 -08:00
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
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
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
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
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
Nitesh Shah
5651b1e267 qcacld-3.0: Add INI template for DBS feature
Add INI template for gDualMacFeatureDisable for DBS feature
for documentation.

Change-Id: I9418178ebfb90ad4bff09d146897cf08fc205646
CRs-Fixed: 2001559
2017-02-02 23:22:17 -08:00
Dustin Brown
f510887d16 qcacld-3.0: Change keep-alive default to 90s
Currently the default keep-alive interval is 30s. From testing we know
90s works just as well. Change the default keep-alive interval to 90s,
up from 30s, for additional power savings.

Change-Id: If6eda06447a459e2803a4919f46cf1e57c93670f
CRs-Fixed: 2001156
2017-02-02 20:49:15 -08:00
Yuanyuan Liu
7a97b8f838 qcacld-3.0: Add support for setting fw log mode for msm8998
Add support for setting fw log mode for msm8998. Change the log mode
from bool type to tristate to support multiple log modes.

CRs-Fixed: 1115611
Change-Id: I6aef023d1e3cb1b68f1520f800af094f6f6decdb
2017-02-02 12:43:36 -08:00
Sreelakshmi Konamki
13b5ad5054 qcacld-3.0: Add INI template for SAP-MLME
Add INI template for SAP-MLME for documentation

Change-Id: I102712b37bee7cbf26b54f0af481a57cd6ed5ee2
CRs-Fixed: 1117200
2017-01-31 18:00:29 -08:00
Dustin Brown
e94495c41d qcacld-3.0: Remove dead sme_configure_rxp_filter()
sme_configure_rxp_filter() sends a WMA message type that isn't being
handled, effectively making it dead code. Remove
sme_configure_rxp_filter and cleanup calling contexts as necessary.

Change-Id: I04190111e1c714cf93b42c9f17ea4d80049ee98d
CRs-Fixed: 1114226
2017-01-31 11:20:37 -08:00
Mahesh Kumar Kalikot Veetil
3bafd9a2ab qcacld-3.0: Featurize debugfs support in HDD
Protect debugfs code with WLAN_DEBUGFS feature flag. This enables to
compile out the feature for external builds. Also add a dependency to
Linux kernel debugfs feature.

Change-Id: I1b09c18a8eadc7a9b90fb6535e39b8c4b5a25ab9
CRs-Fixed: 1083744
2017-01-30 16:06:08 -08:00
Nitesh Shah
d1266d7e62 qcacld-3.0: Initialize tdls global context variables after SSR
After SSR is done all the tdls global context variables are
not initialized in wlan_hdd_tdls_init() that can create
problem in TDLS.

Fix is to initialize tdls global context variables after SSR.

Change-Id: I6e777d4d61876ea85300e587c5d720e89bad3431
CRs-Fixed: 1116756
2017-01-29 22:24:14 -08:00
Padma, Santhosh Kumar
31bac74c81 qcacld-3.0: Send scan results to kernel as and when driver receives
Currently scan results are first cached in SME and then they are
updated to kernel using results in SME cache. This may result in
updation of stale entries to kernel. Fix this by sending scan results
to kernel as and when driver receives them.

Also, add changes to send ext scan results to kernel.

Change-Id: I18f4b36cf3a9fc2e191352c868f69d797eb0a786
CRs-Fixed: 1098411
2017-01-26 01:09:50 -08:00
Arunk Khandavalli
b0b940bc19 qcacld-3.0: Increase the interface change timeout to 100sec
Presently interface change timer is 5seconds, during stress and high
cpu workload scenarios 5sec time may not be enough for user space to
bring-up WLAN after driver load.
Hence, increasing the timer value to 100sec.

Change-Id: I01b2a82fcf6841bfddfe473332701068b93d855c
CRs-Fixed: 1113583
2017-01-26 00:21:58 -08:00
Dustin Brown
0cbc7574e8 qcacld-3.0: Port Dynamic MC/BC Filter ioctls from qcacld-2.0
Port the dynamic MC/BC filter configuration ioctls from qcacld-2.0 to
qcacld-3.0

Change-Id: Ie2fd9e519ac62ea77b149fd5dcf400d9b30621ad
CRs-Fixed: 1102502
2017-01-23 10:21:46 -08:00
Nitesh Shah
98097b9712 qcacld-3.0: Avoid continuous flush logs for TDLS mgmt TX failure
When the TDLS management frames are getting stucked in the TX
path, then the TDLS mgmt TX failure logs get flooded in
the kernel logs.

Fix is to reduce the log level for flush logs to avoid getting
in kernel logs. Also to stop flooding the logs for 5 minutes
duration once the instance occurs.

Change-Id: I823f843e2fc2f21974c94c986345713ccd2b653e
CRs-Fixed: 1105925
2017-01-21 11:38:35 -08:00
Nitesh Shah
f8ed55e27f qcacld-3.0: Cleanup stale TDLS functions
Remove stale TDLS functions.

Change-Id: Ibf345baf36f5faeba44eca292895c7bb35015ec0
CRs-Fixed: 1105485
2017-01-20 18:10:18 -08:00
Nitesh Shah
9ed1a9f8de qcacld-3.0: TDLS to queue scan req with source during scan reject
When TDLS module reject scan, it will queue the scan request but
does not store the source information, and pass NL_80211 as the
scan source. Thus, if the scan is started by vendor command, still
the scan done callback is given to cfg80211.

Fix is to store the scan source information and queue the scan
request along with scan source information.

Change-Id: Id438f29de0176b1ac73603a1fe0a1a6e231c5278
CRs-Fixed: 1107919
2017-01-20 17:41:22 -08:00
Dustin Brown
fce08d1a4a qcacld-3.0: Fix race condition for bandwidth timer start/restart
The MC thread uses a timer to measure bandwidth usage in station and
soft AP modes. This timer restarts itself periodically, which can
race with the MC thread during a stop/start cycle. Fix this race
condition by introducing a spinlock that protects the timer during
start and restart.

Change-Id: I0e86687d28fb07a0a41c9475b89f5f170e72bf77
CRs-Fixed: 1112498
2017-01-19 14:11:23 -08:00
Abhishek Singh
49b654e9a9 qcacld-3.0: Add INI and IOCTL template for IBSS feature
Add INI and IOCTL template for IBSS feature for documentation.

Change-Id: Iaefaa697f1cfa4b2f5c9acc77f307160df591dd3
CRs-Fixed: 1097316
2017-01-19 02:42:02 -08:00
Abhishek Singh
b5e38ef48a qcacld-3.0: Use cfg80211_roamed_bss API to indicate the roaming
qcacld-2.0 to qcacld-3.0 propagation

After disconnect request, the driver sends disconnect
indication to the kernel and it schedules a workqueue to
process this disconnect event. Now if this workqueue is
delayed and connect request is received before its
scheduled, the disconnect event workqueue reset the
ssid_len of the wdev.

Now as the ssid_len does not match with bss ssid length the
get bss returns NULL and thus roam indication is not sent
to supplicant.

To fix this use cfg80211_roamed_bss to indicate the roaming
and use the ssid and ssid len from driver to get the bss.

Change-Id: I5b88ce41951cb61582ee801be124ca0b5b6b825b
CRs-Fixed: 1098150
2017-01-19 02:42:00 -08:00
Abhishek Singh
2f8104969f qcacld-3.0: Add IOCTL and INI template for PMF/11w feature
Add IOCTL and INI template for PMF/11w feature for documentation.

Change-Id: I91383117ec7dd5f80e71fa6c84293e97b9511596
CRs-Fixed: 1097317
2017-01-19 02:41:56 -08:00
Abhishek Singh
76587c3b70 qcacld-3.0: Add INI template for 5/10 Mhz bandwidth feature
Add INI template for 5/10 Mhz bandwidth feature for documentation.

Change-Id: I1fa460acfdd01a5ea8439d857358efb47d5755c4
CRs-Fixed: 1097318
2017-01-19 02:41:54 -08:00
Rajeev Kumar
ea95edd926 qcacld-3.0: Remove obsolete CDS mq APIs reference from HDD
After control path scheduler componentization CDS message queue
APIs are no longer used hence replace CDS mq APIs in HDD by
scheduler mq APIs.

Change-Id: I378c3354a66552e9c796befcd39b461980b93b27
CRs-Fixed: 1110497
2017-01-18 15:50:57 -08:00
Rajeev Kumar
59e011b83f qcacld-3.0: Remove obsolete hdd object manager APIs prototypes
HDD object manager APIs are moved to wlan_hdd_object_manager.[ch].
Hence remove obsolete hdd object manager APIs prototypes from
wlan_hdd_main.h

Change-Id: I92e601defa73c65deb8a31c5f9aa498bafbe1297
CRs-Fixed: 1111317
2017-01-18 15:15:45 -08:00
Krunal Soni
a6e505bc7b qcacld-3.0: Fix compilation error and disable unit test framework
for policy manager component, unit test framework has been created.
this unit test framework can be enabled or disabled through Kbuild
flag. As policy manager is matured, unit test framework needs to
be disabled.

While disabling unit test framework, couple of compilation errors have
been observed. Fix those compilation errors.

Change-Id: I2a3ee57cc082e5ebc598f0aea2d05f31fb878732
CRs-Fixed: 1110876
2017-01-17 11:12:37 -08:00