Commit graph

1,185 commits

Author SHA1 Message Date
Sandeep Puligilla
394da5dde7 qcacld-3.0: Enhance logging related to scan
Enhance debug information related to scan results
like adding SSID and time stamp of beacon in logs

Change-Id: Ib85dffff39d0db69a695e8167b6a221b51ef7d45
CRs-Fixed: 1013236
2016-06-23 12:28:18 -07:00
Sandeep Puligilla
1cc23f6e37 qcacld-3.0: Obtain channel params from CDS
All the regulatory and channel management functionality
moved to CDS.

Cleanup the SME redundant functionality related to channel
parameters generation and update all the code references
to CDF API's

Change-Id: Iaf4e15b4ebb7107d8bbf7a54e42f9ea9358dcdaf
CRs-Fixed: 994562
2016-06-23 12:28:15 -07:00
Jeff Johnson
0c1301d1fe qcacld-3.0: Convert wlan_hdd_stats.c to unified logging
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_stats.c to use the unified set of APIs.

Change-Id: I32c2bc3755b42693947a38808e510683b9477b44
CRs-Fixed: 937687
2016-06-23 12:28:11 -07:00
Mohit Khanna
43f433d719 qcacld-3.0: Add USB bus support (CDS, Utils, SAP)
Add Module specific changes for USB bus support for qcacld3.0.

Change-Id: Idb9fe1232d451e4f88a001fbd6591ba13b0c859a
CRs-Fixed: 1023663
2016-06-23 12:28:04 -07:00
Mohit Khanna
841044f9c0 qcacld-3.0: USB bus support (Corestack)
Add corestack specific changes for USB bus support.

Change-Id: I1d0813f70280618c0502db6e67233054726c3c17
CRs-Fixed: 1023663
2016-06-23 12:28:01 -07:00
Poddar, Siddarth
b61cf643e2 qcacld-3.0: Add hdd tx-rx apis for High Latency systems (Part 5 - HL Datapath)
Support per vdev tx desc pool in hdd and
for sending 802.11z action frames.
CRs-Fixed: 975526
Change-Id: Ic63e07abdabae9795bba6f76daa954235c894245
2016-06-23 12:27:58 -07:00
Poddar, Siddarth
5a91f5bdec qcacld-3.0: Add wma apis for High Latency systems (Part 4 - HL Datapath)
Initialize bad peer tx control data structure in WMA,
send down the initial configuration info to fw and
configure the peer status update setting in the tx_rx module.

CRs-Fixed: 975526
Change-Id: Ib380e10a0b343b6a8f9c2c0bf6d6dd602d2601c5
2016-06-23 12:27:54 -07:00
Siddarth Poddar
b2011f6435 qcacld-3.0: Add txrx apis for High Latency systems (Part 2 - HL Datapath)
Add tx schedular module, tx classify module within the data SW,
tx frame queues logging,  group credit support and
send-recieve tx frames instance for HL system.

CRs-Fixed: 975526
Change-Id: If1655d4d832f88e565ab946ef9e9719f256ab7b1
2016-06-23 12:27:50 -07:00
Siddarth Poddar
1df1cd85b4 qcacld-3.0: Add htt apis for High Latency systems (Part 1 - HL Datapath)
Add support for HTT instance creation, initialization and
deletion, Host -> Target and Target -> Host HTT messages
exchange, receive and transmit aspects of HTT.

CRs-Fixed: 975526
Change-Id: Ie66a83b6efe216df192b033c9d137a93fdce688f
2016-06-23 12:27:43 -07:00
Ryan Hsu
b736bc55f2 qcacld-3.0: Fix regression in the sched_scan interval value
In Kernel commit 3b06d27 ("cfg80211: Add multiple scan plans
			  for scheduled scan")

The interval in the sched_scan plan request is changed to second.
Driver needs to do the conversion to msec before set to firmware.

Also, driver can only support one sched_plan so far, so set this
back to wiphy and adds sanity check when request comes to driver.

Change-Id: Id725f2726e1caafe48c6b76d59a24f71ffa01af6
CRs-fixed: 1029203
2016-06-23 12:27:39 -07:00
Abhishek Singh
1c67622020 qcacld-3.0: Set wlan phy mode in OEM channel info response
qcacld-2.0 to qcacld-3.0 propagation

Calculate and add wlan phy mode for each channel in OEM channel
info response.
Also send ANI_MSG_PEER_STATUS_IND indication for STA mode when
STA gets connected.

Change-Id: I91363e90698cabda72028135eb7fe9adeb1fbc86
CRs-Fixed: 1007004
2016-06-23 12:27:37 -07:00
Amar Singhal
a5bd9e8c27 qcacld-3.0: Fix issues in channel bonding APIs
Fix calculation of sec_ch_offset. Also fix the check for
HT40 flag to calculate the channel BW. Also fix check for
secondary channel.

CRs-Fixed: 1022025
Change-Id: If37780ea64698ab616131a550cd877368c56faa6
2016-06-23 12:27:34 -07:00
Himanshu Agarwal
5e9ed45ec1 qcacld-3.0: CL 1524393 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

Add WMI VDEV SW_RETRY_TH params
Add halphy module ID

Change-Id: Ie7c14aadf124a0aaaad1470e678e99f2fb5d436b
CRs-Fixed: 865207
2016-06-23 12:27:32 -07:00
Himanshu Agarwal
1af039888c qcacld-3.0: CL 1522096 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

Add new service WMI_SERVICE_MARK_FIRST_WAKEUP_PACKET

Change-Id: I427fef8d8f2503c52d511fdae58fe410420e67a0
CRs-Fixed: 865207
2016-06-23 12:27:29 -07:00
Himanshu Agarwal
2690e4668c qcacld-3.0: CL 1521398 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

WMI changes for 11AX related BSS parameters
Extend the WoW wake event bitmap

Change-Id: I68367a8d688cdc9f85efe01a7c48856c8bab7220
CRs-Fixed: 865207
2016-06-23 12:27:25 -07:00
Himanshu Agarwal
f7bb67bb6b qcacld-3.0: CL 1519524 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

P2P listed offload WMI messages

Change-Id: I0f591f9a620587ef77be09e3714c7156d4189172
CRs-Fixed: 865207
2016-06-23 12:27:22 -07:00
Himanshu Agarwal
29061327de qcacld-3.0: CL 1517922 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

Change MAX_CHAINS to WMI_MAX_CHAINS

Change-Id: Ib7f2e5ed41c8ea889192814aed10e94e7ecf11e3
CRs-Fixed: 865207
2016-06-23 12:27:19 -07:00
Himanshu Agarwal
8631954b6d qcacld-3.0: CL 1515963 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

WMI changes for per_chain_RSSI stats
Add WMI defs for weighted slow diversity

Change-Id: I90dc3218517e1a6b38fd7ded07c5ea17bc832b9b
CRs-Fixed: 865207
2016-06-23 12:27:16 -07:00
Himanshu Agarwal
82972fd824 qcacld-3.0: CL 1513397 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Define 2 sub-CCKM auth types
Deprecate WOW_NAN_RTT event and reason, and use their values
for WOW_OEM_RESPONSE

Change-Id: I0db10a599f4bbbdf23e5968fa5dab59b722efa30
CRs-Fixed: 865207
2016-06-23 12:27:12 -07:00
Himanshu Agarwal
e93c55ec42 qcacld-3.0: CL 1511668 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Fix union in WMI_MAC_PHY_CAPABILITIES
WMI changes to control transmit power for beacon frames

Change-Id: I4acd731ec8850766d4d47715ff78b813281d0b6a
CRs-Fixed: 865207
2016-06-23 12:27:06 -07:00
Himanshu Agarwal
a143815200 qcacld-3.0: CL 1509574 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Vdev level rx filter of from-ds / to-ds / no-ds / ta / ra
frames.

Change-Id: I63ee1aeb2eba793e3a06c2632f43ea044ba33422
CRs-Fixed: 865207
2016-06-23 12:27:03 -07:00
Himanshu Agarwal
800d58d7c8 qcacld-3.0: CL 1509448 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Merge WMI_VDEV_VOW_ENABLED flag
Add a new config to set preferable audio during WLAN connection

Change-Id: I86ed461a5d3d6d7f48e5ce2eb9370771a619d667
CRs-Fixed: 865207
2016-06-23 12:27:00 -07:00
Himanshu Agarwal
b953a26894 qcacld-3.0: Add place holder enums for new feature
Add place holder enums for new feature under development.

Change-Id: I3af426b0120e46e56bc0e2ff2831a471016d30e1
CRs-Fixed: 865207
2016-06-23 12:26:58 -07:00
Himanshu Agarwal
b0497b5f39 qcacld-3.0: CL 1507516 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Add dbglog IDs for ARP and DHCP packets
WMI CMDID for dbglog time stamp sync
Move reason code from wmi to nan_msg.h

Change-Id: I2e6e837fade375ef86c0c4247490b44ec502be1b
CRs-Fixed: 865207
2016-06-23 12:26:55 -07:00
Himanshu Agarwal
134b73687b qcacld-3.0: CL 1506155 – update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

WMI bandwidth fairness peer configuration command message
definition.

Change-Id: I8023e8a4f9758d6003a3f666cc45c1e98265c01a
CRs-Fixed: 865207
2016-06-23 12:26:51 -07:00
Gupta, Kapil
96c7f2f620 qcacld-3.0: Add support for adaptive dwell scan time
Dwell time can be modify based on channel congestion per scan
request.
Add changes to enable firmware to use scan control flag and
select dwell time optimization algorithm based on ini values.

Change-Id: Iea3de57c1b7d087442e4b8984b4184d24bb8c930
CRs-Fixed: 994443
2016-06-23 12:26:44 -07:00
Abhishek Singh
7a995582d6 qcacld-3.0: Change struct of EVENT_WLAN_SECURITY diag event
qcacld-2.0 to qcacld-3.0 propagation

Currently for diag event EVENT_WLAN_STATUS, diag
structure only allocates 6 bytes for ssid, though
ssid can be upto 32 bytes.

Also for diag event EVENT_WLAN_SECURITY, event id is
filled as PTK and GTK req/rsp for unicast and broadcast
req/rsp. PTK,GTK request doesn't make sense for wep case.

As a part of change, increase ssid size to 32 and replace PTK,
GTK req/rsp event id with Unicast, Broadcast req/rsp respectively.

Change-Id: I5aad1875262dd73878cc8393d09de1b23953d3a2
CRs-Fixed: 921847
2016-06-23 12:26:41 -07:00
Kiran Kumar Lokere
92b1fcaab9 qcacld-3.0: Fix the regression in join failure processing
Set the correct link state in join failure processing so that
WMA processes the request and sends the vdev stop when the join
failure happens.

Change-Id: I4e5ddcbd7e7b2b0141904410adb66f228dab0046
CRs-Fixed: 1020982
2016-06-23 12:26:38 -07:00
Krishna Kumaar Natarajan
e42bb17c5a qcacld-3.0: Disable FEATURE_MEMDUMP in Kbuild
Disable FEATURE_MEMDUMP in Kbuild.

FEATURE_MEMDUMP should be redesigned appropriately for
cld-3.0. Disable this feature until implementation is
complete.

Change-Id: I3190414ff32d8a75b07c2c311e257f4d388ef26d
CRs-Fixed: 1026747
2016-06-23 12:26:33 -07:00
Krishna Kumaar Natarajan
1b909d7d51 qcacld-3.0: Fix out of bound memory copy in WMA
Fix out of bound memory copy by allocating buffer for
required size.

When WMA structures are converted into wmi_unified_param
structure, required memory was not allocated and hence
invalid memory was referenced resulting in stack corruption.

Change-Id: I868300cba9326b0146d3afadc9fef6337877d58d
CRs-Fixed: 1024437
2016-06-23 12:26:31 -07:00
Krishna Kumaar Natarajan
294da81dec Revert "qcacld-3.0: 11ac 160MHZ support workaround"
Revert the change merged while adding 160MHz support.

RM 5.0 FW was not handling phymode VHT20/40 in 2G correctly which
was resulting in an assert. This revert will now enable host to
associate in VHT20/40 modes in 2G. This change will revert
the Change-Id: I7e7f1a9c1ff82a567f278987dbbe14c5c8b9bb2e

Change-Id: If0f8fb71413e0aeb5d355c5bbb1f0626a18b8d6f
CRs-Fixed: 1014267
2016-06-23 12:26:28 -07:00
Vishwajith Upendra
9e25bc9e5f Release 5.1.0.11
Release 5.1.0.11

Change-Id: I4a03c1be30d4efeffc8987d310bf6f862cb896da
CRs-Fixed: 688141
2016-06-21 14:32:04 -07:00
Houston Hoffman
5649db91a8 Revert "qcacld-3.0: Refactor WMA data commands to fix WIN compilation"
This change reverts Change-Id:I48978e51ca6bd4416420ee66746d5bfe7adae3c9

Change-Id: I97bd7e1c9977c061f138d3415d2d7d756b401582
CRs-Fixed: 1008872
2016-06-14 14:55:16 -07:00
Manikandan Mohan
7579337abf qcacld-3.0: Fix compilation error in 4.4v Kernel
Fix compilation errors in Kernel 4.4 version.

Change-Id: I08ce390a7983cfe70b46a48d22d6cfde11dc4c30
CRs-fixed: 1026152
2016-06-14 14:28:50 -07:00
Manikandan Mohan
b6315dd6ab qcacld-3.0: Setup datapath for WISA mode
Setup datapath for WISA mode based on WISA CFG80211 vendor command.

Change-Id: I488ae908f04b007be12a3850d432bff314c03ebd
CRs-fixed: 997798
2016-06-14 14:28:47 -07:00
Nirav Shah
2e583a0344 qcacld-3.0: Datapath changes for WiSA specification
Datapath changes for WiSA specification.
- Multicast packets with 50000 as destination
  port should go at 6Mbps.
- Multicast packets with 50001 as destination
  port should go at 24Mbps.

Change-Id: Ic219f58f3e8b2f6863a275928429153defe63b5a
CRs-Fixed: 1010412
2016-06-14 14:28:44 -07:00
Nirav Shah
1da7768385 qcacld-3.0: Remove PROTO_TRACE feature
Remove PROTO_TRACE feature and add MGMT packet
logging in DPTRACE.

Change-Id: I9bc019bb03e703cb8044cb5d4290fd438b1c3e69
CRs-Fixed: 1008087
2016-06-14 14:28:41 -07:00
Nirav Shah
0d58a7ef5f qcacld-3.0: Enhance DPTRACE to support RX path
Enhance DPTRACE to support RX path and
add support for live mode.
Live mode will print info in kmsg and
log it in buffer as well.
To enable live mode use below command.
iwpriv wlan0 dump_dp_trace 1 0

Change-Id: Id309a4d75cec93654b4acac51e5be42eae7f0b35
CRs-Fixed: 1008087
2016-06-14 14:28:38 -07:00
Nirav Shah
cc1f1ae340 qcacld-3.0: Add ini support for DPTRACE
Add ini parameter and feature flag for
DPTRACE to enable/disable as per requirement.

Change-Id: I80db65adb7b8e82d5ea75cceac742fd229d7a2b5
CRs-Fixed: 1008087
2016-06-14 14:28:36 -07:00
Nitesh Shah
0ddd4f656a qcacld-3.0: HS20 indication element support
HS20 Indication element parsing is added to indicate
release number of the HS20 passpoint that is present
in Hotspot configurations.

Change-Id: I8671d569d3809ebe5da7233ec862ae2569f5c109
CRs-Fixed: 1019592
2016-06-14 14:28:33 -07:00
Govind Singh
6a2fe03b7b qcacld-3.0: Add PLD layer for SDIO bus(Part 7 - HIF SDIO)
PLD stands for platform driver. It is a interface between CLD and
CNSS/ICNSS. It hides the CNSS/ICNSS APIs from CLD and provides a set
of common APIs.
Other modules should include pld_common.h if they want to call PLD
APIs.

Change-Id: I7591761d2a2be0e22fcad13a504e9fe5f92b9608
CRs-Fixed: 1015316
2016-06-14 14:28:30 -07:00
Komal Seelam
92fff91248 qcacld-3.0: Get WLAN MAC address from CNSS platform driver
OEM's has provision to update cnss platform driver with the mac address.
Modify wlan functional driver to query cnss platform driver for the mac
address.

If the cnss platform driver is not populated with valid mac address, driver
will fallback to use the existing approach to update mac address.

Change-Id: I0b4bb53047eba3af8b98aadfae22974558153cb5
CRs-Fixed: 985585
2016-06-14 14:28:27 -07:00
Govind Singh
ec7ad72102 qcacld-3.0: Refactor WMA data commands to fix WIN compilation
Refactor WMA data commands to remove dependency of WMA header files
in common wmi layer.

Change-Id: I48978e51ca6bd4416420ee66746d5bfe7adae3c9
CRs-Fixed: 1008872
2016-06-14 14:28:24 -07:00
Yuanyuan Liu
f7aea120bf qcacld-3.0: Re-organize header file including structure
Include pld_common.h in pld_internal.h as it uses data structures
defined in pld_common.h.

CRs-Fixed: 1022636
Change-Id: I17f8abfbec08b620be5af677e1599554c5fc7ea6
2016-06-14 14:28:20 -07:00
Yuanyuan Liu
5e25f531b5 qcacld-3.0: Provide common functions of adding/deleting dev node
Provide common functions of adding/deleting dev node from PLD
global context. These two APIs should be called in probe/remove
callback functions.

CRs-Fixed: 1023650
Change-Id: Iff8157ab4396266ffb013700076d4107a3a21566
2016-06-14 14:28:17 -07:00
Yuanyuan Liu
59f81e020e qcacld-3.0: Add PCIE/SNOC wrapper functions in PLD
It is not flexible to call CNSS/ICNSS APIs directly in pld_common
as PCIE and SDIO share some CNSS APIs. It will introduce "duplicate
definition" errors when SDIO is added. Hence, add wrapper functions
for all used CNSS/ICNSS APIs.

CRs-Fixed: 1022778
Change-Id: I6a38434cfa99fc47543e995dd82b7d8ddc4453a7
2016-06-14 14:28:14 -07:00
Yuanyuan Liu
11f526acba qcacld-3.0: Use PLD internal flags
Use PLD internal flags in PLD layer instead of using CNSS/ICNSS
kernel flags.

CRs-Fixed: 1018099
Change-Id: Id32c62ccd1749ef5a38fd11aba6ce6e4fbe84a6e
2016-06-14 14:28:12 -07:00
Yuanyuan Liu
25c66e1ac9 qcacld-3.0: Add CONFIG_PM flag for PLD pcie suspend/resume
Add CONFIG_PM flag for PLD pcie suspend/resume as it is not needed
in other platform when CONFIG_PM is not defined.

Change-Id: Iab04d15c81cbb94ccbdeb9be2b00fa069a421a86
CRs-Fixed: 1014363
2016-06-14 14:28:08 -07:00
Himanshu Agarwal
a6cedee349 qcacld-3.0: Change unsigned long to uint64_t
Change unsigned long to uint64_t while updating intra bss forwarded
packets count to make sure that the assignment is compatible for all
architectures.

Change-Id: I6bc0e2d7524c117ce199b4a373f541fd06fc9ef8
CRs-Fixed: 996735
2016-06-14 14:28:06 -07:00
Poddar, Siddarth
3e9fa5c0ec qcacld-3.0: Add hdd layer changes for HL (Part 6 - HIF SDIO)
Add sdio bus type to PLD bus type to map it to low level bus type.

CRs-Fixed: 969334
Change-Id: Icfccca604f71b1d3b6cedcc9fa6300e9cc14f4c3
2016-06-14 14:28:04 -07:00