Commit Graph

673 Commits

Author SHA1 Message Date
Mukul Sharma
c3886aad85 qcacld-3.0: Remove serialization for get link speed cmd
Currently, Host serialize get link speed command through
MC thread which is truly not required.Hence removing
serialization for get link speed cmd.

Change-Id: Ia2895394025056d4957856bb9bde0350b55d25ca
CRs-Fixed: 2042492
2017-05-12 19:58:07 -07:00
yeshwanth sriram guntuka
626b24560c qcacld-3.0: Fix excessive logs in pmkid lookup api
Fix excessive logs in pmkid lookup using bssid api.

Change-Id: Ica534fc1a8028c9a4e6cc2d8ae155fd81849c03c
CRs-Fixed: 2038017
2017-05-11 01:26:13 -07:00
Naveen Rawat
418d308c01 qcacld-3.0: Do not disable Roaming if multiple STA are active
Do not disable Roaming if multiple STA are active, individual STA
session are controlled by adapter->fast_roaming_allowed.

Change-Id: Ic979f4addd3b9e4f940291817c9a797302e3ac66
CRs-Fixed: 1104238
2017-05-11 01:26:09 -07:00
Krunal Soni
a2c0e41dd2 qcacld-3.0: Correct INI item's data type from bool to uint8_t
rxLdpcEnable and txLdpcEnable have incorrect data type which may
lead to confusion and error.
Fix the data types from boolean to uint8_t.

Change-Id: Idb8642a528d7e4c75cd2bc7c2e04f52a888f3d2b
CRs-Fixed: 2018096
2017-05-05 03:52:42 -07:00
Krunal Soni
f05a670af1 qcacld-3.0: RRM caller and callee needs to release bss descr memory
In RRM module, caller is creating memory for beacon report. for
each beacon report, it further creates memory for bss descriptors.

caller sends a entire becon report message to callee. Both caller and
callee are releasing memory for beacon report but they don't release
memory for bss descriptos correctly.

To fix the situation, caller needs to release bss descriptos memory up
on failure to deliver the message to callee. callee needs to release
bss descriptors' memory up on successful reception and after processing
it.

CRs-Fixed: 2040435
Change-Id: Ia4e0a1cdc56c177e86683847973acfab0e9a96bf
2017-05-02 21:33:41 -07:00
Krunal Soni
7ead29f44c qcacld-3.0: Release bss descriptors' memory up on message delivery
While sending message from one module to another module,
bss descriptors' memory get assigned but never get released which
creates memory leaks.

Release bss descriptors' memory up on its usage.

CRs-Fixed: 2040435
Change-Id: I7d9ef4e9b65f4b63251490f4ef3671a350ebf81f
2017-05-02 21:33:27 -07:00
Nishank Aggarwal
b03b252f41 qcacld-3.0: Fix kernel checkpatch warnings in sme_trace.c
Fix kernel checkpatch warnings in sme_trace.c

Change-Id: Ib8828dbb510e42f56f6a15542b0adb5e2de17811
CRs-Fixed: 2025503
2017-04-28 02:54:26 -07:00
Nishank Aggarwal
e1777f8d84 qcacld-3.0: Fix kernel checkpatch warnings in sme_power_save.c
Fix kernel checkpatch warnings in sme_power_save.c

Change-Id: I3d4631c37815a54206f1f5bc5122d5d451a6944a
CRs-Fixed: 2025503
2017-04-28 02:54:16 -07:00
Nishank Aggarwal
359dde8ae0 qcacld-3.0: Fix kernel checkpatch warnings in sme_ft_api.c
Fix kernel checkpatch warnings in sme_ft_api.c

Change-Id: I77e1c833d7a5a4a06e1e4d174bad35188bb21995
CRs-Fixed: 2025503
2017-04-28 02:54:08 -07:00
Nishank Aggarwal
d3485ed710 qcacld-3.0: Fix kernel checkpatch warnings in csr_link_list.c
Fix kernel checkpatch warnings in csr_link_list.c

Change-Id: I05ae3798dae5cbe3bc602aa3e99762303c1e12f3
CRs-Fixed: 2025503
2017-04-28 02:54:02 -07:00
Nishank Aggarwal
0f86b5ed55 qcacld-3.0: Fix kernel checkpatch warnings in csr_tdls_process.c
Fix kernel checkpatch warnings in csr_tdls_process.c

Change-Id: I209554e39e92d4654889b3e4866d08ee20975539
CRs-Fixed: 2025503
2017-04-28 02:54:00 -07:00
Nishank Aggarwal
d18b6f4451 qcacld-3.0: Enable DFS channel for a single channel scan
In csr_scan_copy_request_valid_channels_only(), the DFS channels
are ignored if ini parameter gSkipDfsChannelInP2pSearch is enabled.
If the supplicant issues a single channel scan for a DFS channel,
driver will do a full scan. As its a single channel scan which is a
DFS channel would be ignored and the num of channels to scan would
be zero.

And if the number of channels to scan are zero, driver
does a full scan which would impact the overall connection
time.

To address this, enable DFS channel for a single
channel scan.

Change-Id: I166b9674a6cb6bb9c180c1c8d68480440ea867be
CRs-Fixed: 2038974
2017-04-28 02:53:57 -07:00
Nishank Aggarwal
778bf5d3c0 qcacld-3.0: Fix kernel checkpatch warnings in csr_api_scan.c
Fix kernel checkpatch warnings in csr_api_scan.c

Change-Id: I6fc38c58d174e0e5737039a6cd1f3189c3e0f434
CRs-Fixed: 2025503
2017-04-28 02:53:52 -07:00
Nishank Aggarwal
9ca3255643 qcacld-3.0: Fix kernel checkpatch warnings in csr_util.c
Fix kernel checkpatch warnings in csr_util.c

Change-Id: I8ccd01cac54bc87ae2fc466719dc853ebe35b9b6
CRs-Fixed: 2025503
2017-04-27 17:38:15 +05:30
Nishank Aggarwal
9eeedc9e99 qcacld-3.0: Fix kernel checkpatch warnings in csr_cmd_process.c
Fix kernel checkpatch warnings in csr_cmd_process.c

Change-Id: I2aed989a97ef5147001afd83858a384de2d9c431
CRs-Fixed: 2025503
2017-04-27 17:32:44 +05:30
Nishank Aggarwal
4413fc3467 qcacld-3.0: Fix kernel checkpatch warnings in csr_host_scan_roam.c
Fix kernel checkpatch warnings in csr_host_scan_roam.c

Change-Id: Icc9197e9df869f4b94fc4b9d06a5dca976523089
CRs-Fixed: 2025503
2017-04-27 17:31:13 +05:30
Nishank Aggarwal
8356335b53 qcacld-3.0: Fix kernel checkpatch warnings in csr_neighbor_roam.c
Fix kernel checkpatch warnings in csr_neighbor_roam.c

Change-Id: Ib8bfe0e72404bc6a805c4fe56d25ef873c4e33c5
CRs-Fixed: 2025503
2017-04-27 17:23:19 +05:30
Nishank Aggarwal
1b1f63e1e4 qcacld-3.0: Fix kernel checkpatch warnings in csr_roam_preauth.c
Fix kernel checkpatch warnings in csr_roam_preauth.c

Change-Id: I3758aee4cc407d9dfa743cf63f1054604c6ab7d8
CRs-Fixed: 2025503
2017-04-27 16:43:16 +05:30
Zhang Qian
73c348a749 qcacld-3.0: Add MAC counter WMI interface
qcacld-2.0 to qcacld-3.0 propagation

When MAC counter offload is enabled, FW will indicate following
statistics periodically or as host's settings.
- RSSI and SNR per antenna/RF chain
- RSSI, SNR and MCS code (Tx and Rx) per peer
- 11h, 11k radio measurements on current channel, CSMA/CA parameters,
  channel interference estimations
- Tx/Rx statistics(data rate, aggregation size, etc)
New WMI interface is introduced by this change:
- set threshold using WMI_PDEV_SET_STATS_THRESHOLD_CMDID
- process WMI_REPORT_STATS_EVENTID and send all mac counters
  to HDD_CFG80211

Change-Id: I6d679bbf331baf187cccc882216eecc239bf298c
CRs-Fixed: 1080673
2017-04-27 01:22:03 -07:00
Nishank Aggarwal
c32eea0059 qcacld-3.0: Fix kernel checkpatch warnings in csr_api_roam.c
Fix kernel checkpatch warnings in csr_api_roam.c

Change-Id: I25504d803b1d96f3081df04044446aed50cdec1d
CRs-Fixed: 2025503
2017-04-26 20:40:41 +05:30
Nishank Aggarwal
e30a90db5d qcacld-3.0: Fix kernel checkpatch warnings in sme_rrm.c
Fix kernel checkpatch warnings in sme_rrm.c

Change-Id: I2da3f73b09048fe700592ff540317e61931931d6
CRs-Fixed: 2025503
2017-04-26 18:43:37 +05:30
Srinivas Girigowda
2c26335073 qcacld-3.0: Remove sms_log() & obsolete file 'sms_debug.h'
Remove sms_log() and obsolete file 'sms_debug.h'.

Change-Id: Ibdb25674c1efa6b53262f3aaaf3ff7c8744f28b8
CRs-Fixed: 2020798
2017-04-26 15:17:56 +05:30
Srinivas Girigowda
2d43f36768 qcacld-3.0: Replace sms_log() with sme_* log levels in sme_rrm.c
Replace sms_log() with sme_* appropriate log levels in sme_rrm.c.

Change-Id: I692b4fd47321a511735c2834e102e94e5fcf7d7e
CRs-Fixed: 2020798
2017-04-26 14:39:42 +05:30
Abhishek Singh
158fe252bc qcacld-3.0: Remove user configured params from converged scan filter
Some user configured params are passed in filter during scan request.
Move them in scan params and update them from user config.

Change-Id: I71beb41c947ede742345821a983bb202575547b9
CRs-Fixed: 2013212
2017-04-25 13:02:29 -07:00
Padma, Santhosh Kumar
16dacfbec2 qcacld-3.0: Get CCA from firmware
Requirement is to get CCA from frmware when connection fails due to
assoc/auth/probe response timeout.

Change-Id: I062343ed065d7b0c38b9e3b24ecfa9851b9b1537
CRs-Fixed: 2018594
2017-04-25 05:56:15 -07:00
Arif Hussain
cd1516322d qcacld-3.0: Use dfs component support
Remove legacy dfs api’s and use dfs component.

Change-Id: Ia0fa016b174ef4b50e2cc339e4e476ec65642dbf
CRs-Fixed: 2021357
2017-04-25 01:08:44 -07:00
Kiran Kumar Lokere
f089a3a738 qcacld-3.0: Fix the pdev reference leak during unload
WMA pdev reference clear is called after the wma close hence
wma handle is NULL and pdev refernce is not cleared.
Clear the pdev reference during WMA close procedure

Change-Id: I6c4caa21e9329f5d7542d114763cd6ae8931a604
CRs-Fixed: 2008013
2017-04-20 21:54:16 -07:00
Kiran Kumar Lokere
a3de226328 qcacld-3.0: Replace regulatory apis with reg component apis
Replace the legacy regulatory apis with regulatory component
public service apis

Change-Id: Ifd8c93fc8f57116cfc432b853248b35fd7ed1b94
CRs-Fixed: 2008013
2017-04-20 17:10:19 -07:00
Srinivas Girigowda
387016dbcc qcacld-3.0: Reduce the log spam in sme_rrm.c
Move the logs to appropriate log levels to reduce
the log spam in sme_rrm.c

Change-Id: I16a7ab4e33eaa06275294d583938c156383cf68a
CRs-Fixed: 1093093
2017-04-20 04:20:38 -07:00
Srinivas Girigowda
caaad37679 qcacld-3.0: Reduce the log spam in nan, p2p and qos files
Move the logs to appropriate log levels to reduce
the log spam in nan_api.c, p2p_api.c and sme_qos.c

Change-Id: I577977fb4455a44699215ac0ea8f1819b77deef0
CRs-Fixed: 1093093
2017-04-20 04:20:36 -07:00
Srinivas Girigowda
2db365c42a qcacld-3.0: Reduce the log spam in csr files
Move the logs to appropriate log levels to reduce the
log spam in csr_neighbor_roam.c, csr_roam_preauth.c,
csr_tdls_process.c and csr_util.c

Change-Id: I7fa474658e7f538bf79883abf5e2d52f94332e0c
CRs-Fixed: 1093093
2017-04-20 04:20:34 -07:00
Nishank Aggarwal
2b8fc8acfc qcacld-3.0: Reduce the log spam in csr_host_scan_roam.c
Move the logs to appropriate log levels to reduce
the log spam in csr_host_scan_roam.c

Change-Id: I00db47bb70471ae7b4ce8f3975627a5d1efcefcc
CRs-Fixed: 1093093
2017-04-20 04:20:33 -07:00
Sen, Devendra
e424c93f90 qcacld-3.0: Remove repeated host diag events
Remove inappropriate diag events which sending the same event id twice.

Change-Id: I9b79aec476ec5feecd975a52ac8ff2ee0be68753
CRs-Fixed: 2028543
2017-04-20 00:46:33 -07:00
Zhang Qian
a6e9c10043 qcacld-3.0: Add monitor for peer PS change and TX fail
qcacld-2.0 to qcacld-3.0 propagation

Once a peer sta's power state changes, fw will send
WMI_PEER_STA_PS_STATECHG_EVENTID to host. Once there
is TX failure on air, HTT_T2H_MSG_TYPE_TX_COMPL_IND
with an unsuccess status will be received by host.

These two kinds of messages from FW will be transferred
into SME message and sent to HDD layer.

Change-Id: If37798bcd06fb8c3f7a2690e77a572b41d7b266f
CRs-fixed: 1048388
2017-04-19 23:20:43 -07:00
Abhishek Singh
471652b272 qcacld-3.0: Indicate failure to HDD if HW mode change timesout
If HW mode change timeout happens during connect req in CSR,
the status received by HDD is success and it assumes connect is
queued and does not reset the HDD state. This lead to subsequent
scan failures.

To fix, return failure status to HDD if HW mode change timesout.
Also avoid sending QDF status to supplicant as part of connect
failure.

Change-Id: I49d189ad75a585d894b5e819190c2dc3d9cc1453
CRs-fixed: 2031149
2017-04-19 12:33:04 -07:00
Krunal Soni
fea068027c qcacld-3.0: Fix the issues reported by static analysis tool
Fix the issues reported by static analysis tool for SME and WMA
modules. Following is the summar of issues which are fixed,
1) Get the csr session first and then validate the session to avoid
   un-necessary session dereferencing.
2) If scan_info structure is null then return immediately else
   populate scan_info structure properly.
3) Valid the mac context before deferencing it.
4) Validate the roam_req, wma, synch_event pointers before deferencing
   them.

Change-Id: I522812b5c35dd540c38064e49e39ed75fb7d3e18
CRs-Fixed: 2032854
2017-04-18 11:45:41 -07:00
Abhishek Singh
6f56d21a01 qcacld-3.0: Cleanup the legacy Scan cache
Cleanup the legacy scan cache code as it is moved to common
scan component.

Change-Id: I6f6710450ff692f4722ccb6d704871f50178680c
CRs-Fixed: 2033079
2017-04-18 03:07:39 -07:00
Rajeev Kumar
37d478b289 qcacld-3.0: Initialize scheduler_msg on stack before posting message
Initialize scheduler_msg on stack before posting using scheduler API
such that un-used fields in message structure are initialized to 0.

Change-Id: I4acd098ca1e975ad6ffed58d1a84c70078e2dca6
CRs-Fixed: 2034770
2017-04-18 02:25:51 -07:00
Abhishek Singh
d8162ca197 qcacld-3.0: Set SU bformer capability only if AP is SU bformee
If SU beamformer is set in assoc req when AP is not SU beamformee
low throughput is seen with specific AP.

To fix this, set SU bformer capability only if AP is SU bformee and
set SU bformee capability only if AP is SU bformer

Change-Id: I9093352d48722eb79db7b1992ac873bd8cf13e66
CRs-Fixed: 2025399
2017-04-18 00:52:47 -07:00
Naveen Rawat
ae0aaa8379 qcacld-3.0: Fix possible NULL pointer dereference
In function sme_get_beacon_frm, csr_get_fst_bssdescr_ptr can return a NULL
pointer. Check it against NULL before usage.

Change-Id: I76112adf9a0a618bf7e956911d68e7ee2edac61e
CRs-Fixed: 2008664
2017-04-17 15:31:42 -07:00
Selvaraj, Sridhar
ced570637e qcacld-3.0: Send QCN IE to FW as part of scan and assoc IE for LFR3
Currently, host driver adds QCN IE in probe/assoc request initiated
from driver.

If QCN IE support is enabled in host driver[g_qcn_ie_support INI is 1],
add the QCN IE as part of scan/assoc IE's that are sent to FW to be
used for probe/assoc/reassoc frames initiated by FW.

Change-Id: Ic4d58b2cb827668a9ce9cfa5bad4d882816d607b
CRs-Fixed: 1117332
2017-04-17 00:17:29 -07:00
Selvaraj, Sridhar
d1225e6f65 qcacld-3.0: Cleanup unnecessary logs in roaming component
Remove unwanted redundant info printed across multiple
layers[csr, lim, wma] with respect to roaming.

Change-Id: I5197633b0e5afc775c1e10a6e75c58c58055ec49
CRs-Fixed: 2021082
2017-04-17 00:17:26 -07:00
Selvaraj, Sridhar
97ce658f73 qcacld-3.0: Add "g_fils_max_chan_guard_time" INI and pass it to firmware
Add "g_fils_max_chan_guard_time" INI and pass the configured value
to firmware for STA vdev as part of vdev attach. Based on this INI,
firmware will calculate the dwell time while sending in probe request.

Change-Id: I2336a7e0a37181ea00ef117e9907e7eaf194ae3d
CRs-Fixed: 1114057
2017-04-17 00:17:23 -07:00
Amar Singhal
5cccafec64 qcacld-3.0: Wiphy initialization for regulatory offload
For regulatory offload, send the regulatory config settings to regulatory
component to compute the current channel list. Query channel list for
each band. Populate the channel list in wiphy. Also do not register
regulatory notifier with the kernel anymore.

CRs-Fixed: 2008013
Change-Id: Ia4995c7498d97fe1e37717e65daa9dcacb2f21b3
2017-04-16 15:58:42 -07:00
Selvaraj, Sridhar
75afbebffe qcacld-3.0: Host driver changes to support 11ai frame parsing
As part of Ic1b670e23f637f11b494422ad9954c1d7515e833, frame parser
files are changes to support 11ai frames parsing.

This changes addresses required host driver changes to support
the 11ai frame parsing.

Change-Id: Ia62d546ba1507d8541382369102840be316c466c
CRs-Fixed: 2028592
2017-04-16 02:32:24 -07:00
Krishna Kumaar Natarajan
bc59459519 qcacld-3.0: Update PPE threshold based on ppet_present capability
Update PPE threshold only if ppet_present capability is enabled.

Change-Id: I8aaef428f9cca269177645b14e935a091d43a580
CRs-Fixed: 1073481
2017-04-14 21:42:45 -07:00
Sreelakshmi Konamki
88a2a41bbf qcacld-3.0: Add support to get the status for Roam Scan Offload command
Add support to handle the event for the Roam Scan Offload[RSO] command
status. Inform the same to user space.

Change-Id: I2758103e8ca3c49c0fecd3323b619542dbbabf0c
CRs-Fixed: 1111809
2017-04-14 12:43:35 -07:00
Abhishek Singh
0481d66d9d qcacld-3.0: Cleanup the legacy PNO code
Cleanup the legacy PNO code as PNO is moved to common scan component

Change-Id: I63914e1f496627ac32ddebbe0c8be7da088316cb
CRs-Fixed: 2032432
2017-04-14 11:03:29 -07:00
Naveen Rawat
6dabf4ea38 qcacld-3.0: Fix the ie_len while creating beacon frame
In function sme_prepare_beacon_from_bss_descp, ie_len was storing
uint32_t into uint8_t which was causing beacon frame buffer to be
filled partially. Change the ie_len argument to uint32_t

Change-Id: Ia94dbd6e280579fe1621863b0e8f6ba4e13d10ed
CRs-Fixed: 2004265
2017-04-14 02:58:36 -07:00
Srinivas Girigowda
2b5d47c9a8 qcacld-3.0: Move the logs to appropriate log levels
Move the logs to appropriate log levels.

Change-Id: I522705a493c4c243f46f652270db8f3c9fc05476
CRs-Fixed: 1093093
2017-04-14 02:09:41 -07:00