Commit Graph

684 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
Manikandan Mohan
1dd8b5d47e qcacld-3.0: Fix kernel module check patch warnings in WMA files
Fix kernel module check patch warnings in WMA files

Change-Id: I236fc58152787a7ee906e5aa7d19f917ac69a17a
CRs-fixed: 2030824
2017-05-05 12:05:08 -07:00
Mukul Sharma
e498164cf5 qcacld-3.0: Decouple ITO/TX_Wake_Threshold from LI/DTIM
Currently, Host configures ITO/TX_Wake_Threshold on each
suspend and resume along LI/DTIM setting. But in a case
where LI/DTIM is configured by user then host skip to
change LI/DTIM values. Hence host skip ITO/TX_Wake_Threshold
configuration too.
As a part of the fix, Decouple ITO/TX_Wake_Threshold from LI/DTIM
configuration.

Change-Id: Ie1c8b7821dcba89d888e18dd7726958a9381e038
CRs-Fixed: 2038986
2017-05-01 08:21:50 -07:00
Dustin Brown
e2206fb9d6 qcacld-3.0: Break wake event handler into pieces
wma_wow_wakeup_host_event is a large monolithic function with many
responsibilities. Break this function up into smaller pieces for each
of those responsibilities to make moving this logic to the component
model easier.

Change-Id: I5583aad21280a6fbf97c7634c9c9763be61fedc3
CRs-Fixed: 2038488
2017-04-27 13:21:15 -07:00
Sravan Kumar Kairam
27296783b7 qcacld-3.0: Add runtime suspend and resume support in PMO
As part of UMAC componentization add runtime suspend and resume
support in PMO.

Change-Id: I120044bb5638ca75e6ac46b22bb194520da22fea
CRs-Fixed: 2030194
2017-04-27 12:39:56 -07:00
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
Krishna Kumaar Natarajan
81ade5946a qcacld-3.0: Update HE capabilities based on supported bands
Update HE capabilities based on supported bands.

Change-Id: If62dfb83686a43465227ec0a0fe4c67f01e3b774
CRs-Fixed: 1073481
2017-04-26 16:27:57 -07:00
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
3ad735a4d6 qcacld-3.0: Reduce the log spam in wma_main.c
Move the logs to appropriate log levels to reduce
the log spam in wma_main.c

Change-Id: Iec3959a1cb4b63601b2a586c0cc264b589dd5b8e
CRs-Fixed: 2014745
2017-04-26 14:49:47 +05:30
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
Mukul Sharma
ed92f2f5fa qcacld-3.0: Add ini/ioctl support for WOW data inactivity timeout
Add ini/ioctl support for data inactivity timeout for wow mode.

Change-Id: I47bbdeeecf2689ef68e76bc1810229da9da40016
CRs-Fixed: 2034525
2017-04-21 23:27:50 -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
Hanumanth Reddy Pothula
e87621b5ab qcacld-3.0: Add ini param to control active BPF for MC/BC packets
Add new ini parameter, gActiveMcBcBpfMode, to control active BPF
mode for MC/BC packets. By default its value is set disable.
Also, rename ini param name to gActiveUcBpfMode from gActiveBpfMode
and respective cfg variable name to active_uc_bpf_mode from
active_bpf_mode.

Change-Id: I1a42351585c34e7b6da8c26af9ac7b7abe0c0322
CRs-Fixed: 2032699
2017-04-20 08:55:02 -07:00
Abhishek Singh
7e5e934a88 qcacld-3.0: Fix mem leak in wma_post_cfg_msg and psnr req
Fix mem leak in wma_post_cfg_msg by handling failure cases.
Also free psnr req during ssr when wma close happens.

Change-Id: I780ebb837db060cc8d6ff9a8fd77ebe3c77067cf
CRs-Fixed: 2033047
2017-04-20 01:32:55 -07:00
Frank Liu
d4b2fa05e2 qcacld-3.0: TDLS module converge
Enable TDLS module

Change-Id: I5c898deddddfc5d1646a07e34dce03813b55ff1b
CRs-Fixed: 2011330
2017-04-20 00:05:04 -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
Dustin Brown
24593f23d2 qcacld-3.0: Allocate memory for NLO match wake event
A recent change to the Network Listen Offload (NLO) match wake event
handler creates and uses a pointer without allocating any memory for
it. Allocate memory for the nlo_event structure before use in the
NLO match wake event handler.

Change-Id: I29ed111e08c8a2d3cd8f8b5e9ca5332a502f9c1a
CRs-Fixed: 2035239
2017-04-19 15:20:42 -07:00
Dustin Brown
ecb7eb913a qcacld-3.0: Refactor WoW wake event handler
In preparation for moving WoW wake event and stats handling to PMO,
refactor the current WoW wake event handler.

Change-Id: Ic401d7e2541aa33cb17fbd5c3ed4fde82cbf1cdc
CRs-Fixed: 2030369
2017-04-19 15:20:41 -07:00
Abhishek Singh
9100cc8c2f qcacld-3.0: Fix logic to calculate max number of NSS supported
Logic to calculate max chainmask supported is used to calculate
max NSS and thus when NSS passed is 2 the firmware was sent value
3 which is causing firmware crash as max NSS supported is 2.

To fix, added logic that if NSS is greater than WMA_MAX_NSS(2) make
it WMA_MAX_NSS.

Change-Id: Ic7ff541b60434c0ce501d245462cd45e62dd9403
CRs-Fixed: 2033675
2017-04-19 12:33:06 -07:00
Rajeev Kumar
cf7bd801e5 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: I1f46416f15c1b81273e1b32798937c05bcf176a9
CRs-Fixed: 2034770
2017-04-18 17:49:18 -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
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
Naveen Rawat
3c49d192eb qcacld-3.0: Free stats_rsp in vdev_detach before zeroing iface buffer
1) In function wma_vdev_detach_callback, free stats_rsp before zeroing out
iface buffer, else the stats_rsp memory which is not sent to upper layer is
lost.
2) In function wma_get_stats_req set stats_rsp buffer to NULL after
posting it to upper layers, so that in case this function is pre-empted
we do not lose buffer pointer.

Change-Id: I8d6261cb53758e02217d68ff01b94bb812adc7fd
CRs-Fixed: 2015436
2017-04-17 16:12:37 -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
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
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
Naveen Rawat
0eb3dd0ebe qcacld-3.0: Avoid double free of req in wma_hold_req_timer
Do not free request pointer in wma_hold_req_timer, if not found
in the list, because firmware response would have consumed and
freed it.

Change-Id: Ibf561243c606b40e45c8b1cd7c0d2559e0ea85aa
CRs-Fixed: 2027853
2017-04-13 23:02:05 -07:00
Srinivas Girigowda
f1472126a0 qcacld-3.0: WMA: Reduce the log spam in kmsg
Move the logs to appropriate log levels to reduce
the log spam in kmsg.

Change-Id: I195a0a16f5b6baa61243ddabc43beccf24594270
CRs-Fixed: 2014745
2017-04-13 12:29:19 -07:00
Abhishek Singh
b61b5453a3 qcacld-3.0: Fix memory leak in start ext scan
In wma_start_extscan scan req params is allocated but not freed
once command is sent to WMI.

Fix it by freeing the scan req params once sent to WMI.

Change-Id: I3eb37b33c3731e69991b9d67aa9274abeebb5339
CRs-Fixed: 2029379
2017-04-13 09:12:26 -07:00
Yun Park
327e7816d1 qcacld-3.0: Change to set 64 bits quota bytes
IPA uC quota bytes is 64 bits long, however wma_cli_set_command
passes only 32 bit value, so only LSB is passed to FW.
To set full 64 bits to FW, pass MSB of the quota value using second
value parameter of wma_cli_set2_command.

Change-Id: Iace8c4a856fcadaa1492b843e24901ab63657550
CRs-fixed: 2007400
2017-04-12 19:02:09 -07:00
Yun Park
637d6486f2 qcacld-3.0: Add interface to WDI-stats and quota limit
Add structure changes for querying WDI-stats, register the callback
functions for IPA to query WDI stats and sets the quota limit

Change-Id: I05d9d50fad735fa0a57c4de23c81461f6e12b648
CRs-Fixed: 1095710
2017-04-12 19:02:07 -07:00
Poddar, Siddarth
ab99a27dc1 qcacld-3.0: Add iwpriv pktlog command to clear pktlog buffer
Implement iwpriv pktlog command to clear pktlog buffer.
This command is effective only if pktlog disable is issued previously.
This command needs one argument.
Command to use this feature : iwpriv wlan0 pktlog 4

CRs-Fixed: 2031210
Change-Id: I19d695c30608ab8cde21ee251eee5c5d43d89751
2017-04-12 01:14:13 -07:00
Krishna Kumaar Natarajan
c1ebd99c2e qcacld-3.0: Update dot11mode in add bss request
Update dot11mode in add bss request based on the add bss params
passed to wma_add_bss_ap_mode.

Change-Id: I775e7f95f7bcb8866dfca8cd831bafffbc318b2d
CRs-Fixed: 1073481
2017-04-11 20:02:05 -07:00
Manikandan Mohan
41e2d6f933 qcacld-3.0: Fix for memory leaks in multiple functions
1)  Fix for memory leaks lim management frame registration queue by
    unconditionally removing all nodes from queue and releasing the
    node pointer. This need to be done for FTM mode also.

2) Free u_mac_post_ctrl_msgu_mac_post_ctrl_msg in the error cases.

3) In wma_tx_packet(), free tx_frame memory in error cases.

Change-Id: Idbae6b2666d38d0f130d0115e5a05387c0b63c31
CRs-fixed: 2027588
2017-04-11 00:16:59 -07:00
Srinivas Girigowda
4698a9c284 qcacld-3.0: Remove obsolete set/reset ssid hotlist
This is a qcacld-2.0 to qcacld-3.0 propagation.

Remove obsolete set/reset ssid hotlist.

Change-Id: Ie6c4a9847f2daa9ba2aebd17f386d584201b86d6
CRs-Fixed: 1102593
2017-04-10 01:37:29 -07:00
Mukul Sharma
fcd57f5724 qcacld-3.0: Cleanup WMA LPHB code and Add PMO lphb calls
Cleanup WMA LPHB code and Add PMO calls.

Change-Id: I8dd338b9653c123ef315aa955915547486603ae8
CRs-Fixed: 2021994
2017-04-10 00:31:32 -07:00
Srinivas Girigowda
86ecc0168d qcacld-3.0: Remove excessive logging
Lot of info logs are periodic and cause log spam.
Add changes to remove excessive logging.

Change-Id: I1ae4f366f359fd90856743b4c2689ad9aad3417b
CRs-Fixed: 1093093
2017-04-08 08:50:27 -07:00
Srinivas Girigowda
d1a07a5aa6 qcacld-3.0: Reduce the log spam in wma_utils.c
Move the logs to appropriate log levels to reduce
the log spam in wma_utils.c

Change-Id: Ic69df76b9a24513c70a30de2bed4a8d61315161c
CRs-Fixed: 2014745
2017-04-07 20:28:47 -07:00
Srinivas Girigowda
da0e8488be qcacld-3.0: Reduce the log spam in wma_dev_if.c
Move the logs to appropriate log levels to reduce
the log spam in wma_dev_if.c

Change-Id: I830cd785471dd3b8791bf5c3e1789ca536eff6a7
CRs-Fixed: 2014745
2017-04-07 20:28:45 -07:00
Venkata Sharath Chandra Manchala
71032b649b qcacld-3.0: Fix for supporting dump statistics
1. Avoid breaking compilation on legacy code
2. Rename dump stats macro options to CDP macros
   appropriately

Change-Id: If8594fad2145f29cb8f8f9f6bc3cd34633d0e9a4
CRs-Fixed: 2023386
2017-04-07 19:52:34 -07:00
Naveen Rawat
37f62c8796 qcacld-3.0: Implement NDP_INITIATOR_REQ
Add MCL changes for NDP_INITIATOR_REQ.

Change-Id: Idcf9df354dc24f7cf82a818833ff3c2c5e2da1e8
CRs-Fixed: 2014795
2017-04-07 11:58:41 -07:00
Naveen Rawat
cb5c540e7f qcacld-3.0: Implementation of NDI Create/Delete
Add MCL changes for NDI create and NDI delete commands.

Change-Id: I270cd213d89224f73ff2ce9fad784cec3e0f8fa3
CRs-Fixed: 2014795
2017-04-07 11:58:39 -07:00
Abhishek Singh
b20db96d64 qcacld-3.0: Add PNO changes for converged scan
Adds PNO related changes for converged scan.

Change-Id: Ie7194d15d2d6ad5e4327e3aadbb4e39a5bf576a8
CRs-Fixed: 2013212
2017-04-07 04:23:13 -07:00
Dustin Brown
8d2d0f57a5 qcacld-3.0: Expose WMI/Credit History debugging APIs via ioctl
Add an ioctl that allows a user to dump a specified number of records to
dmesg for WMI and Credit History.

Change-Id: I644dcf5edcb2f875af1e99e7b4677cde37081674
CRs-Fixed: 2028760
2017-04-06 10:58:54 -07:00
Naveen Rawat
9750035be6 qcacld-3.0: Compile out legacy NDP code
Compile out legacy code when NAN_CONVERGENCE is enabled.

Change-Id: I47ac6842ad6b195e623d9de95702e6089031335d
CRs-Fixed: 2014795
2017-04-06 08:52:10 -07:00