Commit Graph

6093 Commits

Author SHA1 Message Date
Srinivas Girigowda
f326dfe224 qcacld-3.0: clang: Remove extraneous parentheses
clang is reporting these compiler warnings.
Remove extraneous parentheses.

Change-Id: I3dd6490cc1bf2a038e72e1630ba9b0c2b5f0ebed
CRs-Fixed: 2087229
2017-08-06 14:48:13 -07:00
snandini
0cd4be2953 Release 5.2.0.37H
Release 5.2.0.37H

Change-Id: Ia9d1f87da50f0d7d90573f96e218b6396d53e324
CRs-Fixed: 774533
2017-08-06 13:48:14 -07:00
Kabilan Kannan
98440ce38e qcacld-3.0: Add ssr protection for scan callback function
Add ssr protection to scan_block_work to avoid null
reference access.

Change-Id: I0ff111abf2bbdcb7b0c3a3c255396c14b0b59f01
CRs-Fixed: 2066506
2017-08-06 13:48:14 -07:00
Ravi Joshi
62765443e6 qcacld-3.0: Fix monitor mode initialization failure on Helium
Returning a negative value from the API results in the failure
on unsupported platform.

CRs-Fixed: 2082239
Change-Id: I75b14b81eaa00d53784a6deb90b99666e28b164d
2017-08-06 13:48:12 -07:00
Srinivas Girigowda
6598eea7ff qcacld-3.0: Move logs to appropriate log levels
Move logs to appropriate log levels.

Change-Id: I230318a934762d5fcda33f2446a1b176c11fc263
CRs-Fixed: 2083965
2017-08-06 13:48:11 -07:00
snandini
1d2315220d Release 5.2.0.37G
Release 5.2.0.37G

Change-Id: If3a4c996f0a7c8003d49211c5249ac8ed3599202
CRs-Fixed: 774533
2017-08-06 11:48:36 -07:00
yeshwanth sriram guntuka
f6059f280c qcacld-3.0: Add MBO ie in beacon template sent to fw
MBO ies sent in tail buffer of beacon params
structure are not sent in beacon template to
firmware.

Fix is to add MBO ies in beacon template sent to fw

Change-Id: I3987bd431f9a21218650499afa16eac2b59e6486
CRs-Fixed: 2087752
2017-08-06 11:48:36 -07:00
Lin Bai
dc00fb8fa5 qcacld-3.0: Kernel crash as incorrect DMA buffer size
When HTT attached, driver allocates DMA buffer to record each RX ring
entry, with element size - target_paddr_t, which is bus size, and may be
different from kernel's physical address size.
While in htt_rx_detach, size of qdf_dma_addr_t used for buffer free.
In case kernel built as 64-bit, and bus size as default 32-bit,
it will crash when free.

Use same element size to avoid it.

CRs-Fixed: 2087592
Change-Id: Iabe95f92ea82b736213a8b81453163229b2a3a3b
2017-08-06 11:48:34 -07:00
Hanumanth Reddy Pothula
0586014fbf qcacld-3.0: On PNO progress, issue PNO STOP during STA session close
In STA+AP concurrency case, driver fails to receive PNO STOP
indication from the upperlayer and thereby driver fails to send
same indication to FW, leading to a FW crash.
To mitigate this issue, during STA session close, issue PNO
stop indication to FW, if PNO is in progress.

Change-Id: If30e631fc5e8151cd5ecc66ff1d48627123a0a1e
CRs-Fixed: 2059793
2017-08-06 11:48:33 -07:00
snandini
c6928a6234 Release 5.2.0.37F
Release 5.2.0.37F

Change-Id: I4af28f273d63d7218dd94690b358bfa454ecf6a7
CRs-Fixed: 774533
2017-08-06 09:47:29 -07:00
Yingying Tang
22facc1b25 qcacld-3.0: Fix incorrect NULL pointer check for SAP
Propagate from qcacld-2.0 to qcacld-3.0

Currently there are some places where array name is compared to NULL
in SAP, add fix to correct it.

CRs-Fixed: 1063255
Change-Id: I736ac42dd08cd6d3375b7693e914e825dae6c702
2017-08-06 09:47:29 -07:00
snandini
28602e90b1 Release 5.2.0.37E
Release 5.2.0.37E

Change-Id: I563f83ad881e1af012728e95c072a84db9d6b168
CRs-Fixed: 774533
2017-08-06 05:00:09 -07:00
Rajiv Ranjan
11f3a5772b qcacld-3.0: Correct symbolic link for wlan.ko
In Treble bsed architecture, wlan driver generated
can be part of vendor image or system image. Symbolic
link is corrected so that wlan.ko points to correct path
irrespective of split/non-split image.

Change-Id: Ia3f237d2797e4526bfd6c089e54df1622886bf56
CRs-Fixed: 2078121
2017-08-06 05:00:09 -07:00
Vidyullatha Kanchanapally
f9a0c38360 qcacld-3.0: Add support for the unified roam event
Add support for indicating the new unified roam event
"cfg80211_roamed" which takes a structure to give roam information
to cfg80211.

Change-Id: I71769666e2112e0f443cb36d7db03cb7bdbaf1f2
CRs-Fixed: 2084891
2017-08-06 05:00:07 -07:00
snandini
42e0f0846d Release 5.2.0.37D
Release 5.2.0.37D

Change-Id: Icd0c3ad349bc9b2f3f50d77e23391cb47bd3fc67
CRs-Fixed: 774533
2017-08-06 03:57:49 -07:00
Sameer Thalappil
b4d7b211cd qcacld-3.0: Fix Module location for Treble builds
Fix the location to include /lib/modules for Treble enabled
builds. This was incorrectly added when the change was made
to support installing WLAN driver to KERNEL_MODULES_OUT.

CRs-Fixed: 2078384
Change-Id: Iafacc998922b2693f7e8e228a72cbc9a2f71b081
2017-08-06 03:57:49 -07:00
Vignesh Viswanathan
cbb5b956c3 qcacld-3.0: Fix improper handling of lkSmeGlobalLock
sme_acquire_global_lock was used in couple of places without proper
handling of releasing the acquired lock.

Fix the improper handling of lkSmeGlobalLock in multiple funcitons.

Change-Id: Ib6cd43fae3fe522fc6388815581389592d3e70f8
CRs-Fixed: 2086102
2017-08-06 03:57:47 -07:00
snandini
487e0ed805 Release 5.2.0.37C
Release 5.2.0.37C

Change-Id: Ia0103aaf2003edad5a79b563a45e3c920670f85c
CRs-Fixed: 774533
2017-08-06 00:59:59 -07:00
Amar Singhal
9583b116c9 qcacld-3.0: Add config for channel enumeration
Add configuration for legacy channel enumeration. This is needed
to conditionally support new dynamic channel enumeration.

Change-Id: Id8ca6a0a0f28de84a4cc0933b466a8b99714aefd
CRs-Fixed: 2048784
2017-08-06 00:59:59 -07:00
Nitesh Shah
45d6f33555 qcacld-3.0: Disable DBS Scan duty cycle by default
The default value for the ini gdbs_scan_selection is set
with 2 DBS and 2 non-DBS Scan for Module id WLAN_MODULE_
ROAM (5) and WLAN_MODULE_HOST (16). Thus, the scan policy
for full scan is kept getting change for DBS scan and
legacy scan.

This change is to make the default value for the ini
gdbs_scan_selection as NULL, thus disabling the DBS scan
duty cycle feature by default.

Change-Id: I8dd304628b729e11a63aaa2b6dea972cff1798d7
CRs-Fixed: 2062420
2017-08-06 00:59:57 -07:00
Naveen Rawat
3184dd846e qcacld-3.0: Fix implicit conversion error for nl80211_chan_width
Explicitly convert nl80211_chan_width to phy_ch_width in function
__wlan_hdd_cfg80211_set_mon_ch.

Change-Id: I3a35a417b1155db430d6f06444b42664365b02db
CRs-Fixed: 2071677
2017-08-06 00:59:55 -07:00
Naveen Rawat
d9dd4b33f6 qcacld-3.0: Fix implicit conversion error for sme_QosWmmDirType
Replace sme_tspec_dir_type and sme_QosWmmDirType with sme_qos_wmm_dir_type
to avoid implicit conversion warnings/errors and to conform with linux coding
guidelines.

Change-Id: I1567ebbe7ec8adab3344d96f0d2aa93367975926
CRs-Fixed: 2071677
2017-08-06 00:59:54 -07:00
Naveen Rawat
585e96a8de qcacld-3.0: Remove obsolete variable from sSirChanChangeResponse
Structure sSirChanChangeResponse does not uses ePhyChanBondState
secondaryChannelOffset anymore. Remove the obsolete member variable

Change-Id: Ib244b6e5c1692ab928acc22e125d49779119e176
CRs-Fixed: 2071677
2017-08-06 00:59:52 -07:00
Naveen Rawat
0e1fe12361 qcacld-3.0: Remove status arg from lim_ft_process_pre_auth_result
Argument 'status' to the API lim_ft_process_pre_auth_result was not
being used. Remove 'status' from the argument list.

Change-Id: Ie514f8d1ec43dc964171132a4306f9089f445e8f
CRs-Fixed: 2071677
2017-08-06 00:59:50 -07:00
Naveen Rawat
ba6629747d qcacld-3.0: Remove state eLIM_SME_WT_REASSOC_LINK_FAIL_STATE
Remove obsolete state eLIM_SME_WT_REASSOC_LINK_FAIL_STATE.

Change-Id: Ief46fe3a5ab222e214fe720f3ae6e7e7baac6eaa
CRs-Fixed: 2071677
2017-08-06 00:59:48 -07:00
Naveen Rawat
25735af347 qcacld-3.0: Explicit convert QDF_STATUS to tSirMacStatusCodes
Fix implicit conversion warning/error by explicitly converting QDF_STATUS
to tSirMacStatusCodes in function lim_ft_send_aggr_qos_rsp.

Change-Id: I4b554411588225150659921b42cd2db65761261b
CRs-Fixed: 2071677
2017-08-06 00:59:47 -07:00
Naveen Rawat
8070934344 qcacld-3.0: Send correct tSirResultCodes on ROC response at LIM
Function lim_send_sme_rsp expects error code of tSirResultCodes type.
Convert QDF_STATUS to tSirResultCodes before sending.

Change-Id: I488167a22e8199455342a1ef3a17b0470d95b5bb
CRs-Fixed: 2071677
2017-08-06 00:59:45 -07:00
Varun Reddy Yeturu
ed1215ed10 qcacld-3.0: Fix conversion from enum tSirResultCodes
Fix implicit conversion from enumeration type 'tSirResultCodes' (aka
'enum eSirResultCodes') to different enumeration type 'QDF_STATUS'
[-Wenum-conversioni]

Change-Id: I72cbfb99d22d4747890b14d474a36b3c36d1c655
CRs-Fixed: 2071677
2017-08-06 00:59:43 -07:00
snandini
3be41c29e6 Release 5.2.0.37B
Release 5.2.0.37B

Change-Id: Ifdf63a7ff08159a31f10f09adb18b759abb7280b
CRs-Fixed: 774533
2017-08-05 23:53:32 -07:00
jiad
d91a6840f6 qcacld-3.0: fix a double-free in ipa uc ready callback
hdd_ipa_uc_loaded_uc_cb() allocates a msg buffer and passes it to
workqueue handler. Both hdd_ipa_uc_loaded_uc_cb() and workqueue
handler free the msg buffer, which leads to wrong memory dereference.

Fix is to return directly in hdd_ipa_uc_loaded_uc_cb() and let workqueue
handler free the msg buffer.

Change-Id: I842700e7fe94dc9a77fba966d918a054bc79f36a
CRs-Fixed: 2069189
2017-08-05 23:53:31 -07:00
Sridhar Selvaraj
48c4709f8d qcacld-3.0: Move sme_config local variables to dynamic allocations
sme_config is used as local variables with struct tSmeConfigParams
in multiple places causing stack frame size to increase. This is
causing build issues with 32 bit systems where the stack frame
size is limited to 1024 bytes for each frame.

Move multiple sme_config local variables to dynamic allocations to
reduce stack frame size.

Change-Id: I86a93546adf40bbbc19438c3b1e3a7ec0d38f39f
CRs-Fixed: 2074224
2017-08-05 23:53:29 -07:00
Frank Liu
3717379f00 qcacld-3.0: Fix invalid tx_desc access
Wrong to pass parameter by value so caller doesn't get the real allocated
tx_desc. The fix is to let ol_tx_prepare_ll return the allocated tx_desc
or NULL if fail.

Change-Id: Ic3910e45c02290ebd74766aa8f88902044decaa6
CRs-Fixed: 2084824
2017-08-05 23:53:28 -07:00
snandini
11c1928f86 Release 5.2.0.37A
Release 5.2.0.37A

Change-Id: I0bf5b295ecf78398bbfb805c6b9e650a3885c2e5
CRs-Fixed: 774533
2017-08-04 07:04:03 -07:00
Poddar, Siddarth
07eebf33bb qcacld-3.0: [TXRX] Reduce the log spam in Kmsg
Move the logs to appropriate log levels to avoid excessive
logging in kmsg.

CRs-Fixed: 2035110
Change-Id: If0e1706dcc926875ab68b590abf4745f81356580
2017-08-04 07:04:03 -07:00
snandini
2964b5bf85 Release 5.2.0.37
Release 5.2.0.37

Change-Id: I9f150e0263cbc50f17d72fe8fa02bc860a6e3f51
CRs-Fixed: 774533
2017-08-04 06:05:01 -07:00
Wu Gao
9a24fa7752 qcacld-3.0: Call htc stop in cds post disable
When driver unloading, htt tx detach and free tx desc, then flush
endpoint tx queue. A low rate case is that endpoint tx queue is not
empty with high latency platform, it will cancel tx and send packet
completion, then crash happens since of NULL point access.

Change-Id: I4918d4c678fffe8b07a1f3b1104e0732c5d960f8
CRs-Fixed: 2084045
2017-08-04 06:05:01 -07:00
snandini
ff1046bac6 Release 5.2.0.36Z
Release 5.2.0.36Z

Change-Id: Ib90ee46c8f337d4f6c766efd6d06ac5673337327
CRs-Fixed: 774533
2017-08-04 02:06:53 -07:00
Selvaraj, Sridhar
0ab68627a5 qcacld-3.0: Dont send peer_flush_tids cmd to fw for HO fail cases
When HandOff(HO) fails, set doNotSendOverTheAir flag so that LIM
does not send deauth and also does not send peer_flush_tids cmd
to FW as FW already did the cleanup.

Change-Id: I4721ad22e5c4229155ae9bd5f4d9624dca0a1879
CRs-Fixed: 2037621
2017-08-04 02:06:52 -07:00
snandini
929d777aba Release 5.2.0.36Y
Release 5.2.0.36Y

Change-Id: I95cb6b3bc1ee023f53e6155779d1845d9799b17d
CRs-Fixed: 774533
2017-08-03 22:08:15 -07:00
Deepak Dhamdhere
cad0391ea4 qcacld-3.0: Fix for QoS prioritization after roaming
Voice traffic is properly prioritized when a TSPEC is added to
the connection. When STA roams to a new AP, TSPEC is negotiated with
that AP, firmware is programmed to handle WMM access classes but
HDD is not notified of this change. This problem shows up only in
non-FT roaming. Ensure that AC flows are reinitialized after roaming.

CRs-Fixed: 2003210
Change-Id: I7b9e07cffa90eb966c4a23ff4c4db420fb0122fe
2017-08-03 22:08:14 -07:00
Deepak Dhamdhere
6f7fbbeb17 qcacld-3.0: Add a function to free fields of saved scan command
saved_scan_cmd has many fields that are allocated separately during
profile save operations. Add a routine to free those memory objects,
release the profile and avoid memory leaks.

CRs-Fixed: 2012430
Change-Id: I0d9fcb29ca7f8290692ba4b688ffe025d5b5d747
2017-08-03 22:08:13 -07:00
Deepak Dhamdhere
d40f4b1b62 qcacld-3.0: Fix peer ref count deletion during peer detach
Data path may be processing received packets while the peer is being
deleted. It may create an extra reference to peer. As a protection,
decrement peer->ref_cnt by the exact number of peer_id_ref_cnt
instead of resetting it to hardcoded value of 1. Peer object will be
freed only after the last reference count is decremented.

CRs-Fixed: 2023550
Change-Id: I457a0fdd9d0bea86d22139090afbd33bdc34f2ed
2017-08-03 22:08:11 -07:00
snandini
899c40ead2 Release 5.2.0.36X
Release 5.2.0.36X

Change-Id: Ie6258f40ba38cb38a31850cb6f999e8b8967d66a
CRs-Fixed: 774533
2017-08-03 19:49:02 -07:00
Himanshu Agarwal
4dc96c3a75 qcacld-3.0: Do not LRO aggregate if peer is not connected
We have race condition between lro flush of hif_napi_poll and MC thread
lro flush while flushing the ol_txrx_cached_bufq packets for peer. Avoid
the situation by simply marking the all the Rx packets as LRO ineligible
while enqueuing packets to ol_rx_cached_buf.

Change-Id: Ief0d7dd6c25cf45912820f0e237fd1179a57a5c7
CRs-Fixed: 2032674
2017-08-03 19:49:02 -07:00
Srinivas Girigowda
0517bfc356 qcacld-3.0: Fix clang warnings enum 'qdf_nbuf_l4_rx_cksum_result_t'
warning: implicit conversion from enumeration type
'qdf_nbuf_l4_rx_cksum_result_t' to different enumeration
type 'qdf_nbuf_l4_rx_cksum_type_t

Change-Id: If2b7ee179fa260c14cde450cc72272c41a9f4adb
CRs-Fixed: 2055487
2017-08-03 19:49:00 -07:00
Srinivas Girigowda
35b003149c qcacld-3.0: Fix clang warning: implicit conversion enum tDriverType
warning: implicit conversion from enumeration type 'tDriverType'
to different enumeration type 'enum driver_type' [-Wenum-conversion].

Move enum driver_type to QDF.

Change-Id: Ic89e4ee512a2d70c27324446257286aaafd49839
CRs-Fixed: 2055487
2017-08-03 19:48:58 -07:00
Srinivas Girigowda
4ffe7c8643 qcacld-3.0: Use the proper attribute PARAM_A_BAND_PELT_THLD
Due to the Change-Id: I3ad995636127a5fda0635549551a24cc5b1bd2c5
PARAM_A_BAND_PELT_THLD was incorrectly replaced with
PARAM_A_BAND_BOOST_THLD.

Fix this and bring back the attribute PARAM_A_BAND_PELT_THLD.

Change-Id: I83d21c2b4662c82d2f26f3bcd10a549889f6df1e
CRs-Fixed: 2055487
2017-08-03 19:48:56 -07:00
Srinivas Girigowda
72f3039ec5 qcacld-3.0: Split __wlan_hdd_cfg80211_set_ext_roam_params()
Split __wlan_hdd_cfg80211_set_ext_roam_params() into
multiple functions to improve readability of the code and
fix clang warning (-Wframe-larger-than).

Change-Id: I3ad995636127a5fda0635549551a24cc5b1bd2c5
CRs-Fixed: 2055487
2017-08-03 19:48:53 -07:00
Srinivas Girigowda
a8f66581e7 qcacld-3.0: Fix to set roaming capability in get_supported_features()
Because of obsolete macros FEATURE_WLAN_LFR and WLAN_FEATURE_ROAM_SCAN_OFFLOAD
roaming capability is not properly set in get_supported_features.

Fix this by using the proper macros.

Change-Id: I4dec8c32c71fde01b663e11e60f1da171adee3e4
CRs-Fixed: 2067126
2017-08-03 19:48:51 -07:00
Srinivas Girigowda
8df27eacb6 qcacld-3.0: Enable feature bits in get_supported_features()
This is a qcacld-2.0 to qcacld-3.0 propagation.

Enable feature bits WIFI_FEATURE_CONTROL_ROAMING,
WIFI_FEATURE_IE_WHITELIST and WIFI_FEATURE_SCAN_RAND.

Change-Id: Ia0f136e038e7da040faae04eaa11bcf56bb72443
CRs-Fixed: 1102187
2017-08-03 19:48:49 -07:00