Commit Graph

1820 Commits

Author SHA1 Message Date
qcabuildsw
6b3b1aea49 Release 5.1.0.26O
Release 5.1.0.26O

Change-Id: Iedf96ff5224311a2c9f740d86bb6436affb69926
CRs-Fixed: 688141
2016-09-12 19:04:19 -07:00
Naveen Rawat
17dccbee18 qcacld-3.0: Change NDP WOW event handling to confirm with existing code
Currently in wma_wow_wakeup_host_event, NDP WOW handler code is doing manual
pointer arthematics followed conversion to event tlv. This is duplicate effort
as necessary wmi event struct is already available. Remove this and directly
use wmi event struct.

Change-Id: I90da473d773781d007f4932d6ffbec389d5a2766
CRs-Fixed: 1058503
2016-09-12 19:03:33 -07:00
Naveen Rawat
19da3d155c qcacld-3.0: Change NDP_SERVICE_INSTANCE_ID from 16 bits to 32 bits
This is qcacld-2.0 to qcacld-3.0 propagation.

Change NDP_SERVICE_INSTANCE_ID from 16 bits to 32 bits

Change-Id: I4fab1af6d9b8e34396bb3679f112c7f29bbe9f93
CRs-Fixed: 962367
2016-09-12 19:03:23 -07:00
Manjunathappa Prakash
779e48688b qcacld-3.0: Fix build error due to missing cds_utils.h
Fix below build error:
qcacld-3.0/core/hdd/src/wlan_hdd_softap_tx_rx.c:605:2: error: implicit
declaration of function 'cds_host_diag_log_work'
[-Werror=implicit-function-declaration]
  cds_host_diag_log_work(&pHddCtx->rx_wake_lock,
    ^
    cc1: all warnings being treated as errors

Change-Id: Ia1fe71abd783e24e91ae197db4a6b8fcc0b28ec7
CRs-Fixed: 1065872
2016-09-12 18:05:26 -07:00
Manjunathappa Prakash
169361e309 qcacld-3.0: Fix multi queue NAPI build errors
Fix build errors on the platform where multi queue NAPI is
not supported.

Change-Id: Id9916cff11f9337f279f9aed6dfe35e7a6beb1ed
CRs-Fixed: 1065872
2016-09-12 18:05:23 -07:00
qcabuildsw
6dbbe0883c Release 5.1.0.26N
Release 5.1.0.26N

Change-Id: Ifbfd383304acc6140b2918d15b5d0e0c89c3e9b2
CRs-Fixed: 688141
2016-09-12 12:16:29 -07:00
Dustin Brown
2444ee6840 qcacld-3.0: Disable NS offload when max addresses is reached
When NS offloading is enabled, and we reach the maximum number of supported
addresses, disable NS offload so Apps can handle it.

Change-Id: I8312d5e8091cfbdc1f6e3e1e1093ae1dca0c096c
CRs-Fixed: 1063737
2016-09-12 12:16:27 -07:00
qcabuildsw
9d1df66654 Release 5.1.0.26M
Release 5.1.0.26M

Change-Id: I779976f45b671b33cc4663d8470515d39aa688d0
CRs-Fixed: 688141
2016-09-12 11:12:40 -07:00
Anurag Chouhan
bf5e0e2457 qcacld-3.0: Add fw_test command
Add an Iwpriv command to update fw test params.

Change-Id: I7017fedbe8eddfa6b0f93f1d6129b12f22a462bb
CRs-Fixed: 1045265
2016-09-12 12:54:09 +05:30
qcabuildsw
5d2c9db1df Release 5.1.0.26L
Release 5.1.0.26L

Change-Id: I4e1660efda00b9255b382ddba70b82cfd173ff54
CRs-Fixed: 688141
(cherry picked from commit 397a4fadd42064601c2b6c7ca9363cf84f9631ca)
2016-09-11 17:55:59 -07:00
Arif Hussain
9dc47d3beb qcacld-3.0: SAP DFS: Fill new channel width in new_ch_params
In sap_random_channel_sel function, new channel and channel width will
be calculated based on the available channels. New channel width is
populated to only new_chanWidth and this new channel width value will be
assigned to new_ch_params in wlansap_set_channel_change_with_csa.
This channel width from new_ch_params will be used as new channel width
on restarting SAP on Radar detection.

wlansap_set_channel_change_with_csa will get called only when radar is
detected when SAP started beaconing (after CAC wait).

If radar is detected during CAC_WAIT state, new_ch_params will not be
having new calculated channel width, it will be having zero, So during
this scenario SAP will be restarted with 20MHz bandwidth.

To fix this, populate new channel width to new_ch_params in
sap_random_channel_sel along with new_chanWidth.

Change-Id: If07f875dda3a4f6d29480c84b784ca7995c19c7f
CRs-Fixed: 1063038
(cherry picked from commit 714eb0a7fae9c4e50b1c52fa27001705991ab6eb)
2016-09-11 17:55:56 -07:00
qcabuildsw
9e93a61862 Release 5.1.0.26K
Release 5.1.0.26K

Change-Id: I0a31da9177ad6e978d6e72efba37153431c18a1e
CRs-Fixed: 688141
(cherry picked from commit 36008e6d9865769c8815dffeea10b18258c3c9b5)
2016-09-11 17:53:24 -07:00
Sandeep Puligilla
7e3e3c5fbb qcacld-3.0: Serialize peer create and delete
Peer create is called before peer delete which
triggered assert at firmware.

Remove the duplicate peer entry before creating
a new entry for the same peer by serializing
the messages.

Change-Id: Ibf044df5271e9cd2fc3e869bb28d101d3ea9ad43
CRs-Fixed: 1052279
(cherry picked from commit fe914b42b15af00236e3db8e0d6c7d408c5bc4be)
2016-09-11 17:52:47 -07:00
Selvaraj, Sridhar
a7fc763e16 qcacld-3.0: Update Assoc IEs to firmware after STA connects
As part of MBO(Multiband Operations), the Assoc IE's including
MBO IE need to be sent to FW as part of Roam Scan Offload command
so that these IE's can be used later in firmware initiated roams

Change-Id: Ia873c65a7813ae63d8e53d7445095990b0c2fed7
CRs-Fixed: 1039969
(cherry picked from commit 0af3520421400b65002604e0a3a9c7c714cc1e21)
2016-09-11 17:37:17 -07:00
Selvaraj, Sridhar
fd889b56fd qcacld-3.0: Avoid race between user triggered disconnect and OTA disconnect
qcacld-2.0 to qcacld-3.0 propagation

Due to race between user triggered disconnect and OTA disconnect,
On receiving OTA disconnect PE sends DISCONNECT_IND to SME and
waits for conformation from SME. By the time if SME already received
disconnect from user it will give PE DEAUTH_REQ instead of DIASSOC_CNF
messgae. Upon receiving this PE will do the clean up and will send
DEAUTH_RSP message. SME will also process DISASSOC_IND and will send
eSmeCommandWmStatusChange. But this will be in pending queue as user
triggered deauth is in progress as a SME active command. If this is processed
after user initiated disconnect command, HDD will get two disconnects which
cause mess up of eConnectionState_Disconnecting/eConnectionState_NotConnected
states in hdd disconnect handler.

Fix is to remove pending eSmeCommandWmStatusChange command after
DEAUTH_RSP from SME.

Git-commit: 7f0986129d00270d1b7bba3d671bba79ba323933
Change-Id: I004834785491ab7cf3e90371dfd1910c25d0bbef
CRs-Fixed: 1003374
(cherry picked from commit 2b4f56c8dcbc292391d705993c7cd874c3dea008)
2016-09-11 17:36:34 -07:00
qcabuildsw
a2c9394237 Release 5.1.0.26J
Release 5.1.0.26J

Change-Id: I1b94db3771c91e56767e97aa0a92f2e7747f2e3a
CRs-Fixed: 688141
(cherry picked from commit f55e364553887474f084902b5b657a40b31c75da)
(cherry picked from commit d5310cc84048776f7b153449370ebe6cb5ef8492)
2016-09-11 17:12:29 -07:00
Nitesh Shah
4e2d5eb3e7 qcacld-3.0: Allow Link speed only for P2P GO/Client
Link speed is returning incorrect value.

Fix is to allow link speed only for P2P GO/Client. Return error
for other device modes, as link speed feature in FW is only
supported for P2P interfaces as it was implemented to support
Miracast.

Change-Id: I5747d9ebbcbac3ae1ebf69f261d721a96e22d53c
CRs-Fixed: 1063541
(cherry picked from commit 9327fc30217078d165f7be85a3fb277e9d09e669)
(cherry picked from commit a346e371732b5fc24f171a3bde4666e7950f3c01)
2016-09-11 17:12:28 -07:00
Nalla Kartheek
4fc5715f8c qcacld-3.0: Set fProbeRsp flag if PNO ind is from Probe response
qcacld-2.0 to qcacld-3.0 propagation

Kernel updates RSN IEs in BSS table only if it receives the Probe
response. Hence set fProbeRsp flag in BssDescriptor if PNO found
indication is due to probe response.

CRs-Fixed: 907635
Change-Id: I2bfee96c5a2abc6b0730c11e0c694ede81a69a21
(cherry picked from commit abb1af07e98ca6581186538a04a735b33e0ca66f)
(cherry picked from commit 5985919d63cb0e58920fc0022f0807ae36fa19fa)
2016-09-11 17:12:27 -07:00
Nitesh Shah
6259b1cb1c qcacld-3.0: Modify timer and threshold ini parameters in TDLS
Propagation from qcacld-2.0 to qcacld-3.0.

While initiating TDLS connection, overflow occurs when the
minimum time for TDLS stats is less than 1000 ms.
To avoid the overflow, the default time is kept as 2000 ms
and minimum time as 1000 ms. To improve the TDLS discovery,
packet threshold is changed to 40 packets.

Change-Id: Ibbb422c739b5927c5f2d788712f376a1cfa42930
CRs-Fixed: 1020247
(cherry picked from commit f9fe1c7d3a55caf8cf263f280508a91f0fe06a96)
(cherry picked from commit 388cc4379009f9e7a09fbfec6a846bcc80452d43)
2016-09-11 17:12:24 -07:00
Nitesh Shah
87335a5617 qcacld-3.0: Set channel BW as 20 MHz for IBSS in 2.4 GHz
Propagation from qcacld-2.0 to qcacld-3.0.

The device supports only 20 MHz while operating in IBSS
mode in 2.4 GHz band. There is no support in firmware to
do OBSS scan in STA/IBSS mode. Thus, the device will not
start IBSS when the configured bandwidth is other than
20 MHz in 2.4 GHz band.

Update channel width as 20 MHz if the device is in IBSS
mode and is operating in 2.4 GHz.

Change-Id: I01fa0df44f8b6f9ada835c0fc80a46eb0da6d6d7
CRs-Fixed: 1009922
(cherry picked from commit 5167d6c9b4271f08d3e819a0e9a7da1142630094)
(cherry picked from commit 5baf73480e91e68a2b5dfbe2a6981003d064fc9c)
2016-09-11 17:12:24 -07:00
Kondabattini, Ganesh
96ac37b226 qcacld-3.0: maintain the backward compatibility for svc events
qcacld-2.0 to qcacld-3.0 propagation

Add radio index at the end of wlan svc msg in TLV format inorder
to maintain the backward compatibility with user space application
like wlan_services and cnss_daemon.

Change-Id: If578d66eada17784eef7daafa7351df95fc74f5a
CRs-Fixed: 1019664
(cherry picked from commit 6a1d4b9d33b10ed50990efc825e530e020661153)
(cherry picked from commit 53627e3d41d55a9d71889443daa2ab769227c170)
2016-09-11 17:12:23 -07:00
Padma, Santhosh Kumar
724f63df4b qcacld-3.0: Reduce roaming delay by moving tdls cb after enabling queues
qcacld-2.0 to qcacld-3.0 propagation

Function wlan_hdd_tdls_connection_callback takes few milliseconds
to complete its functionality which can effect roaming delay.
Move this functionality after enabling queues to reduce roaming delay.

Change-Id: I78d7b4deadb6cccdfd81f8431b6dd7c013e05340
CRs-Fixed: 978673
(cherry picked from commit a86f1940b048ef49dae99c903c0dee3400444068)
(cherry picked from commit 827dea48dfc7c6d25e77ade6383645f866991e5e)
2016-09-11 17:12:21 -07:00
Padma, Santhosh Kumar
3fdc7a8729 qcacld-3.0: Initialize session id for auth retry timer
qcacld-2.0 to qcacld-3.0 propagation

Currently session id is not initialized for auth retry timer
during roaming which can result in error in lim_deactivate_and_change_timer
during preauth. Fix this by initializing session id for auth retry timer.

Change-Id: Ia7093802c9240c967378de54695a258d80c395de
CRs-Fixed: 1043384
(cherry picked from commit 2095a2a7167cb8ca5fb23aa339639f360709edbb)
(cherry picked from commit 9232eaf4e118445b187252c8b8c80249da16c624)
2016-09-11 17:12:20 -07:00
Deepthi Gowri
d5a58fe264 qcacld-3.0: Register management frames during wlan re init
qcacld-2.0 to qcacld-3.0 propagation

It could be possible that after SSR, pMac context is lost,
due to which the management frame callback will not be invoked
and none of the management frames will be processed,
resulting in scan and connection issues.

To address this, Register management frame callback during wlan re init.

CRs-Fixed: 962187
Change-Id: I5429da9dbc33c7e2044d5a4daa1c8d3d7af241ee
(cherry picked from commit aa3229ce46b3b8922d6dbad512aeb038df15530a)
(cherry picked from commit 48a63b11432f5879cc5abaf2cff78977253d5d41)
2016-09-11 17:12:19 -07:00
Deepthi Gowri
1f8352170f qcacld-3.0: Fix for P2P GO negotiation failure
qcacld-2.0 to qcacld-3.0 propagation

The wait time in go negotiation response is set to 100msec by
the wpa_supplicant. Due to which, there could be a possibility
for the DUT to miss go negotaition confirmation frame if the
ROC times out, resulting in connection failure.

Also the wait time for GO negotiation confirmation, invitation
response and provisional discovery response frames are set to 50msec.

To address this, increase the wait times for these response frames.

CRs-Fixed: 1050955
Change-Id: I1fa8a0ae669293ab27c5b4f43f6f33465ff3f2c0
(cherry picked from commit 9481683888c272bacddd2d7983b909157a576a97)
(cherry picked from commit a5b48ffdb93f686e2df0291143549e657a3eb285)
2016-09-11 17:12:19 -07:00
Gowri, Deepthi
07ac993876 qcacld-3.0: Convert pr_info logs to qdf_trace logs
qcacld-2.0 to qcacld-3.0 propagation

Convert the pr_info logs to qdf_trace logs with error log level,
so that the logs are displayed both in kmsg as well as in logger
app logs.

CRs-Fixed: 956590
Change-Id: Ib6ed5744cf38924a6b1dc20e3291639554c42c6b
(cherry picked from commit e7d8f2a4214e32aa30152aff806c0caa15c78787)
(cherry picked from commit ecb280f37bfea24afd6996480ca70ee0ef15de94)
2016-09-11 17:12:18 -07:00
Deepthi Gowri
084c24da74 qcacld-3.0: Add log to print channel number and frequency
qcacld-2.0 to qcacld-3.0 propagation

Add error log to print channel number and frequency in
wlan_hdd_cfg80211_inform_bss_frame() if it fails to retrieve the
channel.

CRs-Fixed: 1010559
Change-Id: I8fe77db17ffa40ea07206a3701c02f02564ea8fd
(cherry picked from commit c56aea24166cbdcbfe4acc44fc3cb8464ddaabca)
(cherry picked from commit 9cd27801a80b2b71959289efd66f99e4ac32e1fc)
2016-09-11 17:12:16 -07:00
Deepthi Gowri
993ec18d71 qcacld-3.0: Fix for getTdlspeers in case of explicit trigger
qcacld-2.0 to qcacld-3.0 propagation

Currently driver is setting TDLS supported capability only in case
of tdls peer discovery response. In case of explicit trigger discovery
is optional, so it could be possible that the false capabiltiy is sent
as tdls not supported though it supports when link is enabled using an
external trigger.

To address this, set the tdls supported capability during the tdls setup
confirmation.

Change-Id: I13041f2b03e749617e58a74d82bdf77d9e6886ed
CRs-Fixed: 988686
(cherry picked from commit fab4eefd36b1b452dc96149beab1536414571e06)
(cherry picked from commit db27ba3e3d92af5d3d361f9ad59c4cd9213b31cd)
2016-09-11 17:12:15 -07:00
Deepthi Gowri
9f2fc786f7 qcacld-3.0: Do not make a PMF connection, if supplicant sets it as optional
qcacld-2.0 to qcacld-3.0 propagation

In earlier android builds PMF was not enabled by default in the supplicant
unlike the latest builds. So even if PMF is set as optional, driver was
mandating it. So if we try to roam to an AP which is not PMF capabale
driver would simply drop the connection.

To address this, allow non PMF connection if PMF is set as optional by the
supplicant and the AP is not capable.

CRs-Fixed: 1018482
Change-Id: Ideecb861dcc362f94a73b47d1a4766d621a38214
(cherry picked from commit ec4d9feff5461a575b2988b38428b89cf6337584)
(cherry picked from commit 54b657e08ac628616b8cf6cbddfb9204ecf28ce5)
2016-09-11 17:12:14 -07:00
Gowri, Deepthi
62da33e948 qcacld-3.0: Fix P2P GO Negotiation failure issue
qcacld-2.0 to qcacld-3.0 propagation

Sometimes it is possible for the host to receive the ack for
go negotiation request after the go negotiation confirmation
is sent. So supplicant assumes go negotiation confirmation is
success though it is not and results in connection failure.

To address this, drop the pending ack for the go negotiation
request. so that the supplicant will wait for the ack of the
negotiation confirmation.

CRs-Fixed: 1032185
Change-Id: I54f305319e23b1ffcbd54cc6e7dcc74d39a2e511
(cherry picked from commit 83df79da05419397ef85b77acef353a9ffb05ced)
(cherry picked from commit f13a15829f20a644e5cbaad4a1783a33d0f78014)
2016-09-11 17:12:13 -07:00
Deepthi Gowri
48b8933567 qcacld-3.0: Skip DRSC channels during SAP ACS
qcacld-2.0 to qcacld-3.0 propagation

We do not support SAP on DSRC channels, so skip the DRSC channels
during sap channel initialization.

CRs-Fixed: 1050454
Change-Id: If5544027bca7bc0a578978dfe91adc37e897e992
(cherry picked from commit 0005bfa2adcbe4bc06b96523bb387a7df902a6c7)
(cherry picked from commit b8f62655ae5a86b745ca099fa371914a702abf59)
2016-09-11 17:12:11 -07:00
Selvaraj, Sridhar
4577a9b955 qcacld-3.0: Send p2p ack indication directly to HDD from PE
qcacld-2.0 to qcacld-3.0 propagation

During P2P functionality, Host will send GO NEG REQ and
receives ACK completion from firmware which will be queued
to indicate HDD. Meanwhile if host receives GO-NEG RESP it
will be sent directly to HDD via function callback. In HDD as
we got  GO NEG RESP before ACK completion for GO-NEG REQ, HDD
will generate pkt completion for GO NEG Request.
Now GO NEG CONFORMATION frame will be sent and driver will be
expecting completion for this. The GO NEG REQ ACK completion
which got buffered in PE will be delivered to Supplicant and
Supplicant assumes that this is the ACK for GO NEG CONF frame.
This causes early termination of remain on channel due to which
firmware may drop the GO NEG CONF frame and may not retry as ROC
is terminated.
Fix this by making ACK Completion indication to HDD via function
callback.

Git-commit: 32ddf4196f423b8eaea7ec6c0816e2961aa7fc45
Change-Id: I0dd3acb236b270839649d2becfdc007e7aae9fdd
CRs-Fixed: 1012547
(cherry picked from commit a3996d421de7f55d5a6f7da19d7ff4b568ce7c50)
(cherry picked from commit 42405db3bd3f4b10800cde8cdcd14f521461a5a7)
2016-09-11 17:12:10 -07:00
qcabuildsw
ed259c4236 Release 5.1.0.26I
Release 5.1.0.26I

Change-Id: I094f85d2360b2ac903959b507ef338c072568624
CRs-Fixed: 688141
(cherry picked from commit f287c5415c642efc4cecfa733c37be6cad5a19bb)
2016-09-11 17:10:03 -07:00
Selvaraj, Sridhar
171e225474 qcacld-3.0: Check if vdev is created before LL stats query
qcacld-2.0 to qcacld-3.0 propagation

As part of "change iface" in HDD, host does close session (VDEV DELETE) and
as part of "start ap", host invokes open session(VDEV CREATE).
Link Layer(LL) stats query is received in host driver in a corner/race
condition between the events "change iface" and "start ap" which leads
to an exception issue in firmware since FW receives REQUEST_LINK_STATS WMI
for a deleted VDEV.

This fix adds a boolean variable vdev_active to vdev structure(wma_txrx_node),
which is set to true once vdev is created. vdev_active is checked for TRUE
before sending LL stats query to FW with WMI command.

Git-commit: cf7bf99eb9a71b1043cd230aee704c44c62c98ff
Change-Id: Ifcc986c3352e4e66da35b8d6c489d98dbe61401d
CRs-Fixed: 987734
(cherry picked from commit b82c03d8686a57b120f991ffbb9b9801c908aac8)
2016-09-11 17:03:09 -07:00
qcabuildsw
b9ab5eb1b8 Release 5.1.0.26H
Release 5.1.0.26H

Change-Id: Iffe2de323ce44467975ba96101666f0601150b11
CRs-Fixed: 688141
(cherry picked from commit c0aa8ed6e971fb369a5a6c51bc44e1e5715506fc)
2016-09-11 16:55:46 -07:00
Naveen Rawat
03e8d95c9e qcacld-3.0: Send HT/VHT CAPs IE to firmware per band
Send HT/VHT CAPs IE to firmware per band. This will allow certain
features like LDPC to be configured per band.

Change-Id: I21c83af984f9be3ade46121ef148b52568c3ad0f
CRs-Fixed: 1055774
(cherry picked from commit 2a94c5666ea0c66477d0086c8d5a401db8e4afcf)
2016-09-11 16:49:46 -07:00
qcabuildsw
52b4b70331 Merge "Revert "qcacld-3.0: Call ICNSS APIs for get/set channels and dfs"" into wlan-cld3.driver.lnx.1.1-dev 2016-09-11 16:22:00 -07:00
qcabuildsw
9446862bf3 Merge "Revert "qcacld-3.0: Register suspend_noirq/resume_noirq to kernel"" into wlan-cld3.driver.lnx.1.1-dev 2016-09-11 16:21:57 -07:00
qcabuildsw
b8c8051a05 Merge "Revert "qcacld-3.0: Fix race condition between PM suspend and fw irq"" into wlan-cld3.driver.lnx.1.1-dev 2016-09-11 16:21:55 -07:00
qcabuildsw
dc63fe5710 Revert "qcacld-3.0: Call ICNSS APIs for get/set channels and dfs"
This reverts Change-Id: I12e1db54468c7215318333b55d991c53886d21ff
WLAN driver is blocked from promotion as the dependent kernel
change is not merged yet. Getting/setting unsafe channels and
dfs nol are no longer be present after reverting.

CRs-Fixed: 1061220
Change-Id: I110df8d25464ff0d70428aa275538a98667ac57d
2016-09-11 15:44:45 -07:00
qcabuildsw
bad0e26422 Revert "qcacld-3.0: Register suspend_noirq/resume_noirq to kernel"
This reverts Change-Id: I3d3de3789a7d560ed171294fa9a1ebe6389746a7
WLAN driver is blocked from promotion as the dependent kernel
change is not merged yet. PM suspend_noirq/resume_noirq are
not available after reverting.

CRs-Fixed: 1060669
Change-Id: I2b1300bbb19d2e4975bb86a82a892501b993827b
2016-09-11 15:44:44 -07:00
qcabuildsw
f5a36a2095 Revert "qcacld-3.0: Fix race condition between PM suspend and fw irq"
This reverts commit Change-Id: Ib16a4e86f2378a8ca3f7eaada54fc7a3d67a886b
WLAN driver is blocked from promotion as the dependent kernel
change is not merged yet. Race condition between PM suspend and fw
irq will occur again after reverting.

Change-Id: Ida519d607df1e1e183c7af445d48be2f50101ce7
CRs-Fixed: 1060748
2016-09-11 15:44:40 -07:00
Manjunathappa Prakash
fff753c12e qcacld-3.0: Add option to control Rx flow steering
Add ini configuration to enable/disable Rx flow steering.
Add HTT message to configure RX flow steering.

Change-Id: I80aab262c754716b28bfdae561d1cbf5e1d38e4d
CRs-Fixed: 1055179
2016-09-11 15:23:53 -07:00
Mohit Khanna
38d0e9335d qcacld-3.0: Maintain length for each TSO segment
In current codeflow, we are maintaining the length of the TSO segments
belonging to one jumbo packet inside tso_info, which is common for
all the segments of one jumbo packet. This works if the length of
the segments (frag[1]) is the same. In case it is not, it ends up
assigning incorrect length to all the segments. This is resulting
GMS login failure.
Fix issue by maintaining the total length of the segment in the
qdf_tso_seg_t structure.
Re-factor code for easy readability
Add TSO_DEBUG prints which can be enabled (compile time) to debug
TSO issues

Change-Id: Ie0cf8434902c0713ef8d36dc36c105afa6b5eabc
CRs-Fixed: 1062556
(cherry picked from commit 0a851f054171cf4b2f5bd7e8cd6841e90d999928)
2016-09-10 19:26:50 -07:00
qcabuildsw
f821d418ab Release 5.1.0.26G
Release 5.1.0.26G

Change-Id: I33404709241889245378b5e81d9e92f1a19733a7
CRs-Fixed: 688141
(cherry picked from commit 36d731d10bdba33f331ae189aece4686ef306706)
2016-09-10 19:08:43 -07:00
Poddar, Siddarth
2a8bb56299 qcacld-3.0: Store events in pktlog buffer when Pktlog is enabled by default in INI
When pktlog is enabled in INI (i.e. no iwpriv commands are issued),
store the events forwarded from firmware into the pktlog buffer.
Host will not honor any pktlog disable command if pktlog enable command
was not sent previously with WMI_PKTLOG_ENABLE_FORCE.

Change-Id: Id0b7dd6b4573147eef9b80b57bc78284e52807ec
CRs-Fixed: 1062295
(cherry picked from commit 07e5fbfcf0ec1ca7e92721a523e401e70887f487)
2016-09-10 19:08:41 -07:00
Himanshu Agarwal
f03f81036d qcacld-3.0: Fix NULL pointer dereferencing issues
Fix below issues:
1) check cds_get_context results before use
2) remove function calls from ASSERTs
3) make sure variables are initialized before use
4) check pointers for NULL before dereferencing

Change-Id: Iac92e6f2d1030a7dd12469e34341135bea7c781f
CRs-Fixed: 1047286
(cherry picked from commit a2547fd35fc517abfbc96363768b5d036d59d057)
2016-09-10 19:08:39 -07:00
qcabuildsw
863e29e778 Release 5.1.0.26F
Release 5.1.0.26F

Change-Id: I2876cddbf5ff79c44d6331f5af61781138902357
CRs-Fixed: 688141
(cherry picked from commit 5a610a62d974d0009fef00110f98794cc1c9b256)
2016-09-10 19:08:36 -07:00
Mukul Sharma
71d0c5773b qcacld-3.0: Reduce LL stats / Firmware Memory Dump Blocking time
qcacld-2.0 to qcacld-3.0 propagation

Currently driver block wpa_supplicant context for response
for 5 / 5 seconds for LL stats and firmware memory dump
feature respectively. But in M framework watch dog will
be triggered after 1 second because driver is holding
the context longer, which lead to wd thread starvation.

As a part of this fix, block time is reduced to 800 msec
respectively in both cases.

Change-Id: I02cc7623bc0bc6004ece972f8c4a5e8e751131d2
CRs-Fixed: 951119
(cherry picked from commit 6f39e5ac60eac096107a36b8feb9218ceeef6c38)
2016-09-10 19:08:34 -07:00
Mukul Sharma
4d1eb2bd58 qcacld-3.0: Avoid ipa cmd to firmware during driver unload
qcacld-2.0 to qcacld-3.0 propagation

Host should not send the ipa_enable_disable cmd to firmware
during driver unload.
As a part of this fix, Host discards ipa enable/disable
commands during driver unload.

Change-Id: Ib7fe63463eaaa2f124428c73857f19e65bce67a3
CRs-Fixed: 994677
(cherry picked from commit 67c30cf80f9ff7e05637a08f5b25cec6fa20c38e)
2016-09-10 19:08:32 -07:00