Commit graph

2,759 commits

Author SHA1 Message Date
Prashanth Bhatta
e675ca784d qcacld-3.0: Complete resume if FW crashed
If WLAN FW crashes while in suspend mode then kernel tries to
resume the driver and WMA sends resume indication to WLAN FW and
waits for the response from WLAN FW. Since FW is already crashed,
there will not be any response from WLAN FW and wait logic waits
for the timeout before bailing out. This may cause delay in
completing the recovery and may cause other race conditions
becuase of that.

Register for shutdown notification so that call back would be
called during recovery and resume event can be set to make sure
resume thread doesn't just wait for the FW response.

Change-Id: Icdd78479dd4072eabf29e7b0664d328553bfa1ad
CRs-fixed: 1079299
(cherry picked from commit 9e493ade1c08204fcfff51c66d135803d830fa60)
2016-10-28 18:09:18 -07:00
Prashanth Bhatta
f7969a6c2d qcacld-3.0: Mechanism to complete waiting thread
During remove() or shutdown(), driver waits for external thread
to complete but there is no mechanism available today to inform
lower layers that driver is about to go through remove() or
shutdown().  Add mechanism to provide the notification about
remove() or shutdown() so that lower layers can make use of it
and get out of waiting logic and complete the remove() or
shutdown() early without waiting for the timeout to happen.

Change-Id: I1eece21fb63e6d5e0454659795a4dad011483c75
CRs-fixed: 1079299
(cherry picked from commit 305516248006141ef331c8c1b7a4b56999fa496d)
2016-10-28 18:09:16 -07:00
qcabuildsw
deb134c8d0 Release 5.1.0.33Q
Release 5.1.0.33Q

Change-Id: Id4445f76067058ddeba1785768e66f932cda7953
CRs-Fixed: 688141
(cherry picked from commit d3dbfb73ee65670d4b8a29e10898ed69797051f5)
2016-10-28 18:09:14 -07:00
Kiran Kumar Lokere
e38f4d255f qcacld-3.0: Update the CSA processing with new VHT op definition
channel width is not populated properly into the channel switch
parameters hence the phy_mode is configured wrongly to the FW.
Correct the channel width in the channel switch parameters and
update the CSA processing with new VHT operation IE definition.

Change-Id: I4f299dd721b602efb9e64797b1bdb34972e07797
CRs-Fixed: 1081503
(cherry picked from commit ebc53cabfb357847e434a4c822878fc4f1910be3)
2016-10-28 18:09:13 -07:00
qcabuildsw
74ec52e715 Release 5.1.0.33P
Release 5.1.0.33P

Change-Id: Ieda45269e9e54d13c049a566b52abb484b94561f
CRs-Fixed: 688141
(cherry picked from commit b1efbb8202bf4f3b420b89c483ffba9491b78993)
2016-10-28 18:09:11 -07:00
Jeff Johnson
962336e56d qcacld-3.0: Fix attempt to stop uninitialized HDD QoS timer
An assert was observed with the following traceback:
	qdf_mc_timer_stop+0x90/0x140 [wlan]
	hdd_wmm_disable_inactivity_timer+0x54/0xd0 [wlan]
	hdd_wmm_delts+0x168/0x240 [wlan]
	iw_del_tspec+0x94/0xf0 [wlan]

In hdd_wmm_disable_inactivity_timer() there is sufficient guard logic
to only act upon a valid timer:
	if (pQosContext->is_inactivity_timer_running == true) {

So it is apparent that this flag was set to true. However in this
specific use case the logs show that in the addTS path the timer was
not started and the flag was not explicitly set. So the only
explanation is that the flag was set via some other mechanism.

There are two places where a pQosContext is allocated and initialized.

In hdd_wmm_acquire_access() the implicit qos case is handled, and in
that function there is an explicit assignment:
	pQosContext->is_inactivity_timer_running = false;

In hdd_wmm_addts() the explicit qos case is handled, and in that
function there is not an explicit assignment.

Note the memory is allocated by:
	pQosContext = kmalloc(sizeof(*pQosContext), GFP_KERNEL);

And there is not an explicit clearing of the memory. Hence in the case
of an explicit addTS the is_inactivity_timer_running flag will have a
garbage value. So in the case at handle this garbage value must have
been equal to true.

Fix this by explicitly setting is_inactivity_timer_running in the
explicit qos case.

Change-Id: I94325ab6889780d77241d6e1b3ac0a138cf786b8
CRs-Fixed: 1083078
(cherry picked from commit 9e5e59ff7a51680d582711ef1182fc6aace1bfe1)
2016-10-28 18:09:09 -07:00
qcabuildsw
9db538b5be Release 5.1.0.33O
Release 5.1.0.33O

Change-Id: I1ae9cab43bb68459bf281f05d090fa488b09addd
CRs-Fixed: 688141
(cherry picked from commit 34f633444f444cf1e89b1e3dc6486c3f115c431d)
2016-10-28 18:09:07 -07:00
Dustin Brown
cc1753d288 qcacld-3.0: 4.8 Kernel Migration - Remove ablkcipher
As of version 4.8 of the Linux kernel, the ablkcipher Api is removed.
Remove all obsolete crypto functions that reference this Api.

Change-Id: Ia82743d048834a67dfce23b91f660beb59b1e94d
CRs-Fixed: 1079951
(cherry picked from commit bf349575d765f53f207c7cb2ad6c66a198cf07de)
2016-10-28 18:09:06 -07:00
Dustin Brown
53c3aa6a24 qcacld-3.0: 4.8 Kernel Migration - Update calls to abs()
As of the Linux kernel 4.5, the abs() macro has changed so the results
are no longer promoted to long. Fix related issues.

Change-Id: Ic1e71327427df5fe2b47587f4dc164cbd50b86ee
CRs-Fixed: 1079308
(cherry picked from commit c980b6d8cf8f9a8beeebd702b2fc98e6b8ffc948)
2016-10-28 18:09:04 -07:00
Dustin Brown
5df441e901 qcacld-3.0: 4.8 Kernel Migration - Update calls to cfg80211_scan_done
As of the Linux kernel 4.7, the Api for cfg80211_scan_done() has
changed. Update references to the function and include a wrapper
to support compiling against older kernels.

Change-Id: I955d6c3767de86baeeb0760e42d12f46d0a00a5a
CRs-Fixed: 1078834
(cherry picked from commit 64288ebb9bcf45a398c7625bf79ad35dcc202eed)
2016-10-28 18:08:30 -07:00
Dustin Brown
bb7e2f5927 qcacld-3.0: 4.8 Kernel Migration - Remove nla_put_u64()
nla_put_u64() was replaced by nla_put_u64_64bit() in the 4.7 Kernel.
Replace any references as needed, and provide a shim for compiling
against older versions of the Linux kernel.

Change-Id: Ia85a0d1d839a0c76a90dedd603ea667e029a1c6b
CRs-Fixed: 1078754
(cherry picked from commit b5578f0c34243338d9a421e921c9432f5c1d835f)
2016-10-28 18:08:28 -07:00
Dustin Brown
e0024fa419 qcacld-3.0: 4.8 Kernel Migration - Remove net_device->trans_start
Net_device->trans_start was removed in the 4.7 kernel. Remove any
references to it, and replace direct assignments to it with a call to
netif_trans_update().

Change-Id: Ia512316c10afddcb1a8ed19222d933021f657a59
CRs-Fixed: 1078282
(cherry picked from commit e328cb49a4d712fe0fdf9b85c05513ef25b06458)
2016-10-28 18:08:27 -07:00
Dustin Brown
c70038b2de qcacld-3.0: 4.8 Kernel Migration - Remove VM_FAULT_MINOR
VM_FAULT_MINOR was finally removed in the 4.7 Linux Kernel. According
to the below documentation, we should be returning a bitmask. In this
case, we are not handling the fault and should return 0, which
happens to be what VM_FAULT_MINOR was defined as anyway.

"The vma's ->fault is responsible for returning a bitmask of
 VM_FAULT_xxx flags that give details about how the
 fault was handled.

Replace the reference to VM_FAULT_MINOR with 0.

Change-Id: Id1703a61b8798f307630ccdbb7b928799490413e
CRs-Fixed: 1078189
(cherry picked from commit 09dd4f4dfff7320a2312245f6952f56e5f322c6b)
2016-10-28 18:08:25 -07:00
Dustin Brown
a30892e784 qcacld-3.0: 4.8 Kernel Migration - Remove ieee80211_band
Update references from enum ieee80211_band to nl80211_band, as
ieee80211_band was removed in version 4.7 of the Linux Kernel.

Change-Id: Id42cf6e20c3ebe921546d11fd22c3909aeb84ddd
CRs-Fixed: 1077221
(cherry picked from commit 8e62ee9836406b81fe3e418028cdb2ae8f5ec039)
2016-10-28 18:08:23 -07:00
qcabuildsw
17098c8d86 Release 5.1.0.33N
Release 5.1.0.33N

Change-Id: I179b7d01a90a5b6b8ca0c03bfc746652fe8113d2
CRs-Fixed: 688141
(cherry picked from commit 444c7232e72f968664136c5c4d38585a6acd01e2)
2016-10-28 18:04:42 -07:00
Dustin Brown
b2cef911eb qcacld-3.0: Improve CDS SSR Protecting Logging
Any time SSR protect/unprotect fails, log a count of the pending
functions. Also, periodically dump the protection log when it is
full to help with debugging.

Change-Id: I926b2f8198a14cf0fac4138400e84a6a8ffedc73
CRs-Fixed: 1082070
(cherry picked from commit dfef826bf4883bc59ea1e6bd7dfb227567b95d1d)
2016-10-28 18:04:40 -07:00
qcabuildsw
6ddb1c06fb Release 5.1.0.33M
Release 5.1.0.33M

Change-Id: I135d7044c768ac9d79c0681a743d9a52bec4d48f
CRs-Fixed: 688141
(cherry picked from commit 246dbb0edafa1ec439506239eadf044e0ad8b58a)
2016-10-28 18:04:38 -07:00
Himanshu Agarwal
749e0f281b qcacld-3.0: Fix memory leaks in driver
Fix memory leak:
1) during driver shutdown as netbufs associated with
   outstanding descriptors at the time of driver shutdown
   are not getting freed.
2) in ol_tx_ll_fast where in case packet fails to download,
   descriptor is being freed but the netbuf associated with
   it is not getting freed.

Change-Id: I6c3eaf551149078f1ecd1329d5f3fe8ab36c2f34
CRs-Fixed: 1081206
(cherry picked from commit 2e5ea6c3489e8ef40e07c45d0f8e244bbd6bee7f)
2016-10-28 18:04:37 -07:00
Himanshu Agarwal
faa524c704 qcacld-3.0: Pass correct parameter in ol_rx_send_pktlog_event
Pass correct parameter(msdu in place of head_msdu) in
ol_rx_send_pktlog_event in ol_rx_indication_handler.

Change-Id: I11c3fcf038b1b8242733bc19889d550fdf4a5766
CRs-Fixed: 1082515
(cherry picked from commit 97632b4f075245c93b348dfd2ed76b5b14bb9a5c)
2016-10-28 18:04:36 -07:00
Himanshu Agarwal
6493e1edf6 qcacld-3.0: Fix DPTRACE implementation in rx path
Propagation from qcacld-2.0 to qcacld-3.0.

Fix DPTRACE implementation in rx path by setting
QDF_NBUF_CB_TX_PACKET_TRACK for data packet to
QDF_NBUF_TX_PKT_DATA_TRACK in
ol_rx_offload_paddr_deliver_ind_handler.

Change-Id: Iab77f19ee0040d601b3e91013d08a04362b3d4a9
CRs-Fixed: 1074435
(cherry picked from commit be3a5cd2e00aff5552dd4d55e199c5452b7b5c1b)
2016-10-28 18:04:33 -07:00
qcabuildsw
c7d41a5dc3 Release 5.1.0.33L
Release 5.1.0.33L

Change-Id: I4c38836f62df5b877c055e57167e5e93991b75ee
CRs-Fixed: 688141
(cherry picked from commit 9c185b08ffa3ac3fbd7c424e85b2c1a94ec49717)
2016-10-28 18:04:32 -07:00
Padma, Santhosh Kumar
72e7aecf6d qcacld-3.0: Add feature flags for DISA functions
Add feature flags for DISA functionality in SME and WMA layers

Change-Id: I9fe33083469a2169cd06206e85d7965405d4a728
CRs-Fixed: 1076941
(cherry picked from commit 3c85d965eec08da145a26fc2ceefdaf8dcfb4df0)
2016-10-28 18:04:30 -07:00
qcabuildsw
222c834672 Release 5.1.0.33K
Release 5.1.0.33K

Change-Id: I07b6a14b288626e9a4d85971bcd435f4eae35577
CRs-Fixed: 688141
(cherry picked from commit ad605143c9fc0d805d72d8b92d9d234fe8866ff3)
2016-10-28 18:04:28 -07:00
Sandeep Puligilla
df6454a80d qcacld-3.0: cancel all the scans during connect
P2P connection failed when scan is active on another
interface.

Abort all the scans on all the active session when
connect request is getting processed at SME.

Change-Id: Ibc7c0df7f2884710fbaf29a5b1ff5d315c3bfc52
CRs-Fixed: 1081116
(cherry picked from commit 271cbf851f7fbbfeae503097e9d06ff3cb89c761)
2016-10-28 18:04:26 -07:00
Sandeep Puligilla
b913b39210 qcacld-3.0: Don't allow start ap during sta connection
Association completion handler(MCthread) acquired cds
concurrency lock while holding the sme global lock and
hostapd thread is trying to aquire sme lock while holding
cds concurrency lock which resulted in deadlock.

Don't allow start BSS while connection is in progress.

Change-Id: I1887aab39d2fa13cc8a900164d2aa6d489464e42
CRs-Fixed: 1081809
(cherry picked from commit cdfb0b38197a13755847e303c753c01bd4801e82)
2016-10-28 18:04:25 -07:00
qcabuildsw
d1698d580e Release 5.1.0.33J
Release 5.1.0.33J

Change-Id: I43ed1feb0b8f8a41c1cf514ab5872644edabe564
CRs-Fixed: 688141
(cherry picked from commit 0a38d9b84f811f8eb81e4e5d458cd2b8fae1223c)
2016-10-28 18:04:23 -07:00
Jeff Johnson
28b7151d8d qcacld-3.0: Handle NULL pdev in cds_flush_cache_rx_queue()
Currently cds_flush_cache_rx_queue() does not verify that
cds_get_context() returns a valid pdev which could subsequently lead
to dereferencing an invalid pointer.  Add a validity check for this
pointer.

Change-Id: I326e0b92205fda78854c947248e675d287a7ec04
CRs-Fixed: 1082035
(cherry picked from commit 514e12df3c66ef0e457d76ef8c984874481f5117)
2016-10-28 18:04:21 -07:00
qcabuildsw
02a1276b1f Release 5.1.0.33I
Release 5.1.0.33I

Change-Id: I04dcf134381577b5889ac0c3926f62ed64e7ed69
CRs-Fixed: 688141
(cherry picked from commit 2af8c3cef53bf93f565bc8ecc6075f7ecbe9dec0)
2016-10-28 18:04:20 -07:00
Naveen Rawat
efd71c3582 qcacld-3.0: Add NULL pointer check before accessing roam profile
Check for NULL pointer before accessing current roam profile in
STOP_BSS rsp, csr_roam_roaming_state_stop_bss_rsp_processor.

Change-Id: I670151fa81ab3389c7a07ef37bcc909e3fcb9387
CRs-Fixed: 1082446
(cherry picked from commit 1d0fd66e49e4c39ed57c80fa8603cc1b59c0b548)
2016-10-28 18:04:17 -07:00
qcabuildsw
e2606dde5c Release 5.1.0.33H
Release 5.1.0.33H

Change-Id: I9a6d4d89be4357c36918d518e836307f0e8b286e
CRs-Fixed: 688141
(cherry picked from commit b798f95ad488c848571d32c63301bc42b0722297)
2016-10-28 18:04:15 -07:00
Himanshu Agarwal
0527e8f6d2 qcacld-3.0: Dump Tx/Rx packets during connection
Propagation from qcacld-2.0 to qcacld-3.0.

Add changes to send 32 tx/rx packets to HAL layer during connection.
This can help in debugging connection related issues.

Change-Id: Icd08475c3f81aa182c902b8e8defbdb904c5509d
CRs-Fixed: 959645
(cherry picked from commit 45416eeee7dde24f1456e0c2b667e8147742f054)
2016-10-28 18:04:13 -07:00
Himanshu Agarwal
46956a5aff qcacld-3.0: Add infrastructure for pktstats based on linkedlist
Proapagation from qcacld-2.0 to qcacld-3.0.

Currently pktstats are stored in static allocated memory. This
pkt stats can be accessed using
1) procEntry function
2) hal_proxy_daemon
If user access it using procEntry then read pointer is moved ahead
in static memory array because of which incomplete data goes when
queried using hal_proxy_daemon.
Fix this by maintaining the pktstats in link list. When the
request comes from hal_proxy_daemon, complete data is sent
to it from this link list

Change-Id: I09bbd03fe378b296e110ce52cc8cbeb8cf8d723d
CRs-Fixed: 958544
(cherry picked from commit c0d86fc4197383d0eb386e091cee5142a35b555a)
2016-10-28 18:04:11 -07:00
qcabuildsw
b0821c471b Release 5.1.0.33G
Release 5.1.0.33G

Change-Id: I0352881b7ed17e4d34ec5c74de0b77ca0e16324d
CRs-Fixed: 688141
(cherry picked from commit 548562e0d00a7dacc70c53d99df8a0bdfd193e18)
2016-10-28 18:04:09 -07:00
gbian
bf0e062ca3 qcacld-3.0: Flush vdev's TXQ with the same TID as inserted one
qcacld-2.0 to qcacld-3.0 propagation

Currently TXQ of DEFAULT_MGMT packet is using TID
HTT_TX_EXT_TID_MGMT when we inserted into Scheduler, so use
same TID when we flush it.

Change-Id: I1631b7706d1f8bf0352ceecb8836d82743526e44
CRs-Fixed: 1000968
(cherry picked from commit 9b41b24a9da6b9415ebdafb6e4574f0b03570e9e)
2016-10-28 18:04:07 -07:00
gbian
2259cb33c3 qcacld-3.0: indicate wow wake up frame for HL project
qcacld-2.0 to qcacld-3.0 propagation

Currently FW does not indicate wow wake up frame to host for
HL project. After the change, FW will indicate wake up frame
with HTT_T2H_MSG_TYPE_RX_OFFLOAD_DELIVER_IND htt msg and host
will handle this message to indicate to OS protocol stack.

Change-Id:  I5f4446de7ec3c4ff1c1de6fd6105429e0898291c
CRs-Fixed: 956416
(cherry picked from commit b5cb00e05b1db94a2869cc5becef3d777dbd560e)
2016-10-28 18:04:00 -07:00
Kai Liu
7f07073647 qcacld-3.0: Reduce hif usb remove time when card surprise-removed
qcacld-2.0 to qcacld-3.0 propagation

In USB solution, hif_usb_remove costs ~25s after card unplugged.
Test step is simple, do p2p listen, then unplug card. Sme session
close costs 15s. When do p2p listen, scan will be issued to fw, but this
cmd is stuck in smeScanCmdActiveList which cause session close cmd
eSmeCommandDelStaSession blocked and the timeout is 15s.

This solution is that remove scan from smeScanCmdActiveList
if scan cmd pending in active list when close session.

Change-Id: I9f1af72cefe80dca056d7a23e015caa746952330
CRs-Fixed: 1068739
(cherry picked from commit b3460026a8ae119ac660b3970c9e3cc8b999656d)
2016-10-28 18:03:58 -07:00
Liangwei Dong
9028d75166 qcacld-3.0: Fix invalid peer create after vdev down
qcacld-2.0 to qcacld-3.0 propagation

In a SNS case, driver receives ASSOC Req during the SAP
Stopping. The SAP stopping will issue WMI_VDEV_DOWN_CMDID
WMI command to firmware. And ASSOC req frame processing
will issue a WMI_PEER_CREATE_CMDID WMI command to firmware.
Then the firmware crash happens because firmware can't find
the necessary BSS information to create the peer. Firmware
doesn't support peer create after BSS down.
The fix is to ignore the ASSOC Req frame while the deleting
BSS is ongoing.

Change-Id: Ib517642da4fc6b4778ef1ce4e6afd92fa3edb112
CRs-Fixed: 1053809
(cherry picked from commit 2118b5d37d9294a22cff60ec5bd2b7baf4a34cae)
2016-10-28 18:03:56 -07:00
Liangwei Dong
b3f26cc4f5 qcacld-3.0: Fix P2P GO vdev start failure
qcacld-2.0 to qcacld-3.0 propagation

In case of P2P device and P2P GO using seperated
interface, if P2P Device interface listen (remain on
channel) with long duration is active, P2P GO interface
vdev start command will be timeout.
In shared interface case, driver will cancel existing
P2P listen during interface type changing from P2P device
to P2P GO in __wlan_hdd_cfg80211_change_iface. There
is no such issue.
This fix is to extend the canceling logic just before P2P GO
starting to avoid the vdev start timeout in first case.

Change-Id: I5c5903bc5eded417ede670025c241daf73b96700
CRs-Fixed: 1022238
(cherry picked from commit 696a5a4e110482bcf873b6c657fe621aa2dd8b8e)
2016-10-28 18:03:54 -07:00
Liangwei Dong
8baf7c8ab0 qcacld-3.0: Fix acs_cfg.ch_list memory leak
qcacld-2.0 to qcacld-3.0 propagation

If ACS failed, the __wlan_hdd_cfg80211_stop_ap
will not be called to free the ch_list.
Add new API wlan_hdd_undo_acs to do cleanup of
DO_ACS to free ch_list memory. And call the API
in hdd_deinit_adapter to fix ch_list leak issue.

CRs-Fixed: 1002207
Change-Id: If3285739f2387928a1d7578f9d14089a486a6d9e
(cherry picked from commit e55d0c20e574a63b5002650529054ace24ad7cad)
2016-10-28 18:03:53 -07:00
Service qcabuildsw
ebec307da5 Merge "qcacld-3.0: Fix compilation errors when enable OL_TX_SCHED_RR" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:41 -07:00
Service qcabuildsw
1e0dc42d0e Merge "qcacld-3.0: Fix sme active list timeout by tdls" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:40 -07:00
Service qcabuildsw
048ed036d0 Merge "qcacld-3.0: WMA has to del sta if auth frame is received while connecting" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:39 -07:00
Service qcabuildsw
331562d37d Merge "qcacld-3.0: Destroy tx_frm_download_comp_event in wma_close" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:39 -07:00
Service qcabuildsw
f419b526df Merge "qcacld-3.0: add channel 144 in sap channel leakage matrix" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:38 -07:00
Service qcabuildsw
c277ab326c Merge "qcacld-3.0: Handle dfs channel switch failure" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:38 -07:00
Service qcabuildsw
1189937fac Merge "qcacld-3.0: wma: fix same peer created again issue" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:37 -07:00
qcabuildsw
5a25569103 Merge "Release 5.1.0.33F" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:37 -07:00
Service qcabuildsw
aaeffdf5b9 Merge "qcacld-3.0: Set maximum channel width correctly" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:36 -07:00
qcabuildsw
030f94c44e Merge "Release 5.1.0.33E" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:35 -07:00
Service qcabuildsw
c15a11f4b1 Merge "qcacld-3.0: Do not free node if qdf_list_remove_node fails" into wlan-cld3.driver.lnx.1.1-dev 2016-10-28 10:23:35 -07:00