Commit Graph

225 Commits

Author SHA1 Message Date
Jeff Johnson
951133e572 qcacmn: Fix typo "recieve"
Replace typo "recieve" with correct spelling "receive".

Change-Id: I7d88e57b97fa6d217630d4a5d5c365b56e714428
CRs-Fixed: 2238309
2018-05-17 00:47:23 -07:00
Jeff Johnson
390679cb4e qcacmn: Fix typo "lenght"
Replace typo "lenght" with correct spelling "length".

Change-Id: Ieea0c547c61248e510835d16a9fa55ace486df23
CRs-Fixed: 2238309
2018-05-17 00:47:02 -07:00
Jeff Johnson
81cf683117 qcacmn: Fix typo "paramters"
Replace typo "paramters" with correct spelling "parameters".

Change-Id: I7b82a1c3fda1e826840152fb1a23102f3c23fdb8
CRs-Fixed: 2238309
2018-05-17 00:46:57 -07:00
Naveen Rawat
9734fa97f7 qcacmn: Add target_if/wmi implementation of get_stations_stats
Add changes to support get station stats from within the cp stats
component.

Change-Id: I936ea8e18e519f257ae2d57b384a5a39f4582aed
CRs-Fixed: 2210313
2018-05-16 23:20:19 -07:00
Naveen Rawat
96afb7f274 qcacmn: Add target_if/wmi implementation of get congestion stats
Add changes to support get congestion stats(arp stats) from
within cp_stats component.

Change-Id: Ic3b2f020c0169c9113c1b40738f782cbb3b8f6c5
CRs-Fixed: 2222781
2018-05-14 11:39:24 -07:00
Srinivas Girigowda
c461aeff4f qcacmn: Consistently use policy_mgr_dual_mac_config
Remove duplicate structs wmi_dual_mac_config and sir_dual_mac_config
and use policy_mgr_dual_mac_config.

Change-Id: I6da6539f519ec46ee274ba3f3ae042e5fd9c25d2
CRs-Fixed: 2191031
2018-05-12 04:31:30 -07:00
Kiran Venkatappa
ffc18dfd51 qcacmn: Update target resorce config with TWT params
Number of AP TWT and AP TWT stations are added in
target_resource_config to provide the configuration for TWT.
Add support in WMI to provide appropriate defaults for TWT.

Change-Id: Ica91f981d59a015b0b4cda41ba951b6ba22e8120
CRs-Fixed: 2212667
2018-05-03 09:12:54 -07:00
Naveen Rawat
13dbfb7bb6 qcacmn: Add get channel width from phy mode API
Add get channel width from phy mode API which will be used by
ndp schedule update event.

Change-Id: I13d00c0b818eb0da434c8a5372b2ab7b6693f22a
CRs-Fixed: 2216801
2018-05-02 18:46:16 -07:00
Vinay Adella
4c217bf5af qcacmn: Support to enable/disable SWBA events in beacon offload
When SWBA event is enabled, the FW will sent an event to the
host on every TBTT beacon.
Note that, unlike the legacy offload chips, this event is not
used by the host to send out the beacon frame itself.

Change-Id: Icf4440d79f7dbfb544f9d98c4de0e84bdb150459
CRs-Fixed: 2200805
2018-04-30 05:56:24 -07:00
Edayilliam Jayadev
42ce0e4c2f qcacmn: Extract meta data from dbr event
Extract meta data from the dbr wmi event.

CRs-Fixed: 2219818
Change-Id: Ib19588775060e75017e9777206132a0efeec6223
2018-04-25 23:49:01 -07:00
Naveen Rawat
a9e0df33b6 qcacmn: Add target_if/wmi implementation of get_tx_power
Add changes to support get tx power from within cp_stats component.

Change-Id: I89ac372bd31a8aa5a76938dc4ea4cfe05d6c7cf1
CRs-Fixed: 2210311
2018-04-19 22:06:53 -07:00
Abhinav Kumar
e59492a72b qcacmn: Add new ini to set min delay btw scan and reason bit-mask
Add ini "min_delay_btw_scans" to set minimum duration allowed between
two consecutive roam scans. Fw should not allow roam scan if duration
between two consecutive roam scan is less than min_delay_btw_scan.

Add ini "roam_trigger_reason_bitmask" to set default value of
bit-mask containing roam_trigger_reasons for which
min_delay_btw_scans constraints should be apply.

Pass value of min_delay_btw_scans and roam_trigger_reason_bitmask
to fw.

Change-Id: I2397467a13a720e763d1181d8cd50c571f861366
CRs-Fixed: 2221785
2018-04-19 22:06:47 -07:00
Abhinav Kumar
bb433b22bb qcacmn: Add new ini to enable/disable FT open feature
Add new ini item "enable_ftopen" to enable/disable
FT open feature. There is no ini currently to
disable only FT open.

Add sanity check to send 11r params in case of FT open
to fw only when enable_ftopen is enabled

Change-Id: Ifb27aea8de8c8837f8eda329e1247abfadabb628
CRs-Fixed: 2214772
2018-04-18 10:37:24 -07:00
narayan
0faaf6b38a qcacmn: AMPDU_AMSDU per vap offload
cmn_dev changes for FR38985 and FR40338 port from 10.4 to 11.0

Change-Id: Ic56e65a4c7429d79e49e353146f7b38dd73da9d1
CRs-Fixed: 2123123
2018-04-17 06:58:28 -07:00
Abhinav Kumar
8dcdbdec6f qcacmn: Add new ini to set delay Hand-off period
Add new ini item "ho_delay_for_rx" to set delay Hand-off
period. For LFR 3.0 roaming scenario, once roam candidate
is found, firmware waits for minimum this much duration
to receive pending rx frames from current BSS before
switching to new channel for handoff to new AP.

Pass value of ho_delay_for_rx to fw in case of roam
offload.

Change-Id: I19141928a2885371bc1b9e7b720473d99c4ebb1d
CRs-Fixed: 2221755
2018-04-16 16:57:10 -07:00
lifeng
be07fd937f qcacmn: Export antenna info to the userspace
qcacld-2.0 to qcacld-3.0 propagation
Discard the original wmi interface:
WMI_PEER_ANTDIV_INFO_REQ_CMDID/PEER_ANTDIV_INFO_EVENTID,
replace with the new one:
WMI_PDEV_DIV_GET_RSSI_ANTID_CMDID/WMI_PDEV_DIV_RSSI_ANTID_EVENTID
to support chain value along with corresponding antenna info.

Change-Id: Ie9ea9d160e1ac1e2e65de422c85989159fb5a556
CRs-Fixed: 2220759
2018-04-13 09:30:42 -07:00
Soumya Bhat
9e1e399374 qcacmn: Tx capture/Mcopy mode changes
The following changes are added for Tx capture/Mcopy mode
1. Append ppduid for FW generated mgmt. frames
2. Append ppduid received in mgmt. TX completion for host
   generated mgmt. frames
3. Reuse nbuf received in HTT msg to send mgmt. payload to
   upper layers

Change-Id: I073cafa6389ed1ed835cc3ba4b9421b7a4b97d7f
CRs-Fixed: 2185543
2018-04-06 14:47:18 -07:00
Rhythm Patwa
d054b2fcc8 qcacmn: Fix BSS color issue and add cmd support to disable BSS color
Add macros to set and get BSS color value and the BSS Color
disable bit values. These macros are used to construct the value
to send to the WMI BSS Color vdev param with BSS color and BSS color
disable status embedded.

Change-Id: Id0721a1a5d66fff5d2c50708aeefb5e0ec03e999
CRs-fixed: 2186897
2018-04-03 18:11:47 -07:00
Sandeep Puligilla
ae328c86ac qcacmn: Deprecate enum wmi_dwelltime_adaptive_mode
Deprecate enum wmi_dwelltime_adaptive_mode and use enum
scan_dwelltime_adaptive_mode defined in scan component.

Change-Id: I9c33b852172d9208fb8440c6dc71a12aefd717da
CRs-Fixed: 2213074
2018-03-29 18:57:29 -07:00
Gyanranjan Hazarika
56aabf1945 qcacmn: WMI support to set autorate HE GI LTF combinations
WMI_VDEV_PARAM_AUTORATE_MISC_CFG is introduced to set
HE GI LTF combinations in case of autorate adaptation.
Add support for the same in host side wmi files.

Change-Id: Idf567d771539b17e669ddab8b85092e3cbf9d3c8
CRs-fixed: 2204393
2018-03-28 20:01:44 -07:00
Vivek
7346528a39 qcacmn: Replace A_UINT with appropriate types
There are instances of use of older A_UINT/A_INT.
Replace all such instances with the qdf u_int*_t/int*_t.

Change-Id: I7ce29b03f29a0d1a0cf87cfd3c846f4694da4c2a
CR's-Fixed: 2210869
2018-03-26 04:58:12 -07:00
Sravan Kumar Kairam
dcb5f80ac3 qcacmn: Modify WMI cmd to point to IPA CLD component
IPA module has been moved to CLD component under the converged
driver model. Point the wmi API's and structures to the newly
defined files.

Change-Id: I96205f7cc18dbea1c05a5f6314490ea6b3dd75fd
CRs-Fixed: 2180176
2018-03-21 18:57:49 -07:00
Surabhi Vishnoi
b1a06b7e42 qcacmn: Move the WMI_MAX_CMDS macro
The WMI_MAX_CMDS macro was defined in wmi_unified_priv.h, move it
to wmi_unified_param.h so that it can be used to set
wmi_unified_attach_params.

Change-Id: I33aaa3c1fb189c7ef660ccbc5262afd0a1ee258b
2018-03-15 04:26:06 -07:00
Dustin Brown
29c4cbf0c3 qcacmn: Add new resource config fields
Firmware recently exposed two new resource config fields,
num_packet_filters, and num_max_sta_vdevs. Add these fields to the
host-side resource config struct so appropriate values can be populated
and communicated to firmware.

Change-Id: I951ba6ac929c38c2d78af6705f4922b62fc7d3a1
CRs-Fixed: 2201876
2018-03-14 22:34:17 -07:00
Rajeev Kumar
1b1c004f36 qcacmn: Remove obsolete struct target_resource_config
In WMI struct target_resource_config is obsolete and outdated.
Correct resource config struct is target_resource_config hence
remove the obsolete and outdated struct target_resource_config.

Change-Id: I23aeb46854008dabad4ece953c6eb2c151bedac0
CRs-Fixed: 2202520
2018-03-12 17:16:44 -07:00
Poddar, Siddarth
a11db8194c qcacmn: Extend wmi interface command to support other connectivity stats
Extend wmi interface command to support other
connectivity check stats(ICMPv4 and tcp).

Change-Id: I881aaeab6e3e1f36b7153630b87a07019660d896
CRs-Fixed: 2168412
2018-03-07 03:55:37 -08:00
nobelj
d9c2dc8893 qcacmn: Add support for chan_nf noise floor
Add function for extract_nfcal_power_ev_param and
register wmi_pdev_nfcal_power_all_channels_event_id event
to support noise floor in HK.

Change-Id: I6eef823b507be94c65df026664244eec7fc07e24
CRs-Fixed: 2157972
2018-03-02 16:34:27 -08:00
Padma, Santhosh Kumar
cc2eea069f qcacmn: Add support for GMAC offload
Add support for GMAC offload capability wmi_service_gmac_offload_support

Change-Id: I4a2e5c52aae630f82294dcaea6cc7c23886dcd8a
CRs-Fixed: 2185825
2018-02-28 01:30:00 -08:00
Rhythm Patwa
2f088b7d2a qcacmn: Add command to not send ADDBA REQs
Add command support to not send ADDBA REQs.
The corresponding WMI VDEV param ID to set the
VDEV param has been added.

Change-Id: Id53f8101a61ccc0aba2a9a6735d1c6942ba3592d
CRs-fixed: 2188560
2018-02-27 16:04:43 -08:00
Shiva Krishna Pittala
f302c5c8e8 qcacmn: Provide a configuration to enable/disable CCK Tx
Firmware will use this configuration to enable/disable the
CCK transmission. By default, the CCK Tx is enabled.

CRs-Fixed: 2191524
Change-Id: I165c3ea10ea3734fc81e7d25fe8ad676afd1b2c1
2018-02-21 17:12:42 -08:00
Arif Hussain
97fd3e6d6b qcacmn: Add extended service bit for obss offloads
Added extender service support for obss and obss color
Collision offload support.

Change-Id: Ifd249b3bbf4510297f15beb33df13d6c4f9d7d0e
CRs-Fixed: 2185238
2018-02-10 09:12:49 -08:00
Arif Hussain
b4da347cac qcacmn: Add bss color collision detection support
Add support for bss color collision detection.

Change-Id: Ia3d64917518c2aa5fc4a10bb7f3f8db2d47bc5d7
CRs-Fixed: 2185238
2018-02-10 09:12:46 -08:00
Shiva Krishna Pittala
8407360e5b qcacmn: Use module level logging in Spectral
Current Spectral module uses qdf_print. To improve the control over
logging, use module level logging

CRs-Fixed: 2165341
Change-Id: I205991347453c4dcc424ba1958e309b7c5fb71a0
2018-02-09 09:20:56 -08:00
Arunk Khandavalli
2604ed17c0 qcacmn: use converged wmi events
As part of converged architecture wmi_service_enable is converged
and should be used instead of WMI_IS_SERVICE_AVAILABLE. The events
also need to be defined as part of array for mapping to converged
event id's.

Change-Id: I9ab342a5cf6e665a3eb90eeef6d10bf3c145049d
CRs-Fixed: 2186338
2018-02-09 06:24:36 -08:00
Anirban Sirkhell
679a710ac8 qcacmn: set txpow for frame and subframe
command:-
1. "iwpriv athx s_txpow param1 param2"
2. "iwpriv athx g_txpow param1"

param1 = frame_type<<8+frame_subtype param2 is power_value
if subtype == 0xff means set all subtype of that frame type

Change-Id: I8c68e1ca6a5829a3f0cf01b2c32c3332e1010243
CRs-Fixed: 2175241
2018-02-06 09:43:50 -08:00
Shaakir Mohamed
e2bc1b3203 qcacmn: Increase max value of unit test arguments to 100
Increase the maximum value of unit test arguments to 100 to include
support DL OFDMA RU allocations for testing / debug.

Change-Id: I33ed8d53931e33cc00069653ea38b543339203c0
CRs-Fixed: 2175616
2018-02-05 23:42:54 -08:00
Zhang Qian
74a66aaba3 qcacmn: Add wmi APIs to extract OCB events data
Add APIs to extract data from wmi event buffer for tlv interface.

CRs-Fixed: 2177557
Change-Id: I538c0a9ed4a1d8a4bd8845ab337b16370737ce44
2018-01-29 23:40:45 -08:00
Venkateswara Swamy Bandaru
36dfb3f5aa qcacmn: Add WMI Support for 11ax FW Scheduler API and Stats Per Peer
Add WMI support for enabling/disabling the FW scheduler APIs and stats
per peer for MU and OFDMA

Change-Id: I185ca6ff5b564fc9b83007fd4e37da82b5c9976e
CRs-Fixed: 2169179
2018-01-26 23:26:17 -08:00
Venkateswara Swamy Bandaru
d037ca7e66 qcacmn: Add WMI Support for Setting SU, MU TXBF Sounding Interval
Add WMI support to set SU and MU TX beamforming sounding interval on
host driver in addition to enabling/disabling the above ability.

Change-Id: Ic3ea109e47c0df13db2c919bbcdf5fc7d6164698
CRs-Fixed: 2169176
2018-01-25 15:25:43 -08:00
Vignesh Viswanathan
51994e3d14 qcacmn: Add support for 11k offload related WMI commands
Add WMI TLV functions for 11k offload command and neighbor
report request invoke command.

Change-Id: If37cace93d4f719eed6abfabcd878879d804161e
CRs-Fixed: 2162030
2018-01-25 09:25:38 -08:00
Sourav Mohapatra
0e1c2a8c87 qcacmn: Converge on wmi service/ext service is enable
Converge on wmi service/ext service is enable

Change-Id: Ib246befa72cce927bee157394cd22c7d1562d341
CRs-Fixed: 2152751
2018-01-24 13:19:48 -08:00
Chaithanya Garrepalli
140a053ade qcacmn: WMI support to obtain NAC RSSI
Added a WMI command to add and del peer from the list
of non associated clients for which the RSSI stats
need to be populated

Also added event handler to extract the rssi stats
from the WMI event

Change-Id: I9880c74798c13a52e1498b81735ad78f86fa41b8
CRs-Fixed: 2148773
2018-01-24 01:43:36 -08:00
Jeff Johnson
efb43392c4 qcacmn: Add support to retrieve SAR power limits
Recently change "qcacmn: Add SAR power limit configuration"
(Change-Id: I0a214a2af780e9dd8c381c4e9eaa7d8cab6ef853) added the
ability to dynamically configure Specific Absorption Rate (SAR) power
limits. Now add the ability to retrieve the current active power
limits.

Change-Id: I7a6071dee71300daa3a217780ff3523604a11795
CRs-Fixed: 2161451
2018-01-23 12:30:25 -08:00
Jiachao Wu
26f55de3a9 qcacmn: Add new config for BTM offload
Add new parameters into wmi btm config cmd for solicited BTM offload.

Change-Id: I24cc680bbfde3d44a57b1e1ccf644c2bed515a2c
CRs-Fixed: 2168259
2018-01-19 19:20:31 -08:00
Subrat Mishra
7c9427eb57 qcacmn: Support for SWFDA Event & FD Frame tx
Add new WMI EVENT, SW FILS Discovery Alert Event, to get
firmware trigger to transmit FILS Discovery Frames.
Add WMI command to send FD frame buffer to firwmare.
Add WMI command to set FD period interval in mili seconds.

Change-Id: I8cb6279ec4431b9236bd32c548228a0dc6598664
CRs-Fixed: 2118098
2018-01-19 17:26:23 -08:00
Arif Hussain
f9f26b5606 qcacmn: Add obss detection info extract handler
Add hander to extract obss detection info received
from firmware.

Change-Id: I5fde304915a97d37d6cbe58e7a315e91fbac61b6
CRs-Fixed: 2170184
2018-01-17 15:56:30 -08:00
Arif Hussain
2cfde1d752 qcacmn: Add obss detection offload support
Add support for obss detection offload support.
Sending WMI_SAP_OBSS_DETECTION_CFG_CMDID command
to firmware.

Change-Id: I56eba46e37330637c81d1a2cfa6542dd4ead8183
CRs-Fixed: 2170184
2018-01-17 15:56:28 -08:00
yeshwanth sriram guntuka
230af89385 qcacmn: Add config support for BTM offload
Add ini to configure BTM offload configuration
which is sent to firmware as part of RSO start
via wmi btm config cmd.

Change-Id: I69c792705b208014af8f1878f7645d957dde6c06
CRs-Fixed: 2105112
2018-01-15 17:46:19 -08:00
Himanshu Agarwal
0d578ffa23 qcacmn: Green AP UMAC componentization
Add APIs, structures for Green AP component.

Change-Id: I4a39470104c89c20eec5440b7ae251a764151fd5
CRs-Fixed: 2166428
2018-01-12 12:20:17 -08:00
Nachiket Kukade
e42cd4be0d qcacmn: Modify DISA legacy code to point to the DISA CLD component
DISA feature has been moved to a CLD component under the converged
driver model. Point the wmi API's and structures to the newly defined
files. Define new API's to extract parameters from event buffer.

Change-Id: Ia47d3682217e7ce9c021bb2db8319483c881b3b2
CRs-Fixed: 2161963
2018-01-09 13:40:08 -08:00