Commit Graph

7002 Commits

Author SHA1 Message Date
Jeff Johnson
174c47a211 qcacld-3.0: Populate pdev and vdev legacy_osif_priv pointers
Currently the legacy_osif_priv pointers in the Object Manager's pdev
and vdev objects are not populated. As a result it is not possible to
get the HDD object given an Object Manager object. Populate these
pointers to allow these lookups.

Change-Id: If5ee0c785d0496ee4f06f7d230fbcf6ba957b610
CRs-Fixed: 2119155
2017-09-29 17:41:01 -07:00
Dustin Brown
a713916eae qcacld-3.0: Throw error if nla_parse is used directly
In order to support multiple nla_parse function signatures across
different kernel versions, a new hdd_nla_parse wrapper was introduced.
However, it is easy for propagations or new code to reintroduce
nla_parse. Redefine nla_parse to throw an error, to prevent the
function from being reintroduced into the code base.

Change-Id: I6e9b9cd60cee94dd9f94a067e7b9d964d60ae295
CRs-Fixed: 2116044
2017-09-29 17:40:59 -07:00
snandini
f325b23e7e Release 5.2.0.46I
Release 5.2.0.46I

Change-Id: I74b3a79668e3589efa6a95d92231036fcd127321
CRs-Fixed: 774533
2017-09-29 16:29:21 -07:00
Varun Reddy Yeturu
e4e2f29d4b qcacld-3.0: Avoid integer overflow in wma_peer_info_event_handler
Check for the num_peers received from firmware and ensure an
integer overflow does not happen in wma_peer_info_event_handler.

Change-Id: I08cc98fc425d9905d0ca090cd42b73227e594772
CRs-Fixed: 2115366
2017-09-29 16:29:21 -07:00
snandini
4309479693 Release 5.2.0.46H
Release 5.2.0.46H

Change-Id: I09f3f536871fccd73ed14a5f0d1644658af344df
CRs-Fixed: 774533
2017-09-29 15:40:00 -07:00
Jeff Johnson
60dc2b18f1 qcacld-3.0: Fix CDS layering violation in hdd_wlan_start_modules()
Currently hdd_wlan_start_modules() gets a pointer to the CDS Global
Context, and then in the failure path it dereferences this pointer to
call hdd_hif_close().  This is a layering violation -- HDD should not
be aware of the contents of the CDS Global Context and should not be
dereferencing the pointer.

Modify the code to use the exported cds_get_context() API to retrieve
this information.

Change-Id: I640bea70b50d5533afa1ee1b2e0cd6b9619a4ac2
CRs-Fixed: 2118692
2017-09-29 15:40:00 -07:00
Varun Reddy Yeturu
d4c523d673 qcacld-3.0: Avoid possible buffer overwrite in wma_process_utf_event
Check for the maximum allowed data that can be written into
the buffer utf_event_info.data in the function
wma_process_utf_event.

Change-Id: I9ee37470b7a3e7016941f871d3cf73eb12718758
CRs-Fixed: 2115375
2017-09-29 15:39:58 -07:00
Varun Reddy Yeturu
74c87c915f qcacld-3.0: Check for upper bound in P2P NOA event
Check for the upper bounds for number of NOA descriptors
received in the P2P NOA event.

Change-Id: Id7ecf064f2c25f378f76d795902713da8520507f
CRs-Fixed: 2113072
2017-09-29 15:39:56 -07:00
snandini
e37a5f8681 Release 5.2.0.46G
Release 5.2.0.46G

Change-Id: I496756a49067b2f5b41a526bbdf1bdb09a4a9625
CRs-Fixed: 774533
2017-09-29 05:40:09 -07:00
wadesong
bf7087941f qcacld-3.0: Enable SDIO based WLAN self-recovery
WLAN self-recovery based on SDIO bus is currently missing in
CLD3.x, resulting in crash injection to TF card taking no
effect during some special case.

Add the recovery feature back to CLD3.x based on the same
logics in CLD2.0

Change-Id: I719b77ac9679a0449863a94b47ad22233bc9b574
CRs-fixed: 2103969
2017-09-29 05:40:09 -07:00
snandini
035068a6a2 Release 5.2.0.46F
Release 5.2.0.46F

Change-Id: I85ac4434d10ab6e8439b10874205b74fe9245fc3
CRs-Fixed: 774533
2017-09-29 03:39:19 -07:00
hqu
0a6ce08e04 qcacld-3.0: Move chan_switch_hostapd_rate_enabled field for alignment
Current structure is expected to be 4 bytes align which needs to be
fixed by moving chan_switch_hostapd_rate_enabled field up in the
structure.

Change-Id: I234142a135fdeac69601d352beed7eda8ec16b99
CRs-fixed: 2118364
2017-09-29 03:39:18 -07:00
snandini
058276df70 Release 5.2.0.46E
Release 5.2.0.46E

Change-Id: I88e2aea72a7fbee8ea0bd7a4c72cbd96a9022422
CRs-Fixed: 774533
2017-09-29 01:39:53 -07:00
Zhang Qian
b17ee62d9b qcacld-3.0: Add auto BDF Selection
qcacld-2.0 to qcacld-3.0 propagation

The board data file is selected based on the board id returned
by executing otp binary.

Based on the chip id and the board id, select the appropriate
board data file and download.

The board data file selection is as follows:
Mission mode: bdwlan<chip_id>.b<board_id>
Factory mode: utfbd<chip_id>.b<board_id>

If the auto board data files are not present in the filesystem,
then download the default board data file i.e bdwlan<chip_id>.bin

Change-Id: I26c3eb377513d2c4439eddc4e5dc75eba66c78f4
CRs-Fixed: 805800
2017-09-29 01:39:53 -07:00
snandini
65437d5f2e Release 5.2.0.46D
Release 5.2.0.46D

Change-Id: Ia266ea112e82f1caa5cc11083cfca16170d19f9d
CRs-Fixed: 774533
2017-09-28 23:42:02 -07:00
Yingying Tang
a1863be43c qcacld-3.0: Fix compilation error when FEATURE_WLAN_TDLS is disabled
STA_ENTRY_TDLS_PEER is used out of FEATURE_WLAN_TDLS, compilation will
fail when disable FEATURE_WLAN_TDLS. Add fix to resolve this issue.

Change-Id: I2e4766ba3f7810038304d22c4dee1035284b3e05
CRs-Fixed: 2023187
2017-09-28 23:42:02 -07:00
snandini
ce040b906b Release 5.2.0.46C
Release 5.2.0.46C

Change-Id: I2c4645a0a713f0c7c9fc192e39858850a73399a0
CRs-Fixed: 774533
2017-09-28 22:48:51 -07:00
Jeff Johnson
156b9d27ce qcacld-3.0: Use correct SAP context in hdd_print_acl()
In hdd_print_acl() the calls to SAP APIs are using a poorly named,
poorly typed variable. Recently all of the SAP APIs were reworked to
expose a clean interface, so update hdd_print_acl() to align with that
interface.

Change-Id: Ib10f5fc017589d13fe1ccfb758d9333daa0e3ac7
CRs-Fixed: 2118653
2017-09-28 22:48:50 -07:00
snandini
47397ec8fe Release 5.2.0.46B
Release 5.2.0.46B

Change-Id: I65ead4da16c46fa1f3daa37dce553d98d72eaaf9
CRs-Fixed: 774533
2017-09-28 21:59:39 -07:00
Dustin Brown
27cd994d11 qcacld-3.0: Stop adapters on connection mode change
__con_mode_handler does not currently stop existing adapters before
stopping the driver module. In order to support runtime leak detection,
existing adapters should be stopped to avoid any false positives. Stop
any existing adapters before stopping the driver modules when changing
the connection mode.

Change-Id: I1ee369a75c74f889e06ee8a07a34f1b34120317e
CRs-Fixed: 2117892
2017-09-28 21:59:39 -07:00
Rajeev Kumar
fddebf7ef5 qcacld-3.0: Fix excessive logging from wlan_pmo_gtk.c
Info level logs are logged on console, hence change PMO logs in
wlan_pmo_gtk.c to debug log level to avoid excessive console
logging.

Change-Id: I3aa1eef2476827157adfa51e37b0054b10ba58c1
CRs-Fixed: 2118712
2017-09-28 21:59:37 -07:00
Jeff Johnson
18611aff04 qcacld-3.0: Remove obsolete prototype hdd_rx_mul_packet_cbk()
There is a prototype for hdd_rx_mul_packet_cbk() but no
implementation, so remove this obviously obsolete prototype.

Change-Id: I9119bcb8baf9b9a04f5c99d39eb5a7abfa18607f
CRs-Fixed: 2118652
2017-09-28 21:59:35 -07:00
Jeff Johnson
e13d806b89 qcacld-3.0: Rename pSapCtx to sap_ctx
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pSapCtx to sap_ctx to align with the
Coding Style.

Change-Id: I9402132fc20cbb7e9041ec9f112eaa2af258a0d4
CRs-Fixed: 2118452
2017-09-28 21:59:32 -07:00
Houston Hoffman
e5cd52cc41 qcacld-3.0: Call hif apis to block traffic during suspend
Before performing wow handshake, block unwanted traffic between the host
and firmware.

Change-Id: I977603b06639fe30816179defec337a2067fc210
CRs-Fixed: 2004308
2017-09-28 21:59:30 -07:00
snandini
3762caae85 Release 5.2.0.46A
Release 5.2.0.46A

Change-Id: I531e7580da18b131df7dfb08c95310416374bc9b
CRs-Fixed: 774533
2017-09-28 18:04:20 -07:00
SaidiReddy Yenuga
8cbd921ba2 qcacld-3.0: Add NULL Check in iwpriv ioctl iw_setint_getnone
qcacld-2.0 to qcacld-3.0 propagation

iw_setint_getnone can cause crash in monitor mode as hal
context is not initialized.

Modify the code to handle dereferencing hHal in Driver Monitor
mode.

CRs-Fixed: 1040579
Change-Id: If26cfab5374ac34c55e03b887c320c0736a9df23
2017-09-28 18:04:20 -07:00
snandini
3a339aed2e Release 5.2.0.46
Release 5.2.0.46

Change-Id: I1de767fa77d764bdd95753aacb7bf919de961995
CRs-Fixed: 774533
2017-09-28 17:13:52 -07:00
Naveen Rawat
09b96dfecf qcacld-3.0: Fix memory leak in SAP csr roam profile during SSR
In case of SSR and SAP is active, if hdd_init_ap_mode is not clean
SAP profile will leak memory. Fix memory leak in this case.

Change-Id: I7655d8f1d5654e583cbf4812c7f5e2a3a20ff54a
CRs-Fixed: 2112581
2017-09-28 17:13:52 -07:00
snandini
722cc42c9e Release 5.2.0.45Z
Release 5.2.0.45Z

Change-Id: Ib0d8052e7cf149edf5e6f6afeb944627c39e26d4
CRs-Fixed: 774533
2017-09-28 16:11:30 -07:00
Venkata Sharath Chandra Manchala
9bf41ff5ff qcacld-3.0: Reduce log level
For the hdd receive datapath reduce the log level
from INFO to DEBUG to avoid excessive logging.

Change-Id: I5d5881aeadcb5129e3c67c34402e29e732bae1a4
CRs-Fixed: 2105286
2017-09-28 16:11:29 -07:00
Naveen Rawat
684e8b1eb0 qcacld-3.0: Improve tx status logging for mgmt packets
Change status logging in mgmt tx completion to string format.

Change-Id: I84c99e3c928a8a5c17048f20e1d9b3e990b911ad
CRs-Fixed: 2113615
2017-09-28 16:11:28 -07:00
Naveen Rawat
1b91657a1d qcacld-3.0: Reject scan request on NDI vdev
NDI does not need scan from userspace to establish connection
and it does not support scan request either. Hence reject scan
request on NDI vdev.

Change-Id: I58b0c899b6f1196f32a70e3f2c95d6ff839d4555
CRs-Fixed: 2115215
2017-09-28 16:11:26 -07:00
Krunal Soni
3512f6ba16 qcacld-3.0: Correct the data type of argument used in lim_get_rx_ldpc
Correct the data type of argument used in lim_get_rx_ldpc API.

At present absolute channel number is passed to lim_get_rx_ldpc API and
this API internally try to treat it as channel enum type which creates
stability issue.

CRs-Fixed: 2069959
Change-Id: Iebb6b5b5164e1aa6e6a7c48a5942cd30062aebad
2017-09-28 16:11:24 -07:00
Krunal Soni
e8324ce7d8 qcacld-3.0: Fix SAP+SAP SCC DFS concurrency on DBS platform
As per current implementation, if one SAP is on DFS channel & another
SAP is non-DFS and if RADAR is detected on DFS channel then both SAPs
are changing channels which is incorrect behavior for new platforms.

Above limitation was added for old platform where SAP+SAP concurrency
was allowed only for DFS SCC feature.

Allow both SAPs to change the channel back to back when they are on
same SCC DFS channel. This change will allow to maintain backward
compatiblity with old platform.

CRs-Fixed: 2114154
Change-Id: I9c426f9a148d0feac552c34929daad1e802edd2f
2017-09-28 16:11:22 -07:00
snandini
87ff1d3ee5 Release 5.2.0.45Y
Release 5.2.0.45Y

Change-Id: Id631b4b2edb6bb9e7018569412181bf9e81ae525
CRs-Fixed: 774533
2017-09-28 13:26:36 -07:00
Jeff Johnson
02d23c3bcd qcacld-3.0: Remove obsolete HDD WPS macros and enums
HDD defines a large set of WPS macros and enumerations which were
inherited from a prior version of the driver which implemented SAP WPS
in the driver itself. Now that SAP WPS is entirely handled by
userspace, these macros and enumerations are obsolete, so remove them.

Change-Id: Id8c9622c1e6429fcb64c3d292bc273bf49da79e4
CRs-Fixed: 2118451
2017-09-28 13:26:35 -07:00
snandini
453f97726d Release 5.2.0.45X
Release 5.2.0.45X

Change-Id: I61415befe2f9b98e0feb84e169154f2ecafcf5fb
CRs-Fixed: 774533
2017-09-28 11:26:33 -07:00
Sandeep Puligilla
66d09c4150 qcacld-3.0: Add RRM scan changes
Add RRM scan changes according to new
scan component.

Change-Id: Ib8e90a3f54c173cf478164aeef90f8f825984ce2
CRs-Fixed: 2113507
2017-09-28 11:26:33 -07:00
snandini
7154b2725b Release 5.2.0.45W
Release 5.2.0.45W

Change-Id: Ibb62765eabf52c35b6cb12f62105bac46a53e4e4
CRs-Fixed: 774533
2017-09-28 09:39:48 -07:00
Frank Liu
5c63dc8f82 qcacld-3.0: TDLS: remove remaining legacy code
Clear up tdls legacy init/deini, helper functions and structures.
Also remove legacy code in vendor nl80211 and iwpriv commands.

Change-Id: I983851d8cc0d3605c3d6bd0d8975c72844f71740
CRs-Fixed: 2105075
2017-09-28 09:39:48 -07:00
Frank Liu
1b8212057d qcacld-3.0: TDLS: remove legacy event process
Clear up the tdls legacy tdls firmware events and
implicit tdls discovery request process.

Change-Id: I2e2380b1789cce7841ff0be4120184d1bce0b7e7
CRs-Fixed: 2105075
2017-09-28 09:39:45 -07:00
Frank Liu
d1a2846324 qcacld-3.0: TDLS: remove legacy core functions
Clear up the tdls legacy functions which handle add/delete
tdls peer, tdls mgmt frame process and tdls_oper callback.

Change-Id: I8ba344ce5593df44bd15527e2ff68e872b6d23b8
CRs-Fixed: 2105075
2017-09-28 09:39:43 -07:00
Frank Liu
2ef4ab2f99 qcacld-3.0: TDLS: remove legacy interfaces
Clear up the legacy tdls interfaces which handle
connect/disconnect notifications, scan and p2p
roc events.

Change-Id: Ia860904685fc4783453491effa4518777c7406d0
CRs-Fixed: 2105075
2017-09-28 09:39:41 -07:00
Frank Liu
1a912b2f05 qcacld-3.0: TDLS: remove legacy connection tracker
Clear up the legacy tdls connection tracker function

Change-Id: I9163e8ec7a41750085d8673b25cf4797d1b84714
CRs-Fixed: 2105075
2017-09-28 09:39:39 -07:00
snandini
aa6ea96bf4 Release 5.2.0.45V
Release 5.2.0.45V

Change-Id: I3af580d3812616c2f449b2ca9fd5c414f067533e
CRs-Fixed: 774533
2017-09-28 06:41:36 -07:00
Mukul Sharma
6bdb77be27 qcacld-3.0: Flush pending scan queue during con mode handling
Currently, Host is operating into STA (mission mode) and scan
is pending into the pending queue. As a part of the mission
mode to ftm transition scan pending queue is not flushed. Hence
later during driver unload, host try to flush this pending
request but sta adpater is already freed during con mode
transition which lead to kernel panic.
As a part of this fix, Host ensures to flush pending scan
queue during con mode handling.

Change-Id: I13da323217a36777b9307c1bc76febc1a1b9b591
CRs-Fixed: 2082105
2017-09-28 06:41:35 -07:00
Kiran Kumar Lokere
81722635e9 qcacld-3.0: Do not check sub type in vendor VHT IE parsing
Vendor VHT IE carries different sub type values from different
devices hence vendor VHT IE parsing fails if sub type value is
considered to check IE presence. Do not check for sub type value
in vendor VHT IE parsing

Change-Id: I50a8916214c17c1873fd90b65d29e48f1fa13994
CRs-Fixed: 2115113
2017-09-28 06:41:34 -07:00
Lin Bai
c5c0688e21 qcacld-3.0: Fix build error without MSM_PLATFORM
Compiler is throwing error - undefined variable 'bus_bw_work' after
MSM_PLATFORM disabled.

Wrap the related code within MSM_PLATFORM.

CRs-Fixed: 2113835
Change-Id: I628df9de911fb17670d63ce577a614408c545aec
2017-09-28 06:41:32 -07:00
snandini
fc92903473 Release 5.2.0.45U
Release 5.2.0.45U

Change-Id: I3c3bf61fda5cce5df9b19cf349187850bcb3032a
CRs-Fixed: 774533
2017-09-28 05:40:03 -07:00
jiad
04f402117b qcacld-3.0: Restore RX ring fill level for Rome
HTT_RX_HOST_LATENCY_WORST_LIKELY_MS is changed from 10 to 20
for Helium support. But 20 is aggressive for Rome and traffic
hang is seen.

Fix is to define HTT_RX_HOST_LATENCY_WORST_LIKELY_MS as 10
for Rome support.

Change-Id: Iaaa86ed70d145ac9898300e9b678008781215617
CRs-Fixed: 2050912
2017-09-28 05:40:03 -07:00