Commit Graph

1267 Commits

Author SHA1 Message Date
Vishwajith Upendra
735275240d Release 5.1.0.14
Release 5.1.0.14

Change-Id: Ie4694d6a417241ddc194ba2cdf0957dbed4c2d95
CRs-Fixed: 688141
2016-06-27 18:29:55 -07:00
Arif Hussain
eee043c5bf qcacld-3.0: SAP DFS: Reduce DFS event parameters size
Reduce DFS event parameters size to avoid prealloc failure.

Change-Id: Ide57b3215440aaeebbfa579b858ac1de93938ceb
CRs-Fixed: 1024434
2016-06-27 18:27:20 -07:00
Kiran Kumar Lokere
f1f5e99a70 qcacld-3.0: Update the VHT operation IE as per latest draft
VHT operation IE parameters values are changed in latest draft,
update the set_channel_params to set the new values as per latest
draft.

Change-Id: I2b8f78adb608bf942dff28eda44138044ba93e59
CRs-Fixed: 1022680
2016-06-27 18:25:42 -07:00
Jeff Johnson
bfa0206843 qcacld-3.0: Convert wlan_hdd_oemdata.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_oemdata.c to use the unified set of APIs.

Change-Id: I314879dec6ff7559bded13c158101f41dd4915e9
CRs-Fixed: 937677
2016-06-27 18:21:52 -07:00
Manishekar Chandrasekaran
e32a84812b qcacld-3.0: Update the usage of INI entry 'gWlanMccToSccSwitchMode'
Update the usage of INI entry 'gWlanMccToSccSwitchMode' to reflect
the new options available to avoid MCC condition.

Change-Id: I866393f9df8b266eaeb7e027eb30aa5759b9d832
CRs-Fixed: 1034298
2016-06-27 18:20:37 -07:00
Manishekar Chandrasekaran
1db3abe6cc qcacld-3.0: Use mandatory channel list during SAP operation
Ensure that the SAP operations make use of the mandatory
channel list during SAP channel selection with INI option
'gWlanMccToSccSwitchMode' set to the value of '4' which
will make use of this channel list while trying to avoid
MCC scenarios.

Change-Id: Ia43ee1d2c598c81a5ef0add9246c400577f6f694
CRs-Fixed: 1014128
2016-06-27 18:19:59 -07:00
Kiran Kumar Lokere
02b9aa4bba qcacld-3.0: Add support to parse new vht op IE definition
VHT channel width definition is changed in latest draft. Add
support to parse the new definition of VHT channel width in
VHT operation IE.

Change-Id: I1b9ece6ad490cc158df87d86035a0a338008c539
CRs-Fixed: 1022680
2016-06-27 18:19:25 -07:00
Kiran Kumar Lokere
6a7d1eb99a qcacld-3.0: Fix issue in IBSS Nss configuration
qcacld-2.0 to qcacld-3.0 propagation

Populate the per band vdev nss values of IBSS in add bss
parameters since the IBSS vdev is created as part of IBSS
add bss
Update the INI with per band chain mask and Nss parameters

Change-Id: Ie87f11aaa7166940296af0dcee3d7a32942e3779
CRs-Fixed: 882283
2016-06-27 18:18:54 -07:00
Kiran Kumar Lokere
6671abdf19 qcacld-3.0: Fix the Nss config issues in IBSS and TDLS mode
qcacld-2.0 to qcacld-3.0 propagation

Advertise the HT and VHT MCS in TDLS setup action frames based
on TDLS per band Nss configuration.
Populate the VHT and HT MCS based on vdev Nss value of that
session and send the correct Nss values to FW to use
appropriate rates in Tx.

Change-Id: I94991df3af575f1ffa61a7adabfe0e7586e95cef
CRs-Fixed: 886415
2016-06-27 18:18:26 -07:00
Kiran Kumar Lokere
53981334da qcacld-3.0: Fix the possible NULL dereference
qcacld-2.0 to qcacld-3.0 propagation

lim_get_ie_ptr_new will return NULL if the IE parameters
are not valid, so add NULL check for ie_ptr to avoid
NULL dereference

Change-Id: I1ecc8c4ed6456ebcfd85fe62534b9913ba31dcd9
CRs-Fixed: 869026
2016-06-27 18:17:57 -07:00
Ravi Joshi
a063dd9f69 qcacld-3.0: Create new files for supporting NAN data path feature
Add new files for supporting NAN data path feature.

Propagation from qcacld-2.0 to qcacld-3.0

CRs-Fixed: 962367
Change-Id: If12d15789659d04559a9d65d6b7016d4cc595fcf
2016-06-27 18:17:22 -07:00
Ravi Joshi
c3f5c8a6bf qcacld-3.0: Use unified tx queue and carrier control API
Use unified tx queue and carrier control API instead
of using independent APIs.

Change-Id: Id559b585383a24900cead5d28262b692714b95cd
CRs-fixed: 1027816
2016-06-27 18:16:50 -07:00
Manishekar Chandrasekaran
79746acb37 qcacld-3.0: Check HDD context for null before retrieving the handle
Check the HDD context for null before retrieving the handle since
the HDD context is dereferenced to retrieve the handle. This
prevents a possible NULL point dereference.

Change-Id: I4837f0ce8c3d995be25c08951534e5cfa189b0bb
CRs-Fixed: 1033673
2016-06-27 18:16:07 -07:00
Manishekar Chandrasekaran
2e71e93707 qcacld-3.0: Check return value during SAP global initialization
Check the return value during SAP global initialization to
gracefully clean up the re-initialization in case of any error.

Change-Id: I216146b4501606a536dffb5a859b43dd2d6989ff
CRs-Fixed: 1031855
2016-06-27 18:11:24 -07:00
Kabilan Kannan
14ec97f448 qcacld-3.0: Stop connection tracker during TDLS UAPSD and btcoex
Connection tracker should not run, when the events TDLS UAPSD
and btcoex happens in the system.
Add changes in the host driver to stop connection tracker
for the aforementioned events.

Change-Id: Ib631dc986826339a4c191328f187e46f4e0392d9
CRs-Fixed: 1025613
2016-06-27 18:10:17 -07:00
Vishwajith Upendra
ef65cf4adc Release 5.1.0.13
Release 5.1.0.13

Change-Id: Ib5358ac9729a133e413d2f86d11a09b1e86c7416
CRs-Fixed: 688141
2016-06-24 14:30:50 -07:00
Vidyullatha, Kanchanapally
528789e7ac qcacld-3.0: Implement cfg80211 abort scan API
qcacld-2.0 to qcacld-3.0 propagation

There is no support for cfg80211 abort scan API,
so implement the cfg80211 abort scan API.

Change-Id: I4632c1b4770e6b2f301d67f37005585aef401ab6
CRs-Fixed: 930870
2016-06-24 14:30:50 -07:00
Kiran Kumar Lokere
666bf8591b qcacld-3.0: Add support for NSS configurability
qcacld-2.0 to qcacld-3.0 propagation

Add support for NSS configurability per vdev type
- Configure the 2g and 5g NSS with the INI value of
each vdev type
- Program the HT and VHT IE to FW for 1x1 and 2x2 mode,
FW will include them in scan probe request frames

Change-Id: I5cbf17a14ab6becad6cf5765ae5039fc284dc309
CRs-Fixed: 869026
2016-06-24 14:30:50 -07:00
Manishekar Chandrasekaran
d79c4e6cfa qcacld-3.0: Sanitize SAP context before extracting the handle
Ensure that the SAP context is sanitized before extracting
the global handle. The context passed in the callback could
be freed by the time it is accessed.

Change-Id: I4a08717abce2a0ecbe4055360fd8d31c3e50a701
CRs-Fixed: 1031855
2016-06-24 14:30:50 -07:00
Manishekar Chandrasekaran
f7a1dad7e0 qcacld-3.0: Validate SAP context before access in callback
Ensure that the SAP context is validated before access in
its callback. The global SAP context is now an array of
contexts rather than a single global context to help
validate the session. Increasing the SAP open session
timeout helps to configure all the commands to the FW and
helps to further avoid any crashes.

Change-Id: I6f722dcc4ab671fef010c816a7c7d38fc1bdebe4
CRs-Fixed: 1031855
2016-06-24 14:30:50 -07:00
Mahesh A Saptasagar
c35e8bf4a2 qcacld-3.0: Send disconnect event to upper layers upon disconnect
Indicate disconnect event to nl80211 and thereby to the supplicant
by invoking cfg80211_disconnect upon disconnect as kernel 3.11 onward
releases will not indicate the same to upper layers.

Call to cfg80211_disconnect also signifies whether disconnect is
triggered by the supplicant or received from the AP by setting the
"from_ap" flag accordingly.

qcacld-2.0 to qcacld-3.0 propagation

Change-Id: I55028533ebbf03910755da1b35c2fa57d97ce43b
CRs-Fixed: 1016872
2016-06-24 14:30:49 -07:00
Nirav Shah
da008344a6 qcacld-3.0: Enhance data path related statistics
Enhance data path related statistics
- Add per reason pause time
- Enahnce TSO stats
- clear DPTRACE buffer

Change-Id: Ia59fa5ba326504eb54e14d44f42a335c6b835ee4
CRs-Fixed: 1017437
2016-06-24 14:30:49 -07:00
Rajeev Kumar
4002e5b1c4 qcacld-3.0: Send wow wake event bitmap properly to fw
As part of WMI convergence wow wake event bitmap is sent wrongly
as enable/disable flag to fw. Fix WMA API to send wake event bitmap
properly.

Change-Id: I3b752c365e09f08104fa871c29e2629c1873b3fc
CRs-Fixed: 1033129
2016-06-24 14:30:49 -07:00
Kabilan Kannan
36090ce8b4 qcacld-3.0: Add TDLS connection tracker in WLAN host
TDLS implicit trigger mode works based on data traffic without
user intervention. When the traffic meets setup threshold,
TDLS connection is initiated and when the traffic
reaches a teardown threshold/rssi TDLS connection
is torn down.
Add TDLS connection tracker in the host driver to determine,
when to initiate and teardown the TDLS connection based
on data traffic.

Change-Id: I995ea9c391372515faabe5086b638f254b6b93d7
CRs-Fixed: 996988
2016-06-24 14:30:49 -07:00
Krunal Soni
805cfb5863 qcacld-3.0: Reset gEnableRXLDPC to mitigate hardware limitation
helium project has limitation of not supporting LDPC on PHY-B,
but PHY-A does support this feature. Software design is in process
to handle this gracefully but till software design is ready, this
feature needs to be disabled from INI to avoid any confusion.

CRs-Fixed: 1029145
Change-Id: I8a3659f20414851cb394395225c301a90cd94f64
2016-06-24 14:30:49 -07:00
Krunal Soni
2e48d01f44 qcacld-3.0: Populate extended caps coming for each phy to UMAC
Read TLVs for each PHY per each HW MODE coming as part of service
ready extension event and decode them and store them in wma_handle for
later use.

CRs-Fixed: 1029145
Change-Id: I302ad442f660feb795d7a8f1353b5d820d26aac8
2016-06-24 14:30:49 -07:00
Krunal Soni
aa664da4af qcacld-3.0: Derive HT and VHT caps from given per PHY cap
loop through each mac's cap per hw mode and derive final
ht cap and vht cap by either taking MIN or MAX value based
on the engineering requirement.

For backward compatibility reasons, if firmware doesn't
give any TLV for extended caps then use legay HT and VHT cap
values.

CRs-Fixed: 1029145
Change-Id: I3ad9b474c281f3dd371eb2b88b71e8af59fcd66d
2016-06-24 14:30:49 -07:00
Krunal Soni
09e5503fe7 qcacld-3.0: Don't set operating channel before ROC gets finished
Vendor cmd(QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL) in supplicant
has been designed to notify the driver about operating channel right after go
negotiation is completed, so that driver can get going with HW mode
change little ahead of time before the change iface/add iface req comes
down from supplicant for the CLI role. But it looks like the cmd is
coming even before RoC cancellation is done for the completed
negotiation. So, this delays the HW mode change req in FW as FW thinks
the scan (on going RoC) is not complete yet. As a result it waits for the RoC to
finish before entertaining the HW mode change req.

To fix this situation, don't set probable operating channel till RoC
gets finished.

CRs-Fixed: 1025390
Change-Id: I8b3df2259f71cf51b8ffc8b9a50edad7fea81d13
2016-06-24 14:30:49 -07:00
Varun Reddy Yeturu
101f954b16 qcacld-3.0: Include appropriate auth info for roaming
In case of CCKM, the host is not passing specifics as to whether
it is WPA or RSN proto type which would be needed for the
firmware to do a proper LFR3 roaming. So, pass the necessary
information to the firmware and also ensure the backward
compatibility is still maintained with LFR2.0.

CRs-Fixed: 1020291
Change-Id: I220d2c1909a44fd7edb46127daec1165fca71ebe
2016-06-24 14:30:34 -07:00
Vishwajith Upendra
5a3b9b6299 Release 5.1.0.12
Release 5.1.0.12

Change-Id: I84c2045bca3ae8775e6afbc1abeb6eec73488be7
CRs-Fixed: 688141
2016-06-23 12:28:29 -07:00
Houston Hoffman
e248264ce4 qcacld-3.0: Add context checking in epping_disable
epping_disable needed to check that contexts were
not null before trying to perform the disable opperations.

Change-Id: Ia8182b1deed1a6a1d2643f91660880fb52450e3d
CRs-Fixed: 1027691
2016-06-23 12:28:26 -07:00
Rajeev Kumar
769d982071 qcacld-3.0: Remove redundant spam logs from BMI
BMI is logging every read/write in driver log buffer which
is leading to driver buffer overrun. Remove redundant log
messages from BMI such that driver log buffer can store more
useful control path log messages.

Change-Id: I7e21a9199b42cdbc60c3207ecf9d705e0a151da8
CRs-Fixed: 1031927
2016-06-23 12:28:22 -07:00
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